:root {
  --bg: #06080c;
  --bg-alt: #0f151d;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #94a2b5;
  --accent: #b41118;
  --accent-soft: #ff835c;
  --success: #63d38e;
  --warning: #ffb357;
  --info: #6ec9ff;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --blood-hero-image: url("hero-header.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 17, 24, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 201, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #0b1017 100%);
}

.icon-sprite {
  position: absolute;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

@media (min-width: 1021px) {
  body > .app-shell {
    zoom: 0.9;
  }
}

.language-switcher {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.language-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
}

.language-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.language-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.language-button[data-language="es"]::before {
  background: linear-gradient(to bottom, #aa151b 0 26%, #f1bf00 26% 74%, #aa151b 74% 100%);
}

.language-button[data-language="en"]::before {
  background:
    linear-gradient(33deg, transparent 0 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
    linear-gradient(147deg, transparent 0 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
    linear-gradient(to bottom, transparent 0 37%, #fff 37% 43%, #c8102e 43% 57%, #fff 57% 63%, transparent 63%),
    linear-gradient(to right, transparent 0 37%, #fff 37% 43%, #c8102e 43% 57%, #fff 57% 63%, transparent 63%),
    #012169;
}

.language-button[data-language="pt"]::before {
  background: linear-gradient(to right, #046a38 0 42%, #da291c 42% 100%);
}

.language-button[data-language="ru"]::before {
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.language-button.active {
  border-color: rgba(255, 131, 92, 0.72);
  background: rgba(180, 17, 24, 0.28);
}

.brand-block h1 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1;
}

.menu-copy,
.status-note,
.field span,
.section-head p {
  color: var(--muted);
}

.eyebrow,
.section-label,
.stat-label,
.menu-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-soft);
}

.menu-nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.menu-group-label {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.menu-link-icon,
.section-icon,
.overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffd9be;
  flex: 0 0 auto;
}

.menu-link-icon svg,
.section-icon svg,
.overview-icon svg {
  width: 17px;
  height: 17px;
}

.menu-link.active,
.menu-link:hover {
  background: linear-gradient(135deg, rgba(180, 17, 24, 0.22), rgba(255, 131, 92, 0.14));
  border-color: rgba(255, 131, 92, 0.3);
}

.menu-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.menu-box strong {
  display: block;
  margin-top: 10px;
}

.live-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.live-panel-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.live-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.live-panel-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.live-panel-item strong {
  font-size: 0.92rem;
}

.live-panel-status strong {
  color: var(--success);
}

.content-shell {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0 48px;
}

.app-topbar,
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

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

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 8px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 131, 92, 0.5) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.topbar-menu::-webkit-scrollbar {
  height: 6px;
}

.topbar-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.topbar-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180, 17, 24, 0.9), rgba(255, 131, 92, 0.8));
}

.topbar-menu .menu-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 12px;
  scroll-snap-align: start;
  white-space: nowrap;
}

.topbar-menu .menu-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.topbar-brand {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.topbar-brand strong {
  font-size: 1rem;
}

.topbar-brand span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-status-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.status-chip {
  display: grid;
  gap: 2px;
  min-width: 94px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.status-chip span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-chip strong {
  font-size: 0.84rem;
  white-space: nowrap;
}

.status-chip-ok strong {
  color: var(--success);
}

.status-chip-wide {
  min-width: 240px;
}

.status-chip-hidden {
  display: none;
}

.topbar,
.controls-card,
.stat-card,
.table-card,
.embed-frame,
.chart-card,
.history-card,
.summary-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.topbar-actions,
.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cover-header {
  margin-bottom: 18px;
}

.cover-header-frame {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.14)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.cover-header-media {
  min-height: clamp(180px, 21vw, 280px);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.04), rgba(6, 8, 12, 0.2)),
    radial-gradient(circle at top left, rgba(180, 17, 24, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 201, 255, 0.18), transparent 24%),
    var(--blood-hero-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0f15;
}

.home-hero {
  position: relative;
  min-height: clamp(260px, 34vw, 430px);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #0a0f15;
  box-shadow: var(--shadow);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.04), rgba(6, 8, 12, 0.18)),
    var(--blood-hero-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0f15;
}

.tool-page-header {
  min-height: clamp(240px, 34vw, 440px);
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #0a0f15;
  box-shadow: var(--shadow);
}

.tool-page-header-media {
  width: 100%;
  min-height: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0f15;
}

.characters-header-media {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.03), rgba(6, 8, 12, 0.16)),
    url("characters-header.png");
}

.clans-header-media {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.03), rgba(6, 8, 12, 0.16)),
    url("clans-header.png");
}

.home-tools {
  margin-top: 18px;
}

.tool-overview-grid {
  display: flex;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}

.tool-overview-grid::-webkit-scrollbar {
  display: none;
}

.tool-overview-card {
  flex: 0 0 clamp(220px, 24vw, 292px);
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(180, 17, 24, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  scroll-snap-align: none;
}

.tool-overview-card:hover {
  border-color: rgba(255, 131, 92, 0.36);
  transform: translateY(-1px);
}

.tool-overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #ffd9be;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(180, 17, 24, 0.22), rgba(255, 131, 92, 0.13));
}

.tool-overview-icon svg {
  width: 21px;
  height: 21px;
}

.tool-overview-card strong {
  font-size: 1.1rem;
}

.tool-overview-card span:last-child {
  color: var(--muted);
  line-height: 1.48;
}

.section {
  margin-top: 20px;
  scroll-margin-top: 92px;
}

.section-group {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-group-hidden {
  display: none;
}

.section-group-head {
  max-width: 860px;
  margin-bottom: 10px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 12px;
}

.compact-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.compact-head .section-icon {
  margin-bottom: 0;
}

.compact-head h2,
.compact-head p {
  margin: 0;
}

.section-icon,
.overview-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(180, 17, 24, 0.18), rgba(255, 131, 92, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd9be;
}

.section-lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.controls-card,
.table-card,
.embed-frame,
.chart-card,
.history-card {
  padding: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: none;
  color: white;
}

.button-ghost:hover,
.character-link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.rankings-shell {
  display: grid;
  gap: 14px;
}

.live-grid,
.progress-grid {
  display: grid;
  gap: 14px;
}

.live-grid {
  grid-template-columns: 1.02fr 0.98fr;
}

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

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.control-grid-clan {
  grid-template-columns: 1fr 2fr 1fr;
}

.control-grid-conquests,
.control-grid-items,
.control-grid-character-search {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.control-grid-character-search {
  grid-template-columns: 1fr;
}

.control-grid-nfts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.control-grid-summon {
  grid-template-columns: 2fr 1fr 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field select {
  min-height: 42px;
  width: 100%;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.stats-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.overview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(180, 17, 24, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.overview-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.overview-card p:last-of-type {
  color: var(--muted);
  line-height: 1.6;
}

.overview-link {
  display: inline-flex;
  margin-top: 14px;
  color: #ffd9be;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.detail-card-head h3 {
  margin: 8px 0 0;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.stack-item-action {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.stack-item strong {
  color: #ffd9be;
}

.recipe-row {
  cursor: pointer;
}

.recipe-row.is-active {
  background: rgba(180, 17, 24, 0.12);
}

.recipe-variant {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.recipe-variant-title {
  margin: 0 0 10px;
  color: #ffd9be;
}

.stat-card,
.summary-item {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
}

.stat-card strong,
.summary-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.table-wrap {
  overflow-x: auto;
}

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

.rankings-table th,
.rankings-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.rankings-table th {
  color: var(--muted);
  font-weight: 600;
}

.rankings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

.power-score {
  font-weight: 700;
  color: #ffd9be;
}

.character-link {
  color: #ffd9be;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.embed-frame {
  padding: 12px;
}

.embed-frame iframe {
  width: 100%;
  min-height: 1280px;
  border: 0;
  border-radius: calc(var(--radius) - 8px);
  background: white;
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.nft-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.nft-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.nft-card-refinado {
  background:
    linear-gradient(180deg, rgba(69, 176, 108, 0.24), rgba(14, 25, 18, 0.92) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.nft-card-raro {
  background:
    linear-gradient(180deg, rgba(57, 112, 214, 0.24), rgba(11, 18, 31, 0.92) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.nft-card-epico {
  background:
    linear-gradient(180deg, rgba(184, 46, 61, 0.24), rgba(30, 12, 16, 0.92) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.nft-card-legendario {
  background:
    linear-gradient(180deg, rgba(220, 190, 77, 0.24), rgba(31, 24, 10, 0.92) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.nft-card-legendario-plus {
  background:
    linear-gradient(180deg, rgba(232, 174, 58, 0.34), rgba(42, 25, 5, 0.94) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.nft-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.32), transparent 65%);
}

.nft-art-wrap {
  position: relative;
  margin: -20px -20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
}

.nft-art {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.nft-grade-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff2cb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nft-card-refinado .nft-grade-badge {
  background: rgba(23, 88, 44, 0.84);
  color: #d8ffe3;
}

.nft-card-raro .nft-grade-badge {
  background: rgba(20, 53, 112, 0.84);
  color: #dcebff;
}

.nft-card-epico .nft-grade-badge {
  background: rgba(114, 27, 39, 0.86);
  color: #ffe1e4;
}

.nft-card-legendario .nft-grade-badge {
  background: rgba(122, 95, 20, 0.86);
  color: #fff0be;
}

.nft-card-legendario-plus .nft-grade-badge {
  background: rgba(156, 92, 12, 0.88);
  color: #fff4d6;
}

.nft-card-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
}

.nft-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.nft-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  line-height: 1.25;
  word-break: break-word;
}

.nft-id {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.nft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd9be;
  font-size: 0.8rem;
  font-weight: 700;
}

.nft-price {
  min-width: 86px;
  text-align: right;
  font-size: 22px;
  font-weight: 900;
  color: #67e8f9;
  white-space: nowrap;
}

.nft-price small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.nft-stats-main {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.nft-metric {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.nft-metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 12px;
}

.nft-metric strong {
  font-size: 18px;
}

.nft-meta {
  display: grid;
  gap: 10px;
  position: relative;
}

.nft-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.nft-meta-row strong {
  color: var(--text);
}

.nft-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.nft-card-actions .button {
  width: 100%;
}

.nft-detail-modal[hidden] {
  display: none;
}

.nft-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.nft-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.76);
  backdrop-filter: blur(8px);
}

.nft-detail-panel {
  position: relative;
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 19, 0.96);
  box-shadow: var(--shadow);
}

.nft-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.nft-detail-body {
  display: grid;
  gap: 18px;
}

.nft-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nft-detail-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.nft-detail-tab.active {
  background: linear-gradient(135deg, rgba(180, 17, 24, 0.22), rgba(255, 131, 92, 0.14));
  border-color: rgba(255, 131, 92, 0.3);
  color: var(--text);
}

.nft-detail-tab-panel[hidden] {
  display: none;
}

.nft-detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.nft-detail-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.nft-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.nft-detail-stack {
  display: grid;
  gap: 18px;
}

.nft-detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.nft-detail-card h3 {
  margin: 0 0 12px;
}

.nft-detail-stats,
.nft-detail-items {
  display: grid;
  gap: 10px;
}

.nft-detail-stat-row,
.nft-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nft-detail-item {
  justify-content: flex-start;
}

.nft-detail-item img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.nft-detail-item-copy {
  display: grid;
  gap: 3px;
}

.nft-detail-item-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nft-skill-grid {
  --skill-bg-width: 896px;
  --skill-bg-height: 632px;
  --skill-column-gap: 68px;
  --skill-row-gap: 92px;
  --skill-start-x: 92px;
  --skill-start-y: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px 10px;
}

.nft-skill-card {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.nft-skill-name {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.nft-skill-badge-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}

.nft-skill-badge-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 2px solid #000;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.nft-skill-badge {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.nft-skill-badge::before,
.nft-skill-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.nft-skill-badge::before {
  width: 56px;
  height: 56px;
  background-image: url(https://file.mir4global.com/xdraco/dist/img/common/nft-detail/sp-skill.webp);
  background-repeat: no-repeat;
  background-size: var(--skill-bg-width) var(--skill-bg-height);
}

.nft-skill-badge::after {
  width: 56px;
  height: 56px;
  border: 2px solid #57568b;
  border-radius: 50%;
  box-sizing: border-box;
}

.nft-skill-badge-wrap.badge-big::before {
  width: 56px;
  height: 56px;
}

.nft-skill-badge-wrap.badge-big .nft-skill-badge::before {
  top: -12%;
  left: -12%;
  width: 80px;
  height: 80px;
  transform: scale(0.7);
}

.nft-skill-badge-wrap.badge-big .nft-skill-badge::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: translate(0, 0);
  background: url(https://file.mir4global.com/xdraco/dist/img/common/nft-detail/bg-badge-off.webp) 0 0 / 100% auto no-repeat;
}

.nft-skill-badge-wrap.on::before {
  box-shadow: 0 0 13px red;
}

.nft-skill-badge-wrap.on.badge-big::before {
  box-shadow: none;
}

.nft-skill-badge-wrap.on.badge-big .nft-skill-badge::after {
  background: url(https://file.mir4global.com/xdraco/dist/img/common/nft-detail/bg-badge-on.webp) 0 0 / 100% auto no-repeat;
}

.nft-skill-badge-wrap.on .nft-skill-badge::after,
.nft-skill-badge-wrap.on span {
  border-color: red;
}

.nft-skill-badge-wrap.disabled .nft-skill-badge::before {
  filter: grayscale(100%);
}

.nft-skill-badge-wrap span {
  position: absolute;
  z-index: 2;
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background: #000;
  border: 2px solid #57568b;
  box-sizing: border-box;
}

.nft-skill-badge-wrap .big-tier {
  bottom: 0;
  left: 50%;
  width: 56px;
  height: 24px;
  border-radius: 20px;
  transform: translateX(-50%);
}

.nft-skill-badge-wrap .sm-tier {
  left: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.nft-skill-grid[data-character-class] [data-character-skill="0"]::before { background-position-x: 0; }
.nft-skill-grid[data-character-class] [data-character-skill="1"]::before { background-position-x: calc(var(--skill-start-x) * -1); }
.nft-skill-grid[data-character-class] [data-character-skill="2"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -1); }
.nft-skill-grid[data-character-class] [data-character-skill="3"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -2); }
.nft-skill-grid[data-character-class] [data-character-skill="4"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -3); }
.nft-skill-grid[data-character-class] [data-character-skill="5"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -4); }
.nft-skill-grid[data-character-class] [data-character-skill="6"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -5); }
.nft-skill-grid[data-character-class] [data-character-skill="7"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -6); }
.nft-skill-grid[data-character-class] [data-character-skill="8"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -7); }
.nft-skill-grid[data-character-class] [data-character-skill="9"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -8); }
.nft-skill-grid[data-character-class] [data-character-skill="10"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -9); }
.nft-skill-grid[data-character-class] [data-character-skill="11"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -10); }
.nft-skill-grid[data-character-class] [data-character-skill="12"]::before { background-position-x: calc(var(--skill-start-x) * -1 + var(--skill-column-gap) * -11); }

.nft-skill-grid[data-character-class="1"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1); }
.nft-skill-grid[data-character-class="1"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * 0) !important; }
.nft-skill-grid[data-character-class="2"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -1); }
.nft-skill-grid[data-character-class="2"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -1) !important; }
.nft-skill-grid[data-character-class="3"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -2); }
.nft-skill-grid[data-character-class="3"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -2) !important; }
.nft-skill-grid[data-character-class="4"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -3); }
.nft-skill-grid[data-character-class="4"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -3) !important; }
.nft-skill-grid[data-character-class="5"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -4); }
.nft-skill-grid[data-character-class="5"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -4) !important; }
.nft-skill-grid[data-character-class="6"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -5); }
.nft-skill-grid[data-character-class="6"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -5) !important; }
.nft-skill-grid[data-character-class="7"] [data-character-skill]::before { background-position-y: calc(var(--skill-start-y) * -1 + var(--skill-row-gap) * -6); }
.nft-skill-grid[data-character-class="7"] .badge-big .nft-skill-badge::before { background-position-y: calc(var(--skill-row-gap) * -6) !important; }

.nft-spirit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.nft-spirit-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 27, 48, 0.92), rgba(14, 14, 36, 0.92));
}

.nft-spirit-card.grade-2 { box-shadow: inset 0 0 0 1px rgba(0, 178, 103, 0.28); }
.nft-spirit-card.grade-3 { box-shadow: inset 0 0 0 1px rgba(51, 145, 255, 0.28); }
.nft-spirit-card.grade-4 { box-shadow: inset 0 0 0 1px rgba(255, 0, 46, 0.28); }
.nft-spirit-card.grade-5 { box-shadow: inset 0 0 0 1px rgba(255, 255, 0, 0.28); }
.nft-spirit-card.grade-6 { box-shadow: inset 0 0 0 1px rgba(229, 115, 0, 0.28); }

