:root {
  --market-ink: #eef5ff;
  --market-muted: #aebbd4;
  --market-panel: rgba(8, 15, 36, 0.88);
  --market-panel-soft: rgba(17, 29, 62, 0.78);
  --market-line: rgba(126, 169, 255, 0.24);
  --market-blue: #4ac7ff;
  --market-violet: #9a67ff;
  --market-gold: #ffc85a;
  --market-green: #57e6ad;
  --market-red: #ff6f91;
}

body.market-page {
  min-height: 100vh;
  color: var(--market-ink);
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

body.market-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(95, 57, 184, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(2, 6, 18, 0.18), rgba(2, 7, 21, 0.78));
}

.market-shell,
.market-shell * {
  box-sizing: border-box;
}

.market-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.market-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px 38px;
  border: 1px solid rgba(151, 192, 255, 0.3);
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgba(10, 21, 54, 0.96), rgba(38, 24, 79, 0.88)),
    rgba(8, 16, 39, 0.9);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.09);
}

.market-hero::after {
  content: "∞";
  position: absolute;
  right: 28px;
  top: 50%;
  translate: 0 -54%;
  color: transparent;
  font: 900 190px/1 Georgia, serif;
  -webkit-text-stroke: 2px rgba(119, 199, 255, 0.11);
  filter: drop-shadow(0 0 24px rgba(138, 88, 255, 0.22));
}

.market-kicker {
  margin: 0 0 7px;
  color: var(--market-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.market-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.06;
  text-shadow: 0 0 26px rgba(100, 191, 255, 0.28);
}

.market-hero p {
  max-width: 650px;
  margin: 13px 0 0;
  color: #c9d6ec;
  font-size: 15px;
  line-height: 1.7;
}

.market-balance {
  position: relative;
  z-index: 1;
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 205, 103, 0.36);
  border-radius: 20px;
  background: rgba(7, 12, 31, 0.72);
  text-align: right;
  backdrop-filter: blur(12px);
}

.market-balance span {
  display: block;
  color: var(--market-muted);
  font-size: 12px;
}

.market-balance strong {
  display: block;
  margin-top: 3px;
  color: var(--market-gold);
  font-size: 27px;
}

.market-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: rgba(6, 13, 31, 0.86);
  scrollbar-width: thin;
}

.market-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b9c7de;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.market-tabs a:hover,
.market-tabs a.active {
  color: #fff;
  border-color: rgba(117, 187, 255, 0.42);
  background: linear-gradient(135deg, rgba(54, 147, 255, 0.28), rgba(144, 77, 255, 0.28));
  box-shadow: 0 0 22px rgba(94, 127, 255, 0.16);
}

.market-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--market-line);
  border-radius: 22px;
  background: var(--market-panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(15px);
}

.market-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-panel h2,
.market-panel h3 {
  margin: 0;
  color: #fff;
}

.market-panel-header p,
.market-help {
  margin: 5px 0 0;
  color: var(--market-muted);
  line-height: 1.6;
}

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

.market-stat {
  padding: 15px 17px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-panel-soft);
}

.market-stat span {
  display: block;
  color: var(--market-muted);
  font-size: 12px;
}

.market-stat strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 22px;
}

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

.market-field {
  grid-column: span 3;
}

.market-field.wide {
  grid-column: span 6;
}

.market-field.full {
  grid-column: 1 / -1;
}

.market-exchange-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(104, 92, 255, 0.18), transparent 38%),
    radial-gradient(circle at 82% 100%, rgba(255, 185, 71, 0.11), transparent 35%),
    var(--market-panel);
}

.market-exchange-panel .market-panel-header i {
  margin-right: 8px;
  color: var(--market-gold);
}

.market-exchange-switcher {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.market-exchange-currency {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  border: 1px solid rgba(130, 169, 231, 0.3);
  border-radius: 18px;
  background: rgba(5, 12, 31, 0.78);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.market-exchange-currency.is-source {
  border-color: rgba(156, 109, 255, 0.58);
  background: linear-gradient(135deg, rgba(74, 39, 139, 0.58), rgba(9, 17, 41, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(76, 44, 156, 0.2);
}

.market-exchange-currency.is-target {
  border-color: rgba(255, 199, 90, 0.45);
  background: linear-gradient(135deg, rgba(89, 63, 22, 0.48), rgba(9, 17, 41, 0.88));
}

.market-exchange-currency > span,
.market-exchange-currency > small {
  overflow: hidden;
  color: var(--market-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-exchange-currency > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 6px 0;
}

.market-exchange-currency img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 0 10px rgba(139, 105, 255, 0.5));
}

.market-exchange-currency strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 26px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-exchange-swap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 211, 116, 0.68);
  border-radius: 50%;
  color: #171023;
  background: linear-gradient(135deg, #ffe07e, #f3a93e);
  box-shadow: 0 0 0 7px rgba(255, 200, 90, 0.07), 0 11px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.market-exchange-swap:hover,
.market-exchange-swap:focus-visible {
  transform: rotate(180deg) scale(1.06);
  box-shadow: 0 0 0 8px rgba(255, 200, 90, 0.12), 0 13px 30px rgba(0, 0, 0, 0.4);
  outline: none;
}

.market-exchange-swap i { font-size: 21px; }

.market-exchange-submit { min-width: 190px; }

.market-exchange-help {
  padding: 11px 14px;
  border: 1px solid rgba(116, 172, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 24, 53, 0.56);
}

.market-field label {
  display: block;
  margin-bottom: 7px;
  color: #dfe9fb;
  font-size: 12px;
  font-weight: 800;
}

.market-field input,
.market-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #f7fbff;
  border: 1px solid rgba(128, 164, 223, 0.35);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 10, 27, 0.86);
}

.market-field select option {
  color: #101a31;
  background: #fff;
}

/* The legacy theme forces every select to a white background with !important.
   Match that surface with high-contrast ink so the selected value stays
   readable in desktop Chromium and Android Chrome. */
.market-page .market-field select,
.market-page .market-card-action select {
  color: #14203a !important;
  font-weight: 700;
  -webkit-text-fill-color: #14203a;
  background-color: #f7f9ff !important;
}

.market-page .market-field select option,
.market-page .market-card-action select option {
  color: #14203a !important;
  font-weight: 600;
  background-color: #fff !important;
}

.market-field input:focus,
.market-field select:focus {
  border-color: var(--market-blue);
  box-shadow: 0 0 0 3px rgba(74, 199, 255, 0.14);
}

.market-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
}

.market-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(133, 187, 255, 0.34);
  border-radius: 12px;
  color: #fff !important;
  background: rgba(26, 43, 80, 0.9);
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.market-btn.primary {
  border-color: rgba(82, 202, 255, 0.5);
  background: linear-gradient(135deg, #2578db, #744bd8);
  box-shadow: 0 9px 24px rgba(55, 104, 220, 0.28);
}

.market-btn.gold {
  border-color: rgba(255, 211, 116, 0.58);
  color: #171023 !important;
  background: linear-gradient(135deg, #ffe07e, #f3a93e);
}

.market-btn.danger {
  border-color: rgba(255, 111, 145, 0.5);
  background: rgba(145, 36, 68, 0.8);
}

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

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

.market-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(127, 169, 235, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(20, 34, 70, 0.92), rgba(6, 12, 29, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--market-blue), var(--market-violet), transparent);
}

.market-card-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.market-item-art {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 189, 255, 0.3);
  border-radius: 16px;
  background: radial-gradient(circle, rgba(90, 121, 219, 0.22), rgba(5, 11, 28, 0.78));
  cursor: help;
}

.market-item-art:hover,
.market-item-art:focus-visible {
  border-color: rgba(255, 213, 102, 0.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 91, 232, 0.24), 0 0 22px rgba(92, 156, 255, 0.28);
}

