:root {
  color-scheme: dark;
  color: #eef4fb;
  background: #07111f;
  font-family: Inter, "Pretendard", "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --bg: #07111f;
  --panel: rgba(13, 25, 39, 0.96);
  --panel-strong: #101d2c;
  --line: #24354d;
  --line-bright: #36506d;
  --text: #eef4fb;
  --muted: #9ba9bb;
  --soft: #c5d0dd;
  --cyan: #79d1f7;
  --green: #69e6b0;
  --gold: #f4c15d;
  --red: #ff8fa1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(47, 88, 128, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(105, 230, 176, 0.06), transparent 44%),
    var(--bg);
}

button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: min(1360px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 14px;
  border-right: 1px solid #24354d;
  background:
    linear-gradient(180deg, rgba(21, 39, 58, 0.96), rgba(8, 18, 31, 0.98)),
    var(--panel);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 209, 247, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(121, 209, 247, 0.25);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(121, 209, 247, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #273850;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 209, 247, 0.18), rgba(105, 230, 176, 0.08)),
    var(--panel-strong);
  color: var(--cyan);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(121, 209, 247, 0.08);
}

.brand-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand h1::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--green), transparent);
  content: "";
}

.brand p,
.sidebar-note span,
.page-head p,
.muted,
.empty,
.loading {
  color: #9ba9bb;
}

.sidebar-note {
  margin-top: auto;
  flex-shrink: 0;
  padding: 14px;
  border: 1px solid #24354d;
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.78);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #d9e4ef;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}

.nav-list button,
.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.76);
  color: #d9e4ef;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-list button {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  position: relative;
}

.nav-list button.active,
.nav-list button:hover,
.filter-toggle.on {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.15), rgba(16, 40, 58, 0.94));
  color: #f5f8fc;
}

.nav-list button:hover {
  transform: translateX(2px);
}

.nav-list button.active::before {
  width: 4px;
  height: 18px;
  margin-right: 2px;
  border-radius: 999px;
  background: var(--cyan);
  content: "";
}

.content {
  min-width: 0;
  padding: 18px 14px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  padding: 0 0 12px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.82));
  backdrop-filter: blur(12px);
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #2c405b;
  border-radius: 8px;
  background: rgba(11, 22, 36, 0.9);
  color: #f5f8fc;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.searchbox span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #91a0b3;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f8fc;
}

.searchbox input::placeholder {
  color: #6f8094;
}

.searchbox:focus-within {
  border-color: #70c8f4;
}

.filter-toggle {
  flex: 0 0 auto;
  padding: 0 14px;
}

.page {
  display: grid;
  gap: 12px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(121, 209, 247, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 209, 247, 0.13), rgba(105, 230, 176, 0.06) 46%, rgba(244, 193, 93, 0.08)),
    rgba(13, 25, 39, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-panel h2 {
  font-size: 30px;
  line-height: 1.2;
}

.hero-panel p {
  margin-top: 8px;
  color: var(--soft);
}

.hero-callout {
  padding: 14px;
  border: 1px solid rgba(105, 230, 176, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.5);
}

.hero-callout span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.hero-callout strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.page-head {
  display: grid;
  gap: 5px;
  padding: 2px 0 4px;
}

.page-head h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.stats-grid,
.overview-grid,
.map-grid,
.monster-grid,
.doc-grid,
.guide-grid,
.npc-grid,
.drop-list {
  display: grid;
  gap: 10px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat,
.region-card,
.wide-card,
.map-card,
.drop-card,
.monster-card,
.doc-card,
.guide-card,
.route-card,
.npc-card,
.note-list,
.table-wrap,
.timeline-item {
  border: 1px solid #24354d;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 37, 55, 0.76), rgba(13, 25, 39, 0.98)),
    var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.region-card,
.wide-card,
.map-card,
.drop-card,
.monster-card,
.doc-card,
.guide-card,
.route-card,
.npc-card,
.timeline-item {
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.region-card:hover,
.wide-card:hover,
.map-card:hover,
.drop-card:hover,
.monster-card:hover,
.doc-card:hover,
.guide-card:hover,
.route-card:hover,
.npc-card:hover,
.timeline-item:hover {
  border-color: rgba(121, 209, 247, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.stat {
  display: grid;
  gap: 5px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
  content: "";
}

.stat span,
label span,
.section-title small {
  display: block;
  color: #91a0b3;
  font-size: 13px;
}

.stat strong {
  font-size: 24px;
  line-height: 1.2;
}

.overview-grid,
.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.region-card,
.wide-card,
.map-body,
.drop-card,
.monster-card,
.doc-card,
.guide-card {
  padding: 14px;
}

.guide-card h3,
.section-title h3 {
  font-size: 17px;
}

.guide-card ul,
.doc-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.guide-card li,
.doc-card li {
  margin: 6px 0;
  color: #c5d0dd;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
}

.section-title h3::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  vertical-align: 1px;
}

.region-list,
.route-list,
.timeline {
  display: grid;
  gap: 10px;
}

.wide-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: start;
}

.hunting-wide-card {
  grid-template-columns: minmax(230px, 0.95fr) minmax(190px, 0.75fr) minmax(230px, 0.95fr) minmax(300px, 1.2fr) minmax(140px, auto);
}

.wide-card h4 {
  font-size: 13px;
  color: #91a0b3;
}

.hunting-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hunting-summary .card-title-row {
  align-items: center;
}

.hunting-summary h3 {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.compact-column {
  min-width: 0;
}

.compact-column .tag-row {
  margin-top: 8px;
}

.compact-column .tag-row span {
  max-width: 100%;
}

.route-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.route-range {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 8px;
  font-weight: 800;
}

.route-main h3 {
  font-size: 18px;
}

.route-main p {
  margin-top: 8px;
  color: #c5d0dd;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3,
.map-card h3,
.monster-card h3,
.doc-card h3,
.timeline-item h3 {
  font-size: 16px;
  line-height: 1.3;
}

.card-title-row span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #baf5d8;
  background: linear-gradient(135deg, #123f2f, rgba(105, 230, 176, 0.2));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  max-width: 100%;
  padding: 4px 8px;
  color: #d9e4ef;
  background: rgba(16, 29, 44, 0.82);
  border: 1px solid #273850;
  border-radius: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tag-row.drops span {
  color: #baf5d8;
  background: rgba(18, 63, 47, 0.78);
  border-color: #1e5c43;
}

.tag-row.boss-spawns span {
  color: #fed7aa;
  background: rgba(92, 54, 13, 0.72);
  border-color: rgba(245, 158, 11, 0.42);
}

.source-ref,
.status-badge {
  display: none !important;
}

.status-badge.good {
  color: #06111f;
  background: var(--green);
}

.status-badge.warn {
  color: #06111f;
  background: var(--gold);
}

.status-badge.neutral {
  color: #d9e4ef;
  background: rgba(16, 29, 44, 0.92);
  border: 1px solid #273850;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.action-column {
  justify-content: flex-end;
}

.action-column .source-ref {
  max-width: 180px;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-button,
.close-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(121, 209, 247, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.22), rgba(105, 230, 176, 0.08));
  color: #eef4fb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.detail-button:hover,
.close-button:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.3), rgba(105, 230, 176, 0.14));
}

.map-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-card {
  overflow: hidden;
  cursor: pointer;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(121, 209, 247, 0.09), rgba(105, 230, 176, 0.05)),
    #0b1624;
}

.image-strip img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid #24354d;
  filter: saturate(1.08) contrast(1.03);
}

.image-placeholder,
.monster-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: #91a0b3;
  background: #0b1624;
}

.map-body {
  display: grid;
  gap: 9px;
}

.map-body p,
.drop-card p,
.monster-card p,
.timeline-item li {
  color: #c5d0dd;
  overflow-wrap: anywhere;
}

.drop-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drop-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drop-card {
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.drop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drop-card-head h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}

.drop-card .tag-row {
  max-height: 176px;
  overflow: auto;
  padding-right: 4px;
}

.monster-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.monster-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.monster-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(121, 209, 247, 0.08), transparent 58%),
    #0b1624;
  border: 1px solid #1f3046;
  border-radius: 8px;
}

.monster-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monster-title-row,
.npc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.level-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.35);
  color: #f4c15d;
  font-size: 11px;
  font-weight: 700;
}

.location-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.35);
  color: #69e6b0;
  font-size: 11px;
  font-weight: 700;
}

.monster-loc,
.npc-role {
  font-size: 13px;
  color: #91a0b3;
}

.monster-desc {
  font-size: 13px;
  color: #c5d0dd;
  line-height: 1.4;
}

.monster-drops {
  font-size: 12px;
  color: #91a0b3;
}

.monster-meta,
.npc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.npc-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.npc-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.npc-card img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(105, 230, 176, 0.08), transparent 58%),
    #0b1624;
  border: 1px solid #1f3046;
  border-radius: 8px;
}

.npc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.npc-card h3 {
  font-size: 16px;
}

.npc-card ul {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.npc-card li {
  margin: 3px 0;
  font-size: 13px;
  color: #c5d0dd;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #1f3046;
  text-align: left;
  vertical-align: top;
}

th {
  color: #91a0b3;
  background: rgba(16, 29, 44, 0.82);
  font-size: 13px;
}

td {
  color: #d9e4ef;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.timeline-item time {
  color: #91a0b3;
  font-size: 13px;
}

.timeline-item ul {
  margin: 10px 0;
  padding-left: 18px;
}

.note-list {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #c5d0dd;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: stretch end;
  padding: 18px;
  background: rgba(2, 8, 15, 0.72);
  backdrop-filter: blur(8px);
}

.detail-panel {
  width: min(920px, 100%);
  height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(121, 209, 247, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 37, 55, 0.98), rgba(7, 17, 31, 0.98)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #24354d;
  background: rgba(8, 18, 31, 0.94);
  backdrop-filter: blur(12px);
}

.detail-head h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #24354d;
  background: rgba(11, 22, 36, 0.7);
}

.detail-gallery img {
  width: 100%;
  min-height: 180px;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #1f3046;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 209, 247, 0.08), rgba(105, 230, 176, 0.04)),
    #07111f;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 14px 0;
}

.detail-section {
  margin: 14px;
  padding: 14px;
  border: 1px solid #24354d;
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.62);
}

.detail-grid .detail-section {
  margin: 0;
}

.detail-section h4 {
  color: var(--cyan);
  font-size: 14px;
}

.detail-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.detail-section li,
.detail-section p {
  margin: 5px 0;
  color: #c5d0dd;
  overflow-wrap: anywhere;
}

.drop-table-section {
  margin-top: 10px;
}

.drop-table {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.drop-table-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #24354d;
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.54);
}

.drop-table-row strong {
  color: var(--gold);
  font-size: 13px;
}

.drop-table-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drop-table-row span {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #1e5c43;
  border-radius: 8px;
  background: rgba(18, 63, 47, 0.78);
  color: #baf5d8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty,
.loading {
  display: grid;
  min-height: 220px;
  place-items: center;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #24354d;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-list button {
    justify-content: center;
  }

  .nav-list button.active::before {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .stats-grid,
  .overview-grid,
  .map-grid,
  .doc-grid,
  .guide-grid,
  .npc-grid,
  .drop-list,
  .drop-list.compact {
    grid-template-columns: 1fr;
  }

  .route-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-head {
    align-items: flex-start;
  }
}

/* 맵/지역별 필터 칩 & 그룹화 스타일 */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2c405b;
  background: rgba(16, 29, 44, 0.85);
  color: #c5d0dd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: var(--cyan);
  color: #f5f8fc;
  background: rgba(121, 209, 247, 0.12);
}

.chip-btn.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.25), rgba(16, 40, 58, 0.95));
  color: #79d1f7;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(121, 209, 247, 0.2);
}

.grouped-container {
  display: grid;
  gap: 24px;
}

.map-group-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(11, 22, 36, 0.6);
  border: 1px solid rgba(44, 64, 91, 0.6);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.group-header h3 {
  font-size: 17px;
  color: #f5f8fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.count-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.3);
  color: #79d1f7;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .brand {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 18px;
  }

  .topbar {
    flex-direction: row;
  }

  .page-head h2 {
    font-size: 22px;
  }

  .timeline-item,
  .npc-card {
    grid-template-columns: 1fr;
  }

  .npc-card img {
    width: 100%;
  }

  .detail-overlay {
    padding: 0;
  }

  .detail-panel {
    height: 100vh;
    border-radius: 0;
  }

  .detail-head {
    flex-direction: column;
  }

  .drop-table-row {
    grid-template-columns: 1fr;
  }
}

/* 맵 상세 모달 내 연계 몬스터 & NPC 미니 카드 스타일 */
.linked-entities-section {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.7);
  border: 1px solid rgba(44, 64, 91, 0.8);
}

.linked-block h4 {
  font-size: 14px;
  color: #79d1f7;
  margin-bottom: 10px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #0b1624;
  border: 1px solid #1f3046;
}

.mini-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-empty {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.15);
  color: #79d1f7;
  font-size: 12px;
  font-weight: 700;
}

.npc-mini-empty {
  background: rgba(105, 230, 176, 0.15);
  color: #69e6b0;
}

.mini-card strong {
  display: block;
  font-size: 13px;
  color: #f5f8fc;
}

.mini-level,
.mini-role {
  font-size: 11px;
  color: #91a0b3;
}

/* 맵별 통합 섹션 카드 스타일 */
.map-section-list {
  display: grid;
  gap: 20px;
}

.map-section-card {
  padding: 18px;
  border-radius: 10px;
  background: rgba(13, 25, 39, 0.95);
  border: 1px solid rgba(44, 64, 91, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 14px;
}

.town-section-card {
  border-color: rgba(105, 230, 176, 0.35);
  background: linear-gradient(135deg, rgba(105, 230, 176, 0.04), rgba(13, 25, 39, 0.98));
}

.map-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.map-header-left h3 {
  font-size: 18px;
  color: #f5f8fc;
  font-weight: 800;
}

.map-kind-tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.3);
  color: #79d1f7;
  font-size: 11px;
  font-weight: 700;
}

.map-kind-tag.town-tag {
  background: rgba(105, 230, 176, 0.15);
  border-color: rgba(105, 230, 176, 0.3);
  color: #69e6b0;
}

.map-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-entry-box {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(244, 193, 93, 0.08);
  border: 1px solid rgba(244, 193, 93, 0.25);
  color: #f4c15d;
  font-size: 13px;
}

.map-section-body {
  display: grid;
  gap: 14px;
}

.map-sub-block {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(11, 22, 36, 0.7);
  border: 1px solid rgba(31, 48, 70, 0.8);
}

.sub-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sub-block-title h4 {
  font-size: 14px;
  color: #f5f8fc;
  font-weight: 700;
}

.boss-note-tag {
  font-size: 12px;
  color: #f4c15d;
  background: rgba(244, 193, 93, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.map-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.map-entity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #08121e;
  border: 1px solid #1a283a;
}

.map-entity-item.is-monster {
  border-left: 3px solid #79d1f7;
}

.map-entity-item.is-npc {
  border-left: 3px solid #69e6b0;
}

.map-entity-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.map-entity-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.map-entity-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.map-entity-title strong {
  font-size: 13px;
  color: #f5f8fc;
}

.kind-tag {
  font-size: 10px;
  color: #f4c15d;
  background: rgba(244, 193, 93, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.map-entity-sub {
  font-size: 12px;
  color: #91a0b3;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mini-drops {
  margin-top: 4px;
}

.mini-drops .tag-row span {
  font-size: 10px;
  padding: 1px 6px;
}

.town-tips {
  font-size: 13px;
  color: #c5d0dd;
  line-height: 1.4;
}

/* ====================================================
   ITEMS, GIFT SETS, & SPECIALTIES STYLING
==================================================== */

.sub-nav-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.7);
  color: #c5d0dd;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.sub-pill:hover,
.sub-pill.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.2), rgba(16, 40, 58, 0.95));
  color: #f5f8fc;
  box-shadow: 0 4px 12px rgba(121, 209, 247, 0.15);
}