.nft-spirit-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.nft-spirit-card.grade-1 .nft-spirit-thumb {
  border: 1px solid rgba(164, 169, 179, 0.46);
  background:
    radial-gradient(circle at 50% 38%, rgba(189, 194, 204, 0.28), transparent 66%),
    linear-gradient(145deg, #555a64, #1d2026);
  box-shadow: inset 0 0 16px rgba(220, 224, 232, 0.12);
}

.nft-spirit-card.grade-2 .nft-spirit-thumb {
  border: 1px solid rgba(71, 190, 111, 0.64);
  background:
    radial-gradient(circle at 50% 36%, rgba(101, 225, 139, 0.42), transparent 65%),
    linear-gradient(145deg, #247b47, #082f1a);
  box-shadow: inset 0 0 17px rgba(72, 213, 116, 0.24), 0 0 10px rgba(45, 166, 86, 0.14);
}

.nft-spirit-card.grade-3 .nft-spirit-thumb {
  border: 1px solid rgba(74, 145, 255, 0.68);
  background:
    radial-gradient(circle at 50% 36%, rgba(94, 169, 255, 0.48), transparent 65%),
    linear-gradient(145deg, #245fae, #091f48);
  box-shadow: inset 0 0 17px rgba(72, 145, 255, 0.28), 0 0 11px rgba(45, 113, 230, 0.16);
}

.nft-spirit-card.grade-4 .nft-spirit-thumb {
  border: 1px solid rgba(224, 65, 101, 0.72);
  background:
    radial-gradient(circle at 50% 36%, rgba(234, 78, 123, 0.5), transparent 65%),
    linear-gradient(145deg, #8c234b, #39091f);
  box-shadow: inset 0 0 17px rgba(229, 60, 108, 0.3), 0 0 11px rgba(203, 39, 80, 0.17);
}

.nft-spirit-card.grade-5 .nft-spirit-thumb {
  border: 1px solid rgba(244, 196, 76, 0.78);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 222, 111, 0.58), transparent 63%),
    linear-gradient(145deg, #9b6d1c, #3c2504);
  box-shadow: inset 0 0 18px rgba(255, 207, 75, 0.32), 0 0 12px rgba(234, 173, 41, 0.19);
}

.nft-spirit-card.grade-6 .nft-spirit-thumb {
  border: 1px solid rgba(255, 137, 48, 0.82);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 169, 76, 0.62), transparent 62%),
    linear-gradient(145deg, #b54d16, #4a1605);
  box-shadow: inset 0 0 18px rgba(255, 125, 40, 0.34), 0 0 13px rgba(229, 91, 20, 0.21);
}

.nft-spirit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nft-spirit-grade {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.nft-spirit-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nft-spirit-copy strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.nft-spirit-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nft-spirits-organized-card { padding:0; overflow:hidden; }
.nft-spirit-group { padding:22px 20px 24px; background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.16)); }
.nft-spirit-group + .nft-spirit-group { border-top:1px solid rgba(255,255,255,.075); }
.nft-spirit-group-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.nft-spirit-group-head h3 { margin:2px 0 3px; font-size:1rem; }
.nft-spirit-group-head > div:first-child > span { color:#747b85; font-size:.52rem; }
.nft-spirit-deck-panel { padding:14px; overflow-x:auto; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(5,7,10,.36); scrollbar-width:thin; }
.nft-spirit-deck-panel[hidden] { display:none; }
.nft-spirit-panel-meta { display:flex; align-items:center; justify-content:space-between; min-width:840px; margin-bottom:11px; padding-bottom:9px; border-bottom:1px solid rgba(255,255,255,.055); }
.nft-spirit-panel-meta span { color:#d9dce1; font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.nft-spirit-panel-meta small { color:#727983; font-size:.53rem; }
.nft-spirit-organized-grid { display:grid; gap:10px; }
.nft-spirit-organized-grid.columns-5 { grid-template-columns:repeat(5,minmax(158px,1fr)); min-width:840px; }
.nft-spirit-organized-grid.columns-6 { grid-template-columns:repeat(6,minmax(140px,1fr)); min-width:890px; }
.nft-spirit-organized-card { min-width:0; padding:10px; border-radius:11px; background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(0,0,0,.2)); }
.nft-spirit-organized-card .nft-spirit-thumb { width:58px; height:58px; flex:0 0 58px; border-radius:50%; }
.nft-spirit-organized-card.is-orb .nft-spirit-thumb img { width:82%; height:82%; margin:9%; object-fit:contain; }
.nft-spirit-organized-card.is-special-orb { border-color:rgba(213,112,255,.28); background:linear-gradient(145deg,rgba(116,45,142,.12),rgba(0,0,0,.22)); }
.nft-spirit-organized-card.is-special-orb .nft-spirit-thumb { outline:1px solid rgba(222,133,255,.3); outline-offset:3px; }
.nft-spirit-organized-card.is-empty { opacity:.38; }
.nft-spirit-organized-card.is-empty .nft-spirit-thumb { display:grid; place-items:center; border:1px solid rgba(164,169,179,.28); background:radial-gradient(circle,rgba(189,194,204,.14),transparent 66%),#252a31; }
.nft-spirit-empty { color:#69717b; font-size:1rem; }
.nft-spirit-organized-card .nft-spirit-grade { top:auto; right:-4px; bottom:-4px; height:18px; padding:0 5px; border:1px solid rgba(255,255,255,.16); font-size:.48rem; line-height:16px; }
.nft-spirit-organized-card .nft-spirit-copy { gap:3px; }
.nft-spirit-organized-card .nft-spirit-copy strong { display:-webkit-box; overflow:hidden; font-size:.6rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.nft-spirit-organized-card .nft-spirit-copy span { overflow:hidden; color:#727983; font-size:.48rem; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:760px) {
  .nft-spirit-group { padding:18px 14px; }
  .nft-spirit-group-head { align-items:stretch; flex-direction:column; }
  .nft-spirit-deck-panel { padding:11px; }
}

.detail-shell {
  display: grid;
  gap: 18px;
}

.clan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.clan-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.character-alias {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.character-alias-pill {
  border-color: rgba(255, 123, 84, 0.45);
  background: rgba(255, 123, 84, 0.1);
}

.chart-wrap {
  width: 100%;
  overflow-x: auto;
}

#power-chart {
  width: 100%;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

code {
  color: #ffd8cf;
  font-family: "Cascadia Code", "Fira Code", monospace;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-copy,
.hero-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.hero-text,
.hero-panel li {
  color: var(--muted);
}

.hero-panel h2 {
  margin-top: 0;
}

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

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

  .menu-group-label {
    grid-column: 1 / -1;
  }

  .content-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 10px;
  }

  .app-topbar,
  .detail-topbar {
    position: relative;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
  }

  .app-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .language-switcher {
    justify-self: end;
  }

  .control-grid,
  .control-grid-clan,
  .control-grid-nfts,
  .control-grid-conquests,
  .control-grid-items,
  .control-grid-xp,
  .stats-grid,
  .summary-grid,
  .overview-grid,
  .detail-grid,
  .stats-grid-four,
  .live-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .control-grid-summon {
    grid-template-columns: 1fr;
  }

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

  .nft-market-head,
  .nft-stats-main {
    grid-template-columns: 1fr;
  }

  .section-group {
    padding: 18px;
  }

  .cover-header-media {
    min-height: 180px;
  }

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

/* 2026 visual refresh */
:root {
  --bg: #07080b;
  --bg-alt: #0d1015;
  --card: rgba(15, 18, 24, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f3f0;
  --muted: #9a9da6;
  --accent: #b80f19;
  --accent-bright: #f04444;
  --accent-soft: #ff8170;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body {
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(184, 15, 25, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(83, 95, 124, 0.1), transparent 28rem),
    linear-gradient(180deg, #07080b 0%, #0a0c11 45%, #07080b 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

::selection {
  color: white;
  background: rgba(216, 27, 38, 0.78);
}

.content-shell {
  width: min(1440px, calc(100% - 40px));
  padding: 16px 0 64px;
}

.app-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  margin-bottom: 22px;
  padding: 9px 10px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 10, 14, 0.86);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px) saturate(130%);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 4px;
}

.topbar-logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  border: 1px solid rgba(255, 100, 100, 0.55);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(145deg, #d21b25, #71060c);
  box-shadow: 0 7px 22px rgba(184, 15, 25, 0.34), inset 0 1px rgba(255, 255, 255, 0.2);
}

.topbar-logo-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.topbar-logo-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
}

.topbar-logo-copy small {
  margin-top: 5px;
  color: #a6a7ad;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.topbar-menu {
  gap: 4px;
  padding: 2px 4px;
  scrollbar-width: none;
}

.topbar-menu::-webkit-scrollbar {
  display: none;
}

.topbar-menu .menu-link {
  position: relative;
  min-height: 44px;
  gap: 7px;
  padding: 7px 10px;
  color: #b3b5bc;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 0.84rem;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.topbar-menu .menu-link:hover {
  color: white;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.topbar-menu .menu-link.active {
  color: white;
  border-color: rgba(255, 78, 78, 0.2);
  background: linear-gradient(145deg, rgba(184, 15, 25, 0.23), rgba(184, 15, 25, 0.08));
}

.topbar-menu .menu-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ee3a42, transparent);
}

.topbar-menu .menu-link-icon {
  width: 25px;
  height: 25px;
  color: #d7c5be;
  border: 0;
  background: transparent;
}

.topbar-menu .menu-link-icon svg {
  width: 15px;
  height: 15px;
}

.menu-search-group {
  position: relative;
  flex: 0 0 auto;
}

.menu-search-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b3b5bc;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.menu-search-toggle > b {
  margin-left: 1px;
  color: #71757d;
  font-size: 0.7rem;
  transition: transform 160ms ease;
}

.menu-search-toggle:hover,
.menu-search-group.active .menu-search-toggle,
.menu-search-group.open .menu-search-toggle {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.menu-search-group.active .menu-search-toggle {
  border-color: rgba(255,78,78,.2);
  background: linear-gradient(145deg,rgba(184,15,25,.23),rgba(184,15,25,.08));
}

.menu-search-group.open .menu-search-toggle > b {
  transform: rotate(180deg);
}

.menu-search-submenu {
  position: absolute;
  z-index: 140;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: 250px;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(9,11,15,.97);
  box-shadow: 0 22px 58px rgba(0,0,0,.58);
  backdrop-filter: blur(18px);
}

.menu-search-group.open .menu-search-submenu {
  display: grid;
}

.menu-search-submenu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #afb3ba;
  background: transparent;
}

.menu-search-submenu a:hover,
.menu-search-submenu a.active {
  border-color: rgba(211,72,70,.18);
  color: #fff;
  background: rgba(184,15,25,.11);
}

.menu-search-submenu a > span:last-child {
  display: grid;
  gap: 2px;
}

.menu-search-submenu strong { font-size: .67rem; }
.menu-search-submenu small { color:#747983; font-size:.51rem; }

@media (min-width:1200px) {
  .topbar-menu { overflow:visible; }
  .menu-search-group:hover .menu-search-submenu { display:grid; }
}

@media (max-width:1199px) {
  .menu-search-group { display:flex; align-items:center; }
  .menu-search-submenu { position:static; width:auto; grid-template-columns:repeat(2,max-content); margin-left:4px; padding:3px; border-radius:9px; box-shadow:none; }
  .menu-search-submenu a { padding:6px 8px; }
  .menu-search-submenu small { display:none; }
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.language-button {
  width: 32px;
  height: 32px;
  background: transparent;
}

.language-button.active {
  border-color: rgba(255, 91, 91, 0.62);
  background: rgba(184, 15, 25, 0.18);
}

.home-hero {
  min-height: clamp(330px, 38vw, 560px);
  margin-bottom: 28px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background: #050608;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(184, 15, 25, 0.08);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 64%, rgba(5, 6, 8, 0.42));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.34);
}

.home-hero-media {
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.home-hero:hover .home-hero-media {
  transform: scale(1.012);
}

.home-tools {
  margin-top: 0;
}

.home-tools::before {
  content: "EXPLORA LAS HERRAMIENTAS";
  display: block;
  margin: 0 0 14px 2px;
  color: #a9a9ae;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.tool-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
  mask-image: none;
}

.tool-overview-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.018));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-overview-card::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.05rem;
  transition: color 180ms ease, transform 180ms ease;
}

.tool-overview-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -52px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(184, 15, 25, 0.1);
  filter: blur(2px);
}

.tool-overview-card:hover {
  z-index: 1;
  transform: translateY(-4px);
  border-color: rgba(238, 58, 66, 0.38);
  background: linear-gradient(145deg, rgba(184, 15, 25, 0.13), rgba(255, 255, 255, 0.028));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32), 0 0 32px rgba(184, 15, 25, 0.07);
}

.tool-overview-card:hover::after {
  color: #ff7676;
  transform: translate(2px, -2px);
}

.tool-overview-icon {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 104, 104, 0.2);
  border-radius: 12px;
  color: #ffd0c9;
  background: linear-gradient(145deg, rgba(202, 25, 35, 0.28), rgba(116, 6, 14, 0.22));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.tool-overview-card strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.tool-overview-card span:last-child {
  color: #999ca5;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tool-page-header {
  position: relative;
  min-height: clamp(300px, 34vw, 480px);
  border-radius: 24px;
  isolation: isolate;
}

.tool-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(4, 5, 7, 0.88) 0%, rgba(4, 5, 7, 0.48) 38%, transparent 68%), linear-gradient(0deg, rgba(4, 5, 7, 0.52), transparent 44%);
}

.tool-page-header-media {
  position: absolute;
  inset: 0;
  background-size: cover;
}

.tool-page-header-copy {
  position: absolute;
  left: clamp(24px, 5vw, 68px);
  bottom: clamp(28px, 6vw, 72px);
  z-index: 2;
  max-width: 430px;
}

.tool-page-header-copy h1,
.tool-masthead h1 {
  margin: 4px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.tool-page-header-copy > p:last-child,
.tool-masthead > div > p:last-child {
  margin: 0;
  color: #b9bbc2;
  line-height: 1.58;
}

.tool-masthead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 230px;
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(26, 29, 37, 0.94), rgba(10, 12, 17, 0.94));
  box-shadow: var(--shadow);
}

.tool-masthead::before,
.tool-masthead::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tool-masthead::before {
  width: 390px;
  height: 390px;
  right: -100px;
  top: -190px;
  border: 1px solid rgba(255, 74, 74, 0.16);
  transform: rotate(45deg);
}

.tool-masthead::after {
  right: 9%;
  bottom: -130px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(184, 15, 25, 0.14);
  filter: blur(80px);
}

.tool-masthead-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  color: #ffd5cf;
  border: 1px solid rgba(255, 96, 96, 0.28);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(199, 22, 33, 0.42), rgba(91, 5, 11, 0.34));
  box-shadow: 0 20px 50px rgba(184, 15, 25, 0.22), inset 0 1px rgba(255, 255, 255, 0.1);
}

.tool-masthead-icon svg {
  width: 38px;
  height: 38px;
}

.tool-masthead > div {
  position: relative;
  z-index: 1;
}