.market-item-art img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
}

.market-item-tooltip[hidden] { display: none !important; }

.market-item-tooltip {
  position: fixed;
  z-index: 2147482000;
  width: min(350px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 10px;
  overflow: auto;
  border: 2px solid #7c8fae;
  border-radius: 7px;
  color: #161616;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 244, 250, 0.99));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.38;
  overscroll-behavior: contain;
  animation: market-tooltip-in 120ms ease-out;
}

@keyframes market-tooltip-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.market-tooltip-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.market-tooltip-art {
  width: 88px;
  min-height: 94px;
  display: grid;
  place-items: center;
  border-right: 1px solid #bdc6d2;
  background: linear-gradient(135deg, #f7f9fc, #e8edf5);
}

.market-tooltip-art img {
  max-width: 78px;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(42, 55, 76, 0.28));
}

.market-tooltip-copy h4 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #aeb8c6;
  color: #202020;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.market-tooltip-effects,
.market-tooltip-card {
  display: grid;
  gap: 2px;
}

.market-tooltip-effects strong {
  color: #202020;
  font-size: 13px;
  font-weight: 800;
}

.market-tooltip-muted {
  margin: 0;
  color: #687282;
  font-size: 11px;
}

.market-tooltip-rule {
  height: 1px;
  margin: 9px 0 7px;
  background: #aeb8c6;
}

.market-tooltip-stats {
  display: grid;
  gap: 2px;
  margin: 0;
}

.market-tooltip-stats > div {
  display: flex;
  gap: 5px;
}

.market-tooltip-stats dt {
  color: #113fb0;
  font-weight: 900;
}

.market-tooltip-stats dt::after { content: ":"; }
.market-tooltip-stats dd { margin: 0; color: #111; font-weight: 700; }

.market-tooltip-sub {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #c2cad5;
}

.market-tooltip-sub > span {
  color: #113fb0;
  font-weight: 900;
}

.market-tooltip-card {
  padding: 6px 7px;
  border-left: 3px solid #7b48ca;
  background: rgba(110, 80, 181, 0.08);
}

.market-tooltip-card b { color: #34205e; }
.market-tooltip-card small,
.market-tooltip-option { color: #222; font-size: 11px; font-weight: 700; }

.market-tooltip-hint {
  display: none;
  margin: 9px 0 0;
  color: #687282;
  font-size: 10px;
  text-align: center;
}

.market-item-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.market-meta,
.market-detail {
  margin-top: 5px;
  color: var(--market-muted);
  font-size: 12px;
  line-height: 1.5;
}

.market-price {
  margin-top: 10px;
  color: var(--market-gold);
  font-size: 20px;
  font-weight: 900;
}

.market-listing-clock {
  margin-top: 8px;
  color: #9ecbff;
  font-size: 12px;
}

.market-listing-clock strong { color: #e5f2ff; }

.market-tab-count,
.market-count-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid rgba(255, 216, 112, 0.65);
  border-radius: 999px;
  color: #171128;
  background: linear-gradient(135deg, #ffe58b, #ffb743);
  box-shadow: 0 0 14px rgba(255, 188, 67, 0.3);
  font-size: 11px;
  font-weight: 900;
}

.market-vault-panel {
  border-color: rgba(255, 194, 83, 0.36);
  background: linear-gradient(145deg, rgba(33, 25, 68, 0.88), rgba(6, 16, 39, 0.92));
}

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

.market-vault-card { border-color: rgba(255, 194, 83, 0.26); }

.market-vault-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #ffd56a;
  font-size: 11px;
  font-weight: 800;
}

.market-vault-actions {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 12px;
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(129, 163, 223, 0.16);
}

.market-vault-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.market-vault-form label {
  grid-column: 1 / -1;
  color: #d8e7ff;
  font-size: 12px;
  font-weight: 700;
}

.market-vault-form select,
.market-vault-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(128, 164, 223, 0.35);
  border-radius: 10px;
  background: rgba(3, 9, 24, 0.9);
}

.market-vault-form option { color: #111a2e; }
.market-relist-form { grid-template-columns: minmax(80px, 1fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) auto; }

.market-card-action {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(129, 163, 223, 0.16);
}

.market-card-action form {
  display: grid;
  gap: 9px;
}

.market-card-action select,
.market-card-action input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(128, 164, 223, 0.35);
  border-radius: 10px;
  background: rgba(3, 9, 24, 0.9);
}

.market-card-action option {
  color: #111a2e;
}

.market-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.market-badge {
  padding: 4px 8px;
  border: 1px solid rgba(133, 177, 245, 0.28);
  border-radius: 999px;
  color: #c9d9f2;
  background: rgba(42, 61, 105, 0.5);
  font-size: 10px;
  font-weight: 800;
}

.market-badge.leading { color: #151024; background: var(--market-gold); }
.market-badge.success { color: #071d18; background: var(--market-green); }
.market-badge.danger { color: #2b0710; background: var(--market-red); }

.market-notice {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(99, 190, 255, 0.3);
  border-radius: 15px;
  color: #d8e7ff;
  background: rgba(24, 63, 111, 0.64);
  line-height: 1.6;
}

.market-notice.success { border-color: rgba(87, 230, 173, 0.4); background: rgba(17, 94, 72, 0.64); }
.market-notice.error { border-color: rgba(255, 111, 145, 0.45); background: rgba(112, 28, 54, 0.72); }
.market-notice.warning { border-color: rgba(255, 200, 90, 0.45); background: rgba(105, 72, 20, 0.7); }

.market-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 1px dashed rgba(132, 172, 236, 0.3);
  border-radius: 18px;
  color: var(--market-muted);
  text-align: center;
  background: rgba(8, 15, 35, 0.54);
}

.market-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--market-violet);
  font-size: 34px;
}

.market-scroll {
  overflow-x: auto;
  border: 1px solid var(--market-line);
  border-radius: 15px;
}

.market-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(5, 12, 30, 0.7);
}

.market-table th,
.market-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(129, 163, 223, 0.14);
  color: #dbe7f8;
  text-align: left;
  vertical-align: middle;
}

.market-table th {
  color: #fff;
  background: rgba(36, 57, 102, 0.7);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.market-login {
  padding: 42px 24px;
  border: 1px solid rgba(131, 177, 255, 0.28);
  border-radius: 20px;
  text-align: center;
  background: rgba(9, 17, 39, 0.84);
}

.market-login i {
  display: block;
  margin-bottom: 10px;
  color: var(--market-gold);
  font-size: 40px;
}

.market-countdown {
  color: var(--market-blue);
  font-weight: 800;
}

.market-inspect-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(129, 198, 255, 0.38);
  border-radius: 10px;
  color: #dff4ff;
  background: linear-gradient(135deg, rgba(28, 98, 164, 0.62), rgba(102, 54, 168, 0.64));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 7px 18px rgba(19, 37, 94, 0.24);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.market-inspect-btn:hover,
.market-inspect-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 211, 105, 0.68);
  outline: none;
  box-shadow: 0 0 0 3px rgba(112, 99, 255, 0.2), 0 8px 22px rgba(19, 37, 94, 0.34);
}

html.market-dialog-open { overflow: hidden; }

.market-item-dialog {
  width: min(820px, calc(100% - 32px));
  max-width: 820px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(171, 138, 255, 0.64) !important;
  border-radius: 24px !important;
  color: #edf5ff;
  background: #081126 !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), 0 0 52px rgba(113, 60, 218, 0.24) !important;
}

.market-item-dialog::backdrop {
  background: rgba(1, 4, 14, 0.82);
  backdrop-filter: blur(8px);
}