.sub-pill.active {
  border-bottom: 2px solid var(--cyan);
}

/* Gift Grid & Cards */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.gift-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #273e5a;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 34, 54, 0.95), rgba(11, 22, 36, 0.98));
  padding: 16px;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 140ms ease, border-color 140ms ease;
}

.gift-card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 209, 247, 0.6);
}

.gift-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.gift-icon-wrap,
.spec-icon-wrap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #324b6c;
  flex-shrink: 0;
}

.gift-icon-wrap img,
.spec-icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.gift-title-block,
.spec-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gift-title-block h3,
.spec-title-block h3 {
  font-size: 16px;
  color: #f5f8fc;
  font-weight: 800;
}

.gift-tag-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.gift-category-badge,
.spec-cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.3);
}

.target-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.target-village {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.3);
}

.target-solo {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.3);
}

.duration-badge {
  font-size: 11px;
  color: #9ba9bb;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.effect-box {
  background: linear-gradient(135deg, rgba(105, 230, 176, 0.12), rgba(121, 209, 247, 0.08));
  border: 1px solid rgba(105, 230, 176, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.effect-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.5px;
}

.effect-text strong {
  font-size: 14px;
  color: #f5f8fc;
  line-height: 1.4;
}

.craft-npc-row {
  font-size: 13px;
  display: flex;
  gap: 6px;
  color: #c5d0dd;
}

.craft-label {
  font-weight: 700;
  color: var(--gold);
}

.craft-npc-name {
  color: #eef4fb;
}

.recipe-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1c3048;
}

.recipe-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(21, 39, 58, 0.85);
  border: 1px solid #2c4563;
  border-radius: 6px;
  font-size: 12px;
  color: #eef4fb;
  cursor: pointer;
  transition: all 120ms ease;
}

.ingredient-chip:hover {
  border-color: var(--cyan);
  background: rgba(30, 58, 88, 0.95);
  transform: translateY(-1px);
}

.ingredient-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ing-count {
  color: var(--gold);
  font-weight: 700;
}

.gift-drop-maps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.drop-map-label {
  color: #9ba9bb;
  font-weight: 700;
}

.gift-desc-plain {
  font-size: 13px;
  color: #9ba9bb;
  line-height: 1.4;
}

/* Specialty Grid & Cards */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #243850;
  border-radius: 8px;
  background: rgba(13, 25, 39, 0.9);
  padding: 14px;
  gap: 10px;
  transition: all 140ms ease;
}

.specialty-card:hover {
  border-color: var(--cyan);
  background: rgba(16, 32, 50, 0.95);
}

.specialty-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.specialty-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.spec-desc {
  color: #c5d0dd;
  line-height: 1.4;
  font-size: 12.5px;
}

.spec-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-info-row strong {
  font-size: 12px;
  color: #9ba9bb;
}



/* Hunting Drop Mapping View */
.hunting-drop-mapping-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hunting-mapping-card {
  border: 1px solid #273e5a;
  border-radius: 10px;
  background: rgba(13, 25, 39, 0.95);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hunting-mapping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.map-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-icon-title h3 {
  font-size: 17px;
  color: #f5f8fc;
  font-weight: 800;
}

.mapping-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.mapping-item-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(20, 36, 54, 0.8);
  border: 1px solid #2a4463;
  border-radius: 6px;
  cursor: pointer;
  transition: all 120ms ease;
}

.mapping-item-chip:hover {
  border-color: var(--cyan);
  background: rgba(28, 52, 78, 0.95);
  transform: translateY(-1px);
}

.mapping-item-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mapping-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mapping-item-info strong {
  font-size: 13px;
  color: #f5f8fc;
}

.spec-sub-cat {
  font-size: 11px;
  color: #9ba9bb;
}

.gift-link-pill {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 700;
}

/* Item Detail Modal Enhancements */
.item-modal-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-icon-modal {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #36506d;
}

.badge-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.highlight-section {
  background: rgba(105, 230, 176, 0.05);
  border-color: rgba(105, 230, 176, 0.25);
}

.effect-banner {
  font-size: 15px;
  color: var(--green);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border-left: 3px solid var(--green);
  margin-bottom: 8px;
}

.item-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-pill {
  font-size: 12px;
  padding: 3px 8px;
  background: rgba(121, 209, 247, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 4px;
}

.modal-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.modal-recipe-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(20, 36, 54, 0.85);
  border: 1px solid #2a4463;
  border-radius: 6px;
}

.modal-recipe-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.count-tag {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin-left: 4px;
}

.drop-location-tag {
  font-size: 11px;
  color: var(--cyan);
  margin-left: auto;
}

.drop-mapping-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drop-map-list,
.drop-monster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drop-map-list > strong,
.drop-monster-list > strong {
  font-size: 13px;
  color: #9ba9bb;
  font-weight: 700;
}

.full-col {
  grid-column: 1 / -1;
}

/* ====================================================
   SIMPLIFIED HUNTING CARDS & CATEGORIZED DROPS
==================================================== */

/* 1. Hunting Card Grid & Compact Cards */
.hunting-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.hunting-summary-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: linear-gradient(135deg, rgba(13, 25, 39, 0.95), rgba(16, 32, 50, 0.9));
  border: 1px solid rgba(44, 64, 91, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

.hunting-summary-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(16, 32, 50, 0.98), rgba(20, 42, 66, 0.95));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 16px rgba(121, 209, 247, 0.15);
}

.hunting-summary-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hunting-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hunting-header-title-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hunting-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #f5f8fc;
  margin: 0;
}

.card-detail-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(121, 209, 247, 0.35);
  background: rgba(121, 209, 247, 0.1);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}

.hunting-summary-card:hover .card-detail-btn {
  background: var(--cyan);
  color: #06111f;
}

.hunting-boss-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(244, 193, 93, 0.1);
  border: 1px solid rgba(244, 193, 93, 0.3);
  border-radius: 6px;
  color: #f4c15d;
  font-size: 12px;
}

.boss-icon {
  font-size: 14px;
}

.hunting-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  flex: 1;
}

.hunting-preview-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #91a0b3;
}

.preview-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.monster-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(11, 22, 36, 0.85);
  border: 1px solid rgba(44, 64, 91, 0.7);
  border-radius: 6px;
  font-size: 12px;
  color: #f5f8fc;
}

.chip-avatar {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.chip-title {
  font-weight: 700;
}

.chip-sub-level {
  font-size: 10px;
  color: #79d1f7;
}

.drop-mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(18, 40, 32, 0.75);
  border: 1px solid rgba(105, 230, 176, 0.25);
  border-radius: 6px;
  font-size: 12px;
  color: #baf5d8;
}

.more-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(121, 209, 247, 0.12);
  border: 1px dashed rgba(121, 209, 247, 0.4);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #79d1f7;
}

.drop-more-badge {
  background: rgba(105, 230, 176, 0.12);
  border-color: rgba(105, 230, 176, 0.4);
  color: #69e6b0;
}

.hunting-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #91a0b3;
}

.entry-summary-text {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-count-text {
  color: #69e6b0;
  font-weight: 700;
  white-space: nowrap;
}

.card-click-hint {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 11px;
  color: #62778f;
  transition: color 140ms ease;
}

.hunting-summary-card:hover .card-click-hint {
  color: var(--cyan);
}

/* 2. Categorized Drop Items (팝업 및 상세 화면) */
.highlight-drops-section {
  background: rgba(11, 22, 36, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 8px;
  padding: 16px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head-row h4 {
  font-size: 15px;
  font-weight: 800;
  color: #f5f8fc;
  margin: 0;
}

.categorized-drops-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drop-category-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(16, 29, 44, 0.6);
  border: 1px solid #1f3046;
}

.drop-category-row.cat-specialty {
  background: rgba(18, 48, 36, 0.45);
  border-color: rgba(105, 230, 176, 0.3);
}

.drop-category-row.cat-equip {
  background: rgba(28, 38, 64, 0.45);
  border-color: rgba(121, 209, 247, 0.3);
}

.drop-category-row.cat-book {
  background: rgba(48, 38, 20, 0.45);
  border-color: rgba(244, 193, 93, 0.3);
}

.drop-category-row.cat-etc {
  background: rgba(24, 30, 42, 0.45);
  border-color: rgba(145, 160, 179, 0.25);
}

.drop-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.cat-specialty .drop-category-header {
  color: #69e6b0;
}

.cat-equip .drop-category-header {
  color: #79d1f7;
}

.cat-book .drop-category-header {
  color: #f4c15d;
}

.cat-etc .drop-category-header {
  color: #c5d0dd;
}

.cat-count {
  font-size: 11px;
  opacity: 0.8;
}

.drop-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.drop-chip.cat-specialty {
  background: rgba(18, 63, 47, 0.85);
  border: 1px solid #1e5c43;
  color: #baf5d8;
}

.drop-chip.cat-equip {
  background: rgba(16, 40, 68, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.4);
  color: #e2f1fd;
}

.drop-chip.cat-book {
  background: rgba(58, 42, 16, 0.85);
  border: 1px solid rgba(244, 193, 93, 0.4);
  color: #fef0cd;
}

.drop-chip.cat-etc {
  background: rgba(16, 29, 44, 0.85);
  border: 1px solid #273850;
  color: #d9e4ef;
}

.detail-modal-section {
  padding: 14px;
  border-radius: 8px;
  background: rgba(11, 22, 36, 0.65);
  border: 1px solid rgba(44, 64, 91, 0.7);
  margin-bottom: 14px;
}

/* 3. Monster Text-Only Chips & Cards (사냥터 몬스터 텍스트 전용) */
.monster-text-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monster-text-card {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(16, 29, 44, 0.9);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 120ms ease;
}

.monster-text-card:hover {
  border-color: var(--cyan);
  background: rgba(22, 42, 64, 0.95);
  transform: translateY(-1px);
}

.monster-text-card .mini-entity-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monster-name {
  font-size: 13px;
  font-weight: 700;
  color: #f5f8fc;
}

.monster-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: rgba(121, 209, 247, 0.12);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #79d1f7;
}

.monster-linked-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monster-linked-card {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(11, 22, 36, 0.9);
  border: 1px solid rgba(44, 64, 91, 0.8);
  border-radius: 6px;
}

.monster-linked-card .mini-entity-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ====================================================
   HUNTING MAP VIEW & BOSS DETAILS MODAL STYLING
==================================================== */
.map-view-image-container,
.drop-table-image-container {
  margin-bottom: 16px;
  background: rgba(11, 22, 36, 0.9);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.map-view-image-header,
.drop-table-image-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(16, 29, 44, 0.95);
  border-bottom: 1px solid rgba(121, 209, 247, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: #f5f8fc;
}

.image-expand-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: inherit;
}

.image-expand-link:hover {
  background: rgba(121, 209, 247, 0.3);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}

.clickable-zoom-box {
  position: relative;
  cursor: zoom-in;
}

.clickable-zoom-box:hover .image-zoom-overlay-hint {
  opacity: 1;
}

.image-zoom-overlay-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(11, 22, 36, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.5);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0.8;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 140ms ease;
}

.map-view-image-box,
.drop-table-image-box {
  width: 100%;
  max-height: 420px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #080f18;
  padding: 8px;
  border-radius: 0 0 8px 8px;
}

.map-view-image-box img,
.drop-table-image-box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  transition: transform 140ms ease;
}

.clickable-zoom-box:hover img {
  filter: brightness(1.04);
}

/* ====================================================
   IMAGE LIGHTBOX MODAL (화면 Y축 가득 채움 & 원본 비율 유지)
==================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 9, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px;
  animation: fadeInLightbox 120ms ease;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-panel {
  width: 99vw;
  max-width: 99vw;
  height: 98vh;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  background: #080f1a;
  border: 1px solid rgba(121, 209, 247, 0.4);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  animation: scaleUpLightbox 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpLightbox {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(14, 25, 38, 0.98);
  border-bottom: 1px solid rgba(121, 209, 247, 0.25);
  flex-shrink: 0;
  height: 44px;
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-icon {
  font-size: 18px;
}

.lightbox-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f5f8fc;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-newtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 120ms ease;
}

.lightbox-newtab-btn:hover {
  background: rgba(121, 209, 247, 0.3);
  color: #fff;
}

.lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(235, 77, 75, 0.2);
  border: 1px solid rgba(235, 77, 75, 0.5);
  border-radius: 6px;
  color: #ff8e8e;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 120ms ease;
}

.lightbox-close-btn:hover {
  background: rgba(235, 77, 75, 0.4);
  color: #fff;
  border-color: #ff7979;
}

.lightbox-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04080e;
  padding: 4px;
  position: relative;
  height: calc(98vh - 72px);
}

.lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-img {
  height: calc(98vh - 84px);
  width: auto;
  max-width: 98vw;
  max-height: calc(98vh - 84px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.85);
  display: block;
}

.lightbox-footer {
  padding: 4px 16px;
  background: rgba(11, 22, 36, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 11px;
  color: #91a0b3;
  flex-shrink: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hunting-bonus-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(244, 193, 93, 0.12);
  border: 1px solid rgba(244, 193, 93, 0.35);
  border-radius: 8px;
  margin-bottom: 14px;
  color: #fef0cd;
  font-size: 13px;
}

.bonus-badge-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(244, 193, 93, 0.25);
  border: 1px solid rgba(244, 193, 93, 0.5);
  border-radius: 4px;
  color: #f4c15d;
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}

.boss-detail-section {
  background: linear-gradient(135deg, rgba(38, 20, 24, 0.85), rgba(20, 15, 28, 0.95));
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.boss-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 107, 107, 0.25);
  margin-bottom: 14px;
}

.boss-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.boss-header-icon {
  font-size: 24px;
}

.boss-badge {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 4px;
  color: #ff8e8e;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.boss-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.boss-cycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 6px;
  font-size: 12px;
  color: #f4c15d;
}

.boss-schedule-wrap {
  margin-bottom: 14px;
}

.boss-schedule-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffbe76;
  margin-bottom: 8px;
}

.boss-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.boss-schedule-item {
  padding: 10px 12px;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.boss-schedule-item.current-map-schedule {
  background: rgba(58, 28, 36, 0.75);
  border-color: rgba(255, 107, 107, 0.6);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.15);
}

.schedule-map-name {
  font-size: 12px;
  font-weight: 700;
  color: #f5f8fc;
  margin-bottom: 4px;
}

.current-indicator {
  color: #ff6b6b;
  font-weight: 800;
}

.schedule-times {
  font-size: 12px;
  color: #ffbe76;
  font-weight: 600;
}

.boss-drops-wrap {
  margin-bottom: 14px;
}

.boss-drops-title {
  font-size: 12px;
  font-weight: 700;
  color: #69e6b0;
  margin-bottom: 8px;
}

.boss-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.boss-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(16, 29, 44, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.2);
  border-radius: 6px;
}

.boss-drop-item.guaranteed-drop {
  background: rgba(36, 28, 20, 0.85);
  border-color: rgba(244, 193, 93, 0.5);
}

.boss-drop-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  flex-shrink: 0;
}

.boss-drop-img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.boss-drop-emoji {
  font-size: 18px;
}

.boss-drop-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.boss-drop-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.boss-drop-name {
  font-size: 13px;
  color: #f5f8fc;
  font-weight: 700;
}

.guaranteed-badge {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(235, 77, 75, 0.25);
  border: 1px solid #eb4d4b;
  border-radius: 4px;
  color: #ff7979;
  font-size: 10px;
  font-weight: 800;
}

.boss-drop-note {
  font-size: 11px;
  color: #91a0b3;
}

.boss-notes-wrap {
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.boss-notes-title {
  font-size: 12px;
  font-weight: 700;
  color: #e2f1fd;
  margin-bottom: 6px;
}

.boss-notes-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #c5d0dd;
  line-height: 1.6;
}

/* ====================================================
   OFFICIAL NPC EXCHANGES & RECIPES STYLING
==================================================== */
.exchange-npc-chips {
  margin-bottom: 16px;
}

