﻿/* Game database / class skills — dark & gold, matched to the reference layout */

.gdb-section {
    padding: 110px 0 80px;
}

.gdb-hero {
    text-align: center;
    margin-bottom: 42px;
}

.gdb-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.gdb-hero p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gdb-divider {
    display: block;
    width: 54px;
    height: 2px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---- class picker ---- */

.gdb-classpick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.gdb-classbtn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

[dir="rtl"] .gdb-classbtn {
    padding: 7px 8px 7px 14px;
}

.gdb-classbtn img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(196, 154, 82, 0.35);
    background: #000;
}

.gdb-classbtn:hover {
    border-color: rgba(196, 154, 82, 0.55);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.gdb-classbtn.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(196, 154, 82, 0.25);
    color: var(--gold-light);
}

/* ---- dual class panel ---- */

.gdb-dual {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(34, 26, 17, 0.92), rgba(20, 16, 11, 0.95) 55%, rgba(28, 22, 15, 0.9));
    padding: 22px 26px;
    margin-bottom: 44px;
    box-shadow: var(--shadow);
}

.gdb-dual__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.gdb-eyebrow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gdb-dual__head h2 {
    font-family: var(--font-display);
    font-variant: small-caps;
    letter-spacing: 0.05em;
    font-size: 1.45rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.gdb-dual__head p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 620px;
}