.market-item-dialog-frame {
  position: relative;
  max-height: calc(100dvh - 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 7%, rgba(128, 72, 244, 0.3), transparent 36%),
    radial-gradient(circle at 6% 90%, rgba(41, 167, 230, 0.17), transparent 34%),
    linear-gradient(155deg, #0c1732, #080d1f 68%);
}

.market-item-dialog-frame::before {
  content: "∞";
  position: absolute;
  right: 26px;
  top: 52px;
  color: transparent;
  font: 900 190px/1 Georgia, serif;
  -webkit-text-stroke: 2px rgba(166, 125, 255, 0.07);
  pointer-events: none;
}

.market-item-dialog-header {
  position: relative;
  z-index: 1;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px 15px 24px;
  border-bottom: 1px solid rgba(153, 185, 245, 0.2);
  background: rgba(6, 12, 29, 0.78);
}

.market-item-dialog-header span {
  display: block;
  margin-bottom: 2px;
  color: #ffc85a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.market-item-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
}

.market-dialog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 205, 90, 0.55);
  border-radius: 50%;
  color: #ffd978;
  background: rgba(20, 26, 54, 0.86);
  font-size: 18px;
  cursor: pointer;
}

.market-dialog-close:hover,
.market-dialog-close:focus-visible {
  color: #151023;
  background: #ffd56a;
  outline: none;
}

.market-item-dialog-scroll {
  position: relative;
  z-index: 1;
  padding: 22px 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.market-inspect-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.market-inspect-art {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(136, 87, 238, 0.38), transparent 66%),
    rgba(7, 14, 34, 0.82);
  box-shadow: inset 0 0 25px rgba(115, 91, 219, 0.2), 0 14px 34px rgba(0, 0, 0, 0.32);
}

.market-inspect-art img {
  max-width: 108px;
  max-height: 108px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, 0.38));
}

.market-inspect-title p {
  margin: 0 0 5px;
  color: #aabbd6;
  font-size: 12px;
}

.market-inspect-title h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 31px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.market-inspect-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.market-inspect-badges span {
  padding: 5px 9px;
  border: 1px solid rgba(132, 180, 255, 0.28);
  border-radius: 999px;
  color: #d9e8ff;
  background: rgba(35, 55, 99, 0.68);
  font-size: 10px;
  font-weight: 800;
}

.market-inspect-badges span:first-child { color: #21152b; background: #ffd264; }

.market-inspect-section {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid rgba(130, 169, 235, 0.2);
  border-radius: 17px;
  background: rgba(8, 17, 40, 0.7);
}

.market-inspect-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: #fff;
  font-size: 15px;
}

.market-inspect-section h4 i { color: #ffc85a; }

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

.market-inspect-stats > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(31, 50, 91, 0.72), rgba(29, 25, 69, 0.72));
}

.market-inspect-stats span,
.market-inspect-stats strong {
  display: block;
  overflow-wrap: anywhere;
}