.exchange-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 40, 68, 0.95), rgba(11, 22, 36, 0.9));
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.exchange-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(121, 209, 247, 0.2);
  border: 1px solid rgba(121, 209, 247, 0.4);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.exchange-hero-info h3 {
  font-size: 18px;
  color: #f5f8fc;
  font-weight: 800;
  margin-bottom: 4px;
}

.exchange-hero-info p {
  color: #c5d0dd;
  font-size: 13px;
  margin: 0;
}

.official-exchange-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(105, 230, 176, 0.2), rgba(121, 209, 247, 0.15));
  border: 1px solid rgba(105, 230, 176, 0.4);
  border-radius: 8px;
  color: #69e6b0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 140ms ease;
}

.official-exchange-btn:hover {
  background: #69e6b0;
  color: #06111f;
  transform: translateY(-1px);
}

.exchange-recipes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.exchange-recipe-card {
  display: grid;
  grid-template-columns: 240px 60px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(13, 25, 39, 0.95);
  border: 1px solid rgba(44, 64, 91, 0.85);
  border-radius: 8px;
  transition: all 140ms ease;
}

.exchange-recipe-card:hover {
  border-color: var(--cyan);
  background: rgba(16, 32, 50, 0.98);
}

@media (max-width: 860px) {
  .exchange-recipe-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.exchange-target-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-img-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 4px;
  border: 1px solid rgba(121, 209, 247, 0.3);
}

.target-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.target-sub-label {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

.target-title {
  font-size: 15px;
  color: #f5f8fc;
  font-weight: 800;
}

.exchange-arrow-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.recipe-arrow {
  font-size: 16px;
  color: var(--gold);
}

.recipe-req-label {
  font-size: 10px;
  color: #91a0b3;
}

.exchange-req-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-group-box {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(11, 22, 36, 0.8);
  border: 1px solid rgba(44, 64, 91, 0.6);
}

.choice-group {
  background: rgba(48, 38, 20, 0.3);
  border-color: rgba(244, 193, 93, 0.3);
}

.choice-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.choice-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(244, 193, 93, 0.2);
  color: var(--gold);
  font-weight: 700;
}

.choice-count-text {
  font-size: 11px;
  color: #fed7aa;
  font-weight: 700;
}

.choice-items-list,
.fixed-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.req-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(16, 29, 44, 0.9);
  border: 1px solid rgba(44, 64, 91, 0.7);
  border-radius: 4px;
  font-size: 12px;
  color: #eef4fb;
}

.req-item-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.choice-pill {
  border-color: rgba(244, 193, 93, 0.35);
  background: rgba(30, 24, 14, 0.9);
}

.choice-badge {
  font-size: 11px;
  color: var(--gold);
  background: rgba(244, 193, 93, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(244, 193, 93, 0.3);
  font-weight: 700;
}

.recipe-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  border-color: rgba(244, 193, 93, 0.4);
  background: rgba(40, 30, 15, 0.85);
}

.spec-npc-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(105, 230, 176, 0.08);
  border: 1px solid rgba(105, 230, 176, 0.25);
  border-radius: 6px;
  font-size: 12px;
}

.spec-npc-label {
  color: #69e6b0;
  font-weight: 700;
}

.spec-npc-val {
  color: #eef4fb;
}

.spec-usage-guide {
  font-size: 12.5px;
  color: #79d1f7;
  margin-top: 6px;
  line-height: 1.4;
}

.spec-npc-guide {
  font-size: 12.5px;
  color: #69e6b0;
  margin-top: 4px;
  line-height: 1.4;
}

.official-guide-link {
  color: var(--cyan);
  text-decoration: underline;
  font-size: 12px;
  font-weight: 700;
}

.powder-recipe-box {
  margin: 10px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.15), rgba(105, 230, 176, 0.08));
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recipe-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.recipe-title-text {
  font-size: 14px;
  color: #f5f8fc;
  font-weight: 800;
}

.recipe-mats-wrap {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mats-head {
  font-size: 12px;
  color: #9ba9bb;
}

/* ====================================================
   DROP DATABASE REFINED STYLING (드랍DB 전용 레이아웃)
==================================================== */
.drop-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.drop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(13, 25, 39, 0.95);
  border: 1px solid rgba(44, 64, 91, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 140ms ease;
}

.drop-card:hover {
  border-color: var(--cyan);
  background: rgba(16, 32, 50, 0.98);
}

.drop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drop-card-title-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-card-title-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: #f5f8fc;
  margin: 0;
}

.drop-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drop-peb-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(244, 193, 93, 0.08);
  border: 1px solid rgba(244, 193, 93, 0.25);
  border-radius: 8px;
}

.peb-note-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #fed7aa;
}

.patch-note-row {
  color: #baf5d8;
  border-top: 1px dashed rgba(244, 193, 93, 0.2);
  padding-top: 4px;
  margin-top: 2px;
}

.peb-icon {
  font-size: 14px;
}

.drop-card-items-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.drop-section-label {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 700;
}

/* ====================================================
   MODERN UI POLISH & INTERACTION REFINEMENTS
==================================================== */

/* Smooth custom scrollbars for modals and sidebar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 17, 31, 0.6);
}

::-webkit-scrollbar-thumb {
  background: #243850;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Modal Open & Backdrop Smooth Animations */
.detail-overlay {
  animation: fadeInOverlay 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.detail-panel {
  animation: slideInModal 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Close Button Enhancement */
.close-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 143, 161, 0.4);
  border-radius: 6px;
  background: rgba(255, 143, 161, 0.12);
  color: #ff8fa1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.close-button:hover {
  border-color: #ff8fa1;
  background: rgba(255, 143, 161, 0.25);
  transform: translateY(-1px);
}

/* ====================================================
   TAG & BADGE CHIPS STYLING (개별 분리 및 띄어쓰기 가독성)
==================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  border: 1px solid rgba(44, 64, 91, 0.8);
  background: rgba(16, 29, 44, 0.85);
  color: #d9e4ef;
}

.tag-gift {
  background: rgba(48, 38, 20, 0.6);
  border-color: rgba(244, 193, 93, 0.35);
  color: #f4c15d;
}

.tag-hunting {
  background: rgba(16, 38, 58, 0.6);
  border-color: rgba(121, 209, 247, 0.35);
  color: #79d1f7;
}

.tag-monster {
  background: rgba(58, 20, 32, 0.6);
  border-color: rgba(255, 143, 161, 0.35);
  color: #ff8fa1;
}

.tag-item {
  background: rgba(18, 48, 36, 0.6);
  border-color: rgba(105, 230, 176, 0.35);
  color: #69e6b0;
}

.empty-tag {
  color: #9ba9bb;
  font-size: 12px;
}

/* ====================================================
   UNIFIED SEARCH & INTEGRATED ITEMS VIEW
==================================================== */
.unified-search-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30, 58, 88, 0.6), rgba(16, 29, 44, 0.85));
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.unified-search-banner .search-icon {
  font-size: 20px;
}

.unified-search-banner .search-text-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #e2ecf8;
}

.search-stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(11, 22, 36, 0.7);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 12px;
  font-size: 12px;
  color: #79d1f7;
  font-weight: 600;
}

.integrated-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(44, 64, 91, 0.4);
}

.integrated-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.integrated-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(44, 64, 91, 0.5);
}

.integrated-section-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.integrated-section-header h3 {
  margin: 0;
  font-size: 18px;
  color: #f5f8fc;
  font-weight: 800;
}

.section-count-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.sub-tab-jump-btn {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(16, 29, 44, 0.8);
  border: 1px solid rgba(121, 209, 247, 0.3);
  color: #79d1f7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.sub-tab-jump-btn:hover {
  background: rgba(121, 209, 247, 0.2);
  border-color: var(--cyan);
  color: #fff;
}

.all-npc-banner {
  background: linear-gradient(135deg, rgba(20, 36, 56, 0.8), rgba(11, 22, 36, 0.9));
  border-color: rgba(121, 209, 247, 0.25);
}

/* ==========================================================================
   Set Equipments Catalog Styles
   ========================================================================== */

.sets-filter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(16, 29, 44, 0.6);
  border: 1px solid rgba(44, 64, 91, 0.6);
  border-radius: 12px;
}

.sets-filter-container .filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #9ba9bb;
  margin-right: 4px;
}

.sets-grid-container {
  display: grid;
  gap: 24px;
}

.set-card {
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.95), rgba(10, 20, 32, 0.98));
  border: 1px solid #273d5a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.set-card:hover {
  border-color: rgba(121, 209, 247, 0.5);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(20, 39, 62, 0.95), rgba(14, 26, 42, 0.9));
  border-bottom: 1px solid #253952;
}

.set-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.set-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.25), rgba(244, 193, 93, 0.1));
  border: 1px solid rgba(244, 193, 93, 0.5);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}

.race-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(30, 48, 70, 0.7);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 6px;
  color: #cdd9e6;
  font-size: 12px;
  font-weight: 600;
}

.damage-rule-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.damage-rule-ar {
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.45);
  color: #69e6b0;
}

.damage-rule-hp {
  background: rgba(255, 143, 161, 0.16);
  border: 1px solid rgba(255, 143, 161, 0.45);
  color: #ff8fa1;
}

.set-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #f5f8fc;
  letter-spacing: -0.3px;
}

.set-special-badge {
  padding: 6px 14px;
  background: rgba(121, 209, 247, 0.12);
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 8px;
  color: #aae0fa;
  font-size: 13px;
  font-weight: 600;
}

.set-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.set-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.set-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(14, 25, 39, 0.7);
  border: 1px solid #22374e;
  border-radius: 10px;
  transition: all 140ms ease;
}

.set-item-card:hover {
  background: rgba(18, 33, 52, 0.85);
  border-color: rgba(121, 209, 247, 0.4);
}

.set-item-slot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  background: rgba(36, 53, 77, 0.8);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9eb6ce;
}

.set-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.set-item-img-wrap {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(30, 52, 78, 0.9), rgba(12, 22, 34, 0.95));
  border: 1px solid #334d6d;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.set-item-img-wrap img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
}

.set-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #f0f5fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.set-item-stats {
  font-size: 12px;
  color: #79d1f7;
  font-weight: 600;
  line-height: 1.4;
}

.set-item-desc {
  margin: 0;
  font-size: 12px;
  color: #8c9cb0;
  line-height: 1.45;
  border-top: 1px dashed rgba(44, 64, 91, 0.4);
  padding-top: 8px;
}

/* 5피스 풀세트 보너스 배너 */
.set-bonus-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(30, 48, 70, 0.75), rgba(16, 30, 48, 0.9));
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 12px;
  box-shadow: inset 0 0 16px rgba(244, 193, 93, 0.05);
}

.bonus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #f7d27e;
}

.bonus-crown {
  font-size: 18px;
}

.bonus-sub-desc {
  font-size: 12px;
  font-weight: 400;
  color: #a4b9cf;
  margin-top: 2px;
}

.total-stat-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 4px 0;
}

.total-stat-box {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.total-stat-box.hp { border-color: rgba(255, 107, 129, 0.35); background: rgba(255, 107, 129, 0.08); }
.total-stat-box.ar { border-color: rgba(105, 230, 176, 0.35); background: rgba(105, 230, 176, 0.08); }
.total-stat-box.atk { border-color: rgba(244, 193, 93, 0.35); background: rgba(244, 193, 93, 0.08); }
.total-stat-box.def { border-color: rgba(121, 209, 247, 0.35); background: rgba(121, 209, 247, 0.08); }
.total-stat-box.eva { border-color: rgba(181, 96, 255, 0.35); background: rgba(181, 96, 255, 0.08); }

.stat-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #92a7bf;
  margin-bottom: 2px;
}

.stat-box-val {
  font-size: 16px;
  font-weight: 900;
}

.total-stat-box.hp .stat-box-val { color: #ff7675; }
.total-stat-box.ar .stat-box-val { color: #69e6b0; }
.total-stat-box.atk .stat-box-val { color: #f5c464; }
.total-stat-box.def .stat-box-val { color: #79d1f7; }
.total-stat-box.eva .stat-box-val { color: #cf9fff; }

.stat-box-sub {
  font-size: 10.5px;
  color: #8da4be;
  margin-top: 3px;
  white-space: nowrap;
}

.bonus-special-row {
  margin-top: 2px;
}

.bonus-stat-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hp-pill {
  background: rgba(255, 107, 129, 0.15);
  border: 1px solid rgba(255, 107, 129, 0.4);
  color: #ff8597;
}

.ar-pill {
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.4);
  color: #69e6b0;
}

.atk-pill {
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.4);
  color: #f5c464;
}

.def-pill {
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.4);
  color: #79d1f7;
}

.eva-pill {
  background: rgba(181, 96, 255, 0.15);
  border: 1px solid rgba(181, 96, 255, 0.4);
  color: #cf9fff;
}

.special-pill {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffe066;
}

.bonus-rule-note {
  font-size: 13px;
  color: #c0cedd;
  padding-top: 6px;
  border-top: 1px dashed rgba(244, 193, 93, 0.25);
}

.bonus-rule-note strong {
  color: #f4c15d;
}

/* ==========================================================================
   Request Guide (의뢰서 도감) Styles
   ========================================================================== */

.requests-filter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(16, 29, 44, 0.6);
  border: 1px solid rgba(44, 64, 91, 0.6);
  border-radius: 12px;
}

.requests-filter-container .filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.request-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.95), rgba(10, 20, 32, 0.98));
  border: 1px solid #273d5a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.request-card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 209, 247, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(20, 39, 62, 0.9), rgba(14, 26, 42, 0.85));
  border-bottom: 1px solid #243850;
}

.request-id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.request-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(36, 53, 77, 0.8);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #79d1f7;
}

.request-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.request-cat-normal {
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.4);
  color: #79d1f7;
}

.request-cat-bonus {
  background: rgba(244, 193, 93, 0.18);
  border: 1px solid rgba(244, 193, 93, 0.45);
  color: #f5c464;
}

.request-cat-lucky {
  background: rgba(181, 96, 255, 0.2);
  border: 1px solid rgba(181, 96, 255, 0.5);
  color: #d8aeff;
}

.request-cond-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(20, 36, 56, 0.7);
  border: 1px solid rgba(105, 230, 176, 0.3);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #69e6b0;
}

.request-cost-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.request-pay-tag {
  padding: 2px 6px;
  background: rgba(255, 143, 161, 0.12);
  border: 1px solid rgba(255, 143, 161, 0.35);
  border-radius: 4px;
  color: #ff8fa1;
  font-weight: 600;
}

.request-free-tag {
  color: #798da3;
}