.tool-masthead-xp { background: linear-gradient(120deg, rgba(23, 27, 35, 0.96), rgba(10, 12, 17, 0.95)); }
.tool-masthead-nfts .tool-masthead-icon { color: #f5ddff; }
.tool-masthead-rankings .tool-masthead-icon { color: #d7e9ff; }
.tool-masthead-xp .tool-masthead-icon { color: #ffe8af; }

.section-group {
  margin-top: 28px;
}

.section {
  margin-top: 24px;
}

.compact-head {
  gap: 12px;
  margin-bottom: 16px;
}

.compact-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.section-icon {
  border-color: rgba(255, 88, 88, 0.16);
  color: #ffd0ca;
  background: rgba(184, 15, 25, 0.15);
}

.controls-card,
.table-card,
.embed-frame,
.stat-card {
  border-color: rgba(255, 255, 255, 0.085);
  background: linear-gradient(155deg, rgba(18, 21, 28, 0.91), rgba(11, 13, 18, 0.91));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
}

.controls-card {
  padding: 20px;
}

.field {
  gap: 7px;
}

.field > span {
  padding-left: 2px;
  color: #a5a7af;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 13px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(4, 6, 9, 0.46);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:hover,
.field select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(4, 6, 9, 0.62);
}

.field input:focus,
.field select:focus {
  border-color: rgba(238, 58, 66, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 15, 25, 0.16);
}

.actions-row {
  margin-top: 16px;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid rgba(255, 106, 106, 0.2);
  background: linear-gradient(135deg, #c61520, #8f080f);
  box-shadow: 0 8px 24px rgba(184, 15, 25, 0.22), inset 0 1px rgba(255, 255, 255, 0.16);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 11px 30px rgba(184, 15, 25, 0.32), inset 0 1px rgba(255, 255, 255, 0.16);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.025);
}

.status-note {
  font-size: 0.82rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(184, 15, 25, 0.1);
  filter: blur(10px);
}

.stat-card strong {
  margin-top: 10px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

.table-card {
  padding: 8px;
  overflow: hidden;
}

.table-wrap {
  border-radius: 12px;
}

.rankings-table {
  border-collapse: separate;
  border-spacing: 0;
}

.rankings-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 12px;
  color: #8f929b;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: #101319;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rankings-table td {
  padding: 13px 12px;
  border-bottom-color: rgba(255, 255, 255, 0.055);
  color: #d5d6da;
  font-size: 0.86rem;
}

.rankings-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.rankings-table tbody tr:hover {
  background: rgba(184, 15, 25, 0.075);
}

.power-score,
.character-link {
  color: #ffc2b8;
}

.character-link {
  font-weight: 650;
  text-decoration-color: rgba(255, 194, 184, 0.34);
}

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

.nft-card {
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38);
}

.embed-frame {
  border-radius: 18px;
}

@media (max-width: 1240px) {
  .topbar-logo-copy { display: none; }
  .tool-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .content-shell {
    width: min(100% - 22px, 1440px);
    padding-top: 10px;
  }

  .app-topbar {
    position: sticky;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .topbar-logo-copy { display: grid; }

  .topbar-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -2px;
    overflow-x: auto;
  }

  .topbar-menu .menu-link {
    min-height: 40px;
    padding: 6px 9px;
  }

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

  .section-group {
    padding: 0;
  }

  .tool-page-header {
    min-height: 390px;
  }

  .tool-page-header::after {
    background: linear-gradient(0deg, rgba(4, 5, 7, 0.95) 0%, rgba(4, 5, 7, 0.22) 70%, transparent);
  }

  .tool-page-header-copy {
    right: 24px;
    left: 24px;
    bottom: 28px;
  }

  .tool-masthead {
    min-height: 210px;
  }
}

@media (max-width: 620px) {
  .content-shell {
    width: min(100% - 16px, 1440px);
  }

  .app-topbar {
    margin-bottom: 12px;
    border-radius: 13px;
  }

  .topbar-logo-mark {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .topbar-logo-copy strong { font-size: 0.88rem; }
  .topbar-logo-copy small { font-size: 0.52rem; }
  .language-button { width: 29px; height: 29px; }
  .language-switcher { gap: 2px; }

  .topbar-menu .menu-link-icon {
    display: none;
  }

  .home-hero {
    min-height: 310px;
    margin-bottom: 22px;
    border-radius: 18px;
  }

  .home-hero-media {
    background-position: 42% center;
  }

  .tool-overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-overview-card {
    min-height: 142px;
    padding: 17px;
  }

  .tool-page-header {
    min-height: 340px;
    border-radius: 18px;
  }

  .tool-page-header-media {
    background-position: 38% center;
  }

  .tool-page-header-copy h1,
  .tool-masthead h1 {
    font-size: 2.55rem;
  }

  .tool-masthead {
    align-items: flex-start;
    min-height: 260px;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .tool-masthead-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .tool-masthead-icon svg {
    width: 25px;
    height: 25px;
  }

  .controls-card {
    padding: 15px;
  }

  .actions-row .button {
    flex: 1 1 auto;
  }

  .status-note {
    flex-basis: 100%;
    line-height: 1.45;
  }

  .table-card {
    margin-inline: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Summon simulator */
body[data-tool-page="summon"] .progress-grid { grid-template-columns: 1fr; }
body[data-tool-page="summon"] .section-group:has(#summon-simulator) > .section-group-head { display: none; }
.summon-section { width: 100%; }

.summon-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.48fr);
  gap: 14px;
  align-items: start;
}

.summon-config-card {
  position: sticky;
  top: 88px;
  padding: 20px;
  overflow: hidden;
  border-color: rgba(192, 48, 64, 0.22);
  background:
    radial-gradient(circle at 90% 4%, rgba(188, 24, 40, 0.16), transparent 28%),
    linear-gradient(155deg, rgba(20, 22, 29, 0.98), rgba(10, 12, 17, 0.97));
}

.summon-config-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.summon-config-head h3,
.summon-results-head h3,
.summon-reveal h3 { margin: 2px 0 0; }
.summon-config-head h3 { font-size: 1.05rem; }

.summon-step {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 104, 104, 0.22);
  border-radius: 10px;
  color: #ffaaa1;
  background: rgba(176, 18, 29, 0.15);
  font-size: 0.72rem;
  font-weight: 850;
}

.summon-config-card .control-grid-summon { grid-template-columns: 1fr; gap: 11px; }

.summon-odds-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.summon-subhead,
.summon-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summon-subhead { margin-bottom: 9px; }
.summon-subhead > span { color: #c7c9cf; font-size: 0.72rem; font-weight: 750; }
.summon-subhead small,
.summon-results-head small { color: var(--muted); font-size: 0.65rem; }

.summon-odds { display: grid; gap: 6px; }

.summon-odd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.summon-odd span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #b9bbc2;
  font-size: 0.71rem;
  font-weight: 700;
}

.summon-odd i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #89909a;
  box-shadow: 0 0 9px rgba(137, 144, 154, 0.35);
}

.summon-odd strong { font-size: 0.78rem; }
.summon-odd small { grid-column: 1 / -1; padding-left: 14px; color: #6f737c; font-size: 0.58rem; }
.summon-odd.grade-uncommon i, .summon-odd.grade-refinado i { background: #31c980; box-shadow: 0 0 9px rgba(49, 201, 128, 0.45); }
.summon-odd.grade-rare i, .summon-odd.grade-raro i { background: #4d9fff; box-shadow: 0 0 9px rgba(77, 159, 255, 0.5); }
.summon-odd.grade-epic i, .summon-odd.grade-epico i { background: #ef4261; box-shadow: 0 0 9px rgba(239, 66, 97, 0.5); }
.summon-odd.grade-legendary i, .summon-odd.grade-legendario i { background: #ffd44c; box-shadow: 0 0 11px rgba(255, 212, 76, 0.58); }

.summon-actions { display: grid; gap: 9px; }
.summon-actions .button { width: 100%; min-height: 48px; gap: 8px; }
.summon-actions .status-note { text-align: center; line-height: 1.4; }

.summon-results-panel { display: grid; gap: 12px; min-width: 0; }

.summon-reveal {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 185px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background:
    radial-gradient(circle at 16% 50%, rgba(190, 22, 36, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(22, 25, 33, 0.98), rgba(10, 12, 17, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.summon-reveal::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  transform: rotate(45deg);
}

.summon-sigil {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border: 1px solid rgba(255, 99, 99, 0.28);
  border-radius: 50%;
  color: #ff9d94;
  background: radial-gradient(circle, rgba(188, 19, 32, 0.25), rgba(61, 8, 13, 0.2) 58%, transparent 60%);
  box-shadow: 0 0 38px rgba(184, 15, 25, 0.18), inset 0 0 30px rgba(184, 15, 25, 0.12);
}

.summon-sigil::before,
.summon-sigil i {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 118, 118, 0.24);
  border-radius: 50%;
}

.summon-sigil i { inset: 24px; border-style: solid; transform: rotate(45deg); border-radius: 4px; }
.summon-sigil span { position: relative; z-index: 1; font-size: 2rem; text-shadow: 0 0 18px currentColor; }
.summon-sigil img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34));
}
.summon-reveal-copy { position: relative; z-index: 1; min-width: 0; }
.summon-reveal h3 { overflow-wrap: anywhere; font-size: clamp(1.35rem, 2.5vw, 2.05rem); letter-spacing: -0.035em; }
.summon-reveal-copy > p:last-child { margin: 7px 0 0; color: #979aa3; font-size: 0.79rem; line-height: 1.5; }

.summon-reveal.grade-uncommon, .summon-reveal.grade-refinado { border-color: rgba(49, 201, 128, 0.3); background: radial-gradient(circle at 16% 50%, rgba(31, 164, 96, 0.24), transparent 31%), linear-gradient(135deg, #121e19, #080e0b); }
.summon-reveal.grade-uncommon .summon-sigil, .summon-reveal.grade-refinado .summon-sigil { color: #68dda5; border-color: rgba(74, 222, 151, 0.4); background: radial-gradient(circle, rgba(32, 184, 108, 0.27), rgba(8, 64, 36, 0.2) 58%, transparent 60%); box-shadow: 0 0 44px rgba(38, 190, 112, 0.25), inset 0 0 30px rgba(45, 202, 123, 0.14); }
.summon-reveal.grade-rare, .summon-reveal.grade-raro { border-color: rgba(67, 148, 255, 0.28); background: radial-gradient(circle at 16% 50%, rgba(42, 115, 221, 0.22), transparent 31%), linear-gradient(135deg, #151923, #090c12); }
.summon-reveal.grade-rare .summon-sigil, .summon-reveal.grade-raro .summon-sigil { color: #68aeff; border-color: rgba(75, 157, 255, 0.38); box-shadow: 0 0 42px rgba(55, 129, 238, 0.23); }
.summon-reveal.grade-epic, .summon-reveal.grade-epico { border-color: rgba(239, 66, 97, 0.32); background: radial-gradient(circle at 16% 50%, rgba(211, 37, 70, 0.26), transparent 31%), linear-gradient(135deg, #1c151b, #0d090d); }
.summon-reveal.grade-epic .summon-sigil, .summon-reveal.grade-epico .summon-sigil { color: #ff617e; border-color: rgba(255, 80, 112, 0.4); box-shadow: 0 0 44px rgba(225, 43, 77, 0.26); }
.summon-reveal.grade-legendary, .summon-reveal.grade-legendario { border-color: rgba(255, 211, 67, 0.34); background: radial-gradient(circle at 16% 50%, rgba(218, 155, 20, 0.27), transparent 31%), linear-gradient(135deg, #211c11, #0d0b08); }
.summon-reveal.grade-legendary .summon-sigil, .summon-reveal.grade-legendario .summon-sigil { color: #ffdb5b; border-color: rgba(255, 220, 91, 0.42); box-shadow: 0 0 48px rgba(231, 178, 31, 0.3); }

.summon-reveal.is-running .summon-sigil { animation: summon-pulse 0.8s ease-in-out infinite alternate; }
.summon-reveal.is-running .summon-sigil::before { animation: summon-spin 2s linear infinite; }
@keyframes summon-pulse { to { transform: scale(1.06); filter: brightness(1.35); } }
@keyframes summon-spin { to { transform: rotate(360deg); } }

.summon-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.summon-summary-grid article { display: grid; gap: 7px; min-width: 0; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 11px; background: rgba(16, 19, 25, 0.88); }
.summon-summary-grid span { overflow: hidden; color: #81858e; font-size: 0.61rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
.summon-summary-grid strong { overflow: hidden; font-size: 1.22rem; text-overflow: ellipsis; white-space: nowrap; }

.summon-table-card { padding: 0; }
.summon-results-head { padding: 16px 17px 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.075); }
.summon-results-head h3 { font-size: 1rem; }
.summon-results-table td { vertical-align: middle; }
.summon-item-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.summon-item-cell strong { font-size: 0.78rem; font-weight: 720; }
.summon-item-gem { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #979ca7; background: rgba(255, 255, 255, 0.04); }
.summon-item-gem img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28)); }
.summon-grade-badge, .summon-count { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; color: #aaaeb7; background: rgba(255, 255, 255, 0.035); font-size: 0.67rem; font-weight: 780; }
.summon-count { min-width: 42px; color: #fff1ee; border-color: rgba(225, 75, 79, 0.2); background: rgba(181, 28, 35, 0.12); }
.summon-chance { color: #8d919a; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.summon-result-row.grade-uncommon .summon-item-gem, .summon-result-row.grade-refinado .summon-item-gem, .summon-result-row.grade-uncommon .summon-grade-badge, .summon-result-row.grade-refinado .summon-grade-badge { color: #68dda5; border-color: rgba(49, 201, 128, 0.24); background: rgba(49, 201, 128, 0.08); }
.summon-result-row.grade-rare .summon-item-gem, .summon-result-row.grade-raro .summon-item-gem, .summon-result-row.grade-rare .summon-grade-badge, .summon-result-row.grade-raro .summon-grade-badge { color: #76b7ff; border-color: rgba(77, 159, 255, 0.28); background: rgba(77, 159, 255, 0.09); }
.summon-result-row.grade-epic .summon-item-gem, .summon-result-row.grade-epico .summon-item-gem, .summon-result-row.grade-epic .summon-grade-badge, .summon-result-row.grade-epico .summon-grade-badge { color: #ff6a85; border-color: rgba(239, 66, 97, 0.3); background: rgba(239, 66, 97, 0.09); }
.summon-result-row.grade-legendary .summon-item-gem, .summon-result-row.grade-legendario .summon-item-gem, .summon-result-row.grade-legendary .summon-grade-badge, .summon-result-row.grade-legendario .summon-grade-badge { color: #ffdc67; border-color: rgba(255, 212, 76, 0.3); background: rgba(255, 212, 76, 0.09); }

@media (max-width: 980px) {
  .summon-workspace { grid-template-columns: 1fr; }
  .summon-config-card { position: static; }
  .summon-config-card .control-grid-summon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summon-odds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .summon-config-card .control-grid-summon,
  .summon-odds,
  .summon-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summon-config-card .field:first-child { grid-column: 1 / -1; }
  .summon-reveal { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; min-height: 145px; padding: 20px 17px; }
  .summon-sigil { width: 70px; height: 70px; }
  .summon-sigil i { inset: 17px; }
  .summon-sigil span { font-size: 1.4rem; }
  .summon-reveal h3 { font-size: 1.22rem; }
  .summon-results-head { align-items: flex-start; }
  .summon-results-head > small { display: none; }
}

/* Persistent top-power board */
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

.power-board {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
  border-top: 1px solid rgba(255, 104, 104, 0.23);
  background: rgba(7, 9, 13, 0.95);
  box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.power-board-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(110deg, rgba(161, 14, 23, 0.38), rgba(28, 12, 16, 0.94));
  box-shadow: 12px 0 25px rgba(0, 0, 0, 0.26);
}

.power-board-label div { display: grid; gap: 1px; }
.power-board-label strong { color: #fff2ef; font-size: 0.82rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.08em; }
.power-board-label small { color: #c87e78; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; white-space: nowrap; }

.power-board-live {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ee4d4d;
  box-shadow: 0 0 11px rgba(238, 77, 77, 0.8);
  animation: power-board-live 1.3s ease-in-out infinite alternate;
}

@keyframes power-board-live { to { opacity: 0.45; transform: scale(0.78); } }

.power-board-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.power-board-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: power-board-scroll 190s linear infinite;
}

.power-board:hover .power-board-track,
.power-board:focus-within .power-board-track { animation-play-state: paused; }

@keyframes power-board-scroll { to { transform: translateX(-50%); } }

.power-board-group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 8px 0 0;
}

.power-board-player {
  display: grid;
  grid-template-columns: auto 38px minmax(86px, auto) auto;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  height: 48px;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.power-board-player:hover,
.power-board-player:focus-visible {
  border-color: rgba(238, 77, 77, 0.34);
  outline: 0;
  background: rgba(171, 22, 31, 0.12);
  transform: translateY(-1px);
}

.power-board-rank { color: #6f737c; font-size: 0.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.power-board-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(179, 23, 33, 0.22), rgba(23, 26, 34, 0.9));
}

.power-board-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.power-board-name { overflow: hidden; color: #d9dbe0; font-size: 0.72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.power-board-player > strong { color: #ff8d81; font-size: 0.72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.power-board-empty { margin: 0; padding: 22px; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 620px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .power-board { grid-template-columns: 94px minmax(0, 1fr); height: calc(58px + env(safe-area-inset-bottom)); }
  .power-board-label { gap: 7px; padding: 0 10px; }
  .power-board-label strong { font-size: 0.7rem; }
  .power-board-label small { font-size: 0.46rem; letter-spacing: 0.05em; }
  .power-board-live { width: 6px; height: 6px; }
  .power-board-player { grid-template-columns: auto 32px minmax(74px, auto) auto; min-width: 200px; height: 44px; padding-inline: 7px 10px; }
  .power-board-avatar { width: 31px; height: 31px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .power-board-live { animation: none; }
  .power-board-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .power-board-track { animation: none; }
  .power-board-group[aria-hidden="true"] { display: none; }
}

/* Home competitive summary */
.home-competitive { display: grid; gap: 26px; margin-top: 28px; }
.home-ranking-block { display: grid; gap: 13px; }

.home-ranking-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-ranking-head h2 { margin: 4px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 500; letter-spacing: -0.035em; }
.home-ranking-head p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.home-ranking-head > a { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #c9cbd1; background: rgba(255,255,255,.025); font-size: .72rem; font-weight: 720; }
.home-ranking-head > a:hover { border-color: rgba(238,77,77,.3); color: white; background: rgba(177,22,31,.1); }
.home-ranking-head > a span { color: #f06d63; font-size: 1rem; }

.home-growth-grid,
.home-clan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.home-growth-card,
.home-clan-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(19,22,29,.96), rgba(10,12,17,.96));
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-growth-card:hover,
.home-clan-card:hover { transform: translateY(-2px); border-color: rgba(238,77,77,.26); box-shadow: 0 19px 45px rgba(0,0,0,.28); }
.home-growth-card.rank-1, .home-clan-card.rank-1 { border-color: rgba(231,184,62,.25); background: radial-gradient(circle at 92% 5%, rgba(212,157,27,.13), transparent 28%), linear-gradient(150deg, rgba(23,23,25,.97), rgba(12,12,14,.97)); }

.home-card-rank { position: absolute; top: 11px; right: 12px; z-index: 2; color: #747882; font-size: .65rem; font-weight: 850; }
.rank-1 > .home-card-rank { color: #e3be5c; }

.home-growth-card { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 15px; }
.home-growth-avatar { width: 54px; height: 54px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(152,24,32,.14); }
.home-growth-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.home-growth-copy { display: grid; align-content: center; gap: 4px; min-width: 0; padding-right: 24px; }
.home-growth-copy strong, .home-clan-copy strong { overflow: hidden; color: #f0f0f2; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.home-growth-copy span, .home-clan-copy span { overflow: hidden; color: #7e828c; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.home-growth-power { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0 10px; border-top: 1px solid rgba(255,255,255,.065); border-bottom: 1px solid rgba(255,255,255,.065); }
.home-growth-power strong { color: #5fd998; font-size: 1.28rem; letter-spacing: -.025em; }
.home-growth-power span { color: #71b991; font-size: .64rem; font-weight: 700; }
.home-growth-current { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-growth-current span, .home-clan-total span, .home-clan-average span { color: #777b84; font-size: .62rem; }
.home-growth-current strong { color: #e7e8eb; font-size: .78rem; }

.home-clans-block { padding-top: 3px; }
.home-clan-card { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 11px; padding: 15px; }
.home-clan-shield { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(226,65,72,.2); border-radius: 12px; color: #ef7777; background: linear-gradient(145deg, rgba(180,20,31,.2), rgba(69,10,15,.15)); }
.home-clan-shield svg { width: 22px; height: 22px; }
.home-clan-copy { display: grid; gap: 4px; min-width: 0; padding-right: 22px; }
.home-clan-total { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 0 10px; border-top: 1px solid rgba(255,255,255,.065); }
.home-clan-total strong { color: #ff8d81; font-size: 1.17rem; letter-spacing: -.025em; }
.home-clan-average { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-clan-average strong { color: #d7d9dd; font-size: .76rem; }
.home-servers-block { padding-top: 3px; }
.home-server-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.home-server-card { position: relative; display: grid; gap: 11px; min-width: 0; padding: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.085); border-radius: 15px; background: radial-gradient(circle at 8% 0, rgba(62,114,164,.11), transparent 28%), linear-gradient(150deg, rgba(18,22,28,.97), rgba(9,12,16,.97)); box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.home-server-card.rank-1 { border-color: rgba(231,184,62,.28); background: radial-gradient(circle at 90% 5%, rgba(213,162,33,.15), transparent 30%), linear-gradient(150deg, rgba(24,23,22,.98), rgba(11,12,14,.98)); }
.home-server-heading { display: flex; align-items: center; gap: 10px; padding-right: 25px; }
.home-server-emblem { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; border: 1px solid rgba(92,158,211,.23); border-radius: 12px; color: #9bc8e8; background: linear-gradient(145deg, rgba(39,105,158,.22), rgba(13,48,73,.17)); font-size: .61rem; font-weight: 850; letter-spacing: .04em; }
.home-server-heading > div { display: grid; min-width: 0; gap: 3px; }
.home-server-heading small { color: #747b85; font-size: .53rem; text-transform: uppercase; letter-spacing: .08em; }
.home-server-heading strong { overflow: hidden; color: #eff1f3; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.home-server-power { display: grid; gap: 4px; padding: 12px 0 10px; border-top: 1px solid rgba(255,255,255,.065); border-bottom: 1px solid rgba(255,255,255,.065); }
.home-server-power span { color: #757b84; font-size: .56rem; }
.home-server-power strong { color: #8ec8ef; font-size: 1.18rem; letter-spacing: -.025em; }
.home-server-card.rank-1 .home-server-power strong { color: #edc968; }
.home-server-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.home-server-stats > span { display: grid; min-width: 0; gap: 3px; }
.home-server-stats > span + span { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.065); }
.home-server-stats small { color: #686e77; font-size: .48rem; }
.home-server-stats strong { overflow: hidden; color: #cdd0d4; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.home-server-top-clan { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.055); }
.home-server-top-clan span { grid-column: 1 / -1; color: #686e76; font-size: .48rem; }
.home-server-top-clan strong { overflow: hidden; color: #e2e3e5; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.home-server-top-clan b { color: #9da3aa; font-size: .58rem; }
.home-weak-servers-block { padding-top: 3px; }
.home-weak-server-card { background: radial-gradient(circle at 8% 0, rgba(132,73,77,.1), transparent 28%), linear-gradient(150deg, rgba(22,20,24,.97), rgba(11,11,15,.97)); }
.home-weak-server-card.rank-1 { border-color: rgba(193,93,93,.25); background: radial-gradient(circle at 90% 5%, rgba(153,61,66,.13), transparent 30%), linear-gradient(150deg, rgba(25,20,22,.98), rgba(13,11,14,.98)); }
.home-weak-server-card .home-server-emblem { color: #d6a5a7; border-color: rgba(190,91,98,.23); background: linear-gradient(145deg, rgba(132,49,57,.2), rgba(61,20,25,.16)); }
.home-weak-server-card .home-server-power strong, .home-weak-server-card.rank-1 .home-server-power strong { color: #d89498; }
.home-weak-server-card.rank-1 > .home-card-rank { color: #dc9297; }
.home-ranking-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.025); text-align: center; }

@media (max-width: 1020px) {
  .home-growth-grid, .home-clan-grid, .home-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-competitive { margin-top: 21px; gap: 23px; }
  .home-ranking-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-ranking-head > a { width: 100%; justify-content: center; }
  .home-growth-grid, .home-clan-grid, .home-server-grid { grid-template-columns: 1fr; }
}

/* XP calculator */
body[data-tool-page="xp"] .progress-grid { grid-template-columns: 1fr; }
body[data-tool-page="xp"] .section-group:has(#xp-calculator) > .section-group-head { display: none; }
body[data-tool-page="xp"] #xp-calculator { width: 100%; }
.tool-masthead-xp { background: radial-gradient(circle at 82% 30%, rgba(212, 157, 34, 0.13), transparent 25%), linear-gradient(120deg, rgba(24, 27, 34, 0.97), rgba(10, 12, 17, 0.96)); }
.tool-masthead-xp .tool-masthead-icon { border-color: rgba(236, 190, 82, 0.25); background: linear-gradient(145deg, rgba(166, 111, 17, 0.3), rgba(73, 43, 4, 0.25)); box-shadow: 0 20px 50px rgba(163, 105, 15, 0.16), inset 0 1px rgba(255,255,255,.1); }

.xp-layout { display: grid; gap: 13px; }

.xp-time-panel {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(390px, 1.4fr) minmax(310px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 15px;
  background: radial-gradient(circle at 96% 5%, rgba(202,148,30,.09), transparent 26%), linear-gradient(150deg, rgba(18,21,27,.96), rgba(10,12,17,.96));
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.xp-time-copy h3, .xp-card-head h3, .xp-results-head h3 { margin: 3px 0 0; }
.xp-time-copy h3 { font-size: 1rem; }
.xp-time-copy > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.42; }

.xp-region-list { display: grid; grid-template-columns: repeat(5, minmax(62px,1fr)); gap: 6px; }
.xp-region-list button { display: grid; gap: 3px; min-height: 48px; place-content: center; border: 1px solid rgba(255,255,255,.075); border-radius: 9px; outline: 0; color: #a8abb3; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.xp-region-list button:hover { border-color: rgba(225,179,67,.28); transform: translateY(-1px); }
.xp-region-list button:focus-visible { box-shadow: 0 0 0 3px rgba(200,145,32,.16); }
.xp-region-list button span { font-size: .68rem; font-weight: 820; letter-spacing: .06em; }
.xp-region-list button small { color: #676b74; font-size: .54rem; }
.xp-region-list button.active { border-color: rgba(230,184,74,.4); color: #ffe3a0; background: linear-gradient(145deg, rgba(167,111,15,.2), rgba(74,44,5,.14)); box-shadow: inset 0 0 0 1px rgba(238,190,76,.05); }
.xp-region-list button.active small { color: #b99b5b; }

.xp-clock-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.xp-clock { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(3,5,8,.32); }
.xp-clock.is-server { border-color: rgba(230,184,74,.22); background: linear-gradient(145deg, rgba(139,91,13,.12), rgba(3,5,8,.36)); }
.xp-clock span, .xp-clock small { overflow: hidden; color: #777b84; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.xp-clock span b { color: #ddb959; }
.xp-clock strong { color: #ffe1a0; font-size: 1.12rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.xp-clock.is-local strong { color: #d5d7dc; }

.xp-workspace { display: grid; grid-template-columns: minmax(310px,.75fr) minmax(0,1.55fr); gap: 13px; align-items: stretch; }
.xp-input-card { padding: 20px; border-color: rgba(221,174,64,.15); }
.xp-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.xp-card-head > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(225,179,67,.2); border-radius: 10px; color: #e2bd66; background: rgba(153,99,12,.12); font-size: .7rem; font-weight: 800; }
.xp-card-head h3 { font-size: 1.02rem; }
.xp-input-card .control-grid-xp { grid-template-columns: 1fr; gap: 11px; }

.xp-manual-box { display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: center; gap: 14px; margin-top: 17px; padding: 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: rgba(255,255,255,.025); }
.xp-manual-box > div:first-child { display: grid; gap: 2px; }
.xp-manual-box > div:first-child span, .xp-manual-box > div:first-child small { color: #777b84; font-size: .58rem; }
.xp-manual-box > div:first-child strong { color: #ffe09a; font-size: 1.4rem; line-height: 1.05; }
.xp-manual-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
.xp-manual-actions .button { width: 100%; min-height: 36px; }
.xp-status { display: block; margin-top: 12px; line-height: 1.45; }

.xp-results-panel { display: grid; align-content: start; gap: 12px; padding: 20px; border: 1px solid rgba(255,255,255,.085); border-radius: 15px; background: radial-gradient(circle at 90% 0, rgba(197,143,25,.09), transparent 26%), linear-gradient(150deg, rgba(18,21,28,.96), rgba(10,12,17,.96)); box-shadow: 0 16px 42px rgba(0,0,0,.22); }
.xp-results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.xp-results-head h3 { font-size: 1.05rem; }
.xp-results-head > span { display: inline-flex; align-items: center; gap: 6px; color: #8fae94; font-size: .61rem; }
.xp-results-head > span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: #62ca7e; box-shadow: 0 0 8px rgba(98,202,126,.6); }

.xp-stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.xp-stats-grid article { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 11px; min-height: 108px; padding: 15px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.024); }
.xp-stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(226,181,72,.2); border-radius: 11px; color: #e2bd66; background: rgba(150,98,13,.1); font-size: .7rem; font-weight: 820; }
.xp-stats-grid article > div { display: grid; min-width: 0; gap: 3px; }
.xp-stats-grid article > div > span, .xp-stats-grid article small { color: #777b84; font-size: .58rem; }
.xp-stats-grid article strong { overflow: hidden; color: #f3f0e9; font-size: clamp(1.12rem,2vw,1.55rem); letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.xp-stats-grid article:first-child strong { color: #ffe09a; }

.xp-formula-note { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(255,255,255,.02); }
.xp-formula-note > span { display: grid; width: 22px; height: 22px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #c7aa68; background: rgba(190,140,30,.11); font-family: Georgia,serif; font-size: .7rem; }
.xp-formula-note p { margin: 0; color: #777b84; font-size: .63rem; line-height: 1.45; }
.xp-formula-note strong { color: #aeb0b6; }

@media (max-width: 1100px) {
  .xp-time-panel { grid-template-columns: 1fr 1.65fr; }
  .xp-clock-grid { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .xp-time-panel, .xp-workspace { grid-template-columns: 1fr; }
  .xp-clock-grid { grid-column: auto; }
}

@media (max-width: 520px) {
  .xp-region-list { grid-template-columns: repeat(5, 72px); overflow-x: auto; padding-bottom: 3px; }
  .xp-clock-grid, .xp-stats-grid { grid-template-columns: 1fr; }
  .xp-manual-box { grid-template-columns: 1fr; }
  .xp-manual-actions { grid-template-columns: 1fr 1fr; }
  .xp-results-panel, .xp-input-card { padding: 15px; }
}

/* Mir4Tools hub */
.tool-masthead-mir4tools { background: radial-gradient(circle at 83% 28%, rgba(67, 126, 184, .16), transparent 27%), linear-gradient(120deg, rgba(22, 27, 35, .97), rgba(9, 12, 17, .97)); }
.tool-masthead-mir4tools .tool-masthead-icon { color: #cce8ff; border-color: rgba(101, 171, 225, .27); background: linear-gradient(145deg, rgba(42, 111, 169, .34), rgba(17, 51, 81, .27)); box-shadow: 0 20px 50px rgba(35, 107, 164, .18), inset 0 1px rgba(255,255,255,.1); }
.mir4tools-group { display: grid; gap: 18px; margin-top: 0; }
.mir4tools-group.tool-group-hidden { display: none; }

.mir4tools-module-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.mir4tools-module-strip article { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.022); opacity: .62; }
.mir4tools-module-strip article.active { border-color: rgba(83,156,215,.2); background: linear-gradient(145deg, rgba(42,105,158,.12), rgba(255,255,255,.02)); opacity: 1; }
.mir4tools-module-strip article > span { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #91bddd; background: rgba(255,255,255,.03); }
.mir4tools-module-strip svg { width: 19px; height: 19px; }
.mir4tools-module-strip article > div { display: grid; gap: 3px; min-width: 0; }
.mir4tools-module-strip strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.mir4tools-module-strip small { overflow: hidden; color: #747983; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.mir4tools-module-strip b { position: absolute; top: 6px; right: 7px; color: #686c75; font-size: .48rem; font-weight: 720; }
.mir4tools-module-strip .active b { color: #6bb48d; }

.mir4tools-panel { display: grid; gap: 12px; margin-top: 0; padding: 20px; border: 1px solid rgba(255,255,255,.085); border-radius: 17px; background: radial-gradient(circle at 96% 0, rgba(46,116,170,.08), transparent 24%), linear-gradient(155deg, rgba(17,20,27,.96), rgba(9,11,16,.96)); box-shadow: 0 18px 48px rgba(0,0,0,.23); }
.mir4tools-panel + .mir4tools-panel { margin-top: 4px; }
.mir4tools-panel-head { display: flex; align-items: center; gap: 12px; }
.mir4tools-panel-head .section-icon { flex: 0 0 auto; margin: 0; color: #acd8f5; border-color: rgba(86,154,207,.2); background: rgba(37,103,153,.13); }
.mir4tools-building-preview { position: relative; display: grid; width: 68px; height: 68px; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(86,154,207,.22); border-radius: 15px; color: #acd8f5; background: radial-gradient(circle at 50% 38%, rgba(83,157,214,.23), transparent 65%), linear-gradient(145deg, #24384b, #0c1822); }
.mir4tools-building-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mir4tools-building-preview span { display: grid; place-items: center; }
.mir4tools-building-preview svg { width: 27px; height: 27px; }
.mir4tools-panel-head h2 { margin: 2px 0 3px; font-size: 1.28rem; letter-spacing: -.025em; }
.mir4tools-panel-head > div:last-child > p:last-child { margin: 0; color: var(--muted); font-size: .69rem; }

.mir4tools-controls { display: grid; grid-template-columns: minmax(210px,1.3fr) minmax(120px,.5fr) auto auto; align-items: end; gap: 9px; padding: 14px; box-shadow: none; }
.mir4tools-step-actions { display: flex; gap: 6px; }
.mir4tools-step-actions .button { white-space: nowrap; }
.mir4tools-status { min-height: 18px; padding: 0 3px; }

.mir4tools-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.mir4tools-kpis article { display: grid; gap: 7px; min-width: 0; padding: 13px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.022); }
.mir4tools-kpis span { color: #747983; font-size: .59rem; font-weight: 680; text-transform: uppercase; letter-spacing: .06em; }
.mir4tools-kpis strong { overflow: hidden; color: #dde9f1; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.mir4tools-kpis article:nth-child(2) strong { color: #8fcaf1; }

.mir4tools-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.mir4tools-detail-card { min-width: 0; padding: 15px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.022); }
.mir4tools-subhead { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.065); }
.mir4tools-subhead > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(83,156,215,.18); border-radius: 8px; color: #85bce3; background: rgba(41,105,154,.1); font-size: .58rem; font-weight: 800; }
.mir4tools-subhead h3, .mir4tools-table-head h3 { margin: 2px 0 0; font-size: .92rem; }
.mir4tools-detail-card > .stack-list { max-height: 270px; overflow-y: auto; padding-right: 3px; }
.mir4tools-detail-card .stack-item { padding: 9px 10px; border-radius: 9px; color: #aeb2ba; background: rgba(255,255,255,.025); font-size: .68rem; }
.mir4tools-detail-card .stack-item strong { color: #93c5e8; }
.mir4tools-stack-with-icon { display: flex; align-items: center; gap: 9px; }
.mir4tools-stack-with-icon img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: radial-gradient(circle, rgba(89,147,190,.18), rgba(7,12,18,.5)); }
.mir4tools-stack-with-icon > span { min-width: 0; }
.mir4tools-selected-item img { width: 44px; height: 44px; }
.mir4tools-effects-card { padding: 0; }
.mir4tools-table-head { padding: 14px 16px 11px; border-bottom: 1px solid rgba(255,255,255,.07); }

.mir4tools-item-controls { grid-template-columns: minmax(160px,.65fr) minmax(240px,1.4fr) auto; }
.mir4tools-item-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mir4tools-items-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 9px; align-items: start; }
.mir4tools-items-layout > .table-card { padding: 0; }
.mir4tools-items-layout .table-wrap { max-height: 520px; overflow: auto; }
.mir4tools-item-name { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.mir4tools-item-name img { width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: radial-gradient(circle, rgba(89,147,190,.16), rgba(7,12,18,.5)); }
.mir4tools-item-name strong { font-size: .74rem; font-weight: 720; }
.mir4tools-recipe-detail { position: sticky; top: 88px; max-height: 520px; overflow-y: auto; }
.mir4tools-recipe-detail .recipe-variant { padding: 10px; border-radius: 9px; }
.mir4tools-recipe-detail .recipe-variant-title { color: #8bc0e6; font-size: .7rem; }

@media (max-width: 1050px) {
  .mir4tools-module-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mir4tools-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mir4tools-item-controls { grid-template-columns: minmax(150px,.7fr) minmax(220px,1.3fr) auto; }
  .mir4tools-items-layout { grid-template-columns: 1fr; }
  .mir4tools-recipe-detail { position: static; max-height: none; }
}

@media (max-width: 680px) {
  .mir4tools-panel { padding: 14px; }
  .mir4tools-module-strip, .mir4tools-controls, .mir4tools-item-controls, .mir4tools-kpis, .mir4tools-detail-grid { grid-template-columns: 1fr; }
  .mir4tools-item-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mir4tools-step-actions .button { flex: 1; }
  .mir4tools-panel-head { align-items: flex-start; }
  .mir4tools-panel-head > div:last-child > p:last-child { line-height: 1.45; }
}

/* Conquest planner — visual language adapted from the original Mir4Tools */
.conquest-planner {
  display: grid;
  gap: 18px;
  margin-top: 0;
  padding: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 10%, rgba(72,106,139,.12), transparent 34%), #090b10;
  box-shadow: 0 24px 68px rgba(0,0,0,.34);
}

.conquest-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 0;
}

.conquest-intro h2 { margin: 3px 0 0; font-size: clamp(1.28rem,2vw,1.72rem); letter-spacing: -.035em; }
.conquest-intro > p { max-width: 470px; margin: 0; color: #777d87; font-size: .68rem; line-height: 1.55; text-align: right; }

.conquest-world { position: relative; display: grid; gap: 7px; }
.conquest-world-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-color: rgba(203,166,79,.55) rgba(255,255,255,.04); scrollbar-width: thin; }
.conquest-world-canvas { position: relative; width: 100%; min-width: 1260px; aspect-ratio: 2813 / 809; overflow: hidden; background: #0c1218 url('mir4tools/conquests/main-blur.png') center/cover no-repeat; }
.conquest-world-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,7,10,.14), transparent 38%, rgba(3,5,8,.5)); box-shadow: inset 0 0 55px rgba(0,0,0,.55); }
.conquest-world-canvas > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.conquest-world > small { padding: 0 24px; color: #626873; font-size: .56rem; text-align: right; }

.conquest-hotspot { position: absolute; z-index: 2; top: 7%; width: 10.5%; height: 77%; padding: 0; border: 1px solid transparent; border-radius: 48% 48% 22% 22%; color: #edf1f3; background: transparent; cursor: pointer; transition: border-color .2s ease, background .2s ease, filter .2s ease; }
.conquest-hotspot::before { content: ""; position: absolute; left: 50%; bottom: 21%; width: 7px; height: 7px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(6,9,13,.75); box-shadow: 0 0 0 4px rgba(0,0,0,.28); transform: translateX(-50%); transition: .2s ease; }
.conquest-hotspot span { position: absolute; left: 50%; bottom: 4%; width: max-content; max-width: 132px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #d9dce0; background: rgba(7,9,13,.8); box-shadow: 0 5px 18px rgba(0,0,0,.45); font-size: .57rem; font-weight: 760; letter-spacing: .01em; line-height: 1.2; text-align: center; transform: translateX(-50%); backdrop-filter: blur(7px); }
.conquest-hotspot:hover { border-color: rgba(231,193,93,.34); background: linear-gradient(180deg, transparent 30%, rgba(220,172,52,.07)); }
.conquest-hotspot:hover span, .conquest-hotspot.active span { color: #fff3c9; border-color: rgba(232,192,88,.55); background: rgba(43,34,14,.88); }
.conquest-hotspot.active { border-color: rgba(238,197,90,.62); background: linear-gradient(180deg, rgba(255,218,118,.025), rgba(206,153,29,.14)); filter: drop-shadow(0 0 12px rgba(231,180,50,.3)); }
.conquest-hotspot.active::before { border-color: #fff0ad; background: #e6b94d; box-shadow: 0 0 0 4px rgba(230,185,77,.16), 0 0 14px #e1ae39; }
.conquest-hotspot-mine { left: 2%; }
.conquest-hotspot-forge { left: 12%; }
.conquest-hotspot-hydra { left: 22%; }
.conquest-hotspot-conquest { left: 31.5%; }
.conquest-hotspot-quintessence { left: 41%; }
.conquest-hotspot-tree { left: 48.5%; }
.conquest-hotspot-portal { left: 57%; }
.conquest-hotspot-victory { left: 67%; }
.conquest-hotspot-training { left: 76%; }
.conquest-hotspot-shrine { left: 86%; }

.conquest-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

.conquest-stage-switcher { display: grid; grid-template-columns: 34px auto 48px 34px; align-items: center; justify-content: center; gap: 4px; width: max-content; margin: -2px auto 0; padding: 5px; border: 1px solid rgba(219,179,77,.25); border-radius: 999px; background: linear-gradient(180deg, rgba(35,36,39,.98), rgba(18,19,22,.98)); box-shadow: 0 10px 30px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.06); }
.conquest-stage-switcher label { padding-left: 7px; color: #aeb2b8; font-size: .63rem; font-weight: 720; }
.conquest-stage-switcher input { width: 45px; height: 30px; padding: 0 3px; border: 0; color: #f3d984; background: transparent; font-family: inherit; font-size: .82rem; font-weight: 800; text-align: center; appearance: textfield; }
.conquest-stage-switcher input::-webkit-inner-spin-button { appearance: none; }
.conquest-stage-switcher button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: #e5e7e9; background: rgba(255,255,255,.035); font-size: 1.2rem; cursor: pointer; }
.conquest-stage-switcher button:hover { color: #ffe69a; border-color: rgba(225,183,72,.4); background: rgba(204,154,34,.12); }
.conquest-status { min-height: 16px; margin: -8px auto 0; color: #68707a; font-size: .57rem; text-align: center; }

.conquest-upgrade-header { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(420px,1.15fr); align-items: center; gap: 22px; margin: 0 24px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: linear-gradient(120deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }
.conquest-building-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.conquest-building-preview { position: relative; display: grid; width: 74px; height: 74px; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(220,180,79,.34); border-radius: 11px; color: #efd47f; background: radial-gradient(circle at 50% 40%, rgba(212,167,57,.25), transparent 64%), #12151a; box-shadow: inset 0 0 22px rgba(0,0,0,.38); }
.conquest-building-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.conquest-building-preview svg { width: 27px; height: 27px; }
.conquest-building-identity p { margin: 0 0 3px; color: #747a83; font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; }
.conquest-building-identity h3 { overflow: hidden; margin: 0 0 6px; color: #f3f1eb; font-size: 1.08rem; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.conquest-building-identity > div:last-child > strong { color: #d1a947; font-size: .71rem; }
.conquest-upgrade-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.conquest-upgrade-metrics article { display: grid; gap: 6px; min-width: 0; padding: 7px 16px; border-left: 1px solid rgba(255,255,255,.08); }
.conquest-upgrade-metrics span { color: #717780; font-size: .55rem; text-transform: uppercase; letter-spacing: .07em; }
.conquest-upgrade-metrics strong { overflow: hidden; color: #e8e9e7; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.conquest-upgrade-metrics article:nth-child(2) strong { color: #82d69b; }

.conquest-content { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(290px,.75fr); gap: 12px; margin: 0 24px; }
.conquest-effects-panel, .conquest-requirements-panel, .conquest-costs-panel { min-width: 0; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.022); }
.conquest-section-title { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.065); }
.conquest-section-title > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(219,179,77,.25); border-radius: 50%; color: #d1a947; background: rgba(179,127,20,.09); font-size: .55rem; font-weight: 800; }
.conquest-section-title h3 { margin: 2px 0 0; font-size: .86rem; }
.conquest-effects-panel .table-wrap { max-height: 310px; overflow-y: auto; }
.conquest-effects-panel table th, .conquest-effects-panel table td { padding: 10px 14px; }
.conquest-effects-panel table th:last-child, .conquest-effects-panel table td:last-child { color: #70d391; }
.conquest-effects-panel table td:first-child { color: #c5c8cc; }

.conquest-requirements-panel > .stack-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 310px; padding: 12px; overflow-y: auto; }
.conquest-requirements-panel .stack-item { min-width: 0; min-height: 64px; padding: 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; color: #adb2b8; background: rgba(255,255,255,.025); text-align: left; }
.conquest-requirements-panel button.stack-item { cursor: pointer; }
.conquest-requirements-panel button.stack-item:hover { border-color: rgba(211,172,70,.3); background: rgba(199,149,32,.07); }
.conquest-requirements-panel .mir4tools-stack-with-icon img { width: 46px; height: 46px; border-color: rgba(209,169,70,.2); border-radius: 7px; }
.conquest-requirements-panel .mir4tools-stack-with-icon span { display: grid; gap: 2px; overflow: hidden; }
.conquest-requirements-panel .mir4tools-stack-with-icon small { color: #6f747c; font-size: .5rem; text-transform: uppercase; letter-spacing: .06em; }
.conquest-requirements-panel .mir4tools-stack-with-icon strong { overflow: hidden; color: #d8d9da; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.conquest-requirements-panel .mir4tools-stack-with-icon b { color: #d4b45f; font-size: .57rem; }
.conquest-achievement { display: grid; align-content: center; gap: 4px; }
.conquest-achievement span { color: #706d61; font-size: .5rem; text-transform: uppercase; }
.conquest-achievement strong { color: #d8ccac; font-size: .61rem; }

.conquest-costs-panel { margin: 0 24px; }
.conquest-costs-panel > .stack-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 16px 16px; }
.conquest-costs-panel .stack-item { display: flex; width: auto; min-width: 170px; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border: 1px solid rgba(216,175,70,.18); border-radius: 999px; color: #babdc0; background: linear-gradient(180deg, rgba(65,53,27,.24), rgba(255,255,255,.022)); }
.conquest-costs-panel .stack-item img { width: 38px; height: 38px; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(198,153,47,.18), rgba(6,8,11,.5)); }
.conquest-costs-panel .stack-item span { display: grid; gap: 2px; }
.conquest-costs-panel .stack-item strong { color: #8d9299; font-size: .54rem; font-weight: 650; }
.conquest-costs-panel .stack-item b { color: #f0d37e; font-size: .68rem; }

@media (max-width: 900px) {
  .conquest-upgrade-header { grid-template-columns: 1fr; }
  .conquest-upgrade-metrics article:first-child { border-left: 0; }
  .conquest-content { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .conquest-intro { align-items: start; padding: 18px 16px 0; }
  .conquest-intro > p { display: none; }
  .conquest-world-canvas { min-width: 1040px; }
  .conquest-world > small { padding: 0 16px; text-align: left; }
  .conquest-upgrade-header, .conquest-content, .conquest-costs-panel { margin-right: 12px; margin-left: 12px; }
  .conquest-upgrade-header { padding: 13px; }
  .conquest-upgrade-metrics article { padding: 7px 9px; }
  .conquest-upgrade-metrics strong { font-size: .68rem; }
  .conquest-building-preview { width: 62px; height: 62px; }
  .conquest-requirements-panel > .stack-list { grid-template-columns: 1fr; }
  .conquest-costs-panel .stack-item { min-width: calc(50% - 5px); flex: 1; }
}

/* Mir4Tools module switcher and crafting calculator */
.mir4tools-tabs { display: flex; width: max-content; max-width: 100%; gap: 7px; padding: 5px; overflow-x: auto; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(10,12,17,.88); }
.mir4tools-tabs button { display: flex; min-width: 190px; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid transparent; border-radius: 9px; color: #747a83; background: transparent; cursor: pointer; text-align: left; transition: .2s ease; }
.mir4tools-tabs button > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.mir4tools-tabs button > span { display: grid; gap: 2px; }
.mir4tools-tabs strong { color: #a9adb3; font-size: .69rem; }
.mir4tools-tabs small { color: #666b73; font-size: .52rem; }
.mir4tools-tabs button:hover { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.mir4tools-tabs button.active { color: #efd479; border-color: rgba(221,180,72,.25); background: linear-gradient(145deg, rgba(183,131,24,.15), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.mir4tools-tabs button.active strong { color: #f0e7cb; }
.mir4tools-tabs button.active small { color: #9b8c65; }
.conquest-planner[hidden], .crafting-planner[hidden] { display: none; }

.crafting-planner { display: grid; gap: 18px; margin-top: 0; padding: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.085); border-radius: 18px; background: radial-gradient(circle at 72% 2%, rgba(127,73,154,.11), transparent 29%), radial-gradient(circle at 17% 45%, rgba(53,91,132,.09), transparent 30%), #090b10; box-shadow: 0 24px 68px rgba(0,0,0,.34); }
.crafting-intro { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.crafting-intro h2 { margin: 3px 0 4px; font-size: clamp(1.28rem,2vw,1.72rem); letter-spacing: -.035em; }
.crafting-intro p:last-child { margin: 0; color: #747a83; font-size: .66rem; }
.crafting-intro > button { padding: 8px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #91969d; background: rgba(255,255,255,.025); font-family: inherit; font-size: .58rem; font-weight: 650; cursor: pointer; }
.crafting-intro > button:hover { color: #e2d6b3; border-color: rgba(220,179,72,.25); }

.crafting-workbench { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 330px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(135deg, rgba(26,29,36,.94), rgba(10,12,17,.96)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.crafting-selector { display: grid; align-content: start; gap: 13px; padding: 17px; border-right: 1px solid rgba(255,255,255,.075); background: rgba(4,6,9,.28); }
.crafting-selector-title { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.065); }
.crafting-selector-title > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(211,170,69,.25); border-radius: 8px; color: #d8b85f; background: rgba(190,139,27,.09); }
.crafting-selector-title svg { width: 17px; height: 17px; }
.crafting-selector-title > div { display: grid; gap: 2px; }
.crafting-selector-title small { color: #6f747c; font-size: .5rem; text-transform: uppercase; letter-spacing: .07em; }
.crafting-selector-title strong { color: #d8dadd; font-size: .67rem; }
.crafting-selector label, .crafting-selector fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.crafting-selector label > span, .crafting-selector legend { color: #81868e; font-size: .55rem; font-weight: 680; }
.crafting-selector select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; color: #d6d8db; background: #14171d; font-family: inherit; font-size: .62rem; font-weight: 650; }
.crafting-tier-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.crafting-tier-options button { height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: #858a91; background: rgba(255,255,255,.025); font-family: Georgia,serif; font-size: .68rem; cursor: pointer; }
.crafting-tier-options button.active { color: #ffe28b; border-color: rgba(221,179,68,.42); background: rgba(190,137,23,.14); box-shadow: 0 0 14px rgba(198,147,33,.08); }

.crafting-recipe-stage { position: relative; display: grid; grid-template-columns: minmax(210px,.65fr) 48px minmax(320px,1.35fr); align-items: center; gap: 16px; padding: 30px clamp(22px,4vw,52px); background: radial-gradient(circle at 22% 50%, rgba(196,151,45,.09), transparent 25%), linear-gradient(110deg, rgba(255,255,255,.015), transparent); }
.crafting-target-wrap { display: grid; justify-items: center; gap: 15px; text-align: center; }
.crafting-item-frame { position: relative; display: grid; width: 124px; height: 124px; place-items: center; border: 2px solid; border-radius: 13px; box-shadow: inset 0 0 34px rgba(0,0,0,.46), 0 15px 30px rgba(0,0,0,.25); }
.crafting-item-frame img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.crafting-item-frame b { position: absolute; bottom: 8px; left: 10px; color: #f0f0ed; font-family: Georgia,serif; font-size: 1.08rem; text-shadow: 0 1px 3px #000; }
.crafting-target-copy small { color: #777c84; font-size: .51rem; text-transform: uppercase; letter-spacing: .09em; }
.crafting-target-copy h3 { margin: 4px 0; color: #eceae4; font-size: .87rem; }
.crafting-target-copy p { margin: 0; color: #9c8650; font-size: .56rem; }
.crafting-flow-arrow { display: flex; align-items: center; }
.crafting-flow-arrow span { width: 32px; height: 1px; background: linear-gradient(90deg, rgba(221,181,74,.15), rgba(221,181,74,.7)); }
.crafting-flow-arrow b { color: #d6b359; font-size: 1.5rem; font-weight: 400; }
.crafting-direct-recipe { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.crafting-direct-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.025); }
.crafting-mini-frame { display: grid; width: 48px; height: 48px; place-items: center; flex: 0 0 auto; border: 1px solid; border-radius: 8px; }
.crafting-mini-frame img { width: 82%; height: 82%; object-fit: contain; }
.crafting-direct-item > span { display: grid; min-width: 0; gap: 3px; }
.crafting-direct-item small { overflow: hidden; color: #898e95; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.crafting-direct-item strong { color: #eee0b4; font-size: .72rem; }

.rarity-legendary { border-color: #cbb53a !important; background: radial-gradient(circle at 50% 42%, rgba(236,207,59,.27), transparent 63%), linear-gradient(145deg, #423b19, #12120e) !important; }
.rarity-epic { border-color: #8d3344 !important; background: radial-gradient(circle at 50% 42%, rgba(184,53,82,.24), transparent 63%), linear-gradient(145deg, #40202a, #130e12) !important; }
.rarity-rare { border-color: #386db4 !important; background: radial-gradient(circle at 50% 42%, rgba(57,113,192,.27), transparent 63%), linear-gradient(145deg, #1d3557, #0d1118) !important; }
.rarity-default { border-color: #68717a !important; background: radial-gradient(circle at 50% 42%, rgba(121,133,145,.2), transparent 63%), #15191d !important; }

.crafting-summary-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 4px 2px 0; }
.crafting-summary-head h3 { margin: 3px 0; font-size: 1rem; }
.crafting-summary-head p:last-child { margin: 0; color: #70757d; font-size: .58rem; }
.crafting-summary-head > div:last-child { display: flex; align-items: baseline; gap: 7px; color: #777c83; }
.crafting-summary-head > div:last-child span { color: #dfbd61; font-size: 1.12rem; font-weight: 800; }
.crafting-summary-head > div:last-child small { font-size: .53rem; }
.crafting-materials { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.crafting-material-card { display: grid; grid-template-columns: 52px minmax(0,1fr) 84px; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid; border-radius: 11px; }
.crafting-material-icon { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(0,0,0,.24); }
.crafting-material-icon img { width: 84%; height: 84%; object-fit: contain; }
.crafting-material-icon span { position: absolute; bottom: 3px; left: 4px; color: #e6e6e2; font-size: .48rem; font-weight: 800; text-shadow: 0 1px 2px #000; }
.crafting-material-copy { display: grid; min-width: 0; gap: 2px; }
.crafting-material-copy small { overflow: hidden; color: #92969c; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.crafting-material-copy strong { color: #f0d785; font-size: .8rem; }
.crafting-material-copy span { color: #6e737a; font-size: .48rem; }
.crafting-material-card > label { display: grid; gap: 4px; }
.crafting-material-card > label span { color: #777c83; font-size: .48rem; text-align: center; }
.crafting-material-card input, .crafting-resources input { width: 100%; height: 30px; padding: 0 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #e7e7e4; background: rgba(5,7,10,.6); font-family: inherit; font-size: .61rem; text-align: center; }
.crafting-material-card input:focus, .crafting-resources input:focus { border-color: rgba(224,181,69,.5); outline: 0; box-shadow: 0 0 0 2px rgba(213,168,53,.08); }

.crafting-resources { border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.02); }
.crafting-resources-list { display: grid; }
#crafting-resources-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 13px; }
#crafting-resources-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px; border: 1px solid rgba(216,175,70,.16); border-radius: 9px; background: linear-gradient(145deg, rgba(77,61,25,.18), rgba(255,255,255,.018)); }
#crafting-resources-list article > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
#crafting-resources-list img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; background: rgba(0,0,0,.25); }
#crafting-resources-list article > div span { display: grid; min-width: 0; gap: 2px; }
#crafting-resources-list small { overflow: hidden; color: #8a8e94; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
#crafting-resources-list strong { color: #efd17a; font-size: .71rem; }
#crafting-resources-list label { display: grid; width: 80px; flex: 0 0 auto; gap: 4px; color: #737880; font-size: .46rem; text-align: center; }

@media (max-width: 1050px) {
  .crafting-recipe-stage { grid-template-columns: 180px 32px minmax(280px,1fr); padding: 24px; }
  .crafting-materials { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .crafting-planner { padding: 15px; }
  .crafting-workbench { grid-template-columns: 1fr; }
  .crafting-selector { grid-template-columns: repeat(2,minmax(0,1fr)); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); }
  .crafting-selector-title { grid-column: 1 / -1; }
  .crafting-recipe-stage { grid-template-columns: 1fr; }
  .crafting-flow-arrow { justify-content: center; transform: rotate(90deg); }
  .crafting-materials { grid-template-columns: 1fr; }
  #crafting-resources-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .mir4tools-tabs { width: 100%; }
  .mir4tools-tabs button { min-width: 150px; flex: 1; }
  .crafting-intro > button { max-width: 95px; }
  .crafting-selector { grid-template-columns: 1fr; }
  .crafting-direct-recipe { grid-template-columns: 1fr 1fr; }
  .crafting-material-card { grid-template-columns: 46px minmax(0,1fr) 75px; }
}

/* NFT market filter workspace */
.nft-filter-block {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.nft-filter-block:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.nft-filter-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nft-filter-block-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nft-filter-block-head strong {
  font-size: 0.92rem;
}

.nft-filter-block-head > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.nft-filter-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffb2a8;
  border: 1px solid rgba(255, 94, 94, 0.22);
  border-radius: 8px;
  background: rgba(184, 15, 25, 0.14);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.control-grid.nft-filter-primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nft-range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nft-range-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(4, 6, 9, 0.26);
}

.nft-range-group legend {
  padding: 0 6px;
  color: #d9d9dd;
  font-size: 0.78rem;
  font-weight: 750;
}

.nft-range-group .field input {
  min-width: 0;
}

.nft-range-separator {
  align-self: end;
  padding-bottom: 13px;
  color: #666a73;
}

.nft-filter-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.nft-compact-field {
  width: min(180px, 100%);
}

.nft-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.nft-active-label {
  margin-right: 2px;
  color: #8f929b;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nft-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px 4px 11px;
  color: #ffd2cc;
  border: 1px solid rgba(255, 93, 93, 0.22);
  border-radius: 999px;
  background: rgba(184, 15, 25, 0.12);
  cursor: pointer;
  font-size: 0.74rem;
}

.nft-filter-chip:hover {
  border-color: rgba(255, 93, 93, 0.44);
  background: rgba(184, 15, 25, 0.2);
}

.nft-filter-chip span {
  color: #ff8e85;
  font-size: 1rem;
  line-height: 1;
}

.nft-filter-empty {
  color: #777b84;
  font-size: 0.76rem;
}

@media (max-width: 1000px) {
  .control-grid.nft-filter-primary,
  .nft-range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nft-filter-block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .control-grid.nft-filter-primary,
  .nft-range-grid {
    grid-template-columns: 1fr;
  }

  .nft-filter-footer {
    justify-content: stretch;
  }

  .nft-compact-field {
    width: 100%;
  }
}

/* NFT cards and complete character profile */
.nft-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 20px;
}

.nft-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.nft-art-wrap {
  margin: -16px -16px 16px;
}

.nft-art {
  height: 220px;
  object-position: center 20%;
  transition: transform 350ms ease;
}

.nft-card:hover .nft-art {
  transform: scale(1.025);
}

.nft-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nft-card-badges .nft-grade-badge {
  position: static;
}

.nft-new-badge,
.nft-art-class {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.8);
  color: #f5f5f7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.nft-new-badge {
  color: #fff;
  border-color: rgba(255, 91, 91, 0.5);
  background: rgba(184, 15, 25, 0.88);
}

.nft-art-class {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.nft-card-head {
  align-items: center;
  margin-bottom: 8px;
}

.nft-card-identity {
  min-width: 0;
}

.nft-name {
  overflow: hidden;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-price {
  color: #fff0c2;
  font-size: 1.35rem;
}

.nft-stats-main {
  gap: 7px;
  margin: 12px 0 9px;
}

.nft-metric {
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.32);
}

.nft-metric span {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-metric strong {
  font-size: 0.95rem;
}

.nft-metric-power strong {
  color: #fff1ba;
}

.nft-score-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 85, 0.18);
  border-radius: 11px;
  background: rgba(255, 196, 85, 0.09);
}

.nft-score-strip > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}

.nft-score-strip > div + div {
  border-left: 1px solid rgba(255, 196, 85, 0.16);
}

.nft-score-strip span {
  color: #c8b98b;
  font-size: 0.7rem;
}

.nft-score-strip strong {
  color: #ffe6a0;
  font-size: 0.86rem;
}

.nft-combat-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.nft-combat-grid > div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.nft-combat-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-combat-grid strong {
  font-size: 0.86rem;
}

.nft-combat-grid > .nft-combat-evasion {
  border-color: rgba(78, 183, 218, 0.2);
  background: linear-gradient(135deg, rgba(34, 125, 154, 0.16), rgba(0, 0, 0, 0.2));
}

.nft-combat-grid > .nft-combat-crit-evasion {
  border-color: rgba(175, 111, 224, 0.22);
  background: linear-gradient(135deg, rgba(119, 57, 163, 0.18), rgba(0, 0, 0, 0.2));
}

.nft-card-actions {
  margin-top: auto;
  padding-top: 14px;
}

.nft-detail-cta {
  background: linear-gradient(135deg, #a90f18, #d34035);
  box-shadow: 0 8px 24px rgba(180, 15, 25, 0.2);
}

.nft-detail-panel {
  width: min(1380px, calc(100% - 24px));
  padding: 0 24px 24px;
  background: rgba(8, 10, 14, 0.985);
}

.nft-detail-header {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 -24px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(14px);
}

.nft-detail-body {
  padding-top: 16px;
}

.nft-detail-tabs {
  position: sticky;
  top: 91px;
  z-index: 7;
  margin: -2px -8px 2px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.98) 75%, rgba(8, 10, 14, 0));
}

.nft-detail-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nft-detail-tab b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
}

.nft-detail-grid {
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
}

.nft-detail-cover {
  position: relative;
  align-self: start;
}

.nft-detail-grade {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.82);
  color: #fff0be;
  font-size: 0.76rem;
  font-weight: 800;
}

.nft-detail-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.nft-detail-hero-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.nft-detail-hero-head > strong {
  color: #ffe09a;
  font-size: 1.65rem;
  white-space: nowrap;
}

.nft-detail-hero-head small {
  font-size: 0.65rem;
}

.nft-detail-kpis,
.nft-detail-counts {
  display: grid;
  gap: 9px;
}

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

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

.nft-detail-kpis > div,
.nft-detail-counts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.nft-detail-kpis span,
.nft-detail-counts span {
  color: var(--muted);
  font-size: 0.74rem;
}

.nft-detail-kpis strong,
.nft-detail-counts strong {
  overflow: hidden;
  color: #fff2c3;
  font-size: 1.08rem;
  text-overflow: ellipsis;
}

.nft-detail-facts {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.nft-detail-counts > div {
  text-align: center;
}

.nft-collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nft-collection-head h3 {
  margin-bottom: 3px;
}

.nft-collection-head > div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nft-collection-search input {
  width: min(300px, 40vw);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.nft-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nft-detail-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
}

.nft-detail-item[hidden] {
  display: none;
}

.nft-detail-item-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.nft-detail-item.grade-1 .nft-detail-item-icon {
  border: 1px solid rgba(164, 169, 179, 0.42);
  background:
    radial-gradient(circle at 50% 38%, rgba(189, 194, 204, 0.22), transparent 64%),
    linear-gradient(145deg, rgba(87, 92, 102, 0.68), rgba(30, 33, 39, 0.96));
  box-shadow: inset 0 0 12px rgba(210, 214, 222, 0.1);
}

.nft-detail-item.grade-2 .nft-detail-item-icon {
  border: 1px solid rgba(71, 190, 111, 0.56);
  background:
    radial-gradient(circle at 50% 38%, rgba(98, 214, 132, 0.34), transparent 64%),
    linear-gradient(145deg, rgba(32, 122, 68, 0.72), rgba(9, 48, 27, 0.96));
  box-shadow: inset 0 0 14px rgba(73, 204, 113, 0.18), 0 0 10px rgba(45, 166, 86, 0.1);
}

.nft-detail-item.grade-3 .nft-detail-item-icon {
  border: 1px solid rgba(74, 145, 255, 0.58);
  background:
    radial-gradient(circle at 50% 38%, rgba(92, 166, 255, 0.38), transparent 64%),
    linear-gradient(145deg, rgba(31, 90, 181, 0.72), rgba(10, 30, 67, 0.94));
  box-shadow: inset 0 0 14px rgba(72, 145, 255, 0.2), 0 0 10px rgba(45, 113, 230, 0.12);
}

.nft-detail-item.grade-4 .nft-detail-item-icon {
  border: 1px solid rgba(220, 65, 94, 0.62);
  background:
    radial-gradient(circle at 50% 38%, rgba(226, 76, 117, 0.4), transparent 64%),
    linear-gradient(145deg, rgba(137, 28, 66, 0.78), rgba(52, 10, 32, 0.96));
  box-shadow: inset 0 0 14px rgba(226, 61, 105, 0.22), 0 0 10px rgba(203, 39, 80, 0.13);
}

.nft-detail-item.grade-5 .nft-detail-item-icon {
  border: 1px solid rgba(244, 196, 76, 0.72);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 217, 105, 0.48), transparent 62%),
    linear-gradient(145deg, rgba(148, 103, 22, 0.82), rgba(57, 35, 5, 0.97));
  box-shadow: inset 0 0 15px rgba(255, 205, 73, 0.25), 0 0 12px rgba(234, 173, 41, 0.15);
}

.nft-detail-item-icon img,
.nft-detail-item img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.nft-detail-item-copy {
  min-width: 0;
}

.nft-detail-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-equipment-card { padding: 0; overflow: hidden; }
.nft-loadout-shell { min-height: 570px; background: radial-gradient(circle at 50% 47%, rgba(84,105,130,.16), transparent 28%), linear-gradient(155deg, rgba(20,24,31,.98), rgba(7,9,13,.99)); }
.nft-loadout-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.018); }
.nft-loadout-head h3 { margin: 2px 0 3px; font-size: 1rem; }
.nft-loadout-head > div:first-child > span { color: #747b85; font-size: .58rem; }
.nft-loadout-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(0,0,0,.26); }
.nft-loadout-tabs button { min-width: 112px; height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; color: #7d838c; background: transparent; font-family: inherit; font-size: .61rem; font-weight: 700; cursor: pointer; }
.nft-loadout-tabs button.active { color: #f0d98c; border-color: rgba(224,181,70,.3); background: linear-gradient(145deg, rgba(187,135,23,.17), rgba(255,255,255,.025)); }
.nft-loadout-view { display: grid; grid-template-columns: minmax(230px,1fr) minmax(230px,.82fr) minmax(230px,1fr); align-items: center; gap: clamp(16px,3vw,38px); min-height: 490px; padding: 28px clamp(20px,4vw,48px); }
.nft-loadout-view[hidden] { display: none; }
.nft-loadout-column { display: grid; gap: 12px; }
.nft-loadout-slot { display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: center; gap: 11px; min-width: 0; min-height: 78px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: linear-gradient(145deg, rgba(255,255,255,.036), rgba(0,0,0,.16)); box-shadow: 0 11px 25px rgba(0,0,0,.15); }
.nft-loadout-column:last-child .nft-loadout-slot { grid-template-columns: minmax(0,1fr) 68px; text-align: right; }
.nft-loadout-column:last-child .nft-loadout-slot .nft-loadout-icon { grid-column: 2; grid-row: 1; }
.nft-loadout-column:last-child .nft-loadout-slot > div:last-child { grid-column: 1; grid-row: 1; }
.nft-loadout-icon { position: relative; display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 18px rgba(0,0,0,.42); }
.nft-loadout-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.42)); }
.nft-loadout-icon b, .nft-loadout-icon em, .nft-loadout-icon i { position: absolute; z-index: 2; color: #fff; font-style: normal; text-shadow: 0 1px 3px #000; }
.nft-loadout-icon b { bottom: 4px; left: 5px; font-family: Georgia,serif; font-size: .65rem; }
.nft-loadout-icon em { top: 4px; right: 5px; color: #f8df86; font-size: .58rem; font-weight: 800; }
.nft-loadout-icon i { right: 4px; bottom: 4px; color: #d4d9df; font-size: .38rem; letter-spacing: -1px; }
.nft-loadout-slot > div:last-child { display: grid; min-width: 0; gap: 3px; }
.nft-loadout-slot small { color: #707781; font-size: .49rem; text-transform: uppercase; letter-spacing: .07em; }
.nft-loadout-slot strong { overflow: hidden; color: #e4e6e8; font-size: .64rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.nft-loadout-slot > div:last-child > span { color: #8e949c; font-size: .5rem; }
.nft-loadout-slot.is-empty { opacity: .52; }
.nft-loadout-slot.is-empty .nft-loadout-icon > span { color: #626974; font-size: 1rem; }
.nft-loadout-slot.grade-1 .nft-loadout-icon { border-color: rgba(164,169,179,.42); background: radial-gradient(circle, rgba(189,194,204,.22), transparent 66%), #292d34; }
.nft-loadout-slot.grade-2 .nft-loadout-icon { border-color: rgba(71,190,111,.56); background: radial-gradient(circle, rgba(98,214,132,.34), transparent 66%), #123c25; }
.nft-loadout-slot.grade-3 .nft-loadout-icon { border-color: rgba(74,145,255,.58); background: radial-gradient(circle, rgba(92,166,255,.38), transparent 66%), #142b51; }
.nft-loadout-slot.grade-4 .nft-loadout-icon { border-color: rgba(220,65,94,.62); background: radial-gradient(circle, rgba(226,76,117,.4), transparent 66%), #451329; }
.nft-loadout-slot.grade-5 .nft-loadout-icon { border-color: rgba(244,196,76,.72); background: radial-gradient(circle, rgba(255,217,105,.48), transparent 65%), #46340e; box-shadow: inset 0 0 18px rgba(255,205,73,.16), 0 0 12px rgba(234,173,41,.1); }
.nft-loadout-character { position: relative; display: grid; min-height: 390px; align-self: stretch; place-items: end center; overflow: hidden; border-right: 1px solid rgba(255,255,255,.04); border-left: 1px solid rgba(255,255,255,.04); background: radial-gradient(ellipse at 50% 62%, rgba(99,135,166,.17), transparent 52%); }
.nft-loadout-character::after { content:""; position:absolute; right:8%; bottom:15px; left:8%; height:18px; border-radius:50%; background:rgba(0,0,0,.5); filter:blur(9px); }
.nft-loadout-character img { position: absolute; z-index: 1; bottom: 18px; left: 50%; width: 100%; max-width: 270px; height: calc(100% - 35px); object-fit: contain; object-position: bottom center; transform: translateX(-50%); filter: drop-shadow(0 14px 12px rgba(0,0,0,.48)); }
.nft-loadout-character > span { position: absolute; z-index: 3; top: 8px; left: 50%; color: #777f89; font-size: .52rem; text-transform: uppercase; letter-spacing: .1em; transform: translateX(-50%); }
.nft-loadout-character > strong { position: relative; z-index: 3; margin-bottom: 4px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #eee9da; background: rgba(7,9,12,.78); font-size: .61rem; backdrop-filter: blur(5px); }

.nft-all-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

@media (max-width: 1050px) {
  .nft-collection-grid,
  .nft-all-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nft-loadout-view { grid-template-columns: minmax(190px,1fr) 190px minmax(190px,1fr); gap: 12px; padding: 22px 16px; }
  .nft-loadout-slot { grid-template-columns: 58px minmax(0,1fr); }
  .nft-loadout-column:last-child .nft-loadout-slot { grid-template-columns: minmax(0,1fr) 58px; }
  .nft-loadout-icon { width: 54px; height: 54px; }
}

@media (max-width: 760px) {
  .nft-detail-panel {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    padding-inline: 14px;
    border-radius: 0;
  }

  .nft-detail-header {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .nft-detail-tabs {
    top: 87px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nft-detail-tab {
    flex: 0 0 auto;
  }

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

  .nft-detail-cover {
    max-height: 390px;
  }

  .nft-detail-cover img {
    height: 390px;
    object-fit: cover;
    object-position: center 20%;
  }

  .nft-detail-kpis,
  .nft-detail-counts,
  .nft-detail-facts,
  .nft-collection-grid,
  .nft-all-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nft-collection-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nft-collection-search input {
    width: 100%;
  }

  .nft-loadout-shell { min-height: 0; }
  .nft-loadout-head { align-items: stretch; flex-direction: column; padding: 15px; }
  .nft-loadout-tabs button { flex: 1; }
  .nft-loadout-view { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; padding: 15px; }
  .nft-loadout-character { grid-column: 1 / -1; grid-row: 1; min-height: 310px; }
  .nft-loadout-column { grid-row: 2; }
  .nft-loadout-column:last-child .nft-loadout-slot { grid-template-columns: 58px minmax(0,1fr); text-align: left; }
  .nft-loadout-column:last-child .nft-loadout-slot .nft-loadout-icon { grid-column: 1; }
  .nft-loadout-column:last-child .nft-loadout-slot > div:last-child { grid-column: 2; }
}

@media (max-width: 430px) {
  .nft-detail-kpis,
  .nft-detail-facts,
  .nft-collection-grid,
  .nft-all-stats {
    grid-template-columns: 1fr;
  }
  .nft-loadout-view { grid-template-columns: 1fr; }
  .nft-loadout-character { grid-column: 1; }
  .nft-loadout-column, .nft-loadout-column:last-child { grid-row: auto; }
}

/* XDRACO-style orbital equipment view */
.nft-loadout-view { position: relative; display: block; width: min(100%,760px); min-height: 560px; margin: 0 auto; padding: 0; }
.nft-loadout-orbit { position: absolute; z-index: 3; inset: 34px 40px 42px; border: 2px dotted rgba(218,173,62,.42); border-radius: 50%; pointer-events: none; }
.nft-loadout-orbit::before { content:""; position:absolute; inset:9%; border:1px solid rgba(220,178,69,.08); border-radius:50%; }
.nft-loadout-slot { position: absolute; z-index: 5; display: block; width: 84px; min-height: 84px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; pointer-events: auto; transform: translate(-50%,-50%); }
.nft-loadout-slot .nft-loadout-icon { width: 82px; height: 82px; overflow: visible; border-width: 2px; border-radius: 50%; }
.nft-loadout-slot .nft-loadout-icon::after { content:""; position:absolute; inset:4px; border:1px solid rgba(255,255,255,.16); border-radius:50%; pointer-events:none; }
.nft-loadout-slot .nft-loadout-icon img { width: 78%; height: 78%; border-radius: 0; object-fit: contain; }
.nft-loadout-slot .nft-loadout-icon b { display:grid; bottom:-5px; left:-4px; width:25px; height:25px; place-items:center; border:2px solid rgba(224,190,106,.8); border-radius:50%; color:#f1e6c3; background:#27303e; font-size:.58rem; }
.nft-loadout-slot .nft-loadout-icon em { top:-8px; right:-7px; color:#fff; font-size:.83rem; text-shadow:0 2px 4px #000,0 0 3px #000; }
.nft-loadout-slot .nft-loadout-icon i { right:-5px; bottom:-4px; display:grid; width:24px; height:24px; place-items:center; border:2px solid rgba(181,129,41,.8); border-radius:50%; color:#d29d3c; background:#221b13; font-size:.35rem; letter-spacing:-2px; }
.nft-loadout-slot > small { position:absolute; top:calc(100% + 9px); left:50%; width:max-content; max-width:135px; padding:4px 7px; opacity:0; border:1px solid rgba(255,255,255,.1); border-radius:5px; color:#d7d9dc; background:rgba(5,7,10,.9); font-size:.48rem; text-transform:none; letter-spacing:0; transform:translateX(-50%); transition:opacity .16s ease; }
.nft-loadout-slot:hover > small { opacity:1; }
.nft-loadout-slot.is-empty { opacity:.42; }
.nft-loadout-slot.slot-1 { top:13%; left:20%; }
.nft-loadout-slot.slot-9 { top:43%; left:7%; }
.nft-loadout-slot.slot-5 { top:75%; left:20%; }
.nft-loadout-slot.slot-6 { top:13%; left:80%; }
.nft-loadout-slot.slot-7 { top:43%; left:93%; }
.nft-loadout-slot.slot-8 { top:75%; left:80%; }
.nft-loadout-slot.slot-2 { top:13%; left:20%; }
.nft-loadout-slot.slot-3 { top:43%; left:7%; }
.nft-loadout-slot.slot-4 { top:75%; left:20%; }
.nft-loadout-slot.slot-10 { top:13%; left:80%; }
.nft-loadout-slot.slot-7011 { top:43%; left:93%; }
.nft-loadout-slot.slot-7012 { top:75%; left:80%; }
.nft-loadout-character { position:absolute; z-index:2; inset:18px 19% 22px; display:grid; min-height:0; overflow:visible; border:0; background:radial-gradient(ellipse at 50% 65%,rgba(91,113,141,.16),transparent 55%); }
.nft-loadout-character::after { bottom:2px; }
.nft-loadout-character img { bottom:0; max-width:430px; height:100%; }
.nft-loadout-character > span { top:8px; }
.nft-loadout-character > strong { position:absolute; z-index:4; top:26px; bottom:auto; left:50%; margin:0; transform:translateX(-50%); }
.nft-loadout-slot.grade-5 .nft-loadout-icon { background:radial-gradient(circle at 50% 45%,rgba(255,232,132,.58),transparent 60%),linear-gradient(145deg,#a97916,#382500) !important; box-shadow:inset 0 0 18px rgba(255,228,119,.25),0 0 18px rgba(235,178,48,.28); }

.nft-artifacts { padding:22px 20px 24px; border-top:1px solid rgba(255,255,255,.075); background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.16)); }
.nft-artifacts-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.nft-artifacts-head h3 { margin:2px 0 0; font-size:1rem; }
.nft-artifacts-head > span { padding:6px 10px; border:1px solid rgba(220,176,62,.25); border-radius:999px; color:#d8bf78; background:rgba(183,130,24,.09); font-size:.57rem; font-weight:800; }
.nft-artifact-row { padding:14px; overflow-x:auto; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(5,7,10,.36); scrollbar-width:thin; }
.nft-artifact-row + .nft-artifact-row { margin-top:12px; }
.nft-artifact-row-title { display:flex; align-items:center; justify-content:space-between; min-width:560px; margin-bottom:11px; padding-bottom:9px; border-bottom:1px solid rgba(255,255,255,.055); }
.nft-artifact-row-title span { color:#d9dce1; font-size:.63rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.nft-artifact-row-title small { color:#727983; font-size:.53rem; }
.nft-artifact-grid { display:grid; grid-template-columns:repeat(5,minmax(92px,1fr)); gap:10px; min-width:560px; }
.nft-artifact-slot { display:grid; min-width:0; place-items:center; padding:12px 7px 10px; border:1px solid rgba(255,255,255,.055); border-radius:10px; background:linear-gradient(145deg,rgba(255,255,255,.03),rgba(0,0,0,.18)); text-align:center; }
.nft-artifact-slot.is-empty { opacity:.4; }
.nft-artifact-icon { position:relative; display:grid; width:74px; height:74px; margin-bottom:9px; place-items:center; border:2px solid rgba(164,169,179,.34); border-radius:50%; background:radial-gradient(circle,rgba(189,194,204,.18),transparent 66%),#252a31; box-shadow:inset 0 0 16px rgba(0,0,0,.4); }
.nft-artifact-icon::after { content:""; position:absolute; inset:4px; border:1px solid rgba(255,255,255,.14); border-radius:50%; pointer-events:none; }
.nft-artifact-icon img { width:78%; height:78%; object-fit:contain; filter:drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.nft-artifact-icon > span { color:#6e7580; font-size:1rem; }
.nft-artifact-icon b,.nft-artifact-icon em { position:absolute; z-index:2; font-style:normal; text-shadow:0 2px 4px #000; }
.nft-artifact-icon b { bottom:-5px; left:-4px; display:grid; width:24px; height:24px; place-items:center; border:2px solid rgba(224,190,106,.72); border-radius:50%; color:#f1e6c3; background:#27303e; font-family:Georgia,serif; font-size:.56rem; }
.nft-artifact-icon em { top:-7px; right:-5px; color:#fff; font-size:.76rem; font-weight:800; }
.nft-artifact-slot > strong { color:#dfe1e4; font-size:.58rem; }
.nft-artifact-slot > small { display:-webkit-box; min-height:2.5em; margin-top:4px; overflow:hidden; color:#737a84; font-size:.47rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.nft-artifact-slot.grade-1 .nft-artifact-icon { border-color:rgba(164,169,179,.46); background:radial-gradient(circle,rgba(189,194,204,.28),transparent 66%),#292d34; }
.nft-artifact-slot.grade-2 .nft-artifact-icon { border-color:rgba(71,190,111,.6); background:radial-gradient(circle,rgba(98,214,132,.4),transparent 66%),#123c25; }
.nft-artifact-slot.grade-3 .nft-artifact-icon { border-color:rgba(74,145,255,.64); background:radial-gradient(circle,rgba(92,166,255,.45),transparent 66%),#142b51; }
.nft-artifact-slot.grade-4 .nft-artifact-icon { border-color:rgba(220,65,94,.68); background:radial-gradient(circle,rgba(226,76,117,.48),transparent 66%),#451329; }
.nft-artifact-slot.grade-5 .nft-artifact-icon { border-color:rgba(244,196,76,.76); background:radial-gradient(circle,rgba(255,217,105,.55),transparent 65%),#46340e; box-shadow:inset 0 0 18px rgba(255,205,73,.2),0 0 13px rgba(234,173,41,.16); }

.nft-stone-section { padding:22px 20px 24px; border-top:1px solid rgba(255,255,255,.075); background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.16)); }
.nft-stone-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.nft-stone-head h3 { margin:2px 0 3px; font-size:1rem; }
.nft-stone-head > div:first-child > span { color:#747b85; font-size:.52rem; }
.nft-deck-tabs { display:grid; grid-template-columns:repeat(10,30px); gap:4px; padding:4px; overflow-x:auto; border:1px solid rgba(255,255,255,.075); border-radius:9px; background:rgba(0,0,0,.25); scrollbar-width:thin; }
.nft-deck-tabs button { width:30px; height:28px; padding:0; border:1px solid transparent; border-radius:6px; color:#777e87; background:transparent; font-family:inherit; font-size:.54rem; font-weight:800; cursor:pointer; }
.nft-deck-tabs button:hover { color:#d9dde2; background:rgba(255,255,255,.045); }
.nft-deck-tabs button.active { border-color:rgba(224,181,70,.35); color:#f1d77f; background:linear-gradient(145deg,rgba(187,135,23,.2),rgba(255,255,255,.025)); }
.nft-stone-panel { padding:14px; overflow-x:auto; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(5,7,10,.36); scrollbar-width:thin; }
.nft-stone-panel[hidden] { display:none; }
.nft-stone-panel-meta { display:flex; align-items:center; justify-content:space-between; min-width:680px; margin-bottom:11px; padding-bottom:9px; border-bottom:1px solid rgba(255,255,255,.055); }
.nft-stone-panel-meta span { color:#d9dce1; font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.nft-stone-panel-meta small { color:#727983; font-size:.53rem; }
.nft-stone-grid { display:grid; grid-template-columns:repeat(6,minmax(96px,1fr)); gap:10px; min-width:680px; }
.nft-stone-slot { display:grid; min-width:0; place-items:center; padding:11px 7px 9px; border:1px solid rgba(255,255,255,.055); border-radius:10px; background:linear-gradient(145deg,rgba(255,255,255,.03),rgba(0,0,0,.18)); text-align:center; }
.nft-stone-slot.is-empty { opacity:.38; }
.nft-stone-icon { position:relative; display:grid; width:68px; height:68px; margin-bottom:9px; place-items:center; border:2px solid rgba(164,169,179,.34); border-radius:50%; background:radial-gradient(circle,rgba(189,194,204,.18),transparent 66%),#252a31; box-shadow:inset 0 0 16px rgba(0,0,0,.4); }
.nft-stone-icon::after { content:""; position:absolute; inset:4px; border:1px solid rgba(255,255,255,.14); border-radius:50%; pointer-events:none; }
.nft-stone-icon img { width:78%; height:78%; object-fit:contain; filter:drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.nft-stone-icon > span { color:#6e7580; font-size:1rem; }
.nft-stone-icon b,.nft-stone-icon em,.nft-stone-icon i { position:absolute; z-index:2; font-style:normal; text-shadow:0 2px 4px #000; }
.nft-stone-icon b { bottom:-5px; left:-4px; display:grid; width:23px; height:23px; place-items:center; border:2px solid rgba(224,190,106,.72); border-radius:50%; color:#f1e6c3; background:#27303e; font-family:Georgia,serif; font-size:.54rem; }
.nft-stone-icon em { top:-7px; right:-5px; color:#fff; font-size:.73rem; font-weight:800; }
.nft-stone-icon i { right:-5px; bottom:-4px; display:grid; width:22px; height:22px; place-items:center; border:1px solid rgba(220,176,62,.7); border-radius:50%; color:#f5d26d; background:#241b0d; font-size:.55rem; }
.nft-stone-slot > strong { color:#dfe1e4; font-size:.55rem; }
.nft-stone-slot > small { display:-webkit-box; min-height:2.5em; margin-top:4px; overflow:hidden; color:#737a84; font-size:.45rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.nft-stone-slot.grade-1 .nft-stone-icon { border-color:rgba(164,169,179,.46); background:radial-gradient(circle,rgba(189,194,204,.28),transparent 66%),#292d34; }
.nft-stone-slot.grade-2 .nft-stone-icon { border-color:rgba(71,190,111,.6); background:radial-gradient(circle,rgba(98,214,132,.4),transparent 66%),#123c25; }
.nft-stone-slot.grade-3 .nft-stone-icon { border-color:rgba(74,145,255,.64); background:radial-gradient(circle,rgba(92,166,255,.45),transparent 66%),#142b51; }
.nft-stone-slot.grade-4 .nft-stone-icon { border-color:rgba(220,65,94,.68); background:radial-gradient(circle,rgba(226,76,117,.48),transparent 66%),#451329; }
.nft-stone-slot.grade-5 .nft-stone-icon { border-color:rgba(244,196,76,.76); background:radial-gradient(circle,rgba(255,217,105,.55),transparent 65%),#46340e; box-shadow:inset 0 0 18px rgba(255,205,73,.2),0 0 13px rgba(234,173,41,.16); }
.nft-stone-slot.grade-6 .nft-stone-icon { border-color:rgba(229,115,0,.85); background:radial-gradient(circle,rgba(255,161,52,.58),transparent 65%),#4a2105; box-shadow:inset 0 0 18px rgba(255,132,20,.24),0 0 14px rgba(229,115,0,.2); }

.nft-fixed-collection { padding:22px 20px 24px; border-top:1px solid rgba(255,255,255,.075); background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.16)); }
.nft-fixed-collection-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.nft-fixed-collection-head h3 { margin:2px 0 0; font-size:1rem; }
.nft-fixed-collection-head > span { padding:6px 10px; border:1px solid rgba(220,176,62,.25); border-radius:999px; color:#d8bf78; background:rgba(183,130,24,.09); font-size:.57rem; font-weight:800; }
.nft-fixed-collection-body { padding:14px; overflow-x:auto; border:1px solid rgba(255,255,255,.065); border-radius:12px; background:rgba(5,7,10,.36); scrollbar-width:thin; }
.nft-fixed-collection-grid { display:grid; grid-template-columns:repeat(5,minmax(96px,1fr)); gap:10px; min-width:580px; }

@media (max-width:760px) {
  .nft-loadout-view { display:block; min-height:490px; padding:0; }
  .nft-loadout-orbit { inset:32px 32px 40px; }
  .nft-loadout-character { grid-column:auto; grid-row:auto; inset:20px 17% 20px; min-height:0; }
  .nft-loadout-slot { width:68px; min-height:68px; }
  .nft-loadout-slot .nft-loadout-icon { width:66px; height:66px; }
  .nft-artifacts { padding:18px 14px; }
  .nft-artifact-row { padding:11px; }
  .nft-stone-section { padding:18px 14px; }
  .nft-stone-head { align-items:stretch; flex-direction:column; }
  .nft-deck-tabs { grid-template-columns:repeat(10,30px); }
  .nft-stone-panel { padding:11px; }
  .nft-fixed-collection { padding:18px 14px; }
  .nft-fixed-collection-body { padding:11px; }
}

@media (max-width:430px) {
  .nft-loadout-view { display:block; min-height:420px; }
  .nft-loadout-orbit { inset:34px 18px 38px; }
  .nft-loadout-character { grid-column:auto; inset:24px 13% 20px; }
  .nft-loadout-slot { width:58px; min-height:58px; }
  .nft-loadout-slot .nft-loadout-icon { width:56px; height:56px; }
  .nft-loadout-slot .nft-loadout-icon b { width:20px; height:20px; font-size:.48rem; }
  .nft-loadout-slot .nft-loadout-icon i { width:20px; height:20px; }
  .nft-loadout-slot .nft-loadout-icon em { font-size:.68rem; }
}

body[data-tool-page="bosses"] #boss-tracker {
  margin-top: 0;
}

body[data-tool-page="bosses"] #boss-tracker > .section-head,
body[data-tool-page="bosses"] .section-group:has(#boss-tracker) > .section-group-head {
  display: none;
}

body[data-tool-page="bosses"] #boss-tracker .embed-frame {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background: #08090c;
}

body[data-tool-page="bosses"] #boss-tracker iframe {
  min-height: 1550px;
  background: #08090c;
}

/* Character finder aligned with clans and advanced profiles */
.character-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.character-header-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.5);
  color: #d6d8dd;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

body[data-tool-page="characters"] .live-grid {
  grid-template-columns: minmax(0, 1fr);
}

#character-search {
  overflow: visible;
}

.character-section-head {
  margin-bottom: 16px;
}

.character-search-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 8% 10%, rgba(170, 21, 30, 0.13), transparent 28%),
    rgba(13, 16, 22, 0.88);
}

.character-search-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.15);
}

.character-search-topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d5d7db;
  font-size: 0.76rem;
}

.character-local-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55d486;
  box-shadow: 0 0 8px rgba(85, 212, 134, 0.68);
}

.character-search-topbar p {
  margin: 0;
  color: #858890;
  font-size: 0.74rem;
}

.character-search-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 20px 18px 14px;
}

.character-search-field {
  position: relative;
  display: block;
}

.character-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 4, 7, 0.52);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: 160ms ease;
}

.character-search-field input:focus {
  border-color: rgba(218, 67, 60, 0.58);
  box-shadow: 0 0 0 3px rgba(192, 35, 34, 0.11);
}

.character-search-field input::placeholder {
  color: #646871;
}

.character-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #c94a46;
  font-size: 1.4rem;
  transform: translateY(-52%);
}

.character-search-button {
  min-width: 170px;
  min-height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a90f18, #d5483d);
  box-shadow: 0 10px 25px rgba(175, 20, 27, 0.22);
}

.character-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 17px;
}

.character-search-footer > span:last-child {
  color: #686c75;
  font-size: 0.7rem;
}

.character-search-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.character-search-stats article {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(24, 27, 34, 0.9), rgba(12, 14, 19, 0.92));
}

.character-search-stats article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(#d64840, #6e1018);
}

.character-search-stats span {
  color: #858890;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.character-search-stats strong {
  overflow: hidden;
  color: #f1f2f4;
  font-size: 1.22rem;
  text-overflow: ellipsis;
}

.character-results-card {
  padding: 0;
  overflow: hidden;
}

.character-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.character-results-head h3 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.character-results-badge {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #858990;
  font-size: 0.7rem;
}

.character-results-badge strong {
  color: #e1e2e5;
}

.character-results-shell {
  position: relative;
  min-height: 190px;
}

.character-search-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  min-height: 190px;
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(4px);
}

.character-search-loading[hidden] {
  display: none;
}

.character-search-loading > span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #da433d;
  border-radius: 50%;
  animation: nft-market-spin 720ms linear infinite;
}

.character-search-loading strong {
  color: #c9cbd0;
  font-size: 0.76rem;
}

.character-results-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #11141a;
}

.character-results-table td {
  height: 60px;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(136, 104, 216, 0.2);
  border-radius: 7px;
  background: rgba(95, 61, 174, 0.1);
  color: #cbbbea;
  font-size: 0.72rem;
  font-weight: 750;
}

.character-clan-cell {
  color: #d0d2d6;
}

@media (max-width: 760px) {
  .character-search-topbar,
  .character-search-footer,
  .character-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-search-main {
    grid-template-columns: 1fr;
  }

  .character-search-button {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .character-search-stats {
    grid-template-columns: 1fr;
  }
}

/* Advanced character profile */
.character-profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 4%, rgba(180, 18, 26, 0.18), transparent 30%),
    radial-gradient(circle at 5% 28%, rgba(82, 103, 136, 0.09), transparent 26%),
    linear-gradient(180deg, #07080b, #0b0e13 52%, #07080b);
}

.character-page-shell {
  width: min(1320px, calc(100% - 28px));
}

.character-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  background: rgba(6, 8, 11, 0.88);
  backdrop-filter: blur(8px);
}

.character-loading[hidden] {
  display: none;
}

.character-loading strong {
  color: #d9dadd;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.character-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #df443e;
  border-radius: 50%;
  animation: nft-market-spin 740ms linear infinite;
}

.character-topbar {
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  padding: 8px 10px 8px 14px;
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.87);
}

.character-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #b3b5bc;
  font-size: 0.78rem;
  font-weight: 700;
}

.character-back-link span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
}

.character-back-link:hover {
  color: #fff;
}

.character-brand {
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  justify-self: center;
}

.character-brand > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(236, 77, 69, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, #b3151e, #501018);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.character-brand strong {
  align-self: end;
  font-size: 0.88rem;
  line-height: 1;
}

.character-brand small {
  align-self: start;
  color: #71757e;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.character-topbar .language-switcher {
  justify-self: end;
}

.character-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr) minmax(230px, 0.42fr);
  align-items: center;
  min-height: 350px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(11, 13, 18, 0.98) 0%, rgba(15, 17, 22, 0.93) 48%, rgba(45, 14, 19, 0.54) 100%),
    #0c0e13;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.38);
}

.character-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.character-hero-glow {
  position: absolute;
  right: 8%;
  bottom: -65%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 45, 43, 0.24), transparent 66%);
}

.character-hero-copy {
  position: relative;
  z-index: 2;
  padding: 36px 0 36px 38px;
}

.character-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 6px 9px;
  border: 1px solid rgba(91, 210, 132, 0.18);
  border-radius: 999px;
  background: rgba(39, 130, 74, 0.09);
  color: #9fd5b2;
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.character-online-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56d486;
  box-shadow: 0 0 8px rgba(86, 212, 134, 0.7);
}

.character-hero-copy h1 {
  max-width: 680px;
  margin: 7px 0 15px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.character-identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.character-identity-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #d2d4d9;
  font-size: 0.72rem;
  font-weight: 700;
}

.character-hero-copy .hero-text {
  max-width: 590px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.character-updated {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  color: #737780;
  font-size: 0.7rem;
}

.character-updated strong {
  color: #b8bbc1;
}

.character-hero-power {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 7px;
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(255, 188, 107, 0.18);
  border-radius: 16px;
  background: rgba(4, 6, 9, 0.42);
  backdrop-filter: blur(10px);
}

.character-hero-power > span {
  color: #a7a9af;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.character-hero-power > strong {
  color: #ffe3aa;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.character-hero-power small,
.summary-item small {
  color: #777b84;
  font-size: 0.69rem;
}

.is-positive,
.character-hero-power small.is-positive {
  color: #67d895 !important;
}

.is-negative {
  color: #f17d7d !important;
}

.character-class-art-wrap {
  position: relative;
  align-self: stretch;
  z-index: 1;
  overflow: hidden;
}

.character-class-art-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #15141a 0, transparent 32%), linear-gradient(0deg, rgba(10, 11, 15, 0.6), transparent 38%);
}

.character-class-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.88) contrast(1.04);
}

.character-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.character-summary-grid .summary-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 25, 32, 0.96), rgba(11, 13, 18, 0.96));
}

.character-summary-grid .summary-item::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 39, 41, 0.12), transparent 66%);
}

.character-stat-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(216, 71, 61, 0.2);
  border-radius: 8px;
  background: rgba(174, 27, 33, 0.1);
  color: #ee8b7b;
  font-size: 0.72rem;
  font-weight: 900;
}

.character-summary-grid .summary-item strong {
  overflow: hidden;
  margin-top: 1px;
  color: #f3f1ed;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-summary-primary strong {
  color: #ffe1a8 !important;
}

.character-chart-card,
.character-history-card,
.character-insight-card {
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(12, 15, 20, 0.9);
}

.character-chart-card,
.character-history-card {
  padding: 0;
  overflow: hidden;
}

.character-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.character-card-head h2 {
  margin: 3px 0 5px;
}

.character-card-head p:last-child {
  margin: 0;
  color: #7d818a;
  font-size: 0.76rem;
}

.character-chart-range {
  display: grid;
  gap: 5px;
  text-align: right;
}

.character-chart-range span {
  color: #737780;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.character-chart-range strong {
  color: #d6d8dc;
  font-size: 0.85rem;
}

.character-chart-card .chart-wrap {
  position: relative;
  padding: 10px 14px 8px;
  overflow: hidden;
}

.character-chart-card #power-chart {
  display: block;
  min-height: 0;
  background: transparent;
}

.character-chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 122px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(5, 7, 10, 0.92);
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.character-chart-tooltip strong {
  color: #ffe1b4;
  font-size: 0.8rem;
}

.character-chart-tooltip span {
  color: #8b8e96;
  font-size: 0.65rem;
}

.character-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.character-insight-card {
  position: relative;
  min-height: 178px;
  padding: 20px;
  overflow: hidden;
}

.character-insight-card .section-head {
  margin-left: 48px;
}

.character-insight-card .section-head h2 {
  margin: 3px 0 5px;
}

.character-insight-card .section-head p:last-child {
  margin: 0;
  font-size: 0.74rem;
}

.character-insight-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(213, 69, 61, 0.22);
  border-radius: 10px;
  background: rgba(178, 26, 32, 0.11);
  color: #e98b7c;
  font-size: 0.7rem;
  font-weight: 900;
}

.character-insight-card .clan-pill {
  border-radius: 8px;
  color: #bfc2c8;
  font-size: 0.75rem;
}

.character-insight-card .clan-pill.current {
  border-color: rgba(83, 204, 126, 0.25);
  background: rgba(42, 143, 78, 0.1);
  color: #a9ddb9;
}

.server-journey-list {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.server-journey-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.server-journey-item.current {
  border-color: rgba(83, 204, 126, 0.23);
  background: rgba(42, 143, 78, 0.075);
}

.server-journey-marker { color: #8a6d39; font-size: 0.72rem; }
.server-journey-item.current .server-journey-marker { color: #65d792; }
.server-journey-item > div { display: grid; gap: 3px; min-width: 0; }
.server-journey-item strong { display: flex; align-items: baseline; gap: 6px; color: #dfe1e5; font-size: 0.72rem; }
.server-journey-item strong small { color: #737a84; font-size: 0.5rem; }
.server-journey-item > div > span { overflow: hidden; color: #9499a2; font-size: 0.59rem; text-overflow: ellipsis; white-space: nowrap; }
.server-journey-item em { color: #777e88; font-size: 0.52rem; font-style: normal; text-transform: uppercase; }
.server-journey-item.current em { color: #83c99a; }


.character-history-total {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #858990;
  font-size: 0.7rem;
}

.character-history-total strong {
  color: #e1e2e5;
}

.character-history-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #11141a;
}

.character-history-table td {
  height: 56px;
}

.history-clan-name {
  color: #c6c8cd;
  white-space: nowrap;
}

.history-server-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #c8cbd1;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.history-server-name small { color: #737a84; font-size: 0.49rem; }

.power-change {
  display: inline-flex;
  min-width: 62px;
  justify-content: flex-end;
  font-size: 0.76rem;
  font-weight: 750;
}

.power-change.positive { color: #65d792; }
.power-change.negative { color: #ef7b7b; }
.power-change.neutral { color: #686c74; }

@media (max-width: 1050px) {
  .character-profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.42fr);
  }

  .character-hero-power {
    position: absolute;
    right: 25%;
    bottom: 24px;
  }

  .character-class-art-wrap {
    grid-column: 2;
  }

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

@media (max-width: 720px) {
  .character-topbar {
    position: relative;
    grid-template-columns: 1fr auto;
  }

  .character-brand {
    display: none;
  }

  .character-profile-hero {
    display: block;
    min-height: 570px;
  }

  .character-hero-copy {
    position: relative;
    z-index: 3;
    padding: 28px 22px;
  }

  .character-hero-copy .hero-text,
  .character-updated {
    max-width: 68%;
  }

  .character-class-art-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 64%;
  }

  .character-hero-power {
    right: auto;
    bottom: 22px;
    left: 20px;
    z-index: 4;
    max-width: 54%;
  }

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

  .character-insights-grid {
    grid-template-columns: 1fr;
  }

  .character-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-chart-range {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .character-page-shell {
    width: min(100% - 16px, 1320px);
  }

  .character-topbar .language-button {
    width: 32px;
    height: 32px;
  }

  .character-back-link {
    font-size: 0.7rem;
  }

  .character-profile-hero {
    min-height: 610px;
  }

  .character-hero-copy .hero-text,
  .character-updated {
    max-width: 100%;
  }

  .character-class-art-wrap {
    width: 78%;
    height: 56%;
    opacity: 0.82;
  }

  .character-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Character profile layout aligned with the supplied dashboard reference */
.character-profile-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(17, 19, 24, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.23);
}

.character-profile-heading h1 {
  margin: 4px 0 7px;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
}

.character-profile-heading h1 span {
  color: #fff;
}

.character-profile-heading p:last-child {
  margin: 0;
  color: #737780;
  font-size: 0.75rem;
}

.character-quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(6, 8, 11, 0.48);
}

.character-quick-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.character-quick-search input::placeholder {
  color: #656973;
}

.character-quick-search button {
  border: 0;
  background: linear-gradient(145deg, #e64069, #ff6689);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.character-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.78fr);
  gap: 14px;
  min-height: 480px;
}

.character-dashboard-grid .character-chart-card {
  min-width: 0;
}

.character-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 10px;
}

.character-metric-tabs,
.character-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.character-metric-tabs button,
.character-period-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: transparent;
  color: #a2a5ac;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
}

.character-metric-tabs button.active,
.character-period-tabs button.active {
  border-color: #e83f6c;
  background: #e83f6c;
  color: #fff;
}

.character-metric-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.character-chart-card .character-card-head.compact {
  align-items: center;
  padding-block: 8px;
  border-bottom: 0;
}

.character-chart-card .character-card-head.compact h2 {
  font-size: 1rem;
}

.character-dashboard-grid .character-chart-card .chart-wrap {
  height: 370px;
}

.character-art-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 25%, rgba(183, 60, 56, 0.16), transparent 34%),
    #121419;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.character-art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 9, 12, 0.94), transparent 43%);
  pointer-events: none;
}

.character-art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.character-art-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 5px;
}

.character-art-copy > span {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #f0b8ad;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-art-copy > strong {
  overflow: hidden;
  font-size: 1.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-art-copy small {
  color: #9c9fa6;
  font-size: 0.67rem;
}

.character-art-copy b {
  color: #d6d8dc;
  font-weight: 650;
}

.character-primary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.character-primary-stats article {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 126px;
  padding: 19px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(16, 18, 23, 0.94);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.character-primary-stats article > span {
  color: #f1f1f3;
  font-size: 1rem;
  font-weight: 800;
}

.character-primary-stats article > strong {
  max-width: 100%;
  overflow: hidden;
  color: #ff557d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-primary-stats article > small {
  color: #777b83;
  font-size: 0.68rem;
}

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

@media (max-width: 900px) {
  .character-profile-heading,
  .character-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .character-art-card {
    min-height: 430px;
  }

  .character-primary-stats,
  .character-secondary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .character-profile-heading {
    padding: 17px;
  }

  .character-chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-period-tabs button {
    flex: 1 1 auto;
  }

  .character-dashboard-grid .character-chart-card .chart-wrap {
    height: 280px;
  }

  .character-art-card {
    min-height: 360px;
  }
}

@media (max-width: 430px) {
  .character-primary-stats,
  .character-secondary-stats {
    grid-template-columns: 1fr;
  }
}

/* Compact XDRACO-style NFT filters and centered market loader */
.nft-market-head h3 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.nft-market-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nft-alert-manager-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(216, 168, 51, 0.24);
  border-radius: 9px;
  color: #e1c268;
  background: rgba(154, 105, 14, 0.09);
  font-size: 0.61rem;
  font-weight: 800;
  text-decoration: none;
}

.nft-alert-manager-link:hover {
  border-color: rgba(231, 188, 77, 0.46);
  color: #ffe59a;
  background: rgba(178, 122, 16, 0.16);
}

.nft-filter-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.nft-sort-area {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nft-filter-label {
  color: #9b9da5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nft-sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nft-sort-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #a6a8af;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  transition: 160ms ease;
}

.nft-sort-option:hover,
.nft-sort-option.active {
  border-color: rgba(221, 68, 63, 0.48);
  background: linear-gradient(135deg, rgba(167, 16, 25, 0.38), rgba(207, 58, 47, 0.17));
  color: #fff;
}

.nft-sort-option span {
  color: #ff9b8f;
  font-size: 0.95rem;
}

.nft-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.nft-market-state {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(73, 199, 119, 0.2);
  border-radius: 10px;
  background: rgba(37, 127, 72, 0.12);
  color: #a8d8b9;
  font-size: 0.77rem;
  white-space: nowrap;
}

.nft-market-state strong {
  color: #dbffe6;
}

.nft-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bd47d;
  box-shadow: 0 0 9px rgba(75, 212, 125, 0.7);
}

.nft-filter-form {
  display: grid;
  gap: 13px;
  margin-top: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(4, 6, 9, 0.22);
}

.nft-filter-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.nft-character-name-field {
  grid-column: span 2;
}

.nft-filter-fields .field,
.nft-range-grid .field {
  gap: 6px;
}

.nft-filter-fields .field > span,
.nft-range-group legend {
  color: #b7b8bd;
  font-size: 0.72rem;
  font-weight: 750;
}

.nft-filter-fields input,
.nft-filter-fields select,
.nft-range-group input {
  min-height: 41px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.32);
}

.nft-filter-form .nft-range-grid {
  gap: 10px;
}

.nft-filter-form .nft-range-group {
  padding: 10px;
  border-radius: 11px;
}

.nft-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.nft-filter-actions .status-note {
  margin-left: auto;
  text-align: right;
}

.nft-results-shell {
  position: relative;
  min-height: 300px;
}

.nft-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  min-height: 300px;
  border-radius: 18px;
  background: rgba(7, 9, 13, 0.76);
  backdrop-filter: blur(5px);
}

.nft-loading-overlay[hidden] {
  display: none;
}

.nft-loading-overlay strong {
  color: #d9dade;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.nft-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #d83e38;
  border-right-color: #f29b77;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(208, 47, 44, 0.2);
  animation: nft-market-spin 750ms linear infinite;
}

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

.nft-pagination {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.nft-page-field {
  width: 88px;
}

.nft-page-field input {
  min-height: 40px;
  text-align: center;
}

@media (max-width: 1150px) {
  .nft-filter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nft-filter-toolbar,
  .nft-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nft-market-state {
    align-self: flex-start;
  }

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

  .nft-character-name-field {
    grid-column: span 2;
  }

  .nft-filter-actions .status-note {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 470px) {
  .nft-filter-fields {
    grid-template-columns: 1fr;
  }

  .nft-character-name-field {
    grid-column: auto;
  }

  .nft-sort-option {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }
}

/* Clan finder redesign */
.clan-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.clan-header-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.5);
  color: #d6d8dd;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

body[data-tool-page="clans"] .live-grid {
  grid-template-columns: minmax(0, 1fr);
}

#clan-search {
  overflow: visible;
}

.clan-section-head {
  margin-bottom: 16px;
}

.clan-search-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 8% 10%, rgba(170, 21, 30, 0.13), transparent 28%),
    rgba(13, 16, 22, 0.88);
}

.clan-search-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.15);
}

.clan-search-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clan-control-label {
  color: #8f929a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.clan-mode-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
}

.clan-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8f929a;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
}

.clan-mode-option.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.clan-mode-dot,
.clan-mode-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f848e;
}

.clan-mode-live-dot {
  background: #54d886;
  box-shadow: 0 0 8px rgba(84, 216, 134, 0.65);
}

.clan-search-topbar > p {
  margin: 0;
  color: #858890;
  font-size: 0.76rem;
}

.clan-search-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 20px 18px 14px;
}

.clan-search-field {
  position: relative;
  display: block;
}

.clan-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 4, 7, 0.52);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: 160ms ease;
}

.clan-search-field input:focus {
  border-color: rgba(218, 67, 60, 0.58);
  box-shadow: 0 0 0 3px rgba(192, 35, 34, 0.11);
}

.clan-search-field input::placeholder {
  color: #646871;
}

.clan-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #c94a46;
  font-size: 1.4rem;
  transform: translateY(-52%);
}

.clan-search-button {
  min-width: 150px;
  min-height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a90f18, #d5483d);
  box-shadow: 0 10px 25px rgba(175, 20, 27, 0.22);
}

.clan-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 17px;
}

.clan-search-tip {
  color: #686c75;
  font-size: 0.7rem;
}

.clan-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.clan-stats-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(24, 27, 34, 0.9), rgba(12, 14, 19, 0.92));
}

.clan-stats-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(#d64840, #6e1018);
}

.clan-stats-grid span {
  color: #858890;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.clan-stats-grid strong {
  overflow: hidden;
  color: #f1f2f4;
  font-size: 1.22rem;
  text-overflow: ellipsis;
}

.clan-results-card {
  padding: 0;
  overflow: hidden;
}

.clan-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.clan-results-head h3 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.clan-table-pagination {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.clan-table-pagination .button {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.clan-table-pagination .field {
  width: 72px;
}

.clan-table-pagination input {
  min-height: 40px;
  text-align: center;
}

.clan-table-shell {
  position: relative;
  min-height: 190px;
}

.clan-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  min-height: 190px;
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(4px);
}

.clan-loading-overlay[hidden] {
  display: none;
}

.clan-loading-overlay strong {
  color: #c9cbd0;
  font-size: 0.76rem;
}

.clan-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #da433d;
  border-radius: 50%;
  animation: nft-market-spin 720ms linear infinite;
}

.clan-results-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #11141a;
}

.clan-results-table td {
  height: 58px;
}

.rank-badge,
.class-badge,
.server-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #b7bac1;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.class-badge {
  color: #e4d2b0;
  border-color: rgba(218, 177, 105, 0.18);
  background: rgba(160, 110, 31, 0.1);
}

.server-badge {
  color: #b7cfeb;
  border-color: rgba(94, 151, 213, 0.19);
  background: rgba(45, 100, 163, 0.1);
}

@media (max-width: 760px) {
  .clan-search-topbar,
  .clan-search-footer,
  .clan-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .clan-search-topbar > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .clan-search-main {
    grid-template-columns: 1fr;
  }

  .clan-search-button {
    width: 100%;
  }

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

  .clan-table-pagination {
    align-self: stretch;
  }
}

@media (max-width: 430px) {
  .clan-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Server transfer registry */
.tool-masthead-transfers { background:radial-gradient(circle at 83% 28%,rgba(215,164,55,.16),transparent 27%),linear-gradient(120deg,rgba(25,25,29,.97),rgba(10,11,15,.97)); }
.tool-masthead-transfers .tool-masthead-icon { color:#f2d27b; border-color:rgba(222,178,70,.28); background:linear-gradient(145deg,rgba(171,119,24,.32),rgba(70,43,7,.26)); box-shadow:0 20px 50px rgba(164,105,19,.16),inset 0 1px rgba(255,255,255,.1); }
.transfer-page-group { display:grid; gap:15px; }
.transfer-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.transfer-overview-grid article { display:grid; gap:7px; padding:15px 16px; border:1px solid rgba(255,255,255,.08); border-radius:13px; background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow:0 14px 36px rgba(0,0,0,.18); }
.transfer-overview-grid span { color:#777e88; font-size:.57rem; font-weight:650; text-transform:uppercase; letter-spacing:.055em; }
.transfer-overview-grid strong { color:#ead59c; font-size:1.08rem; }
.transfer-overview-grid time { color:inherit; font-size:.78rem; }
.transfer-table-card { overflow:hidden; }
.transfer-table-head { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:19px 20px 15px; border-bottom:1px solid rgba(255,255,255,.07); }
.transfer-table-head h2 { margin:3px 0 4px; font-size:1.05rem; }
.transfer-table-head p:last-child { margin:0; color:#737a84; font-size:.61rem; }
.transfer-filter-bar { display:flex; max-width:720px; align-items:end; justify-content:flex-end; gap:8px; }
.transfer-filter-field { display:grid; min-width:145px; gap:5px; }
.transfer-filter-field > span { color:#858c96; font-size:.54rem; font-weight:750; text-transform:uppercase; letter-spacing:.055em; }
.transfer-filter-field select { width:100%; height:38px; padding:0 28px 0 10px; border:1px solid rgba(255,255,255,.1); border-radius:9px; outline:0; color:#d9dce1; background:#0b0d11; font:inherit; font-size:.62rem; }
.transfer-filter-field select:focus { border-color:rgba(202,158,54,.45); box-shadow:0 0 0 2px rgba(202,158,54,.08); }
.transfer-search { display:flex; width:min(320px,100%); height:38px; align-items:center; gap:8px; padding:0 11px; border:1px solid rgba(255,255,255,.1); border-radius:9px; background:rgba(5,7,10,.55); }
.transfer-search > span { color:#a98a45; font-size:1rem; }
.transfer-search input { width:100%; min-width:0; border:0; outline:0; color:#e5e7ea; background:transparent; font:inherit; font-size:.65rem; }
.transfer-results-table th { white-space:nowrap; }
.transfer-results-table td { vertical-align:middle; }
.transfer-character-link { display:grid; min-width:130px; gap:3px; }
.transfer-character-link strong { color:#e7e9ec; font-size:.7rem; }
.transfer-character-link span { color:#a08344; font-size:.52rem; }
.transfer-character-link:hover strong { color:#f1d98f; }
.transfer-server { display:inline-flex; min-width:90px; align-items:center; gap:6px; padding:6px 8px; border:1px solid rgba(255,255,255,.075); border-radius:7px; color:#c6c9ce; background:rgba(255,255,255,.025); font-size:.62rem; font-weight:750; }
.transfer-server small { color:#737a84; font-size:.48rem; }
.transfer-server.is-origin { border-color:rgba(212,79,72,.15); }
.transfer-server.is-destination { border-color:rgba(82,194,123,.2); color:#b9ddc4; background:rgba(45,135,77,.055); }
.transfer-confidence { display:inline-flex; padding:5px 8px; border:1px solid rgba(218,177,70,.2); border-radius:999px; color:#e1c56f; background:rgba(183,132,25,.08); font-size:.59rem; font-weight:800; }
.transfer-results-table time { color:#858c96; font-size:.57rem; white-space:nowrap; }
@media (max-width:1000px) { .transfer-table-head { align-items:stretch; flex-direction:column; } .transfer-filter-bar { max-width:none; justify-content:stretch; } .transfer-search { flex:1; } }
@media (max-width:800px) { .transfer-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .transfer-filter-bar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .transfer-search { width:100%; grid-column:1 / -1; } }
@media (max-width:480px) { .transfer-overview-grid { grid-template-columns:1fr; } .transfer-filter-bar { grid-template-columns:1fr; } .transfer-search { grid-column:auto; } }

/* Configurable desktop advertising rails */
.side-banner { display:none; position:fixed; z-index:40; top:51%; aspect-ratio:416 / 1876; max-height:86vh; transform:translateY(-50%); }
.side-banner-left { left:8px; }
.side-banner-right { right:8px; }
.side-banner a { display:block; width:100%; height:100%; overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:12px; background:#090b0f; box-shadow:0 18px 55px rgba(0,0,0,.48); line-height:0; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.side-banner a:hover { border-color:rgba(225,181,67,.5); box-shadow:0 22px 65px rgba(0,0,0,.62),0 0 24px rgba(211,157,38,.12); transform:translateY(-3px); }
.side-banner img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }

@media (min-width:1660px) {
  .side-banner { display:block; width:clamp(76px,calc((100vw - 1480px) / 2 - 11px),min(200px,calc(86vh * 0.22175))); }
}

/* Hidden banner administration */
.banner-admin-page { min-height:100vh; background:radial-gradient(circle at 15% 0,rgba(180,17,24,.18),transparent 28%),radial-gradient(circle at 85% 0,rgba(224,178,61,.08),transparent 25%),#080a0e; }
.banner-admin-shell { width:min(1120px,calc(100% - 28px)); margin:0 auto; padding:18px 0 60px; }
.banner-admin-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:28px; padding:10px 12px; border:1px solid rgba(255,255,255,.09); border-radius:16px; background:rgba(10,12,17,.88); box-shadow:0 16px 45px rgba(0,0,0,.25); }
.banner-admin-brand { display:flex; align-items:center; gap:10px; }
.banner-admin-brand > span { display:grid; width:40px; height:40px; place-items:center; border:1px solid rgba(255,102,109,.35); border-radius:12px; color:#fff; background:linear-gradient(145deg,#b41118,#4b070b); font-family:Georgia,serif; font-weight:900; }
.banner-admin-brand div { display:grid; gap:1px; }
.banner-admin-brand strong { font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; }
.banner-admin-brand small { color:#777f89; font-size:.5rem; text-transform:uppercase; letter-spacing:.1em; }
.banner-admin-logout { padding:9px 12px; border:1px solid rgba(255,255,255,.1); border-radius:9px; color:#b7bdc6; background:rgba(255,255,255,.035); cursor:pointer; }
.banner-admin-message { margin-bottom:16px; padding:12px 14px; border:1px solid; border-radius:10px; font-size:.75rem; }
.banner-admin-message.is-error { border-color:rgba(255,79,89,.35); color:#ffb0b5; background:rgba(180,17,24,.12); }
.banner-admin-message.is-success { border-color:rgba(84,211,137,.3); color:#9ce6ba; background:rgba(39,143,82,.1); }
.banner-admin-login { width:min(460px,100%); margin:12vh auto 0; padding:28px; border:1px solid rgba(255,255,255,.09); border-radius:18px; background:linear-gradient(145deg,rgba(24,28,35,.98),rgba(9,11,15,.99)); box-shadow:0 30px 90px rgba(0,0,0,.42); }
.banner-admin-login h1,.banner-admin-intro h1 { margin:4px 0 8px; font-size:clamp(1.55rem,3vw,2.3rem); }
.banner-admin-login > p:not(.section-label),.banner-admin-intro p,.banner-password-card p { color:#858d98; font-size:.72rem; line-height:1.55; }
.banner-admin-login form { display:grid; gap:14px; margin-top:22px; }
.banner-admin-login label,.banner-config-card > label,.banner-password-fields label { display:grid; gap:7px; color:#9ca3ad; font-size:.61rem; font-weight:700; }
.banner-admin-login input,.banner-config-card input[type="url"],.banner-config-card input[type="text"],.banner-password-fields input { width:100%; min-height:42px; padding:9px 11px; border:1px solid rgba(255,255,255,.1); border-radius:9px; outline:none; color:#edf0f4; background:rgba(0,0,0,.28); }
.banner-admin-login input:focus,.banner-config-card input:focus,.banner-password-fields input:focus { border-color:rgba(224,179,59,.52); box-shadow:0 0 0 3px rgba(208,157,34,.08); }
.banner-admin-login button,.banner-admin-actions button { min-height:42px; border:1px solid rgba(226,184,72,.42); border-radius:9px; color:#fff1bd; background:linear-gradient(145deg,rgba(180,126,19,.72),rgba(90,57,6,.85)); font-weight:800; cursor:pointer; }
.banner-admin-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.banner-admin-intro > span { padding:7px 10px; border:1px solid rgba(255,255,255,.08); border-radius:999px; color:#6f7782; font-size:.52rem; }
.banner-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.banner-config-card,.banner-password-card { padding:18px; border:1px solid rgba(255,255,255,.085); border-radius:16px; background:linear-gradient(145deg,rgba(23,27,34,.96),rgba(9,11,15,.98)); box-shadow:0 18px 50px rgba(0,0,0,.2); }
.banner-config-card { display:grid; gap:14px; }
.banner-config-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.banner-config-title small { color:#e26969; font-size:.48rem; letter-spacing:.12em; }
.banner-config-title h2,.banner-password-card h2 { margin:3px 0 0; font-size:1rem; }
.banner-toggle,.banner-check { display:flex !important; align-items:center; grid-template-columns:auto 1fr; gap:8px !important; color:#abb2bc; font-size:.58rem; cursor:pointer; }
.banner-toggle input,.banner-check input { accent-color:#c99931; }
.banner-preview { display:grid; width:86px; height:388px; margin:0 auto; place-items:center; overflow:hidden; border:1px dashed rgba(255,255,255,.15); border-radius:11px; color:#5f6670; background:rgba(0,0,0,.28); font-size:.52rem; text-align:center; }
.banner-preview img { width:100%; height:100%; object-fit:cover; object-position:center; background:#090b0f; }
.banner-password-card { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr); gap:22px; margin-top:16px; }
.banner-password-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.banner-password-fields input:disabled { opacity:.45; cursor:not-allowed; }
.banner-admin-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; margin-top:16px; }
.banner-admin-actions p { margin-right:auto; color:#6e7681; font-size:.58rem; }
.banner-admin-actions button { min-width:190px; padding:0 18px; }

@media (max-width:760px) {
  .banner-admin-grid,.banner-password-card,.banner-password-fields { grid-template-columns:1fr; }
  .banner-admin-intro,.banner-admin-actions { align-items:stretch; flex-direction:column; }
  .banner-admin-actions button { width:100%; }
}

/* NFT email alert manager */
.nft-alert-admin-shell { width:min(1380px,calc(100% - 28px)); }
.admin-section-nav { display:flex; align-items:center; gap:5px; padding:4px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(0,0,0,.22); }
.admin-section-nav a { padding:8px 11px; border-radius:8px; color:#858d98; font-size:.61rem; font-weight:750; text-decoration:none; }
.admin-section-nav a.active,.admin-section-nav a:hover { color:#ffe9a8; background:rgba(201,153,49,.12); }
.admin-section-nav-inline { width:max-content; margin:0 auto 18px; }
.nft-alert-intro { align-items:center; }
.nft-alert-service-state { display:grid; gap:3px; min-width:170px; padding:11px 14px; border:1px solid; border-radius:12px; text-align:right; }
.nft-alert-service-state span { font-size:.66rem; font-weight:850; }
.nft-alert-service-state small { color:#737c87; font-size:.5rem; }
.nft-alert-service-state.is-ready { border-color:rgba(69,202,126,.3); color:#83dfaa; background:rgba(32,132,74,.09); }
.nft-alert-service-state.is-warning { border-color:rgba(238,174,61,.3); color:#ffd071; background:rgba(171,105,16,.1); }
.nft-alert-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.nft-alert-status-grid article { display:grid; gap:5px; padding:13px 15px; border:1px solid rgba(255,255,255,.075); border-radius:12px; background:rgba(13,16,21,.86); }
.nft-alert-status-grid span { color:#737c87; font-size:.54rem; text-transform:uppercase; letter-spacing:.07em; }
.nft-alert-status-grid strong { overflow:hidden; color:#d8dde4; font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
.nft-alert-engine-error { margin:-5px 0 16px; padding:10px 13px; border:1px solid rgba(255,77,87,.25); border-radius:9px; color:#ffabb0; background:rgba(170,21,29,.1); font-size:.62rem; }
.nft-alert-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:16px; align-items:start; }
.nft-alert-create,.nft-alert-smtp-test,.nft-alert-smtp-help,.nft-alert-list-section,.nft-alert-history { border:1px solid rgba(255,255,255,.085); border-radius:16px; background:linear-gradient(145deg,rgba(23,27,34,.96),rgba(9,11,15,.98)); box-shadow:0 18px 50px rgba(0,0,0,.18); }
.nft-alert-create { padding:19px; }
.nft-alert-card-head,.nft-alert-list-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.nft-alert-card-head h2,.nft-alert-list-head h2,.nft-alert-smtp-test h2,.nft-alert-history h2 { margin:3px 0 0; font-size:1rem; }
.nft-alert-card-head > span { display:grid; width:34px; height:34px; place-items:center; border:1px solid rgba(212,166,53,.25); border-radius:10px; color:#e8bf59; background:rgba(159,108,12,.12); font-size:.65rem; font-weight:900; }
.nft-alert-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-top:17px; }
.nft-alert-form-grid label { display:grid; gap:6px; color:#969eaa; font-size:.57rem; font-weight:750; }
.nft-alert-form-grid input,.nft-alert-form-grid select,.nft-alert-range-grid input,.nft-alert-smtp-test input { width:100%; min-height:40px; padding:8px 10px; border:1px solid rgba(255,255,255,.095); border-radius:9px; outline:none; color:#e9edf2; background:#090c10; }
.nft-alert-form-grid input:focus,.nft-alert-form-grid select:focus,.nft-alert-range-grid input:focus,.nft-alert-smtp-test input:focus { border-color:rgba(216,168,51,.5); box-shadow:0 0 0 3px rgba(203,150,27,.07); }
.nft-alert-range-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-top:12px; }
.nft-alert-range-grid fieldset { display:grid; grid-template-columns:1fr auto 1fr; gap:7px; align-items:center; margin:0; padding:9px 10px 11px; border:1px solid rgba(255,255,255,.075); border-radius:11px; }
.nft-alert-range-grid legend { padding:0 5px; color:#969eaa; font-size:.56rem; font-weight:750; }
.nft-alert-range-grid fieldset > span { color:#555e69; }
.nft-alert-create-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:15px; }
.nft-alert-create-footer p { max-width:620px; color:#727b87; font-size:.58rem; line-height:1.5; }
.nft-alert-create button,.nft-alert-smtp-test button,.nft-alert-list-head button { min-height:40px; padding:0 16px; border:1px solid rgba(226,184,72,.42); border-radius:9px; color:#fff1bd; background:linear-gradient(145deg,rgba(180,126,19,.72),rgba(90,57,6,.85)); font-size:.62rem; font-weight:850; cursor:pointer; }
.nft-alert-side { display:grid; gap:12px; }
.nft-alert-smtp-test,.nft-alert-smtp-help { padding:17px; }
.nft-alert-smtp-test > p:not(.section-label) { margin:7px 0 13px; color:#747d89; font-size:.58rem; line-height:1.45; }
.nft-alert-smtp-test form { display:grid; gap:8px; }
.nft-alert-smtp-help { display:grid; gap:7px; }
.nft-alert-smtp-help strong { margin-bottom:3px; color:#c8ced6; font-size:.65rem; }
.nft-alert-smtp-help code { padding:6px 8px; border-radius:6px; color:#bba96e; background:rgba(0,0,0,.25); font-size:.53rem; }
.nft-alert-smtp-help small { margin-top:4px; color:#666f7a; font-size:.52rem; line-height:1.5; }
.nft-alert-list-section,.nft-alert-history { margin-top:16px; padding:19px; }
.nft-alert-list { display:grid; gap:8px; margin-top:15px; }
.nft-alert-row { display:grid; grid-template-columns:minmax(240px,1.2fr) minmax(230px,1fr) minmax(150px,.55fr) auto; gap:14px; align-items:center; padding:12px 13px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(0,0,0,.18); }
.nft-alert-row.is-paused { opacity:.58; }
.nft-alert-row-main { display:flex; align-items:center; gap:10px; min-width:0; }
.nft-alert-indicator { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#4bd184; box-shadow:0 0 12px rgba(75,209,132,.5); }
.is-paused .nft-alert-indicator { background:#68717d; box-shadow:none; }
.nft-alert-row h3 { overflow:hidden; margin:0 0 4px; color:#e2e6eb; font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
.nft-alert-row p { overflow:hidden; margin:0; color:#747d88; font-size:.54rem; text-overflow:ellipsis; white-space:nowrap; }
.nft-alert-rule-chips { display:flex; flex-wrap:wrap; gap:5px; }
.nft-alert-rule-chips span { padding:5px 7px; border:1px solid rgba(85,167,198,.17); border-radius:999px; color:#86bbce; background:rgba(36,110,137,.09); font-size:.48rem; }
.nft-alert-row-meta { display:grid; gap:4px; }
.nft-alert-row-meta span { color:#aeb6c0; font-size:.6rem; font-weight:800; }
.nft-alert-row-meta small { overflow:hidden; max-width:190px; color:#69727d; font-size:.48rem; text-overflow:ellipsis; white-space:nowrap; }
.nft-alert-row-actions form { display:flex; gap:5px; }
.nft-alert-row-actions button { display:grid; width:30px; height:30px; place-items:center; border:1px solid rgba(255,255,255,.09); border-radius:8px; color:#aeb5be; background:rgba(255,255,255,.035); cursor:pointer; }
.nft-alert-row-actions button:hover { color:#fff; border-color:rgba(220,177,66,.35); }
.nft-alert-row-actions button.danger:hover { color:#ff9ca2; border-color:rgba(255,76,86,.35); }
.nft-alert-empty { margin:16px 0 0; padding:22px; border:1px dashed rgba(255,255,255,.1); border-radius:12px; color:#68717d; font-size:.62rem; text-align:center; }
.nft-alert-history > div:first-child { margin-bottom:13px; }
.nft-alert-history table { width:100%; border-collapse:collapse; font-size:.58rem; }
.nft-alert-history th,.nft-alert-history td { padding:9px 10px; border-bottom:1px solid rgba(255,255,255,.06); text-align:left; }
.nft-alert-history th { color:#717a86; text-transform:uppercase; }
.nft-alert-history td { color:#aab2bc; }
.nft-alert-history td a { color:#e5c670; }
.nft-alert-history td small { display:block; overflow:hidden; max-width:300px; margin-top:3px; color:#e98087; text-overflow:ellipsis; white-space:nowrap; }
.nft-alert-delivery-status { padding:4px 7px; border-radius:999px; font-size:.48rem; text-transform:uppercase; }
.nft-alert-delivery-status.is-sent { color:#8ce2b1; background:rgba(42,143,85,.14); }
.nft-alert-delivery-status.is-error { color:#ff9ca2; background:rgba(180,37,46,.14); }

@media (max-width:1050px) {
  .nft-alert-layout { grid-template-columns:1fr; }
  .nft-alert-side { grid-template-columns:1fr 1fr; }
  .nft-alert-row { grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto; }
  .nft-alert-row-meta { display:none; }
}
@media (max-width:760px) {
  .nft-alert-admin-page .banner-admin-header { flex-wrap:wrap; }
  .nft-alert-admin-page .admin-section-nav { order:3; width:100%; justify-content:center; }
  .nft-alert-status-grid,.nft-alert-form-grid,.nft-alert-range-grid,.nft-alert-side { grid-template-columns:1fr; }
  .nft-alert-row { grid-template-columns:1fr auto; }
  .nft-alert-rule-chips { grid-column:1/-1; }
  .nft-alert-create-footer { align-items:stretch; flex-direction:column; }
}