.market-inspect-stats span { color: #9fafca; font-size: 10px; }
.market-inspect-stats strong { margin-top: 3px; color: #f3f8ff; font-size: 13px; }

.market-socket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.market-socket {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px;
  border: 1px solid rgba(150, 115, 238, 0.3);
  border-radius: 13px;
  background: rgba(34, 25, 76, 0.58);
}

.market-socket img,
.market-socket > i {
  grid-row: 1 / -1;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.market-socket > i {
  display: grid;
  place-items: center;
  color: rgba(166, 190, 227, 0.36);
  font-size: 30px;
}

.market-socket span { color: #a8b7d1; font-size: 9px; text-transform: uppercase; }
.market-socket strong { color: #fff; font-size: 12px; overflow-wrap: anywhere; }
.market-socket small { color: #a78aff; font-size: 9px; }
.market-socket em {
  grid-column: 2;
  color: #82c9ff;
  font-size: 9px;
  font-style: normal;
}
.market-socket-effects {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.market-socket-effects b {
  padding: 3px 6px;
  border-radius: 6px;
  color: #f8f2ff;
  background: rgba(121, 72, 205, 0.34);
  font-size: 9px;
}
.market-socket.empty { border-style: dashed; background: rgba(18, 28, 51, 0.55); }
.market-socket.empty strong { color: #7f91ad; font-weight: 600; }

.market-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-option-list span {
  padding: 8px 11px;
  border: 1px solid rgba(193, 126, 255, 0.34);
  border-radius: 10px;
  color: #f3eaff;
  background: linear-gradient(135deg, rgba(104, 52, 174, 0.45), rgba(34, 54, 112, 0.56));
  font-size: 12px;
  font-weight: 800;
}

.market-option-list i { margin-right: 6px; color: #ffc85a; }

.market-inspect-description p {
  margin: 0;
  color: #c6d3e8;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.market-item-dialog-footer {
  position: relative;
  z-index: 1;
  padding: 13px 22px;
  border-top: 1px solid rgba(139, 174, 235, 0.18);
  color: #aebdd5;
  background: rgba(4, 9, 23, 0.9);
  font-size: 11px;
  text-align: center;
}

.market-item-dialog-footer i { margin-right: 6px; color: #57e6ad; }

.market-token-status {
  border-color: rgba(255, 200, 90, 0.35);
  background:
    radial-gradient(circle at 88% 12%, rgba(154, 103, 255, 0.2), transparent 34%),
    var(--market-panel);
}

.market-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 200, 90, 0.45);
  border-radius: 999px;
  color: #ffe3a0;
  background: rgba(255, 173, 51, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.market-stat-card,
.market-info-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21, 37, 77, 0.82), rgba(10, 18, 43, 0.9));
}

.market-stat-card > span,
.market-stat-card > small {
  display: block;
}

.market-stat-card > span {
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-stat-card > strong {
  display: block;
  overflow: hidden;
  margin: 6px 0 8px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  text-overflow: ellipsis;
}

.market-stat-card > small,
.market-info-card p {
  color: var(--market-muted);
  line-height: 1.65;
}

.market-info-card > i {
  color: var(--market-gold);
  font-size: 24px;
}

.market-info-card h3 {
  margin: 12px 0 7px;
  color: #fff;
}

.market-info-card p { margin: 0; }

.market-checklist {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  color: #dbe7f8;
  background: rgba(15, 28, 61, 0.68);
}

.market-checklist li > span {
  flex: 0 0 28px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #160f2c;
  background: linear-gradient(135deg, #9a67ff, #ffc85a);
  font-weight: 900;
}

.market-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(112, 207, 255, .48);
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, #6d45d8, #2aaee7);
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.market-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(138, 177, 255, .55);
  border-radius: 13px;
  color: #f7f9ff !important;
  background: linear-gradient(145deg, rgba(32, 50, 94, .98), rgba(18, 30, 67, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 8px 18px rgba(1, 8, 27, .18);
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.market-secondary-button:hover,
.market-secondary-button:focus {
  border-color: #bf9bff;
  color: #fff6c6 !important;
  background: linear-gradient(145deg, #46347c, #193c70);
  box-shadow: 0 0 0 3px rgba(157, 103, 255, .14), 0 10px 24px rgba(4, 9, 31, .28);
}

@media (max-width: 900px) {
  .market-stat-grid,
  .market-info-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-vault-panel .market-grid,
  .market-vault-actions { grid-template-columns: 1fr; }
  .market-field { grid-column: span 6; }
  .market-field.wide { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .market-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 104px;
  }

  .market-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .market-hero::after { right: -36px; font-size: 140px; }
  .market-balance { min-width: 0; text-align: left; }
  .market-tabs { margin: 12px 0; border-radius: 15px; }
  .market-tabs a { padding: 9px 13px; }
  .market-panel { padding: 17px; border-radius: 18px; }
  .market-panel-header { align-items: flex-start; flex-direction: column; }
  .market-stats { grid-template-columns: 1fr; }
  .market-field,
  .market-field.wide { grid-column: 1 / -1; }
  .market-actions,
  .market-actions .market-btn { width: 100%; }
  .market-exchange-switcher { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; }
  .market-exchange-currency { min-height: 96px; padding: 13px 11px; border-radius: 15px; }
  .market-exchange-currency > div { gap: 7px; }
  .market-exchange-currency img { width: 29px; height: 29px; }
  .market-exchange-currency strong { font-size: 15px; }
  .market-exchange-currency > small { font-size: 9px; }
  .market-exchange-swap { width: 44px; height: 44px; }
  .market-exchange-swap i { font-size: 17px; }
  .market-grid { grid-template-columns: 1fr; }
  .market-card-main { grid-template-columns: 62px minmax(0, 1fr); padding: 15px; }
  .market-item-art { width: 62px; height: 62px; }
  .market-item-art img { max-width: 50px; max-height: 50px; }
  .market-item-tooltip { width: min(330px, calc(100vw - 16px)); }
  .market-tooltip-head { grid-template-columns: 76px minmax(0, 1fr); }
  .market-tooltip-art { width: 76px; min-height: 82px; }
  .market-tooltip-art img { max-width: 68px; max-height: 76px; }
  .market-card-action { padding: 13px 15px 15px; }
  .market-vault-actions { padding: 13px 15px 15px; }
  .market-vault-form,
  .market-relist-form { grid-template-columns: 1fr; }
  .market-vault-form .market-btn { width: 100%; }
  .market-item-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px !important; }
  .market-item-dialog-frame { max-height: calc(100dvh - 18px); }
  .market-item-dialog-header { min-height: 66px; padding: 12px 13px 11px 16px; }
  .market-item-dialog-header h2 { font-size: 19px; }
  .market-dialog-close { flex-basis: 40px; width: 40px; height: 40px; }
  .market-item-dialog-scroll { padding: 15px; }
  .market-inspect-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .market-inspect-art { width: 88px; height: 88px; border-radius: 19px; }
  .market-inspect-art img { max-width: 76px; max-height: 76px; }
  .market-inspect-title h3 { font-size: 20px; }
  .market-inspect-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-socket-grid { grid-template-columns: 1fr; }
  .market-item-dialog-footer { padding: 10px 14px; }
}

@media (hover: none), (pointer: coarse) {
  .market-item-art { cursor: pointer; }
  .market-tooltip-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .market-tabs a,
  .market-btn { transition: none; }
}

/* Admin-only IGT Testnet deployment console. */
.igt-deploy-panel { max-width: 1080px; margin-left: auto; margin-right: auto; }
.igt-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.igt-role-grid article {
  min-width: 0; padding: 18px; border: 1px solid rgba(123, 164, 255, .25); border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 41, 84, .82), rgba(36, 19, 74, .78));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.igt-role-grid span, .igt-role-grid small { display: block; color: #b9c9e9; }
.igt-role-grid strong { display: block; margin: 7px 0; color: #fff2ad; font-size: 18px; overflow-wrap: anywhere; }
.igt-deploy-safety, .igt-wallet-status { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.igt-deploy-safety { border: 1px solid rgba(104, 218, 183, .38); background: rgba(13, 75, 70, .4); }
.igt-deploy-safety > i { color: #74efd0; font-size: 28px; }
.igt-deploy-safety strong, .igt-wallet-status strong, .igt-wallet-status small { display: block; }
.igt-deploy-safety p { margin: 4px 0 0; color: #c7e9df; }
.igt-deploy-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 22px 0; padding: 0; list-style: none;
}
.igt-deploy-steps li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px;
  border: 1px solid rgba(128, 151, 205, .22); border-radius: 14px;
  background: rgba(4, 15, 39, .58); opacity: .72;
}
.igt-deploy-steps li > span {
  display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%;
  background: #263b68; color: #fff; font-weight: 800;
}
.igt-deploy-steps strong, .igt-deploy-steps small { display: block; }
.igt-deploy-steps small { margin-top: 3px; color: #aebcda; }
.igt-deploy-steps li.active { border-color: #c583ff; box-shadow: 0 0 20px rgba(151, 77, 255, .25); opacity: 1; }
.igt-deploy-steps li.done { border-color: rgba(71, 228, 171, .7); background: rgba(12, 76, 66, .52); opacity: 1; }
.igt-deploy-steps li.done > span { background: #22a978; }
.igt-deploy-steps li.error { border-color: #ff7794; background: rgba(110, 24, 52, .45); opacity: 1; }
.igt-wallet-status { margin: 18px 0; border: 1px solid rgba(126, 154, 211, .3); background: rgba(3, 13, 34, .68); }
.igt-status-dot { flex: 0 0 13px; height: 13px; border-radius: 50%; background: #8998b9; box-shadow: 0 0 0 5px rgba(137, 152, 185, .12); }
.igt-wallet-status.ready .igt-status-dot, .igt-wallet-status.success .igt-status-dot {
  background: #49e5af; box-shadow: 0 0 0 5px rgba(73, 229, 175, .14), 0 0 16px rgba(73, 229, 175, .7);
}
.igt-wallet-status.working .igt-status-dot { background: #ffc955; animation: igt-pulse 1.2s infinite; }
.igt-wallet-status.error .igt-status-dot { background: #ff6688; }
@keyframes igt-pulse { 50% { opacity: .35; transform: scale(.82); } }
.igt-deploy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.igt-deploy-actions button[disabled] { cursor: not-allowed; filter: grayscale(.7); opacity: .45; }
.igt-deploy-result {
  margin-top: 18px; padding: 18px; border: 1px solid rgba(245, 201, 79, .5); border-radius: 16px;
  background: linear-gradient(135deg, rgba(77, 42, 123, .72), rgba(18, 63, 92, .68));
}
.igt-deploy-result span, .igt-deploy-result strong { display: block; }
.igt-deploy-result span { color: #ffda70; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.igt-deploy-result strong { margin: 7px 0; color: #fff; font-size: clamp(15px, 2vw, 20px); overflow-wrap: anywhere; }
.igt-deploy-result a { color: #8ddcff; }
.igt-token-import-guide {
  margin-top: 16px; padding: 18px; border: 1px solid rgba(144, 105, 255, .5); border-radius: 16px;
  background: linear-gradient(145deg, rgba(26, 21, 68, .94), rgba(10, 37, 68, .9));
  box-shadow: 0 18px 45px rgba(2, 7, 24, .28), inset 0 1px rgba(255, 255, 255, .06);
}
.igt-token-import-guide[hidden] { display: none; }
.igt-token-import-heading { display: flex; align-items: center; gap: 13px; }
.igt-token-import-heading > i {
  display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 14px;
  color: #fff1ac; background: linear-gradient(135deg, #6545d7, #188fbc); font-size: 21px;
}
.igt-token-import-heading h3 { margin: 0 0 3px; color: #fff; }
.igt-token-import-heading p { margin: 0; color: #bdcbea; }
.igt-token-contract-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px;
  padding: 13px 14px; border: 1px solid rgba(117, 170, 255, .3); border-radius: 13px; background: rgba(2, 12, 35, .65);
}
.igt-token-contract-copy > div { min-width: 0; }
.igt-token-contract-copy span, .igt-token-contract-copy code { display: block; }
.igt-token-contract-copy span { margin-bottom: 4px; color: #9eb2db; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.igt-token-contract-copy code { color: #f6e699; font-size: 13px; overflow-wrap: anywhere; }
.igt-token-contract-copy button { flex: 0 0 auto; }
.igt-token-facts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.igt-token-facts > span { padding: 10px 12px; border-radius: 12px; background: rgba(44, 60, 112, .48); }
.igt-token-facts small, .igt-token-facts strong { display: block; }
.igt-token-facts small { color: #9eb2db; }
.igt-token-facts strong { margin-top: 2px; color: #fff; }
.igt-token-import-guide ol { margin: 15px 0 12px; padding-left: 22px; color: #dce7fb; line-height: 1.7; }
.igt-token-explorer-link { color: #8ddcff; font-weight: 700; }
.igt-deploy-log {
  max-height: 190px; margin-top: 14px; padding: 15px; overflow: auto;
  border: 1px solid rgba(110, 137, 196, .22); border-radius: 12px; background: rgba(0, 7, 22, .82);
  color: #b9f6e4; font: 13px/1.65 Consolas, monospace; white-space: pre-wrap;
}
.igt-deploy-denied { padding: 48px 20px; text-align: center; }
.igt-deploy-denied i { color: #ffcf63; font-size: 42px; }
@media (max-width: 820px) {
  .igt-role-grid, .igt-deploy-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .igt-role-grid, .igt-deploy-steps { grid-template-columns: 1fr; }
  .igt-deploy-actions button, .igt-deploy-actions a { width: 100%; justify-content: center; }
  .igt-token-contract-copy { align-items: stretch; flex-direction: column; }
  .igt-token-contract-copy button { width: 100%; justify-content: center; }
  .igt-token-facts { grid-template-columns: 1fr; }
}

/* IGT Testnet daily reward portal. */
.igt-reward-panel { max-width: 1080px; margin-left: auto; margin-right: auto; overflow: hidden; }
.igt-reward-hero {
  display: flex; align-items: center; gap: 22px; padding: 22px;
  border: 1px solid rgba(166, 118, 255, .4); border-radius: 20px;
  background: radial-gradient(circle at 12% 50%, rgba(113, 56, 214, .42), transparent 30%),
              linear-gradient(135deg, rgba(15, 25, 67, .94), rgba(45, 20, 79, .86));
}
.igt-reward-hero h2 { margin: 2px 0 5px; color: #fff; font-size: clamp(23px, 3vw, 34px); }
.igt-reward-hero p { margin: 0; color: #ced9f2; }
.igt-reward-hero p strong { color: #ffdf72; }
.igt-reward-orb {
  position: relative; display: grid; flex: 0 0 112px; width: 112px; height: 112px; place-items: center;
}
.igt-reward-orb img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(182, 116, 255, .72)) drop-shadow(0 7px 12px rgba(0, 0, 0, .34));
}
.igt-reward-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.igt-reward-stat-grid article {
  min-width: 0; padding: 16px; border: 1px solid rgba(116, 157, 239, .27); border-radius: 16px;
  background: rgba(6, 19, 50, .68);
}
.igt-reward-stat-grid span, .igt-reward-stat-grid strong, .igt-reward-stat-grid small { display: block; }
.igt-reward-stat-grid span { color: #aebdde; font-size: 12px; }
.igt-reward-stat-grid strong { margin: 5px 0; color: #fff2a9; font-size: 18px; overflow-wrap: anywhere; }
.igt-reward-stat-grid small { color: #91a7d1; }
.igt-reward-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.igt-reward-actions button[disabled] {
  cursor: not-allowed;
  filter: none;
  opacity: 1;
  border-color: rgba(115, 133, 174, .42) !important;
  color: #9da9c6 !important;
  background: #26324e !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05) !important;
}
.igt-claim-button:not([disabled]) { box-shadow: 0 0 25px rgba(139, 78, 255, .36); animation: igt-claim-glow 2.2s ease-in-out infinite; }
@keyframes igt-claim-glow { 50% { box-shadow: 0 0 35px rgba(255, 191, 68, .42); transform: translateY(-1px); } }
.igt-reward-rules { margin-top: 20px; padding: 17px 19px; border-radius: 16px; background: rgba(4, 14, 38, .55); }
.igt-reward-rules h3 { margin: 0 0 8px; color: #fff; }
.igt-reward-rules h3 i { color: #74efd0; }
.igt-reward-rules ul { margin: 0; padding-left: 20px; color: #bdcbea; line-height: 1.75; }
.igt-reward-empty { padding: 54px 24px; text-align: center; }
.igt-reward-empty > i { color: #d6a6ff; font-size: 48px; }
.igt-reward-empty h2 { color: #fff; }
@media (max-width: 860px) { .igt-reward-stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .igt-reward-hero { align-items: flex-start; flex-direction: column; padding: 17px; }
  .igt-reward-orb { flex-basis: 86px; width: 86px; height: 86px; }
  .igt-reward-stat-grid { grid-template-columns: 1fr; }
  .igt-reward-actions button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .igt-claim-button:not([disabled]) { animation: none; } }

/* IGT Testnet -> Beta Bonus Cash exchange. */
.igt-exchange-panel { max-width: 1080px; margin-left: auto; margin-right: auto; overflow: hidden; }
.igt-exchange-hero {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 22px; border: 1px solid rgba(170, 116, 255, .44); border-radius: 20px;
  background: radial-gradient(circle at 11% 48%, rgba(112, 60, 221, .46), transparent 29%),
              linear-gradient(135deg, rgba(11, 30, 71, .96), rgba(52, 21, 86, .9));
}
.igt-exchange-hero h2 { margin: 2px 0 4px; color: #fff; font-size: clamp(23px, 3vw, 34px); }
.igt-exchange-hero p { margin: 0 0 4px; color: #cbd8f1; }
.igt-exchange-hero p strong { color: #ffe278; font-size: 18px; }
.igt-exchange-hero small { color: #aebfe2; line-height: 1.55; }
.igt-exchange-orb {
  position: relative; display: grid; width: 112px; height: 112px; place-items: center;
}
.igt-exchange-orb img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(182, 116, 255, .76)) drop-shadow(0 8px 13px rgba(0, 0, 0, .36));
}
.igt-exchange-switch {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
  margin: 18px 0; padding: 7px; border: 1px solid rgba(122, 157, 231, .28); border-radius: 18px;
  background: rgba(2, 12, 34, .76); box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}
.igt-exchange-mode {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 68px; padding: 11px 18px;
  border: 1px solid transparent; border-radius: 13px; color: #aebddd; background: rgba(22, 38, 76, .5);
  cursor: pointer; font: inherit; text-align: center; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.igt-exchange-mode:first-child { padding-right: 40px; }
.igt-exchange-mode:last-child { padding-left: 40px; }
.igt-exchange-mode span, .igt-exchange-mode small { display: block; }
.igt-exchange-mode span { font-weight: 900; }
.igt-exchange-mode small { margin-top: 3px; color: #8296bd; font-size: 11px; font-weight: 500; }
.igt-exchange-mode.active {
  border-color: rgba(190, 130, 255, .86); color: #fff;
  background: linear-gradient(135deg, rgba(101, 58, 207, .8), rgba(27, 119, 181, .7));
  box-shadow: 0 0 24px rgba(130, 75, 244, .3), inset 0 1px rgba(255, 255, 255, .16); transform: translateY(-1px);
}
.igt-exchange-mode.active small { color: #dce7fb; }
.igt-exchange-mode:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(.75); }
.igt-exchange-swap {
  position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; width: 50px; height: 50px; padding: 0; place-items: center;
  border: 1px solid rgba(255, 218, 102, .86); border-radius: 50%; color: #fff0a5;
  background: radial-gradient(circle at 34% 28%, #5c43bb 0, #243b83 45%, #0c1735 100%);
  box-shadow: 0 0 0 5px rgba(6, 16, 42, .9), 0 0 24px rgba(151, 93, 255, .62), inset 0 1px rgba(255, 255, 255, .28);
  transform: translate(-50%, -50%); cursor: pointer; transition: transform .22s, box-shadow .22s, filter .22s;
}
.igt-exchange-swap svg { width: 28px; height: 24px; overflow: visible; filter: drop-shadow(0 0 5px rgba(255, 225, 99, .78)); transition: transform .3s ease; }
.igt-exchange-swap svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.igt-exchange-swap:hover, .igt-exchange-swap:focus-visible {
  outline: 0; filter: brightness(1.14); transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 5px rgba(6, 16, 42, .92), 0 0 30px rgba(151, 93, 255, .82), inset 0 1px rgba(255, 255, 255, .3);
}
.igt-exchange-swap.cashout-active svg { transform: rotate(180deg); }
.igt-exchange-swap:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(.75); }
.igt-exchange-swap:disabled:hover { transform: translate(-50%, -50%); }
.igt-exchange-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.igt-exchange-stat-grid article {
  min-width: 0; padding: 16px; border: 1px solid rgba(116, 157, 239, .28); border-radius: 16px; background: rgba(5, 18, 48, .72);
}
.igt-exchange-stat-grid span, .igt-exchange-stat-grid strong, .igt-exchange-stat-grid small { display: block; }
.igt-exchange-stat-grid span { color: #aebdde; font-size: 12px; }
.igt-exchange-stat-grid strong { margin: 5px 0; color: #fff2a9; font-size: 18px; overflow-wrap: anywhere; }
.igt-exchange-stat-grid small { color: #91a7d1; }
.igt-exchange-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none;
}
.igt-exchange-steps li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; opacity: .65;
  border: 1px solid rgba(128, 151, 205, .24); border-radius: 14px; background: rgba(4, 15, 39, .6);
}
.igt-exchange-steps li > span {
  display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: #263b68; color: #fff; font-weight: 900;
}
.igt-exchange-steps strong, .igt-exchange-steps small { display: block; }
.igt-exchange-steps strong { color: #f5f7ff; }
.igt-exchange-steps small { margin-top: 3px; color: #9fb0d2; }
.igt-exchange-steps li.active { opacity: 1; border-color: #bf84ff; box-shadow: 0 0 20px rgba(151, 77, 255, .24); }
.igt-exchange-steps li.done { opacity: 1; border-color: rgba(70, 227, 171, .68); background: rgba(12, 76, 66, .5); }
.igt-exchange-steps li.done > span { background: #22a978; }
.igt-exchange-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.igt-exchange-form {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: stretch; margin-top: 18px;
  padding: 18px; border: 1px solid rgba(124, 158, 232, .28); border-radius: 18px; background: rgba(3, 15, 41, .68);
}
.igt-exchange-form .market-field { grid-column: auto; }
.igt-exchange-form .market-field > span {
  display: block;
  color: #eef4ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.igt-exchange-form .market-field > small {
  display: block;
  margin-top: 7px;
  color: #b9c8e5;
  font-size: 12px;
  line-height: 1.5;
}
.igt-exchange-form input {
  width: 100%; margin-top: 7px; padding: 14px 15px; border: 1px solid rgba(116, 160, 244, .45); border-radius: 13px;
  color: #fff; background: rgba(8, 22, 54, .94); font-size: 18px; font-weight: 800; outline: none;
}
.igt-exchange-form input:focus { border-color: #c68aff; box-shadow: 0 0 0 3px rgba(160, 88, 255, .15); }
.igt-exchange-form input:disabled {
  color: #d8e3f8;
  -webkit-text-fill-color: #d8e3f8;
  background: #1d2944;
  cursor: not-allowed;
  opacity: 1;
}
.igt-exchange-quote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; border-radius: 15px;
  border: 1px solid rgba(250, 202, 81, .44); background: linear-gradient(145deg, rgba(61, 41, 103, .72), rgba(20, 51, 83, .75)); text-align: center;
}
.igt-exchange-quote span, .igt-exchange-quote small { color: #bac9e5; }
.igt-exchange-quote strong { margin: 4px 0; color: #ffe27a; font-size: 29px; line-height: 1; text-shadow: 0 0 18px rgba(255, 205, 72, .32); }
.igt-exchange-submit { grid-column: 1 / -1; justify-content: center; min-height: 52px; font-size: 16px; }
.igt-exchange-submit[disabled] {
  color: #eef4ff !important;
  -webkit-text-fill-color: #eef4ff;
  cursor: not-allowed;
  opacity: .72;
  filter: saturate(.58);
}
.igt-exchange-warning { display: flex; align-items: flex-start; gap: 13px; margin-top: 16px; padding: 15px 17px; border-radius: 15px; border: 1px solid rgba(255, 196, 82, .32); background: rgba(75, 48, 17, .3); }
.igt-exchange-warning > i { margin-top: 2px; color: #ffd36c; font-size: 23px; }
.igt-exchange-warning strong { color: #fff1bb; }
.igt-exchange-warning p { margin: 3px 0 0; color: #c9d4e8; }
.igt-exchange-history { max-width: 1080px; margin-left: auto; margin-right: auto; }
.igt-exchange-history-list { display: grid; gap: 9px; }
.igt-exchange-history-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid rgba(115, 153, 226, .25); border-radius: 13px; background: rgba(5, 18, 46, .63); }
.igt-exchange-history-list strong, .igt-exchange-history-list small { display: block; }
.igt-exchange-history-list strong { color: #f2f6ff; }
.igt-exchange-history-list small { margin-top: 3px; color: #8fa3cb; }
.igt-exchange-history-list a { color: #80d9ff; font-weight: 800; }
.igt-exchange-state { padding: 5px 9px; border-radius: 999px; color: #d8e1f4; background: #283757; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.igt-exchange-state.credited { color: #baffdf; background: #145f4d; }
.igt-exchange-state.paid { color: #baffdf; background: #145f4d; }
.igt-exchange-state.rejected, .igt-exchange-state.expired, .igt-exchange-state.expired_refunded { color: #ffd1dc; background: #712844; }
.igt-exchange-state.pending_confirmations { color: #fff0b4; background: #6b5221; }
.igt-wallet-status.pending .igt-status-dot, .igt-wallet-status.working .igt-status-dot { background: #ffc955; animation: igt-pulse 1.2s infinite; }
.igt-wallet-status.warning .igt-status-dot { background: #ffb64e; box-shadow: 0 0 0 5px rgba(255, 182, 78, .14); }
@media (max-width: 900px) {
  .igt-exchange-stat-grid, .igt-exchange-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .igt-exchange-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding: 17px; }
  .igt-exchange-orb { width: 88px; height: 88px; }
  .igt-exchange-hero .market-status-badge { grid-column: 1 / -1; justify-self: start; }
  .igt-exchange-stat-grid, .igt-exchange-steps, .igt-exchange-form { grid-template-columns: 1fr; }
  .igt-exchange-switch { grid-template-columns: 1fr; }
  .igt-exchange-mode:first-child { padding: 12px 18px 27px; }
  .igt-exchange-mode:last-child { padding: 27px 18px 12px; }
  .igt-exchange-swap.cashout-active svg { transform: rotate(180deg); }
  .igt-exchange-actions button { width: 100%; justify-content: center; }
  .igt-exchange-submit { grid-column: auto; }
  .igt-exchange-history-list article { grid-template-columns: minmax(0, 1fr) auto; }
  .igt-exchange-history-list article a { grid-column: 1 / -1; }
}

/* IGT Gateway UX 20260824: one clear exchange console plus an account sidebar. */
.igt-exchange-panel {
  max-width: 1120px;
  padding: 18px;
  border-color: rgba(124, 170, 255, .3);
  background: linear-gradient(145deg, rgba(7, 17, 42, .94), rgba(10, 18, 45, .9));
}
.igt-exchange-dashboard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .78fr); gap: 18px; align-items: start; }
.igt-exchange-console, .igt-exchange-sidebar {
  min-width: 0; border: 1px solid rgba(125, 164, 238, .25); border-radius: 22px;
  background: rgba(4, 14, 36, .72); box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 16px 38px rgba(0, 0, 0, .2);
}
.igt-exchange-console { padding: 20px; }
.igt-exchange-sidebar { position: sticky; top: 82px; padding: 18px; }
.igt-exchange-console-head {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 15px;
  margin: -4px -4px 19px; padding: 4px 4px 18px; border-bottom: 1px solid rgba(127, 164, 233, .18);
}
.igt-exchange-console-head .igt-exchange-orb { width: 76px; height: 76px; }
.igt-exchange-console-copy h2 { margin: 1px 0 3px; color: #fff; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.16; }
.igt-exchange-console-copy p { margin: 0; color: #bed0ed; }
.igt-exchange-console-copy p strong { color: #ffe37d; font-size: 15px; }
.igt-exchange-console-copy small { display: block; margin-top: 4px; color: #91a6cb; line-height: 1.45; }
.igt-exchange-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 9px; }
.igt-exchange-section-title > div { display: flex; align-items: center; gap: 9px; }
.igt-exchange-section-title > div > span {
  display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #09142c;
  background: linear-gradient(135deg, #ffe982, #ffc34d); font-size: 12px; font-weight: 900; box-shadow: 0 0 14px rgba(255, 202, 83, .24);
}
.igt-exchange-section-title strong { color: #f5f8ff; font-size: 14px; }
.igt-exchange-section-title small { color: #7f96bd; font-size: 11px; text-align: right; }
.igt-exchange-switch { margin: 0; padding: 6px; gap: 10px; border-radius: 16px; }
.igt-exchange-mode { min-height: 78px; padding: 10px 18px; border-radius: 11px; }
.igt-exchange-mode:first-child { padding-right: 40px; }
.igt-exchange-mode:last-child { padding-left: 40px; }
.igt-exchange-mode span, .igt-exchange-mode b, .igt-exchange-mode strong, .igt-exchange-mode small { display: block; }
.igt-exchange-mode b { margin-bottom: 2px; color: #9eb5da; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.igt-exchange-mode strong { color: inherit; font-size: 14px; }
.igt-exchange-mode small { color: #7f94b8; font-size: 10px; }
.igt-exchange-mode.active b { color: #ffe47e; }
.igt-exchange-mode.active small { color: #dce7fb; }
.igt-exchange-swap { width: 48px; height: 48px; }
.igt-exchange-console .igt-wallet-status { min-height: 66px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; }
.igt-exchange-console .igt-wallet-status > div:nth-child(2) { min-width: 0; }
.igt-linked-wallet { flex: 0 0 auto; margin-left: auto; padding-left: 13px; border-left: 1px solid rgba(125, 164, 229, .2); text-align: right; }
.igt-linked-wallet span, .igt-linked-wallet strong { display: block; }
.igt-linked-wallet span { color: #718ab4; font-size: 10px; }
.igt-linked-wallet strong { margin-top: 2px; color: #dce7fb; font-size: 12px; }
.igt-exchange-actions { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 9px; }
.igt-exchange-actions button { min-height: 45px; justify-content: center; }
.igt-exchange-form { grid-template-columns: minmax(0, 1fr) 205px; gap: 11px; margin-top: 0; padding: 0; border: 0; background: transparent; }
.igt-exchange-amount-card, .igt-exchange-quote {
  min-width: 0; padding: 16px; border: 1px solid rgba(115, 158, 235, .3); border-radius: 16px; background: rgba(10, 24, 55, .88);
}
.igt-exchange-amount-card > span { display: block; color: #c8d6ee; font-size: 12px; font-weight: 800; }
.igt-exchange-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; }
.igt-exchange-input-row input {
  min-width: 0; width: 100%; margin: 0; padding: 10px 0; border: 0; border-radius: 0; color: #fff;
  background: transparent; font-size: clamp(24px, 4vw, 34px); font-weight: 900; box-shadow: none;
}
.igt-exchange-input-row input:focus { border: 0; box-shadow: none; }
.igt-exchange-input-row input:disabled { color: #8292af; -webkit-text-fill-color: #8292af; background: transparent; }
.igt-exchange-input-row b { padding: 8px 10px; border: 1px solid rgba(143, 104, 245, .42); border-radius: 10px; color: #f1e9ff; background: rgba(89, 55, 164, .3); font-size: 12px; }
.igt-exchange-quick { display: flex; gap: 6px; margin: 9px 0 8px; }
.igt-exchange-quick button {
  min-width: 54px; padding: 6px 9px; border: 1px solid rgba(109, 163, 245, .32); border-radius: 999px; color: #bcd2f4;
  background: rgba(22, 49, 91, .7); font-family: inherit; font-size: 11px; font-weight: 800; line-height: 1; cursor: pointer; transition: .18s ease;
}
.igt-exchange-quick button:hover:not(:disabled), .igt-exchange-quick button:focus-visible { color: #fff; border-color: #bb82ff; background: rgba(101, 65, 190, .56); outline: 0; }
.igt-exchange-quick button:disabled { cursor: not-allowed; opacity: .42; }
.igt-exchange-amount-card > small { display: block; color: #8198bf; font-size: 10px; line-height: 1.45; }
.igt-exchange-quote { position: relative; overflow: hidden; align-items: flex-start; text-align: left; }
.igt-exchange-quote::after { content: "∞"; position: absolute; right: -7px; bottom: -26px; color: rgba(171, 113, 255, .11); font: 900 94px/1 Georgia, serif; }
.igt-exchange-quote span, .igt-exchange-quote small, .igt-exchange-quote em, .igt-exchange-quote strong { position: relative; z-index: 1; display: block; }
.igt-exchange-quote strong { margin: 13px 0 5px; font-size: clamp(27px, 4vw, 37px); }
.igt-exchange-quote em { margin-top: auto; padding-top: 12px; color: #738bb4; font-size: 9px; font-style: normal; line-height: 1.4; }
.igt-exchange-submit { min-height: 54px; border-radius: 14px; font-size: 15px; }
.igt-exchange-submit[disabled] { color: #9aa9c3 !important; -webkit-text-fill-color: #9aa9c3; background: #26334f !important; opacity: 1; box-shadow: none; }
.igt-exchange-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 12px; }
.igt-exchange-side-head h3 { font-size: 19px; }
.igt-exchange-side-head.steps { margin-top: 22px; }
.igt-secure-mark { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(66, 224, 169, .25); border-radius: 999px; color: #7ce7c1; background: rgba(16, 85, 69, .26); font-size: 10px; font-weight: 800; }
.igt-exchange-sidebar .igt-exchange-stat-grid { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.igt-exchange-sidebar .igt-exchange-stat-grid article { position: relative; overflow: hidden; padding: 13px 14px 13px 17px; border-radius: 13px; }
.igt-exchange-sidebar .igt-exchange-stat-grid article::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: #8f68ee; }
.igt-exchange-sidebar .igt-exchange-stat-grid article.cash::before { background: #ffc85a; }
.igt-exchange-sidebar .igt-exchange-stat-grid article.redeem::before { background: #57e6ad; }
.igt-exchange-sidebar .igt-exchange-stat-grid strong { margin: 3px 0; font-size: 20px; }
.igt-exchange-sidebar .igt-exchange-steps { position: relative; grid-template-columns: 1fr; gap: 7px; margin: 0; }
.igt-exchange-sidebar .igt-exchange-steps li { min-height: 59px; padding: 10px 11px; border-radius: 12px; }
.igt-exchange-sidebar .igt-exchange-steps li > span { flex-basis: 30px; height: 30px; }
.igt-exchange-sidebar .igt-exchange-steps strong { font-size: 12px; }
.igt-exchange-sidebar .igt-exchange-steps small { font-size: 10px; line-height: 1.35; }
.igt-exchange-sidebar .igt-exchange-warning { margin-top: 14px; padding: 12px; border-radius: 13px; }
.igt-exchange-sidebar .igt-exchange-warning > i { font-size: 18px; }
.igt-exchange-sidebar .igt-exchange-warning strong { font-size: 12px; }
.igt-exchange-sidebar .igt-exchange-warning p { font-size: 10px; line-height: 1.45; }
@media (max-width: 960px) {
  .igt-exchange-dashboard { grid-template-columns: 1fr; }
  .igt-exchange-sidebar { position: static; }
  .igt-exchange-sidebar .igt-exchange-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .igt-exchange-sidebar .igt-exchange-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .igt-exchange-panel { padding: 10px; border-radius: 18px; }
  .igt-exchange-console, .igt-exchange-sidebar { padding: 14px; border-radius: 17px; }
  .igt-exchange-console-head { grid-template-columns: 62px minmax(0, 1fr); gap: 11px; }
  .igt-exchange-console-head .igt-exchange-orb { width: 60px; height: 60px; }
  .igt-exchange-console-head .market-status-badge { grid-column: 1 / -1; justify-self: start; }
  .igt-exchange-section-title small { display: none; }
  .igt-exchange-switch { grid-template-columns: 1fr; }
  .igt-exchange-mode:first-child { padding: 11px 15px 28px; }
  .igt-exchange-mode:last-child { padding: 28px 15px 11px; }
  .igt-linked-wallet { display: none; }
  .igt-exchange-actions, .igt-exchange-form { grid-template-columns: 1fr; }
  .igt-exchange-submit { grid-column: auto; }
  .igt-exchange-sidebar .igt-exchange-stat-grid, .igt-exchange-sidebar .igt-exchange-steps { grid-template-columns: 1fr; }
  .igt-exchange-history-list article { grid-template-columns: minmax(0, 1fr) auto; }
  .igt-exchange-history-list article a { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .igt-exchange-console-copy h2 { font-size: 19px; }
  .igt-exchange-console-copy p strong { font-size: 12px; }
  .igt-exchange-console-copy small { font-size: 10px; }
  .igt-exchange-actions button { width: 100%; }
  .igt-exchange-quick button { flex: 1 1 0; }
}

/* Mainnet launch readiness: deliberately read-only and visually distinct. */
.igt-mainnet-panel { max-width: 1080px; margin-left: auto; margin-right: auto; overflow: hidden; }
.igt-mainnet-lock, .igt-mainnet-progress {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 14px;
  border: 1px solid rgba(255, 194, 82, .5); border-radius: 999px; color: #ffe29a;
  background: rgba(78, 48, 14, .5); font-weight: 900;
}
.igt-mainnet-safety, .igt-mainnet-policy {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border: 1px solid rgba(67, 226, 181, .42);
  border-radius: 16px; background: rgba(7, 70, 66, .35);
}
.igt-mainnet-safety > i { color: #5af0c0; font-size: 26px; }
.igt-mainnet-safety strong, .igt-mainnet-policy strong { color: #c8ffeb; }
.igt-mainnet-safety p, .igt-mainnet-policy p { margin: 4px 0 0; color: #bed2df; line-height: 1.6; }
.igt-mainnet-summary, .igt-mainnet-address-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px;
}
.igt-mainnet-summary article, .igt-mainnet-address-grid article, .igt-mainnet-rate-list article {
  min-width: 0; padding: 15px; border: 1px solid rgba(120, 157, 227, .27); border-radius: 15px;
  background: rgba(6, 18, 47, .68);
}
.igt-mainnet-summary span, .igt-mainnet-summary strong, .igt-mainnet-summary small,
.igt-mainnet-address-grid span, .igt-mainnet-address-grid strong, .igt-mainnet-address-grid small,
.igt-mainnet-rate-list span, .igt-mainnet-rate-list strong, .igt-mainnet-rate-list small { display: block; }
.igt-mainnet-summary span, .igt-mainnet-address-grid span { color: #9fb1d3; font-size: 12px; }
.igt-mainnet-summary strong, .igt-mainnet-address-grid strong { margin: 5px 0; color: #fff; font-size: 18px; overflow-wrap: anywhere; }
.igt-mainnet-summary small, .igt-mainnet-address-grid small, .igt-mainnet-rate-list small { color: #899fc8; }
.igt-mainnet-summary .is-safe { color: #63efba; }
.igt-mainnet-summary .is-danger { color: #ff7897; }
.igt-mainnet-address-grid article.configured { border-color: rgba(70, 227, 171, .5); background: rgba(10, 69, 62, .42); }
.igt-mainnet-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.igt-mainnet-flow > article { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; border: 1px solid rgba(134, 105, 230, .34); border-radius: 16px; background: rgba(19, 23, 61, .66); text-align: center; }
.igt-mainnet-flow > article i { color: #d29cff; font-size: 27px; }
.igt-mainnet-flow > article strong { margin: 9px 0 4px; color: #fff; }
.igt-mainnet-flow > article span { color: #aebddd; font-size: 12px; line-height: 1.45; }
.igt-mainnet-flow > i, .igt-mainnet-lot-flow > i { color: #ffcf69; }
.igt-mainnet-rate-list { display: grid; gap: 8px; margin-top: 15px; }
.igt-mainnet-rate-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; }
.igt-mainnet-rate-list strong { color: #fff; }
.igt-mainnet-rate-list span { color: #ffe283; }
.igt-mainnet-empty { margin: 16px 0 0; padding: 15px; border-radius: 14px; color: #b9c8e4; background: rgba(4, 14, 38, .55); }
.igt-mainnet-empty i { margin-right: 7px; color: #d29cff; }
.igt-mainnet-empty.is-warning { border: 1px solid rgba(255, 194, 83, .36); color: #ffe3a1; }
.igt-mainnet-lot-flow { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.igt-mainnet-lot-flow span { padding: 10px 13px; border: 1px solid rgba(121, 166, 241, .34); border-radius: 999px; color: #eaf2ff; background: rgba(26, 43, 84, .7); font-weight: 800; }
.igt-mainnet-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.igt-mainnet-checklist article { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(116, 148, 210, .26); border-radius: 13px; background: rgba(5, 17, 44, .64); }
.igt-mainnet-checklist article > i { color: #8998ba; font-size: 20px; }
.igt-mainnet-checklist strong, .igt-mainnet-checklist small { display: block; }
.igt-mainnet-checklist strong { color: #eaf1ff; }
.igt-mainnet-checklist small { margin-top: 3px; color: #8fa2c8; }
.igt-mainnet-checklist .status-passed { border-color: rgba(72, 226, 172, .48); background: rgba(8, 69, 58, .42); }
.igt-mainnet-checklist .status-passed > i { color: #61eebb; }
.igt-mainnet-checklist .status-failed { border-color: rgba(255, 102, 137, .48); }
.igt-mainnet-checklist .status-failed > i { color: #ff7897; }
.igt-mainnet-blockers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; padding: 0; list-style: none; }
.igt-mainnet-blockers li { padding: 11px 13px; border: 1px solid rgba(255, 118, 148, .28); border-radius: 12px; color: #ffd3dc; background: rgba(84, 24, 47, .3); }
.igt-mainnet-blockers i { margin-right: 8px; color: #ff7897; }
@media (max-width: 900px) {
  .igt-mainnet-summary, .igt-mainnet-address-grid { grid-template-columns: 1fr 1fr; }
  .igt-mainnet-flow { grid-template-columns: 1fr; }
  .igt-mainnet-flow > i { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 560px) {
  .igt-mainnet-summary, .igt-mainnet-address-grid, .igt-mainnet-checklist, .igt-mainnet-blockers { grid-template-columns: 1fr; }
  .igt-mainnet-rate-list article { grid-template-columns: 1fr; }
}