.request-time-tag {
  padding: 2px 6px;
  background: rgba(30, 48, 70, 0.6);
  border-radius: 4px;
  color: #a0b5cb;
}

.request-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  flex: 1;
}

.request-req-section,
.request-reward-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-micro-title {
  font-size: 12px;
  font-weight: 800;
  color: #a2b7cd;
  letter-spacing: -0.2px;
}

.req-monsters-list,
.req-items-list {
  display: grid;
  gap: 6px;
}

.req-entity-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.monster-chip {
  background: rgba(35, 20, 30, 0.6);
  border: 1px solid rgba(255, 107, 129, 0.3);
}

.item-chip {
  background: rgba(14, 28, 44, 0.7);
  border: 1px solid rgba(121, 209, 247, 0.25);
}

.req-entity-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.req-entity-chip .chip-icon {
  font-size: 18px;
}

.req-entity-chip .entity-name {
  color: #e8f0f8;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-entity-chip .entity-count {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

/* 보상 그리드 */
.reward-items-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.reward-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(22, 38, 58, 0.85);
  border: 1px solid rgba(244, 193, 93, 0.35);
  border-radius: 6px;
  font-size: 12px;
}

.reward-item-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.reward-item-chip .reward-item-name {
  color: #eef4fb;
  font-weight: 600;
}

.reward-item-chip .reward-item-count {
  color: #f7d27e;
  font-weight: 800;
}

.reward-currency-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.flag-pill {
  background: rgba(105, 230, 176, 0.12);
  border: 1px solid rgba(105, 230, 176, 0.35);
  color: #69e6b0;
}

.peb-pill {
  background: rgba(244, 193, 93, 0.14);
  border: 1px solid rgba(244, 193, 93, 0.35);
  color: #f5c464;
}

.request-extra-note {
  font-size: 11px;
  color: #92a4ba;
  line-height: 1.4;
  padding: 8px;
  background: rgba(14, 25, 38, 0.6);
  border-radius: 6px;
  border-left: 3px solid rgba(121, 209, 247, 0.5);
}

/* ==========================================================================
   주간 퀘스트 (Week Quests) 스타일
   ========================================================================== */
.weekquests-filter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(14, 25, 40, 0.7);
  border: 1px solid #1e334d;
  border-radius: 12px;
  margin-bottom: 24px;
}

.weekquests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.weekquest-card {
  display: flex;
  flex-direction: column;
  background: #111f33;
  border: 1px solid #1e334d;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.weekquest-card:hover {
  transform: translateY(-2px);
  border-color: #2e527d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.weekquest-header {
  padding: 16px;
  background: linear-gradient(180deg, rgba(24, 43, 68, 0.7) 0%, rgba(17, 31, 51, 0.4) 100%);
  border-bottom: 1px solid #1e334d;
}

.weekquest-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.weekquest-level-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.4);
  color: #f4c15d;
  font-size: 11px;
  font-weight: 700;
}

.weekquest-loc-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  color: #79d1f7;
  font-size: 11px;
  font-weight: 700;
}

.weekquest-type-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.35);
  color: #69e6b0;
  font-size: 11px;
  font-weight: 700;
}

.weekquest-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f1f6fc;
  line-height: 1.35;
}

.weekquest-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}

.weekquest-npc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.weekquest-npc-row .npc-label {
  color: #8ca2ba;
  font-weight: 600;
}

.weekquest-npc-row .npc-name {
  color: #79d1f7;
  font-weight: 700;
}

.weekquest-dialogue-box {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(9, 18, 30, 0.6);
  border-radius: 8px;
  border-left: 3px solid #f4c15d;
  font-size: 12px;
  color: #a8bed6;
  line-height: 1.5;
}

.weekquest-dialogue-box .dialogue-quote {
  font-size: 18px;
  color: #f4c15d;
  line-height: 1;
  font-family: serif;
}

.weekquest-dialogue-box p {
  margin: 0;
}

.weekquest-req-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 107, 129, 0.08);
  border: 1px solid rgba(255, 107, 129, 0.25);
  border-radius: 8px;
}

.req-box-title {
  font-size: 11px;
  font-weight: 700;
  color: #ff8597;
}

.req-box-text {
  font-size: 13px;
  color: #fcedef;
  font-weight: 600;
  line-height: 1.4;
}

.weekquest-reward-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(17, 34, 56, 0.5);
  border: 1px solid #203a5a;
  border-radius: 8px;
}

.reward-box-title {
  font-size: 11px;
  font-weight: 700;
  color: #f4c15d;
}

.reward-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   사냥터 도감 (Hunting Grounds Enhanced) 스타일
   ========================================================================== */
.hunting-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #08121f;
  overflow: hidden;
  border-bottom: 1px solid #1f3552;
}

.hunting-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.3s ease;
}

.hunting-summary-card:hover .hunting-card-thumb {
  transform: scale(1.04);
}

.hunting-card-level-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.45);
  color: #f4c15d;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.has-drop-table-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.4);
  color: #69e6b0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hunting-card-bonus-pill {
  padding: 8px 12px;
  margin: 0 16px 8px;
  background: rgba(244, 193, 93, 0.1);
  border: 1px solid rgba(244, 193, 93, 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: #f7d27e;
  line-height: 1.4;
}

.map-view-image-container,
.drop-table-image-container {
  margin-bottom: 20px;
  background: #091422;
  border: 1px solid #1e334d;
  border-radius: 10px;
  overflow: hidden;
}

.map-view-image-header,
.drop-table-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(18, 33, 53, 0.95);
  border-bottom: 1px solid #1e334d;
  font-size: 13px;
  font-weight: 700;
  color: #a2b7cd;
}

.image-expand-link {
  color: #79d1f7;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.image-expand-link:hover {
  color: #aae0fa;
  text-decoration: underline;
}

.map-view-image-box,
.drop-table-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background: #060e18;
  overflow-x: auto;
}

.map-view-image-box img,
.drop-table-image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.hunting-bonus-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(244, 193, 93, 0.12);
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 8px;
  margin-bottom: 20px;
}

.hunting-bonus-banner p {
  margin: 0;
  color: #fdedc9;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.bonus-badge-tag {
  font-size: 12px;
  font-weight: 800;
  color: #f4c15d;
}

.hunting-monster-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.hunting-mon-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(18, 34, 54, 0.7);
  border: 1px solid #1f3654;
  border-radius: 8px;
}

.hunting-mon-chip .mon-icon {
  font-size: 16px;
}

.hunting-mon-chip .mon-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hunting-mon-chip .mon-title {
  color: #eaf1f8;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hunting-mon-chip .mon-count {
  color: #79d1f7;
  font-size: 11px;
  font-weight: 600;
}

.categorized-drops-wrap {
  margin-top: 14px;
}

.drop-cat-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #a2b7cd;
  margin: 0 0 10px;
}

.categorized-drops-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drop-category-row {
  background: rgba(11, 22, 36, 0.7);
  border: 1px solid #1e334d;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drop-category-row.cat-equip {
  border-left: 3px solid #b388ff;
}

.drop-category-row.cat-weapon {
  border-left: 3px solid #ff7043;
}

.drop-category-row.cat-skill {
  border-left: 3px solid #f4c15d;
}

.drop-category-row.cat-specialty {
  border-left: 3px solid #69e6b0;
}

.drop-category-row.cat-gem {
  border-left: 3px solid #79d1f7;
}

.drop-category-row.cat-etc {
  border-left: 3px solid #90a4ae;
}

.drop-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.drop-category-header strong {
  color: #eaf1f8;
  font-weight: 700;
}

.drop-category-header .cat-count {
  color: #8da4be;
  font-size: 12px;
}

.drop-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: rgba(18, 34, 54, 0.9);
  border: 1px solid #233b5c;
  border-radius: 6px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.drop-item-chip:hover {
  transform: translateY(-1px);
  border-color: #79d1f7;
  background: rgba(28, 52, 80, 0.95);
}

.drop-item-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  flex-shrink: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
}

.drop-item-noicon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.drop-item-name {
  color: #dbe7f4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.drop-item-chip.cat-equip .drop-item-name {
  color: #e4d8ff;
}

.drop-item-chip.cat-weapon .drop-item-name {
  color: #ffe0d6;
}

.drop-item-chip.cat-skill .drop-item-name {
  color: #fef08a;
}

.drop-item-chip.cat-specialty .drop-item-name {
  color: #d1fae5;
}

.drop-item-chip.cat-gem .drop-item-name {
  color: #d9f2fd;
}

.drop-item-chip[data-market-search] {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.drop-item-chip[data-market-search]:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(121, 209, 247, 0.2);
}

/* ==========================================================================
   실시간 거래소 / 시세 조회 (Market Tab) Styles
   ========================================================================== */

.market-search-panel {
  background: linear-gradient(180deg, rgba(20, 35, 54, 0.9), rgba(12, 22, 36, 0.95));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.market-search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 17, 31, 0.85);
  border: 1.5px solid var(--line-bright);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.market-input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(121, 209, 247, 0.18);
}

.market-search-icon {
  font-size: 18px;
  opacity: 0.8;
}

.market-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  padding: 8px 0;
}

.market-input::placeholder {
  color: #6c829e;
  font-weight: 400;
}

.market-submit-btn {
  background: linear-gradient(135deg, #1ea7e1, #1377a8);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.market-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8, #1ea7e1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.market-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.market-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.market-days-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-days-group .group-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.market-day-btn {
  background: rgba(16, 29, 44, 0.9);
  color: #9ba9bb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-day-btn:hover {
  background: #1b2f47;
  color: #fff;
  border-color: #3b5373;
}

.market-day-btn.active {
  background: rgba(121, 209, 247, 0.18);
  color: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.market-exact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a4b9cf;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.market-exact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(121, 209, 247, 0.4);
}

.market-exact-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.market-exact-btn strong {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #a4b9cf;
}

.market-exact-btn.active strong {
  background: #10b981;
  color: #071714;
}

.market-exact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c5d0dd;
  cursor: pointer;
  user-select: none;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.market-exact-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 209, 247, 0.3);
}

.market-exact-toggle.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.market-exact-toggle input {
  accent-color: #10b981;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.exact-hint {
  color: #8da4be;
  font-size: 11px;
  margin-left: 2px;
}

.table-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.exact-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
}

.exact-clear-mini-btn {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ff8597;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s;
}

.exact-clear-mini-btn:hover {
  background: rgba(255, 107, 129, 0.3);
  color: #fff;
}

.exact-suggest-mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(121, 209, 247, 0.1);
  border: 1px dashed rgba(121, 209, 247, 0.4);
  color: #79d1f7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.exact-suggest-mini-btn:hover {
  background: rgba(121, 209, 247, 0.22);
  border-style: solid;
  color: #fff;
}

.market-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.market-status-indicator .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.db-sync-trigger-btn {
  background: rgba(121, 209, 247, 0.12);
  border: 1px solid rgba(121, 209, 247, 0.35);
  color: var(--cyan);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.db-sync-trigger-btn:hover {
  background: rgba(121, 209, 247, 0.25);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.db-sync-trigger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-badge.live {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.3);
}

.status-badge.cached {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.3);
}

.status-badge.ready {
  background: rgba(121, 209, 247, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.3);
}

.market-popular-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.popular-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.popular-title {
  font-size: 13px;
  font-weight: 700;
  color: #f4c15d;
  white-space: nowrap;
}

.popular-period-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.12);
  color: #79d1f7;
  border: 1px solid rgba(121, 209, 247, 0.25);
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 29, 44, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.18);
  color: #d1dfed;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-rank {
  font-size: 10px;
  font-weight: 800;
  color: #79d1f7;
  background: rgba(121, 209, 247, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
}

.chip-name {
  color: #f0f5fa;
}