.gdb-btn {
    padding: 10px 18px;
    background: rgba(196, 154, 82, 0.08);
    border: 1px solid rgba(196, 154, 82, 0.45);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.gdb-btn:hover {
    background: rgba(196, 154, 82, 0.18);
    border-color: var(--gold);
}

.gdb-btn.is-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gdb-btn.is-sub img {
    width: 26px;
    height: 26px;
    border-radius: 5px;
}

.gdb-dual__choose {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.gdb-dual__choose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gdb-dual__choose-head h3 {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.gdb-x {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.gdb-x:hover {
    color: var(--gold-light);
    border-color: var(--gold);
}

.gdb-subgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- sections ---- */

.gdb-sec {
    margin-bottom: 46px;
}

.gdb-sec__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.gdb-sec__head h2 {
    font-family: var(--font-display);
    font-variant: small-caps;
    letter-spacing: 0.05em;
    font-size: 1.35rem;
    color: var(--gold-light);
}

.gdb-count {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.gdb-sec__desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.gdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 14px;
}

/* ---- skill cards ---- */

.gdb-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.gdb-card:hover,
.gdb-card.is-open {
    border-color: rgba(196, 154, 82, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 16px rgba(196, 154, 82, 0.12);
}

.gdb-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 9px;
    border: 1px solid rgba(196, 154, 82, 0.4);
    background: #000;
    display: block;
    object-fit: cover;
}

.gdb-card__name {
    font-family: var(--font-display);
    font-variant: small-caps;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    color: var(--gold-light);
    line-height: 1.25;
    margin-bottom: 10px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdb-chip {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 0.74rem;
    margin-bottom: 10px;
}

.gdb-card__hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.gdb-card__hint::before {
    content: 'ⓘ ';
}

/* ---- floating detail card ---- */

.gdb-pop {
    position: fixed;
    z-index: 999;
    width: min(370px, calc(100vw - 24px));
    background: linear-gradient(160deg, rgba(26, 20, 13, 0.985), rgba(14, 11, 8, 0.99));
    border: 1px solid rgba(196, 154, 82, 0.55);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 24px rgba(196, 154, 82, 0.1);
    padding: 18px 18px 14px;
    font-size: 0.88rem;
}

.gdb-pop__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gdb-pop__head img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(196, 154, 82, 0.45);
    background: #000;
}

.gdb-pop__title {
    font-family: var(--font-display);
    font-variant: small-caps;
    color: var(--gold-light);
    font-size: 1.05rem;
    line-height: 1.2;
}

.gdb-pop__meta {
    color: var(--text-muted);
    font-size: 0.74rem;
    margin-top: 2px;
}

.gdb-pop__note {
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 14px;
    min-height: 2em;
}

.gdb-pop__note .gd-dmg {
    color: #e0759c;
    font-style: normal;
    font-weight: 600;
}

.gdb-lvrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 12px;
}

.gdb-lvrow__label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gdb-lvrow__ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gdb-lvrow__ctrl button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--gold-light);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.gdb-lvrow__ctrl button:disabled {
    opacity: 0.35;
    cursor: default;
}

.gdb-lvrow__val {
    min-width: 64px;
    text-align: center;
    color: var(--text);
}

.gdb-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.gdb-kv__cell {
    border: 1px solid rgba(196, 154, 82, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    padding: 7px 10px;
}

.gdb-kv__cell.is-wide {
    grid-column: 1 / -1;
}

.gdb-kv__k {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.gdb-kv__v {
    color: var(--text);
    font-size: 0.85rem;
}

.gdb-pop__foot {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: italic;
    border-top: 1px solid rgba(196, 154, 82, 0.14);
    padding-top: 8px;
}

.gdb-loading {
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
}

@media (max-width: 640px) {
    .gdb-dual {
        padding: 18px;
    }

    .gdb-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ================= Item database page (reference layout) ================= */
.rdb-container { max-width: 1280px; }
.rdb-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.4rem;
  align-items: start;
}

/* left sidebar */
.rdb-side {
  background: rgba(13, 11, 9, 0.92);
  border: 1px solid rgba(201, 164, 95, 0.16);
  border-radius: 12px;
  padding: 0.6rem 0;
  position: sticky;
  top: 90px;
}
.rdb-side__item {
  display: block;
  width: 100%;
  padding: 0.72rem 1.15rem;
  background: transparent;
  border: 0;
  border-inline-start: 3px solid transparent;
  color: rgba(226, 215, 195, 0.62);
  font-family: Cinzel, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: start;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.rdb-side__item:hover { color: #ecd9a8; background: rgba(201, 164, 95, 0.07); }
.rdb-side__item.is-active {
  color: #e7c883;
  background: rgba(201, 164, 95, 0.12);
  border-inline-start-color: #c9a45f;
}

/* header row */
.rdb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0.2rem 1.1rem;
}
.rdb-head h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e7c883;
}
.rdb-total {
  font-size: 0.82rem;
  color: rgba(226, 215, 195, 0.55);
}
.rdb-total b { color: #e7c883; font-weight: 700; }

/* sub-category icon bar */
.rdb-subbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem;
  background: rgba(13, 11, 9, 0.92);
  border: 1px solid rgba(201, 164, 95, 0.16);
  border-radius: 12px;
  margin-bottom: 0.9rem;
}
.rdb-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  width: 66px;
  padding: 0.5rem 0.2rem 0.42rem;
  background: rgba(22, 18, 14, 0.9);
  border: 1px solid rgba(201, 164, 95, 0.18);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.rdb-sub:hover { border-color: rgba(231, 200, 131, 0.55); transform: translateY(-2px); }
.rdb-sub.is-active {
  border-color: #c9a45f;
  background: rgba(201, 164, 95, 0.14);
  box-shadow: 0 0 12px rgba(201, 164, 95, 0.2);
}
.rdb-sub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  background: #0a0908;
  border: 1px solid rgba(201, 164, 95, 0.25);
  overflow: hidden;
  color: #e7c883;
  font-size: 1rem;
}
.rdb-sub__icon img { width: 30px; height: 30px; object-fit: contain; }
.rdb-sub__icon--all { font-size: 1.15rem; }
.rdb-sub__label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 215, 195, 0.6);
  text-align: center;
  line-height: 1.25;
  max-width: 62px;
  overflow: hidden;
}
.rdb-sub.is-active .rdb-sub__label { color: #e7c883; }

/* tools row (search + rarity + level) */
.rdb-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}
.rdb-search {
  flex: 1 1 240px;
  padding: 0.55rem 0.9rem;
  background: rgba(16, 13, 10, 0.92);
  border: 1px solid rgba(201, 164, 95, 0.3);
  border-radius: 9px;
  color: #f0e6d2;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.rdb-search:focus { border-color: rgba(231, 200, 131, 0.8); }
.rdb-rarity { display: flex; align-items: center; gap: 0.35rem; }
.idb-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--dot, #fff);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.idb-dot:hover { transform: scale(1.2); }
.idb-dot.is-active { border-color: #fff; transform: scale(1.25); box-shadow: 0 0 8px var(--dot); }
.rdb-lv { display: flex; align-items: center; gap: 0.35rem; color: rgba(232,222,205,0.5); }
.rdb-lv input {
  width: 62px;
  padding: 0.4rem 0.5rem;
  background: rgba(24, 20, 15, 0.9);
  border: 1px solid rgba(201, 164, 95, 0.3);
  border-radius: 8px;
  color: #f0e6d2;
  font-size: 0.82rem;
}
.idb-clear {
  background: transparent;
  border: 1px solid rgba(201, 164, 95, 0.35);
  border-radius: 8px;
  color: rgba(231, 200, 131, 0.85);
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.idb-clear:hover { background: rgba(201, 164, 95, 0.14); }

/* item cards grid */
.rdb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  min-height: 240px;
}
.rdb-grid.is-loading { opacity: 0.45; }
.rdb-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  background: rgba(16, 13, 10, 0.92);
  border: 1px solid rgba(201, 164, 95, 0.13);
  border-radius: 11px;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rdb-card:hover { border-color: rgba(231, 200, 131, 0.55); background: rgba(26, 21, 15, 0.95); }
.rdb-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 9px;
  background: #0a0908;
  border: 2px solid var(--rc, rgba(201, 164, 95, 0.4));
  box-shadow: 0 0 9px color-mix(in srgb, var(--rc, #c9a45f) 35%, transparent);
  overflow: hidden;
}
.rdb-card__icon img { width: 38px; height: 38px; object-fit: contain; }
.rdb-card__body { min-width: 0; flex: 1; }
.rdb-card__name {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rdb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.32rem;
}
.rdb-card__meta i {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(226, 215, 195, 0.55);
  background: rgba(38, 32, 25, 0.85);
  border: 1px solid rgba(201, 164, 95, 0.16);
  border-radius: 5px;
  padding: 0.14rem 0.4rem;
  white-space: nowrap;
}
.rdb-card__chev {
  flex: none;
  color: rgba(201, 164, 95, 0.5);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.rdb-card:hover .rdb-card__chev { color: #e7c883; transform: translateX(2px); }
[dir="rtl"] .rdb-card__chev { transform: scaleX(-1); }
[dir="rtl"] .rdb-card:hover .rdb-card__chev { transform: scaleX(-1) translateX(2px); }
.idb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(232, 222, 205, 0.5);
}

/* numbered pagination */
.rdb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.2rem;
}
.rdb-pager__nav,
.rdb-pager__num {
  background: rgba(16, 13, 10, 0.92);
  border: 1px solid rgba(201, 164, 95, 0.22);
  border-radius: 8px;
  color: rgba(226, 215, 195, 0.7);
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.rdb-pager__nav { padding: 0.42rem 0.85rem; }
.rdb-pager__num { min-width: 34px; padding: 0.42rem 0.4rem; text-align: center; }
.rdb-pager__nav:hover:not([disabled]),
.rdb-pager__num:hover { border-color: rgba(231, 200, 131, 0.6); color: #ecd9a8; }
.rdb-pager__num.is-active {
  background: rgba(201, 164, 95, 0.2);
  border-color: #c9a45f;
  color: #e7c883;
  font-weight: 700;
}
.rdb-pager__nav[disabled] { opacity: 0.35; cursor: default; }

/* in-game style tooltip */
.idb-tip {
  position: absolute;
  z-index: 300;
  width: 320px;
  max-width: calc(100vw - 20px);
  background: linear-gradient(160deg, rgba(11, 14, 24, 0.97), rgba(6, 8, 14, 0.97));
  border: 1px solid rgba(120, 140, 190, 0.45);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  padding: 0.8rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  pointer-events: none;
}
.idb-tip.is-pinned { pointer-events: auto; }
.idb-tip__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.idb-tip__head img {
  width: 42px; height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(120, 140, 190, 0.4);
  background: #05070c;
}
.idb-tip__name { font-weight: 700; font-size: 0.95rem; color: inherit; }
.idb-tip__stars { color: #ffd34d; margin-inline-start: 0.3rem; letter-spacing: 0.1em; }
.idb-tip__line { margin: 0.1rem 0; }
.idb-tip__dline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.1rem 0;
}

@media (max-width: 1024px) {
  .rdb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .rdb-wrap { grid-template-columns: 1fr; }
  .rdb-side { position: static; display: flex; padding: 0.3rem; }
  .rdb-side__item { border-inline-start: 0; border-bottom: 3px solid transparent; text-align: center; }
  .rdb-side__item.is-active { border-inline-start-color: transparent; border-bottom-color: #c9a45f; }
}
@media (max-width: 640px) {
  .rdb-grid { grid-template-columns: 1fr; }
}

/* ================= Item detail page ================= */
.itp-container { max-width: 1100px; }

.itp-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #b9a878;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.itp-back:hover { color: #ecd9a8; }

.itp-panel {
  background: linear-gradient(160deg, rgba(13, 15, 24, 0.92), rgba(8, 10, 17, 0.95));
  border: 1px solid rgba(120, 140, 190, 0.18);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
}
.itp-panel__title {
  color: #d7c290;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(120, 140, 190, 0.15);
}

/* header */
.itp-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(160deg, rgba(13, 15, 24, 0.92), rgba(8, 10, 17, 0.95));
  border: 1px solid rgba(120, 140, 190, 0.18);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.itp-head__icon {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rare, rgba(120, 140, 190, 0.4));
  border-radius: 10px;
  background: #05070c;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.itp-head__icon img { width: 52px; height: 52px; }
.itp-head__guid {
  color: #6f7891;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.itp-head__name {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.itp-head__badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.itp-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(120, 140, 190, 0.3);
  border-radius: 999px;
  color: #aab3c9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* showcase */
.itp-showcase__stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(64, 74, 128, 0.35), rgba(8, 10, 18, 0.1) 60%),
    linear-gradient(180deg, rgba(10, 12, 22, 0.9), rgba(5, 7, 12, 0.95));
}
.itp-showcase__stage img {
  width: 140px; height: 140px;
  image-rendering: auto;
  filter: drop-shadow(0 0 26px rgba(140, 160, 255, 0.35));
}

/* 3D model viewer */
.itp-model3d__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.itp-3d-reset {
  padding: 0.32rem 0.9rem;
  border: 1px solid rgba(120, 140, 190, 0.35);
  border-radius: 6px;
  background: rgba(20, 24, 38, 0.9);
  color: #aab3c9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.itp-3d-reset:hover { color: #ecd9a8; border-color: #b9a878; }
.itp-3d-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
}
.itp-3d-field span {
  display: block;
  color: #6f7891;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.itp-3d-field select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(120, 140, 190, 0.25);
  border-radius: 6px;
  background: rgba(12, 14, 24, 0.95);
  color: #dfe4f2;
  font-size: 0.85rem;
  cursor: pointer;
}
.itp-3d-field select:focus { outline: none; border-color: #b9a878; }
.itp-3d-stage {
  position: relative;
  height: 520px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a2458e6, #05060cfa);
}
.itp-3d-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}
.itp-3d-stage canvas:active { cursor: grabbing; }
.itp-3d-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a93ad;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.itp-3d-loading[data-state="error"] { color: #b06a6a; }
.itp-3d-loading[hidden] { display: none; }
@media (max-width: 640px) {
  .itp-3d-stage { height: 420px; }
  .itp-3d-selects { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* two-column: tooltip + builder */
.itp-cols {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.2rem;
}
.itp-tip {
  position: static;
  width: auto;
  pointer-events: auto;
}
.itp-tip__id {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(120, 140, 190, 0.2);
  color: #6f7891 !important;
  font-size: 0.72rem;
}

/* builder */
.itp-builder { margin-bottom: 0; }
.itp-steppers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.1rem;
}
.itp-step label {
  display: block;
  color: #8f97ad;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.itp-step__ctl {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.itp-step__ctl b {
  min-width: 3.2rem;
  text-align: center;
  color: #e8e2d2;
  font-size: 1.05rem;
}
.itp-step__ctl button {
  width: 28px; height: 28px;
  border: 1px solid rgba(120, 140, 190, 0.3);
  border-radius: 6px;
  background: rgba(20, 24, 38, 0.8);
  color: #cfd6e6;
  font-size: 1rem;
  cursor: pointer;
}
.itp-step__ctl button:hover { border-color: rgba(231, 200, 131, 0.6); color: #ecd9a8; }
.itp-copy {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(120, 140, 190, 0.3);
  border-radius: 6px;
  background: rgba(20, 24, 38, 0.8);
  color: #cfd6e6;
  font-size: 0.8rem;
  cursor: pointer;
}
.itp-copy:hover { border-color: rgba(231, 200, 131, 0.6); color: #ecd9a8; }

.itp-sec { margin-top: 1.2rem; }
.itp-sec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f97ad;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(120, 140, 190, 0.12);
}

.itp-existing {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(70, 180, 110, 0.4);
  border-radius: 8px;
  background: rgba(30, 80, 50, 0.15);
  font-size: 0.75rem;
}
.itp-existing span {
  color: #6fbe8a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.itp-existing b { color: #7dd87d; font-weight: 600; }

.itp-statgrid, .itp-runegrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.itp-statcard, .itp-runeslot.is-filled {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(150, 90, 220, 0.4);
  border-radius: 8px;
  background: rgba(70, 35, 110, 0.18);
}
.itp-statcard__body b {
  display: block;
  color: #c69df0;
  font-size: 0.8rem;
  font-weight: 600;
}
.itp-statcard__body span { color: #9d8fb8; font-size: 0.72rem; }
.itp-statcard__x {
  border: 0;
  background: none;
  color: #8f97ad;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.itp-statcard__x:hover { color: #ff8d8d; }

.itp-addstat { position: relative; margin-top: 0.7rem; }
.itp-addstat input, .itp-runeslot input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(120, 140, 190, 0.25);
  border-radius: 8px;
  background: rgba(10, 13, 22, 0.9);
  color: #dfe4f0;
  font-size: 0.8rem;
}
.itp-addstat input:focus, .itp-runeslot input:focus {
  outline: none;
  border-color: rgba(231, 200, 131, 0.55);
}
.itp-runeslot { position: relative; }

.itp-drop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(120, 140, 190, 0.35);
  border-radius: 8px;
  background: rgba(9, 11, 19, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.itp-drop__row {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-bottom: 1px solid rgba(120, 140, 190, 0.1);
  background: none;
  cursor: pointer;
}
.itp-drop__row:hover { background: rgba(201, 164, 95, 0.12); }
.itp-drop__row b { display: block; color: #e3d9bf; font-size: 0.78rem; }
.itp-drop__row span { color: #8f97ad; font-size: 0.7rem; }
.itp-drop__empty { padding: 0.6rem 0.8rem; color: #8f97ad; font-size: 0.75rem; }

.itp-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.itp-suggest__label { color: #8f97ad; font-size: 0.72rem; }
.itp-chip {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(150, 90, 220, 0.35);
  border-radius: 999px;
  background: rgba(70, 35, 110, 0.15);
  color: #c69df0;
  font-size: 0.72rem;
  cursor: pointer;
}
.itp-chip:hover { border-color: rgba(198, 157, 240, 0.7); }

/* sold by + shop page */
.itp-soldby__list, .itp-soldlist { display: grid; gap: 0.55rem; }
.itp-shoprow, .itp-itemrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(120, 140, 190, 0.18);
  border-radius: 8px;
  background: rgba(14, 17, 27, 0.75);
  color: #d9cfae;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.itp-shoprow:hover, .itp-itemrow:hover {
  border-color: rgba(231, 200, 131, 0.5);
  background: rgba(22, 26, 40, 0.9);
}
.itp-itemrow__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 140, 190, 0.3);
  border-radius: 6px;
  background: #05070c;
}
.itp-itemrow__icon img { width: 30px; height: 30px; }
.itp-itemrow__name { flex: 1 1 auto; }
.itp-itemrow__lv { color: #8f97ad; font-size: 0.72rem; }

@media (max-width: 920px) {
  .itp-cols { grid-template-columns: 1fr; }
  .itp-statgrid, .itp-runegrid { grid-template-columns: 1fr; }
}