.chip-count {
  font-size: 11px;
  color: #f4c15d;
  background: rgba(244, 193, 93, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.popular-chip:hover {
  background: rgba(121, 209, 247, 0.2);
  border-color: #79d1f7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.popular-chip.active {
  background: #79d1f7;
  color: #07111f;
  border-color: #79d1f7;
  font-weight: 700;
}

.popular-chip.active .chip-rank,
.popular-chip.active .chip-name,
.popular-chip.active .chip-count {
  color: #07111f;
  background: rgba(7, 17, 31, 0.18);
}

.market-notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(244, 193, 93, 0.08);
  border: 1px solid rgba(244, 193, 93, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #f1dfb3;
  font-size: 13px;
}

.market-notice-banner .notice-icon {
  font-size: 18px;
}

.market-loading-box,
.market-error-box,
.market-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.market-loading-box .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(121, 209, 247, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.market-error-box {
  background: rgba(255, 143, 161, 0.08);
  border-color: rgba(255, 143, 161, 0.3);
  color: #ffb4c0;
}

.market-error-box .error-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* KPI 통계 카드 그리드 */
.market-stats-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .market-stats-overview {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .market-stats-overview {
    grid-template-columns: 1fr;
  }
}

.market-kpi-card {
  background: linear-gradient(145deg, rgba(16, 29, 44, 0.95), rgba(10, 19, 31, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.market-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.item-main-kpi {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.item-kpi-img-wrap {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.kpi-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.kpi-no-img {
  font-size: 28px;
}

.item-kpi-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.kpi-item-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.kpi-item-sub {
  font-size: 13px;
  color: var(--soft);
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 4px 0;
}

.kpi-value.gold-text {
  color: #fadb5f;
  text-shadow: 0 0 16px rgba(250, 219, 95, 0.25);
}

.kpi-value.cyan-text {
  color: #79d1f7;
  text-shadow: 0 0 16px rgba(121, 209, 247, 0.25);
}

.kpi-value .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
}

.kpi-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px 0;
  font-size: 14px;
  font-weight: 700;
}

.kpi-range-row .min-val {
  color: #86efac;
}

.kpi-range-row .range-arrow {
  color: var(--muted);
}

.kpi-range-row .max-val {
  color: #fda4af;
}

/* 거래 내역 테이블 */
.market-table-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.table-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #eef4fb;
}

.cached-badge {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.market-table-wrapper {
  overflow-x: auto;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.market-table thead {
  background: rgba(8, 18, 31, 0.95);
  border-bottom: 1px solid var(--line);
}

.market-table th {
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.market-table tbody tr {
  border-bottom: 1px solid rgba(36, 53, 77, 0.5);
  transition: background-color 0.15s ease;
}

.market-table tbody tr:hover {
  background: rgba(121, 209, 247, 0.05);
}

.market-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.cell-date {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.item-cell-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-item-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 2px;
}

.table-item-name {
  font-weight: 600;
  color: #fff;
}

.gold-price {
  color: #fadb5f;
}

.peb-price {
  color: #79d1f7;
}

.currency-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

.currency-tag.currency-supyo {
  background: rgba(244, 193, 93, 0.18);
  color: #fadb5f;
  border: 1px solid rgba(244, 193, 93, 0.4);
}

.currency-tag.currency-peb {
  background: rgba(121, 209, 247, 0.15);
  color: #79d1f7;
  border: 1px solid rgba(121, 209, 247, 0.3);
}

.market-all-btn {
  background: rgba(16, 29, 44, 0.9);
  color: #79d1f7;
  border: 1px solid rgba(121, 209, 247, 0.35);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.market-all-btn:hover {
  background: rgba(121, 209, 247, 0.2);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}

.market-category-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.market-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-cat-tab {
  background: rgba(7, 17, 31, 0.7);
  color: #9ba9bb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-cat-tab:hover {
  background: rgba(16, 29, 44, 0.95);
  color: #fff;
  border-color: #3b5373;
}

.market-cat-tab.active {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(105, 230, 176, 0.2);
}

.live-badge {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.linkable {
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.item-cell-wrap:hover .linkable {
  color: var(--cyan);
  text-decoration: underline;
}

/* Pagination Bar */
.market-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(8, 18, 31, 0.85);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.page-nav-btn {
  background: rgba(16, 29, 44, 0.9);
  color: #c5d0dd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-nav-btn:hover:not(:disabled) {
  background: rgba(121, 209, 247, 0.15);
  border-color: var(--cyan);
  color: #fff;
}

.page-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 6px;
}

.pagination-info strong {
  color: var(--cyan);
  font-size: 15px;
}













/* ==========================================================
   📖 공식 아이템 사전 (Archive Encyclopedia) 스타일
   ========================================================== */

.archive-filter-section {
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.95), rgba(10, 20, 33, 0.95));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.archive-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-subfilter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-chip {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

.archive-sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.archive-sort-select {
  background: #091524;
  color: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.archive-sort-select:hover,
.archive-sort-select:focus {
  border-color: var(--cyan);
}

.archive-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(16, 29, 44, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--soft);
}

.archive-count-bar strong {
  color: var(--cyan);
}

.query-highlight {
  color: var(--gold);
  font-weight: 600;
  margin-left: 6px;
}

.page-text strong {
  color: #fff;
}

/* Item Grid */
.archive-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.archive-card {
  background: rgba(13, 25, 39, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(121, 209, 247, 0.15);
}

.archive-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-img-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(7, 17, 31, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.archive-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.archive-card-header-info {
  flex: 1;
  min-width: 0;
}

.archive-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.archive-item-id {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.archive-level-badge {
  background: rgba(121, 209, 247, 0.18);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.archive-level-free {
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
}

.archive-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.archive-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.archive-tag-pill {
  font-size: 11px;
  background: rgba(36, 53, 77, 0.6);
  color: #c5d0dd;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

.craft-pill {
  background: rgba(244, 193, 93, 0.18);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.35);
  font-weight: 600;
}

.mat-pill {
  background: rgba(105, 230, 176, 0.18);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.35);
  font-weight: 600;
}

.archive-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
  align-items: center;
}

.archive-stat-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.stat-atk {
  background: rgba(121, 209, 247, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.25);
}

.stat-def {
  background: rgba(105, 230, 176, 0.12);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.25);
}

.stat-hp {
  background: rgba(255, 143, 161, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 143, 161, 0.25);
}

.stat-hp-neg {
  background: rgba(255, 70, 70, 0.15);
  color: #ff7575;
}

.stat-ar {
  background: rgba(160, 210, 255, 0.12);
  color: #9bc5ff;
  border: 1px solid rgba(160, 210, 255, 0.25);
}

.stat-crit {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.3);
}

.stat-dodge {
  background: rgba(180, 140, 255, 0.15);
  color: #c8a2ff;
  border: 1px solid rgba(180, 140, 255, 0.3);
}

.stat-luck {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.3);
}

.stat-exp {
  background: rgba(244, 193, 93, 0.2);
  color: #ffe17d;
  border: 1px solid rgba(244, 193, 93, 0.4);
}

.stat-none {
  font-size: 11px;
  color: var(--muted);
}

.archive-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 53, 77, 0.6);
  margin-top: auto;
}

.archive-trade-icons {
  display: flex;
  gap: 4px;
}

.trade-mini-badge {
  font-size: 10.5px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.trade-ok, .mail-ok, .bank-ok {
  background: rgba(105, 230, 176, 0.1);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.25);
}

.trade-no {
  background: rgba(255, 143, 161, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 143, 161, 0.25);
}

.archive-btn-market {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.archive-btn-market:hover {
  background: var(--gold);
  color: #07111f;
  box-shadow: 0 0 10px rgba(244, 193, 93, 0.3);
}

/* Modal Specifics */
.archive-item-detail-modal {
  max-width: 840px !important;
}

.archive-modal-img-wrap {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: rgba(7, 17, 31, 0.9);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.archive-modal-title-box {
  flex: 1;
}

.archive-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.archive-id-badge {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}

.tag-pill-modal {
  font-size: 11.5px;
  background: rgba(36, 53, 77, 0.8);
  color: #c5d0dd;
  padding: 2px 8px;
  border-radius: 4px;
}

.archive-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.archive-item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #eef4fb;
  white-space: pre-line;
}

.archive-stats-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.stat-cell {
  background: rgba(16, 29, 44, 0.8);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.stat-cell .stat-name {
  color: var(--muted);
}

.stat-cell .stat-val {
  color: var(--soft);
  font-weight: 600;
}

.active-stat {
  border-color: rgba(121, 209, 247, 0.4);
  background: rgba(16, 35, 56, 0.9);
}

.active-stat .stat-name {
  color: #fff;
}

.active-stat .stat-val {
  color: var(--cyan);
  font-weight: 800;
}

.archive-deal-rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.deal-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: rgba(16, 29, 44, 0.6);
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.deal-name {
  color: var(--muted);
}

.deal-status {
  font-weight: 700;
}

.status-ok {
  color: var(--green);
}

.status-no {
  color: var(--red);
}

.archive-acq-use-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acq-sub-block strong,
.use-sub-block strong {
  display: block;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 6px;
}

.archive-spot-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
}

.archive-recipes-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-recipe-box {
  background: rgba(16, 29, 44, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.recipe-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-npc-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}

.recipe-note-text {
  font-size: 12px;
  color: var(--muted);
}

.recipe-materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-group-col {
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  flex: 1;
  min-width: 200px;
}

.group-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--soft);
  margin-bottom: 6px;
}

.choice-group {
  border-color: rgba(244, 193, 93, 0.4);
}

.choice-group .group-title {
  color: var(--gold);
}

.group-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-mat-chip {
  background: rgba(16, 29, 44, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.mat-name {
  color: #fff;
  font-weight: 600;
}

.mat-count {
  color: var(--cyan);
  font-weight: 700;
}

.archive-used-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.used-target-card {
  background: rgba(16, 29, 44, 0.8);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.used-target-card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
  background: rgba(16, 35, 56, 0.9);
}

.used-target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.used-target-title {
  font-size: 13px;
  color: #fff;
}

.used-npc-sub {
  font-size: 11px;
  color: var(--muted);
}

.used-action-tag {
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 700;
}

.archive-modal-action-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.market-jump-btn {
  font-size: 15px !important;
  padding: 12px 24px !important;
  width: 100% !important;
  text-align: center !important;
  font-weight: 700 !important;
  display: block;
}


/* ==========================================================
   ⚔️ 통합 무기 카드 & 단계별 스탯 비교 모달 스타일
   ========================================================== */

.archive-card-grouped {
  border-color: rgba(121, 209, 247, 0.35);
  background: linear-gradient(135deg, rgba(16, 32, 52, 0.95), rgba(10, 20, 33, 0.98));
}

.archive-card-grouped:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(121, 209, 247, 0.22);
}

.grouped-img-wrap {
  position: relative;
  background: rgba(10, 24, 40, 0.95) !important;
  border-color: rgba(121, 209, 247, 0.4) !important;
}

.stage-count-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--gold);
  color: #07111f;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.grouped-id-tag {
  color: var(--gold) !important;
  font-weight: 700;
}

.grouped-level-badge {
  background: rgba(244, 193, 93, 0.18) !important;
  color: var(--gold) !important;
  border-color: rgba(244, 193, 93, 0.4) !important;
}

.integrated-pill {
  background: rgba(121, 209, 247, 0.2) !important;
  color: var(--cyan) !important;
  border: 1px solid rgba(121, 209, 247, 0.4) !important;
  font-weight: 700;
}

/* Grouped Modal */
.archive-grouped-modal {
  max-width: 980px !important;
  width: 95vw !important;
}

.grouped-modal-img {
  width: 64px !important;
  height: 64px !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 16px rgba(121, 209, 247, 0.25);
}

.grouped-pill-badge {
  background: rgba(121, 209, 247, 0.2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.stage-total-pill {
  background: rgba(244, 193, 93, 0.2) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(244, 193, 93, 0.4) !important;
  font-weight: 700;
}

/* Summary Grid */
.grouped-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .grouped-summary-grid {
    grid-template-columns: 1fr;
  }
}

.growth-stats-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(7, 17, 31, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.growth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.growth-label {
  color: var(--muted);
}

.growth-val {
  font-weight: 700;
}

/* Stage Comparison Table */
.table-hint-tag {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.stage-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.95);
  max-height: 520px;
}

.stage-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stage-comparison-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0f2033;
  border-bottom: 2px solid var(--line-bright);
}

.stage-comparison-table th {
  padding: 10px 12px;
  font-weight: 700;
  color: var(--soft);
  white-space: nowrap;
}

.stage-comparison-table tbody tr {
  border-bottom: 1px solid rgba(36, 53, 77, 0.5);
  transition: background 0.15s ease;
}

.stage-comparison-table tbody tr:hover {
  background: rgba(16, 35, 56, 0.95);
}

.stage-comparison-table td {
  padding: 9px 12px;
  vertical-align: middle;
}

.stage-highlight-row {
  background: rgba(244, 193, 93, 0.08) !important;
  border-left: 3px solid var(--gold);
}

.stage-pill {
  display: inline-block;
  background: rgba(121, 209, 247, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.3);
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.max-stage-pill {
  background: rgba(244, 193, 93, 0.22);
  color: var(--gold);
  border-color: rgba(244, 193, 93, 0.5);
  font-weight: 800;
}

.stage-item-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.stage-row-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(7, 17, 31, 0.8);
  border-radius: 4px;
  padding: 2px;
}

.stage-name-text {
  font-size: 13px;
  color: #fff;
}

.stage-id-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.stage-level-badge {
  background: rgba(121, 209, 247, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.stage-level-free {
  color: var(--muted);
  font-size: 11.5px;
}

.effect-mini-pill {
  display: inline-block;
  background: rgba(180, 140, 255, 0.15);
  color: #d1b8ff;
  border: 1px solid rgba(180, 140, 255, 0.3);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.stage-market-btn {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stage-market-btn:hover {
  background: var(--gold);
  color: #07111f;
}

.grouped-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grouped-action-buttons button {
  flex: 1;
  min-width: 220px;
}

.max-stage-market-btn {
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.25), rgba(121, 209, 247, 0.15)) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.max-stage-market-btn:hover {
  background: var(--gold) !important;
  color: #07111f !important;
}


/* ==========================================================
   🖥️ 전체 화면 확장 팝업 모달 & 텍스트 개행 최적화 스타일
   ========================================================== */

/* 1. 모든 모달 오버레이 중앙 정렬 및 배경 블러 */
.detail-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 20px !important;
  background: rgba(3, 8, 16, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 2. 모든 상세 모달 패널 화면 가득 채우기 (Widescreen 96vw x 92vh) */
.detail-panel,
.hunting-detail-modal,
.item-detail-modal,
.archive-item-detail-modal,
.archive-grouped-modal {
  width: min(1560px, 96vw) !important;
  max-width: 96vw !important;
  height: 92vh !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(121, 209, 247, 0.45) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(16, 32, 52, 0.98), rgba(6, 14, 25, 0.99)) !important;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.8), 0 0 45px rgba(121, 209, 247, 0.15) !important;
}

/* 3. 모달 헤더 상단 고정 & 텍스트 개행 방지 */
.detail-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid var(--line-bright) !important;
  background: rgba(9, 20, 34, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  flex-shrink: 0 !important;
}

.item-modal-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.detail-head h2,
.archive-modal-title {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: keep-all !important;
}

/* 4. 모달 본문 스크롤 영역 */
.detail-panel > .detail-grid,
.detail-panel > .archive-modal-body,
.detail-panel > .detail-grid.archive-modal-body,
.hunting-detail-modal > *:not(.detail-head) {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 24px !important;
}

/* 5. 텍스트 세로 개행 방지 및 가로 너비 확장 */
.archive-item-name,
.set-title,
.weekquest-title,
.drop-card-title-box h3 {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

/* 6. 단계별 스탯 비교 테이블 상세 규칙 뱃지 */
.stage-rules-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.stage-rule-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.stage-rule-pill.rule-ok {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.35);
}

.stage-rule-pill.rule-no {
  background: rgba(255, 143, 161, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 143, 161, 0.25);
}

/* 7. 비교 테이블 컬럼 너비 최적화 */
.stage-comparison-table th,
.stage-comparison-table td {
  white-space: nowrap !important;
  padding: 10px 14px !important;
}

.stage-comparison-table .cell-name {
  min-width: 190px !important;
}

.stage-comparison-table .cell-atk {
  min-width: 120px !important;
}

.stage-comparison-table .cell-effects {
  min-width: 170px !important;
}

.stage-comparison-table .cell-trade {
  min-width: 190px !important;
}

.stage-comparison-table .cell-action {
  min-width: 100px !important;
}


/* ==========================================================
   ✂️ 거래허가가위 (Trade Scissors) 전용 뱃지 & 안내 스타일
   ========================================================== */

.trade-mini-badge.trade-scissor {
  background: rgba(244, 193, 93, 0.18) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(244, 193, 93, 0.45) !important;
  font-weight: 700 !important;
}

.stage-rule-pill.rule-scissor {
  background: rgba(244, 193, 93, 0.22) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(244, 193, 93, 0.5) !important;
  font-weight: 700 !important;
}

.stage-rule-pill.rule-scissor-sub {
  background: rgba(244, 193, 93, 0.12) !important;
  color: #ffdf85 !important;
  border: 1px dashed rgba(244, 193, 93, 0.35) !important;
}

.status-scissor {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* Scissor Notice Banner in Grouped Modal */
.scissor-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(30, 24, 12, 0.95), rgba(16, 24, 36, 0.95));
  border: 1px solid rgba(244, 193, 93, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.scissor-banner-icon {
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
}

.scissor-banner-content {
  font-size: 12.5px;
  line-height: 1.5;
  color: #eef4fb;
}

.scissor-banner-content strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
}

.scissor-banner-content p {
  margin: 2px 0;
  color: #c5d0dd;
}

/* Scissor Tip in Item Modal */
.item-scissor-tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(244, 193, 93, 0.1);
  border: 1px solid rgba(244, 193, 93, 0.3);
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffdf85;
}


/* ==========================================================
   ✂️ 거래허가가위 1~5단계 전용 컬러 & 티어 그리드 스타일
   ========================================================== */

/* 1. 단계별 티어 뱃지 컬러 */
.tier-1 {
  background: rgba(105, 230, 176, 0.15) !important;
  color: var(--green) !important;
  border: 1px solid rgba(105, 230, 176, 0.4) !important;
}

.tier-2 {
  background: rgba(121, 209, 247, 0.15) !important;
  color: var(--cyan) !important;
  border: 1px solid rgba(121, 209, 247, 0.4) !important;
}

.tier-3 {
  background: rgba(244, 193, 93, 0.18) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(244, 193, 93, 0.45) !important;
}

.tier-4 {
  background: rgba(255, 157, 66, 0.2) !important;
  color: #ff9d42 !important;
  border: 1px solid rgba(255, 157, 66, 0.45) !important;
}

.tier-5 {
  background: rgba(255, 94, 126, 0.22) !important;
  color: #ff5e7e !important;
  border: 1px solid rgba(255, 94, 126, 0.5) !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(255, 94, 126, 0.2);
}

.tier-special {
  background: rgba(255, 200, 59, 0.22) !important;
  color: #ffc83b !important;
  border: 1px solid rgba(255, 200, 59, 0.5) !important;
}

.tier-design {
  background: rgba(255, 155, 200, 0.2) !important;
  color: #ff9bc8 !important;
  border: 1px solid rgba(255, 155, 200, 0.45) !important;
}

.rule-scissor-direct {
  font-weight: 800 !important;
}

/* 2. 가위 1~5단계 안내 티어 그리드 */
.scissor-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.scissor-market-all-btn {
  background: rgba(244, 193, 93, 0.18);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scissor-market-all-btn:hover {
  background: var(--gold);
  color: #07111f;
}

.scissor-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.tier-card {
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.tier-card-title {
  font-size: 12px;
  font-weight: 800;
}

.tier-card-sub {
  font-size: 10.5px;
  opacity: 0.85;
}

.scissor-note-text {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin: 6px 0 0 !important;
}

/* 3. 단독 아이템 상세 모달 가위 퀵 시세 바 */
.item-scissor-tip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.scissor-name-highlight {
  color: #ff5e7e;
  font-size: 14px;
}

.scissor-quick-market-btn {
  background: rgba(244, 193, 93, 0.2);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.45);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scissor-quick-market-btn:hover {
  background: var(--gold);
  color: #07111f;
}

.mini-market-scissor-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(244, 193, 93, 0.25);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.mini-market-scissor-btn:hover {
  background: var(--gold);
  color: #07111f;
}

.deal-rule-row.scissor-rule-active {
  background: rgba(244, 193, 93, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  margin: 2px 0;
}

/* 4. 무기별 맞춤형 가위 요약 칩 스타일 */
.tier-free {
  background: rgba(105, 230, 176, 0.12) !important;
  color: var(--green) !important;
  border: 1px solid rgba(105, 230, 176, 0.35) !important;
}

.weapon-specific-banner {
  background: linear-gradient(135deg, rgba(25, 35, 52, 0.95), rgba(15, 23, 36, 0.98)) !important;
  border: 1px solid rgba(121, 209, 247, 0.45) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.weapon-specific-banner .scissor-banner-head strong {
  color: var(--cyan) !important;
  font-size: 14px !important;
}

.weapon-scissor-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.weapon-scissor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.weapon-scissor-chip .chip-stage {
  font-weight: 800;
}

.weapon-scissor-chip .chip-arrow {
  opacity: 0.6;
  font-size: 11px;
}

.weapon-scissor-chip .chip-tier {
  font-weight: 800;
}

.general-scissor-banner {
  background: rgba(12, 20, 32, 0.6) !important;
  border: 1px dashed rgba(121, 209, 247, 0.2) !important;
  padding: 8px 14px !important;
  margin-bottom: 12px !important;
}

.general-scissor-banner .muted-head {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.set-item-slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.set-item-scissor-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==============================================================================
   🚩 얍카 레벨업 깃발 · 계급 도감 & 필요량 계산기 스타일
   ============================================================================== */

/* 1. 상단 공식 규칙 배너 */
.flags-hero-card {
  background: linear-gradient(135deg, rgba(17, 30, 49, 0.95), rgba(9, 17, 29, 0.98));
  border: 1px solid rgba(244, 193, 93, 0.35);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.flags-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flags-hero-icon {
  font-size: 36px;
  background: rgba(244, 193, 93, 0.12);
  border: 1px solid rgba(244, 193, 93, 0.3);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flags-hero-main h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.flags-hero-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.flags-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.flags-guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(121, 209, 247, 0.08);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 8px;
  color: #e2ecf9;
  font-size: 13px;
  font-weight: 700;
}

/* 2. 실시간 레벨업 깃발 계산기 카드 */
.flags-calc-card {
  background: linear-gradient(135deg, rgba(16, 26, 42, 0.95), rgba(10, 18, 30, 0.98));
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.calc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.calc-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(244, 193, 93, 0.2);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.calc-header-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.calc-gender-toggle {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gender-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gender-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gender-btn.active {
  background: var(--blue, #2a5885);
  color: #fff;
  border-color: rgba(121, 209, 247, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 계산기 입력 그리드 */
.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.calc-input-box {
  background: rgba(7, 14, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-box label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #e2ecf9;
}

.calc-input-box .input-hint {
  font-size: 11px;
  color: var(--muted);
}

.input-with-stepper {
  display: flex;
  align-items: center;
  position: relative;
}

.input-with-stepper input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan, #79d1f7);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-stepper input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(121, 209, 247, 0.25);
}

.input-with-stepper .unit-text {
  position: absolute;
  right: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

/* 프리셋 버튼 행 */
.calc-presets-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.presets-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.presets-btn-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ccd8e6;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: rgba(244, 193, 93, 0.15);
  border-color: rgba(244, 193, 93, 0.4);
  color: var(--gold);
}

.preset-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #07111f;
  font-weight: 800;
}

/* 계산 결과 KPI 대시보드 */
.flags-calc-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.calc-kpi-card {
  background: rgba(9, 17, 28, 0.85);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.kpi-card-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #a6b7cc;
  margin-bottom: 12px;
}

/* 카드 1: 계급 변화 */
.rank-kpi-card {
  border-color: rgba(121, 209, 247, 0.3);
}

.rank-transition-display {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 8px 0;
}

.rank-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.rank-node .rank-img-wrap {
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rank-node .rank-img-wrap img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.rank-node.target-node .rank-img-wrap {
  border-color: rgba(244, 193, 93, 0.6);
  background: rgba(244, 193, 93, 0.08);
  box-shadow: 0 0 16px rgba(244, 193, 93, 0.2);
}

.rank-node .lvl-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(121, 209, 247, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.rank-node strong {
  font-size: 14px;
  color: #fff;
}

.rank-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rank-arrow .arrow-icon {
  font-size: 20px;
  color: var(--muted);
}

.level-diff-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  background: rgba(105, 230, 176, 0.15);
  border: 1px solid rgba(105, 230, 176, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 카드 2: 총 필요 깃발 */
.flags-kpi-card {
  border-color: rgba(244, 193, 93, 0.4);
  background: linear-gradient(135deg, rgba(14, 24, 38, 0.9), rgba(20, 16, 28, 0.9));
}

.flags-result-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 8px;
}

.flags-result-number .unit {
  font-size: 14px;
  color: #ccd8e6;
  font-weight: 600;
}

.flags-star-breakdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.star-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.35);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.plus-sign {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.flags-korean-summary {
  font-size: 12px;
  color: var(--muted);
}

.flags-korean-summary strong {
  color: #fff;
}

/* 카드 3: 달성 진척도 */
.progress-kpi-card {
  border-color: rgba(105, 230, 176, 0.3);
}

.progress-percent-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 8px;
}

.progress-percent-val .unit {
  font-size: 15px;
  color: #ccd8e6;
  font-weight: 600;
}

.flags-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.flags-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a5885, var(--green));
  border-radius: 5px;
  transition: width 0.3s ease;
}

.progress-details-text {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}

/* 구간별 상세 로드맵 */
.flags-roadmap-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 10px;
}

.roadmap-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: #e2ecf9;
  margin-bottom: 12px;
}

.roadmap-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(6, 12, 20, 0.6);
}

.flags-roadmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.flags-roadmap-table th {
  position: sticky;
  top: 0;
  background: #0d1a29;
  color: #8da4be;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.flags-roadmap-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ccd8e6;
}

.flags-roadmap-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-rank-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.rank-name-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2ecf9;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.cell-step-flags .step-num {
  font-weight: 800;
  color: var(--green);
}

.star-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(244, 193, 93, 0.18);
  color: var(--gold);
  border-radius: 4px;
  margin-right: 4px;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(121, 209, 247, 0.12);
  color: var(--cyan);
  border-radius: 4px;
}

.roadmap-more-note,
.roadmap-same-level-note {
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* 3. 계급 체계 21개 도감 그리드 */
.flags-ranks-section {
  margin-bottom: 36px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.count-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(121, 209, 247, 0.12);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(121, 209, 247, 0.25);
}

.ranks-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
}

.rank-summary-card {
  background: rgba(12, 21, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.rank-summary-card:hover {
  border-color: rgba(244, 193, 93, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.rank-card-badges {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10.5px;
}

.rank-order {
  color: var(--muted);
  font-weight: 700;
}

.rank-range {
  color: var(--cyan);
  font-weight: 800;
  background: rgba(121, 209, 247, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.rank-icons-pair {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rank-icon-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.rank-icon-item .gender-sub {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
}

.rank-icon-item .common-sub {
  font-size: 10px;
  color: var(--muted);
  padding: 4px;
}

.rank-title {
  font-size: 13.5px;
  color: #fff;
  font-weight: 800;
}

/* 4. 레벨 0~200 전수 깃발 도감 테이블 */
.flags-database-section {
  margin-bottom: 40px;
}

.flags-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tab-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(14, 23, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a6b7cc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.filter-tab-btn.active {
  background: var(--blue, #2a5885);
  border-color: rgba(121, 209, 247, 0.6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flags-table-container {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(8, 15, 25, 0.75);
}

.flags-main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.flags-main-table th {
  position: sticky;
  top: 0;
  background: #0c1827;
  color: #9cb2cb;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.flags-main-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ccd8e6;
  vertical-align: middle;
}

.flags-main-table tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.level-row.row-curr-lvl {
  background: rgba(121, 209, 247, 0.08) !important;
  border-left: 3px solid var(--cyan);
}

.level-row.row-target-lvl {
  background: rgba(244, 193, 93, 0.08) !important;
  border-left: 3px solid var(--gold);
}

.cell-lvl-tag strong {
  color: #fff;
  font-size: 13.5px;
}

.cell-step-num strong {
  color: var(--green);
}

.cell-total-cumul {
  font-weight: 700;
  color: #e2ecf9;
}

.cell-apply-btns {
  display: flex;
  gap: 6px;
}

.apply-calc-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apply-calc-btn.curr {
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  color: var(--cyan);
}

.apply-calc-btn.curr:hover {
  background: var(--cyan);
  color: #07111f;
}

.apply-calc-btn.target {
  background: rgba(244, 193, 93, 0.15);
  border: 1px solid rgba(244, 193, 93, 0.35);
  color: var(--gold);
}

.apply-calc-btn.target:hover {
  background: var(--gold);
  color: #07111f;
}

/* ==============================================================================
   📚 얍카 공식 시스템 · 컨텐츠 가이드 도감 스타일
   ============================================================================== */

.gameguide-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.guide-filter-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(13, 22, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #b0c2d7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 209, 247, 0.4);
}

.guide-filter-tab.active {
  background: linear-gradient(135deg, #1e4570, #132d4b);
  border-color: rgba(121, 209, 247, 0.7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.gameguide-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.gameguide-card {
  background: linear-gradient(135deg, rgba(14, 24, 38, 0.95), rgba(9, 16, 27, 0.98));
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gameguide-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.guide-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-cat-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.guide-cat-badge.growth {
  background: rgba(105, 230, 176, 0.15);
  color: var(--green);
  border: 1px solid rgba(105, 230, 176, 0.35);
}

.guide-cat-badge.contents {
  background: rgba(244, 193, 93, 0.15);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.35);
}

.guide-cat-badge.system {
  background: rgba(121, 209, 247, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.35);
}

.guide-feature-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #ccd8e6;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.guide-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* 핵심 요약 포인트 */
.guide-highlights-box {
  background: rgba(8, 15, 26, 0.7);
  border: 1px solid rgba(244, 193, 93, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
}

.highlights-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.highlights-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlights-list li {
  font-size: 13px;
  color: #dbe6f5;
  line-height: 1.4;
}

/* 가이드별 특수 위젯 */
.guide-custom-widget {
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 18px;
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #e2ecf9;
  margin-bottom: 12px;
}

.guide-table-scroll {
  overflow-x: auto;
}

.guide-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.guide-mini-table th {
  background: #0d1a29;
  color: #8da4be;
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-mini-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccd8e6;
  vertical-align: middle;
}

.step-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.step-badge.step-1 { background: rgba(105, 230, 176, 0.15); color: var(--green); }
.step-badge.step-2 { background: rgba(121, 209, 247, 0.15); color: var(--cyan); }
.step-badge.step-3 { background: rgba(244, 193, 93, 0.15); color: var(--gold); }
.step-badge.step-4 { background: rgba(235, 107, 107, 0.15); color: #eb6b6b; }

/* 운세 테이블 */
.luck-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.luck-badge.daegil { background: rgba(244, 193, 93, 0.25); color: var(--gold); }
.luck-badge.gil { background: rgba(105, 230, 176, 0.2); color: var(--green); }
.luck-badge.junggil { background: rgba(121, 209, 247, 0.2); color: var(--cyan); }
.luck-badge.sogil { background: rgba(121, 209, 247, 0.12); color: #b4dff5; }
.luck-badge.pyeong { background: rgba(255, 255, 255, 0.08); color: #aaa; }
.luck-badge.hyung { background: rgba(235, 107, 107, 0.2); color: #eb6b6b; }

.buff-pos { color: var(--green); font-weight: 800; }
.buff-neg { color: #eb6b6b; font-weight: 800; }

/* 강화 구간 그리드 */
.reinforce-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reinforce-tier-box {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.reinforce-tier-box.safe { border-color: rgba(105, 230, 176, 0.35); }
.reinforce-tier-box.caution { border-color: rgba(244, 193, 93, 0.35); }
.reinforce-tier-box.danger { border-color: rgba(235, 107, 107, 0.35); }

.tier-box-head {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.reinforce-tier-box.safe .tier-box-head { color: var(--green); }
.reinforce-tier-box.caution .tier-box-head { color: var(--gold); }
.reinforce-tier-box.danger .tier-box-head { color: #eb6b6b; }

.reinforce-tier-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* 체크리스트 그리드 */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.check-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccd8e6;
  margin-bottom: 8px;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 공식 인포그래픽 이미지 갤러리 */
.guide-images-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.images-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.images-head-row strong {
  font-size: 14px;
  color: #e2ecf9;
}

.zoom-hint {
  font-size: 11.5px;
  color: var(--cyan);
}

.guide-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.guide-img-card {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.guide-img-card:hover img {
  transform: scale(1.04);
}

.guide-img-card .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.guide-img-card:hover .img-overlay {
  opacity: 1;
}

.zoom-btn {
  background: var(--blue, #2a5885);
  border: 1px solid rgba(121, 209, 247, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gameguide-card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.official-link-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.official-link-btn:hover {
  color: var(--cyan);
  text-decoration: underline;
}


/* ===== GAMEGUIDE STRUCTURED SECTIONS & TABLES ===== */
.guide-structured-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-section-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #79d1f7;
  margin: 0;
}

.guide-section-desc {
  font-size: 13.5px;
  color: #a8b8cc;
  margin: 0;
  line-height: 1.5;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 209, 247, 0.2);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: rgba(121, 209, 247, 0.2);
  color: #79d1f7;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.step-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.step-desc {
  font-size: 12.5px;
  color: #9ba9bb;
  margin: 0;
  line-height: 1.5;
}

.guide-table-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.guide-rich-table th {
  background: rgba(10, 18, 32, 0.95);
  color: #79d1f7;
  font-weight: 800;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(121, 209, 247, 0.25);
  white-space: nowrap;
}

.guide-rich-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccd8e6;
  vertical-align: middle;
}

.guide-rich-table tr:hover td {
  background: rgba(121, 209, 247, 0.05);
}

.cell-highlight-head {
  font-weight: 800;
  color: #fff !important;
}

.cell-highlight-val {
  color: #69e6b0 !important;
  font-weight: 700;
}

.guide-tips-box {
  background: linear-gradient(135deg, rgba(105, 230, 176, 0.08), rgba(121, 209, 247, 0.05));
  border: 1px solid rgba(105, 230, 176, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
}

.tips-head {
  font-size: 13.5px;
  font-weight: 800;
  color: #69e6b0;
  margin-bottom: 8px;
}

.tips-list {
  margin: 0;
  padding-left: 20px;
  color: #dbe4f0;
  font-size: 13px;
  line-height: 1.6;
}


/* ===== SEARCH HIGHLIGHT & MATCH BADGES ===== */
mark.search-highlight {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.45), rgba(255, 170, 0, 0.35)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 215, 0, 0.75) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
  display: inline;
}

.matched-highlight-item {
  background: rgba(255, 215, 0, 0.14) !important;
  border: 1px solid rgba(255, 215, 0, 0.5) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2) !important;
}

.matched-highlight-section {
  border-color: rgba(255, 215, 0, 0.6) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.2) !important;
}

.matched-sub-block {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 8px;
}

.section-title-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.matched-query-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.6);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.archive-match-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.match-badge.acq { background: rgba(105, 230, 176, 0.2); color: #69e6b0; border: 1px solid rgba(105, 230, 176, 0.4); }
.match-badge.use { background: rgba(121, 209, 247, 0.2); color: #79d1f7; border: 1px solid rgba(121, 209, 247, 0.4); }
.match-badge.craft { background: rgba(244, 193, 93, 0.2); color: #f4c15d; border: 1px solid rgba(244, 193, 93, 0.4); }
.match-badge.used { background: rgba(255, 150, 200, 0.2); color: #ff96c8; border: 1px solid rgba(255, 150, 200, 0.4); }
.match-badge.desc { background: rgba(200, 200, 200, 0.15); color: #eee; border: 1px solid rgba(255, 255, 255, 0.3); }

.match-text {
  color: #ccd8e6;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matched-recipe-highlight {
  border-color: rgba(255, 215, 0, 0.5) !important;
  background: rgba(255, 215, 0, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.matched-mat-chip {
  border-color: rgba(255, 215, 0, 0.7) !important;
  background: rgba(255, 215, 0, 0.15) !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.matched-used-card {
  border-color: rgba(255, 215, 0, 0.6) !important;
  background: rgba(255, 215, 0, 0.08) !important;
}

/* ==============================================================================
   Overview Page Enhanced Layout & Feature Cards
   ============================================================================== */
.overview-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
  align-items: stretch;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hero-version-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(105, 230, 176, 0.15);
  color: #69e6b0;
  border: 1px solid rgba(105, 230, 176, 0.35);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #c9d7e6;
  margin-top: 10px;
}

.hero-lead strong {
  color: #79d1f7;
}

.overview-purpose-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.purpose-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(11, 22, 36, 0.6);
  border: 1px solid rgba(121, 209, 247, 0.12);
  transition: border-color 0.2s, background 0.2s;
}

.purpose-item:hover {
  border-color: rgba(121, 209, 247, 0.3);
  background: rgba(16, 32, 52, 0.7);
}

.purpose-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.purpose-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5fa;
  margin-bottom: 2px;
}

.purpose-item p {
  font-size: 12.5px;
  color: #9eb1c7;
  line-height: 1.45;
  margin: 0;
}

.hero-right-col {
  display: flex;
  flex-direction: column;
}

.hero-yapcar-banner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 32, 52, 0.8), rgba(9, 18, 30, 0.95));
  border: 1px solid rgba(121, 209, 247, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-badge-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-rank-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(121, 209, 247, 0.4));
  flex-shrink: 0;
}

.hero-badge-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e2ecf7;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.inline-flag {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.hero-callout-inner {
  margin-top: 12px;
}

.callout-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #f4c15d;
  margin-bottom: 4px;
}

.hero-callout-inner strong {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.hero-callout-inner p {
  font-size: 12px;
  color: #a4b7cc;
  line-height: 1.45;
  margin: 0;
}

.hero-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.hero-action-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-action-btn:hover {
  transform: translateY(-2px);
}

.hero-action-btn.primary {
  background: linear-gradient(135deg, #2b6cb0, #1e4e8c);
  color: #ffffff;
  border-color: rgba(121, 209, 247, 0.4);
}

.hero-action-btn.primary:hover {
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
}

.hero-action-btn.secondary {
  background: rgba(244, 193, 93, 0.15);
  color: #f4c15d;
  border-color: rgba(244, 193, 93, 0.35);
}

.hero-action-btn.secondary:hover {
  background: rgba(244, 193, 93, 0.25);
}

/* Feature Showcase Cards Grid */
.overview-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.overview-feature-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 37, 55, 0.85), rgba(13, 25, 39, 0.98));
  border: 1px solid #24354d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.overview-feature-card:hover {
  transform: translateY(-4px);
  border-color: #79d1f7;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 16px rgba(121, 209, 247, 0.15);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-icon-box.blue { background: rgba(121, 209, 247, 0.15); border: 1px solid rgba(121, 209, 247, 0.3); color: #79d1f7; }
.feature-icon-box.gold { background: rgba(244, 193, 93, 0.15); border: 1px solid rgba(244, 193, 93, 0.3); color: #f4c15d; }
.feature-icon-box.purple { background: rgba(186, 147, 255, 0.15); border: 1px solid rgba(186, 147, 255, 0.3); color: #ba93ff; }
.feature-icon-box.green { background: rgba(105, 230, 176, 0.15); border: 1px solid rgba(105, 230, 176, 0.3); color: #69e6b0; }
.feature-icon-box.cyan { background: rgba(64, 224, 208, 0.15); border: 1px solid rgba(64, 224, 208, 0.3); color: #40e0d0; }
.feature-icon-box.red { background: rgba(255, 107, 107, 0.15); border: 1px solid rgba(255, 107, 107, 0.3); color: #ff6b6b; }
.feature-icon-box.orange { background: rgba(255, 165, 0, 0.15); border: 1px solid rgba(255, 165, 0, 0.3); color: #ffa500; }
.feature-icon-box.indigo { background: rgba(147, 112, 219, 0.15); border: 1px solid rgba(147, 112, 219, 0.3); color: #9370db; }

.feature-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  background: rgba(121, 209, 247, 0.12);
  color: #79d1f7;
  border: 1px solid rgba(121, 209, 247, 0.25);
}

.feature-badge.gold { background: rgba(244, 193, 93, 0.12); color: #f4c15d; border-color: rgba(244, 193, 93, 0.25); }
.feature-badge.purple { background: rgba(186, 147, 255, 0.12); color: #ba93ff; border-color: rgba(186, 147, 255, 0.25); }
.feature-badge.green { background: rgba(105, 230, 176, 0.12); color: #69e6b0; border-color: rgba(105, 230, 176, 0.25); }
.feature-badge.red { background: rgba(255, 107, 107, 0.12); color: #ff6b6b; border-color: rgba(255, 107, 107, 0.25); }
.feature-badge.orange { background: rgba(255, 165, 0, 0.12); color: #ffa500; border-color: rgba(255, 165, 0, 0.25); }

.feature-title-wrap h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.feature-desc {
  font-size: 13px;
  color: #a9bece;
  line-height: 1.5;
  margin: 4px 0 10px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #8fa5bc;
}

.feature-bullets li {
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #79d1f7;
  font-weight: 800;
}

.feature-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
}

.feature-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #79d1f7;
  transition: color 0.15s, transform 0.15s;
}

.overview-feature-card:hover .feature-link {
  color: #aae2fb;
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .overview-hero {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   👑 세트 장비 도감 전체 비교 테이블 (Set Comparison Table Modal) Styles
   ========================================================================== */

.sets-header-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(20, 35, 55, 0.75), rgba(12, 22, 38, 0.9));
  border: 1px solid rgba(121, 209, 247, 0.22);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sets-summary-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cde4fa;
}

.sets-summary-tag .summary-icon {
  font-size: 18px;
}

.sets-summary-tag strong {
  color: #79d1f7;
  font-size: 16px;
}

.btn-open-set-comparison {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1d6fa5, #0f4b75);
  color: #ffffff;
  border: 1px solid #79d1f7;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 111, 165, 0.35);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-open-set-comparison:hover {
  background: linear-gradient(135deg, #2489cc, #145e93);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(121, 209, 247, 0.45);
}

.btn-open-set-comparison:active {
  transform: translateY(0);
}

/* Modal Panel */
.set-compare-modal-panel {
  max-width: 1280px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0d1726;
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.set-compare-modal-panel .modal-subtitle {
  font-size: 13px;
  color: #92a7bf;
  margin-top: 4px;
}

/* Controls Bar */
.compare-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(16, 29, 46, 0.95);
  border-bottom: 1px solid rgba(121, 209, 247, 0.15);
}

.compare-filter-group,
.compare-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-modal-controls .ctrl-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #79d1f7;
  white-space: nowrap;
}

.compare-select {
  padding: 6px 12px;
  background: #09121d;
  color: #f0f6fc;
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.compare-select:focus {
  border-color: #79d1f7;
}

.compare-search-box {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.compare-search-input {
  width: 100%;
  padding: 7px 12px;
  background: #09121d;
  color: #f0f6fc;
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.compare-search-input:focus {
  border-color: #79d1f7;
  box-shadow: 0 0 0 2px rgba(121, 209, 247, 0.2);
}

/* Table Wrapper */
.compare-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0;
  background: #09111c;
}

.set-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.set-comparison-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #111d2e;
  border-bottom: 2px solid rgba(121, 209, 247, 0.35);
}

.set-comparison-table th {
  padding: 12px 10px;
  font-weight: 700;
  color: #79d1f7;
  font-size: 12.5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
}

.set-comparison-table th:last-child {
  border-right: none;
}

.set-comparison-table th[data-set-cmp-sort]:hover {
  background: rgba(121, 209, 247, 0.15);
  color: #ffffff;
}

.set-comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s;
}

.set-comparison-table tbody tr:hover {
  background: rgba(29, 111, 165, 0.15);
}

.set-comparison-table tbody tr.hp-rule-row:hover {
  background: rgba(230, 126, 34, 0.12);
}

.set-comparison-table td {
  padding: 10px 10px;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.set-comparison-table td:last-child {
  border-right: none;
}

/* Specific Cells */
.col-rank {
  width: 44px;
  text-align: center;
}

.rank-badge {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  color: #92a7bf;
}

.col-lvl {
  width: 75px;
  text-align: center;
}

.set-lvl-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(121, 209, 247, 0.15);
  border: 1px solid rgba(121, 209, 247, 0.35);
  color: #79d1f7;
  font-size: 12px;
  font-weight: 800;
}

.set-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.set-mini-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(121, 209, 247, 0.2);
}

.set-mini-thumb-empty {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
}

.set-tbl-title {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
}

.set-tbl-races {
  display: block;
  font-size: 11px;
  color: #8da4be;
  margin-top: 1px;
}

.col-rule {
  white-space: nowrap;
}

.col-stat {
  min-width: 110px;
  text-align: right;
  font-weight: 700;
}

.stat-cell-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stat-breakdown-sub {
  font-size: 10.5px;
  color: #8da4be;
  font-weight: 500;
  white-space: nowrap;
}

.stat-highlight.hp {
  color: #ff7675;
  font-weight: 800;
  font-size: 13.5px;
}

.stat-highlight.ar {
  color: #74b9ff;
  font-weight: 800;
  font-size: 13.5px;
}

.stat-highlight.atk {
  color: #ffeaa7;
  font-weight: 800;
  font-size: 13.5px;
}

.stat-highlight.def {
  color: #55efc4;
  font-weight: 800;
  font-size: 13.5px;
}

.stat-highlight.eva {
  color: #cf9fff;
  font-weight: 800;
  font-size: 13.5px;
}

.stat-zero {
  color: #4a5c6e;
  font-weight: 400;
}

.col-special {
  min-width: 140px;
  font-size: 12px;
}

.special-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(253, 203, 110, 0.15);
  border: 1px solid rgba(253, 203, 110, 0.35);
  color: #ffeaa7;
  font-size: 11.5px;
  font-weight: 700;
}

.notes-tag {
  color: #92a7bf;
  font-size: 11.5px;
}

.col-action {
  width: 95px;
  text-align: center;
}

.btn-jump-set {
  padding: 5px 10px;
  background: rgba(121, 209, 247, 0.12);
  border: 1px solid rgba(121, 209, 247, 0.3);
  color: #79d1f7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-jump-set:hover {
  background: #1d6fa5;
  border-color: #79d1f7;
  color: #ffffff;
  transform: scale(1.04);
}

.tbl-empty {
  text-align: center;
  padding: 36px 20px;
  color: #8da4be;
  font-size: 14px;
}

/* Modal Footer */
.compare-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: #111d2e;
  border-top: 1px solid rgba(121, 209, 247, 0.2);
}

.footer-tip {
  font-size: 12px;
  color: #a4b9cf;
}

.btn-modal-close-bottom {
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-modal-close-bottom:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Highlight Animation when jumped to a set card */
.set-card-highlighted {
  animation: setPulseGlow 2.5s ease-out;
}

@keyframes setPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(121, 209, 247, 0.8), 0 0 24px rgba(121, 209, 247, 0.6);
    border-color: #79d1f7;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(121, 209, 247, 0.4), 0 0 32px rgba(121, 209, 247, 0.8);
    border-color: #aae2fb;
  }
  100% {
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .set-compare-modal-panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .compare-modal-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-search-box {
    max-width: 100%;
  }
}


/* ====================================================
   🔨 CRAFTING TAB (제작 도감) STYLING
==================================================== */
.crafting-controls-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.crafting-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.crafting-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.crafting-search-box .search-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  color: var(--muted);
}

.crafting-search-input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  background: rgba(11, 22, 36, 0.85);
  border: 1px solid rgba(121, 209, 247, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.crafting-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25);
}

.crafting-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crafting-cat-pill {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #d1d8e0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.crafting-cat-pill:hover {
  background: rgba(58, 134, 255, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.crafting-cat-pill.active {
  background: linear-gradient(135deg, #3a86ff, #0056b3);
  border-color: #3a86ff;
  color: #fff;
  box-shadow: 0 2px 10px rgba(58, 134, 255, 0.4);
}

.crafting-npc-pills-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.npc-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #a0aec0;
  padding-top: 5px;
}

.npc-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.crafting-npc-pill-btn {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #a0aec0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.crafting-npc-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.crafting-npc-pill-btn.active {
  background: rgba(0, 184, 148, 0.2);
  border-color: #00b894;
  color: #55efc4;
  font-weight: 700;
}

.crafting-npc-pill-btn .pill-count {
  font-size: 11px;
  opacity: 0.7;
}

.crafting-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px;
  color: #cbd5e0;
  font-size: 14px;
}

.crafting-summary-bar .highlight-count {
  color: var(--cyan);
  font-weight: 800;
}

.active-query-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(58, 134, 255, 0.2);
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: #70a1ff;
  font-size: 12px;
}

/* Crafting Grid & Cards */
.crafting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.crafting-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.crafting-card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 209, 247, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.crafting-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.crafting-target-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(16, 40, 68, 0.8);
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.crafting-target-icon-wrap:hover {
  transform: scale(1.08);
  border-color: var(--cyan);
}

.crafting-target-icon {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.crafting-target-info {
  flex: 1;
  min-width: 0;
}

.crafting-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.crafting-cat-badge {
  padding: 1px 6px;
  background: rgba(58, 134, 255, 0.2);
  border: 1px solid rgba(58, 134, 255, 0.4);
  border-radius: 4px;
  color: #70a1ff;
  font-size: 11px;
  font-weight: 700;
}

.crafting-req-lv {
  padding: 1px 6px;
  background: rgba(255, 159, 67, 0.2);
  border: 1px solid rgba(255, 159, 67, 0.4);
  border-radius: 4px;
  color: #ff9f43;
  font-size: 11px;
  font-weight: 700;
}

.crafting-tag-mini {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  color: #a0aec0;
  font-size: 10px;
}

.crafting-target-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crafting-target-name:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.crafting-npc-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.npc-badge-inline {
  color: #55efc4;
  font-weight: 600;
}

.loc-badge-inline {
  color: #a0aec0;
}

.time-badge-inline {
  color: #ffeaa7;
  font-weight: 600;
}

.crafting-fee-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.fee-label {
  color: #a0aec0;
  font-weight: 600;
}

.fee-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.fee-badge.peb-fee {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

.fee-badge.check-fee {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

/* Ingredients */
.crafting-materials-block {
  flex: 1;
}

.materials-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.mat-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.mat-sec-hint {
  font-size: 11px;
  color: #718096;
}

.crafting-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

.crafting-ing-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 32, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.crafting-ing-chip:hover {
  background: rgba(58, 134, 255, 0.15);
  border-color: rgba(121, 209, 247, 0.5);
  transform: translateY(-1px);
}

.ing-thumb-wrap {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ing-thumb-img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.ing-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ing-name {
  font-size: 12px;
  font-weight: 600;
  color: #edf2f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ing-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #70a1ff;
}

.crafting-card-footer {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.crafting-action-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.crafting-action-btn.primary-action {
  background: rgba(58, 134, 255, 0.2);
  border: 1px solid rgba(58, 134, 255, 0.5);
  color: #70a1ff;
}

.crafting-action-btn.primary-action:hover {
  background: var(--primary);
  color: #fff;
}

.crafting-action-btn.secondary-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
}

.crafting-action-btn.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Modal Crafting Links */
.archive-craft-link-btn, .archive-mat-link-btn {
  padding: 4px 10px;
  background: rgba(58, 134, 255, 0.2);
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: #70a1ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.archive-craft-link-btn:hover, .archive-mat-link-btn:hover {
  background: var(--primary);
  color: #fff;
}

.recipe-mat-chip-rich {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 32, 54, 0.8);
  border: 1px solid rgba(121, 209, 247, 0.2);
  border-radius: 6px;
  margin: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.recipe-mat-chip-rich:hover {
  border-color: var(--cyan);
  background: rgba(58, 134, 255, 0.2);
  transform: translateY(-1px);
}

.mat-thumb-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.archive-used-in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.used-in-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.used-in-chip:hover {
  background: rgba(58, 134, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.used-in-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.used-in-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.used-in-name {
  font-size: 12px;
  font-weight: 700;
  color: #edf2f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.used-in-count {
  font-size: 11px;
  color: #a0aec0;
}


/* ==========================================================================
   Tab-Specific Search Bar & Controls Styles
   ========================================================================== */
.tab-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #2a3f5c;
  border-radius: 10px;
  background: rgba(11, 22, 38, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tab-search-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.tab-search-box .search-icon {
  font-size: 15px;
  color: #60a5fa;
  flex-shrink: 0;
  user-select: none;
}

.tab-search-box .tab-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f8fc;
  font-size: 14px;
  font-family: inherit;
}

.tab-search-box .tab-search-input::placeholder {
  color: #64748b;
}

.search-clear-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.search-clear-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

.hunting-controls-card,
.sets-controls-card,
.requests-controls-card,
.weekquests-controls-card,
.items-controls-card,
.drops-controls-card,
.gameguide-controls-card,
.flags-controls-card,
.routes-controls-card,
.updates-controls-card,
.docs-controls-card {
  background: rgba(14, 25, 44, 0.7);
  border: 1px solid #1e3352;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sets-controls-card .sets-filter-container,
.requests-controls-card .requests-filter-container,
.weekquests-controls-card .weekquests-filter-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ==========================================================================
   Yapcar Game Tab Icons & Page Head Icon Styles
   ========================================================================== */
.nav-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transition: transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list button:hover .nav-tab-icon {
  transform: scale(1.15);
}

.nav-list button.active .nav-tab-icon {
  filter: drop-shadow(0 0 6px rgba(121, 209, 247, 0.65));
  transform: scale(1.1);
}

.nav-list button span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.page-head-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

/* ==============================================================================
 * 실시간 접속자 & 일별/누적 조회수 사이드바 위젯 스타일
 * ============================================================================== */
.sidebar-visitor-stats {
  margin-top: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(13, 27, 42, 0.75), rgba(7, 17, 31, 0.85));
  border: 1px solid rgba(121, 209, 247, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.stat-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: livePulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.stat-live-text {
  color: #94a3b8;
  font-size: 12px;
}

.stat-live-count {
  font-size: 14px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.2px;
}

.stat-count-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-count-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-count-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-count-val {
  font-size: 13px;
  font-weight: 700;
  color: #79d1f7;
}

.stat-count-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
 * 아이템 사전 카드 푸터 & 상세보기 버튼 일체형 모던 디자인
 * ============================================================================== */
.archive-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.archive-tag-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(36, 53, 77, 0.55);
  color: #c5d0dd;
  border: 1px solid rgba(121, 209, 247, 0.1);
  white-space: nowrap;
}

.archive-card-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #79d1f7;
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.12), rgba(16, 40, 58, 0.95));
  border: 1px solid rgba(121, 209, 247, 0.28);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-card-detail-btn:hover {
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.26), rgba(105, 230, 176, 0.2));
  border-color: #79d1f7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(121, 209, 247, 0.35);
  transform: translateY(-1.5px);
}

.archive-card-detail-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(121, 209, 247, 0.2);
}

.archive-card:hover .archive-card-detail-btn {
  border-color: rgba(121, 209, 247, 0.5);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.2), rgba(16, 40, 58, 0.95));
  color: #ffffff;
}

.archive-card-stats-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0;
}

.stat-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 29, 44, 0.75);
  border: 1px solid rgba(121, 209, 247, 0.15);
  color: #c5d0dd;
}

.stat-mini-pill.special-stat {
  background: rgba(244, 193, 93, 0.12);
  border-color: rgba(244, 193, 93, 0.3);
  color: #f4c15d;
}

.stat-mini-pill .pill-val {
  font-weight: 700;
  color: #79d1f7;
}

.stat-mini-pill.special-stat .pill-val {
  color: #f4c15d;
}

/* ==============================================================================
 * 제작 도감 거래소 시세 바로가기 버튼 스타일
 * ============================================================================== */
.crafting-action-btn.market-action {
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.14), rgba(16, 29, 44, 0.95));
  border: 1px solid rgba(244, 193, 93, 0.35);
  color: var(--gold);
}

.crafting-action-btn.market-action:hover {
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.28), rgba(255, 215, 0, 0.2));
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 193, 93, 0.35);
  transform: translateY(-1.5px);
}

.crafting-action-btn.market-action:active {
  transform: translateY(0);
}

/* ==============================================================================
 * 세트 장비 도감 5피스 개별 부위 실시간 시세 바로가기 버튼 스타일
 * ============================================================================== */
.set-item-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.set-item-card .set-item-slot-badge {
  position: static;
}

.set-piece-market-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.16), rgba(16, 29, 44, 0.95));
  border: 1px solid rgba(244, 193, 93, 0.38);
  border-radius: 5px;
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.set-piece-market-btn:hover {
  background: linear-gradient(135deg, rgba(244, 193, 93, 0.32), rgba(255, 215, 0, 0.25));
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 193, 93, 0.4);
}

.set-piece-market-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Site Footer & Copyright IP Notice Styles
   ========================================================================== */
.app-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(121, 209, 247, 0.15);
}

.footer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(36, 53, 77, 0.85);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.75), rgba(8, 18, 31, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-disclaimer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand-badge {
  padding: 2px 8px;
  border: 1px solid rgba(121, 209, 247, 0.3);
  border-radius: 4px;
  background: rgba(121, 209, 247, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.footer-info-badge {
  padding: 2px 8px;
  border: 1px solid rgba(244, 193, 93, 0.3);
  border-radius: 4px;
  background: rgba(244, 193, 93, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.footer-title {
  margin: 4px 0 2px;
  color: #f0f5fc;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.footer-desc {
  margin: 0;
  color: #9ab0c7;
  font-size: 12px;
  line-height: 1.65;
}

.footer-desc strong {
  color: #e1edf8;
  font-weight: 700;
}

.footer-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(54, 80, 109, 0.6);
  border-radius: 6px;
  background: rgba(22, 38, 58, 0.8);
  color: #b8cce2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 140ms ease;
}

.footer-link-btn:hover {
  border-color: var(--cyan);
  background: rgba(36, 62, 92, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(121, 209, 247, 0.2);
}

.footer-link-btn.primary {
  border-color: rgba(121, 209, 247, 0.4);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.18), rgba(21, 39, 58, 0.9));
  color: var(--cyan);
}

.footer-link-btn.primary:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.3), rgba(30, 55, 80, 0.95));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(121, 209, 247, 0.3);
}

.footer-bottom-copy {
  padding-top: 12px;
  border-top: 1px solid rgba(36, 53, 77, 0.6);
  color: #6f8399;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-card {
    padding: 16px;
  }
  .footer-links-row {
    flex-direction: column;
  }
  .footer-link-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Market Price History Chart & Guide Banner
   ========================================================================== */
.market-chart-notice-banner {
  margin: 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(16, 36, 58, 0.95), rgba(9, 21, 35, 0.98));
  border: 1px dashed rgba(121, 209, 247, 0.45);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.chart-notice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.chart-notice-icon {
  font-size: 24px;
  line-height: 1;
}

.chart-notice-text {
  font-size: 13.5px;
  color: #c9ddec;
  line-height: 1.5;
}

.chart-notice-text .item-name {
  color: var(--gold);
}

.chart-notice-text .notice-highlight {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-enable-exact-chart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.22), rgba(244, 193, 93, 0.18));
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}

.btn-enable-exact-chart:hover {
  background: linear-gradient(135deg, rgba(121, 209, 247, 0.4), rgba(244, 193, 93, 0.35));
  box-shadow: 0 4px 16px rgba(121, 209, 247, 0.35);
  transform: translateY(-1px);
}

.market-chart-card {
  margin: 18px 0 24px;
  background: linear-gradient(180deg, rgba(14, 28, 45, 0.95), rgba(7, 16, 27, 0.98));
  border: 1px solid rgba(121, 209, 247, 0.28);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.market-chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #69e6b0, #79d1f7, #f4c15d);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.chart-title-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-live-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(121, 209, 247, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(121, 209, 247, 0.35);
}

.chart-period-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 193, 93, 0.14);
  color: var(--gold);
  border: 1px solid rgba(244, 193, 93, 0.3);
}

.chart-exact-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(105, 230, 176, 0.14);
  color: #69e6b0;
  border: 1px solid rgba(105, 230, 176, 0.3);
}

.chart-title {
  font-size: 17px;
  font-weight: 800;
  color: #f5f9fd;
  margin: 0;
  letter-spacing: -0.3px;
}

.chart-kpi-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
  background: rgba(8, 20, 34, 0.7);
  border: 1px solid rgba(50, 77, 108, 0.6);
  border-radius: 8px;
  min-width: 110px;
}

.chart-kpi-item .kpi-tag {
  font-size: 11px;
  color: #8da4be;
  font-weight: 600;
}

.chart-kpi-item .kpi-val {
  font-size: 14px;
  font-weight: 800;
  color: #f0f6fc;
}

.chart-kpi-item .price-up {
  color: #ff6b81;
}

.chart-kpi-item .price-down {
  color: #4cd137;
}

.chart-kpi-item .price-flat {
  color: #a4b0be;
}

.chart-svg-container {
  position: relative;
  width: 100%;
  background: rgba(4, 11, 20, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(35, 58, 86, 0.6);
  padding: 12px 10px;
}

.market-price-svg {
  width: 100%;
  height: auto;
  min-height: 220px;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 4, 4;
  stroke-width: 1;
}

.chart-grid-x-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 3, 3;
  stroke-width: 1;
}

.chart-y-label {
  fill: #8fa6c2;
  font-size: 11.5px;
  font-weight: 600;
  text-anchor: end;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chart-x-label {
  fill: #8fa6c2;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chart-point-group {
  cursor: pointer;
  outline: none;
}

.chart-point-pulse {
  fill: #79d1f7;
  opacity: 0.25;
  transition: all 180ms ease;
}

.chart-point-dot {
  fill: #f4c15d;
  stroke: #0a192f;
  stroke-width: 2;
  transition: transform 180ms ease, fill 180ms ease;
}

.chart-point-group:hover .chart-point-pulse,
.chart-point-group:focus .chart-point-pulse {
  r: 12;
  opacity: 0.55;
  fill: #69e6b0;
}

.chart-point-group:hover .chart-point-dot,
.chart-point-group:focus .chart-point-dot {
  r: 6;
  fill: #ffffff;
}

/* Vertical Crosshair Line & Active Point (은은하고 부드러운 실선 가이드라인) */
.chart-crosshair-line {
  stroke: rgba(121, 209, 247, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: none;
  pointer-events: none;
}

.chart-active-point-wrap {
  pointer-events: none;
}

.chart-active-pulse {
  fill: #69e6b0;
  opacity: 0.35;
  transition: cx 90ms ease-out, cy 90ms ease-out;
  animation: pulseGlow 1.4s infinite ease-in-out;
}

.chart-active-dot {
  fill: #ffffff;
  stroke: #0a192f;
  stroke-width: 2.5;
  transition: cx 90ms ease-out, cy 90ms ease-out;
  filter: drop-shadow(0 0 5px rgba(105, 230, 176, 0.85));
}

@keyframes pulseGlow {
  0% { r: 8px; opacity: 0.45; }
  50% { r: 14px; opacity: 0.12; }
  100% { r: 8px; opacity: 0.45; }
}

.chart-tooltip {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(10, 24, 40, 0.96);
  border: 1px solid rgba(121, 209, 247, 0.5);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 10;
  min-width: 220px;
  animation: fadeIn 120ms ease;
}

.chart-tooltip .tooltip-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  margin-bottom: 6px;
}

.chart-tooltip .tooltip-price {
  font-size: 13px;
  color: #f1f5fa;
  margin-bottom: 4px;
}

.chart-tooltip .tooltip-price strong {
  color: var(--gold);
}

.chart-tooltip .tooltip-sub {
  font-size: 11px;
  color: #9bb3cc;
  margin-left: 4px;
}

.chart-tooltip .tooltip-range {
  font-size: 11px;
  color: #9cb2cb;
  margin-bottom: 3px;
}

.chart-tooltip .tooltip-vol {
  font-size: 11px;
  color: #69e6b0;
}

.chart-footer-hint {
  margin-top: 12px;
  font-size: 11.5px;
  color: #7d96b0;
  line-height: 1.5;
}

.chart-footer-hint strong {
  color: #b7cee4;
}

@media (max-width: 768px) {
  .market-chart-card {
    padding: 16px;
  }
  .chart-card-header {
    flex-direction: column;
  }
  .chart-kpi-summary {
    width: 100%;
    justify-content: space-between;
  }
  .chart-kpi-item {
    flex: 1;
    min-width: 90px;
    padding: 6px 10px;
  }
  .chart-y-label {
    font-size: 9.5px;
  }
  .chart-tooltip {
    position: static;
    margin-top: 8px;
    width: 100%;
  }
}







