:root {
  --bg-color: #050505;
  --panel-bg: rgba(12, 12, 14, 0.94);
  --card-bg: #0c0c10;
  --card-bg-2: #111116;

  --accent-red: #ff003c;
  --accent-red-soft: rgba(255, 0, 60, 0.14);
  --accent-red-line: rgba(255, 0, 60, 0.28);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #ffffff;
  --text-secondary: #9b9ba4;
  --text-dim: #6d6d76;

  --surface-1: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);

  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.24);
  --shadow-red: 0 0 0 1px rgba(255, 0, 60, 0.16), 0 8px 18px rgba(255, 0, 60, 0.1);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 0, 60, 0.03), transparent 24%),
    linear-gradient(180deg, #040404 0%, #070709 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  letter-spacing: -0.02em;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.header-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 12px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-left: 2px;
}

.logo {
  font-weight: 1000;
  font-size: 1.55rem;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--accent-red);
}

.logo-sub {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 2px;
}

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

.install-btn,
.build-badge {
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.install-btn {
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(180deg, #141419, #0d0d11);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.16);
  transition:
    transform .16s ease,
    border-color .16s ease,
    filter .16s ease,
    box-shadow .16s ease;
}

.install-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  filter: brightness(1.03);
}

.install-btn:active {
  transform: translateY(1px) scale(.985);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 10px rgba(0,0,0,0.12);
}

.install-btn-ic {
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
}

.install-btn-txt {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-badge {
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.025);
  color: #d7d7dd;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 12px rgba(0,0,0,0.14);
}

.build-badge-label {
  font-size: 9px;
  font-weight: 800;
  color: #8f8f98;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.build-badge-value {
  font-size: 10px;
  font-weight: 950;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.search-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    linear-gradient(180deg, rgba(255,0,60,0.03), rgba(255,0,60,0.008));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.search-panel.semantic-on {
  border-color: rgba(255, 0, 60, 0.22);
  box-shadow: var(--shadow-red);
}

.search-main-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-input-wrap {
  position: relative;
}

#searchInput {
  width: 100%;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #101014, #0b0b0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px 0 42px;
  border-radius: 15px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput::placeholder {
  color: #707079;
}

#searchInput:focus {
  border-color: rgba(255, 0, 60, 0.32);
  box-shadow: var(--shadow-red);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.52;
  font-size: 14px;
  pointer-events: none;
}

.mode-toggle-btn {
  min-width: 122px;
  height: 48px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, #141418, #0d0d10);
  color: #d7d7dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mode-toggle-btn:hover {
  transform: translateY(-1px);
}

.mode-toggle-btn.active {
  border-color: var(--accent-red-line);
  background: linear-gradient(180deg, rgba(255, 0, 60, 0.16), rgba(255, 0, 60, 0.05));
  color: #fff;
}

.mode-toggle-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56565f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mode-toggle-btn.active .mode-toggle-indicator {
  background: var(--accent-red);
}

.search-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 20px;
}

.search-helper-copy {
  color: #b6b6bf;
  font-size: 11px;
  font-weight: 700;
}

.search-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin-top 0.22s ease;
}

.search-action-row.visible {
  max-height: 64px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-run-btn {
  min-width: 156px;
  height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(180deg, #ff1b54, #ff003c);
  color: white;
  font-weight: 950;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 20px rgba(255,0,60,0.16);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.search-run-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.search-run-btn:active,
.search-run-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(255,0,60,0.12);
}

.search-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.search-loader {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.16);
}

.search-loader.visible {
  display: inline-flex;
}

.loader-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

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

.toolbar-strip {
  display: grid;
  grid-template-columns: 1.12fr 1fr 0.82fr;
  gap: 10px;
}

.tool-btn {
  position: relative;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, #141419, #0d0d11);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  overflow: hidden;
}

.tool-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, transparent 100%);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 0.22s ease, transform 0.32s ease;
  pointer-events: none;
}

.tool-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

.tool-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.tool-btn:active,
.tool-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 10px rgba(0,0,0,0.16);
  filter: brightness(0.98);
}

.tool-btn-main {
  justify-content: center;
  position: relative;
}

.tool-btn-ghost {
  color: #d9d9de;
}

.tool-btn.active-favorites {
  border-color: rgba(255, 0, 60, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(255, 0, 60, 0.14), rgba(255, 0, 60, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(255, 0, 60, 0.08);
}

.tool-ic {
  font-size: 14px;
  line-height: 1;
  opacity: 0.96;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  flex: 0 0 16px;
}

.tool-txt {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-counter {
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-pill);
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 0 6px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tool-counter.visible {
  display: inline-flex;
}

main {
  padding: 14px 14px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.results-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 4px 0 2px;
}

.grid-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 950;
  color: #e8e8ed;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
}

.grid-header #count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 14px rgba(0,0,0,0.14);
}

.active-filters-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.mini-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8dd;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reaction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 1.5px;
  overflow: visible;
}

.card::before {
  content: "";
  position: absolute;
  inset: 18px 22px -18px 22px;
  border-radius: 26px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.07), transparent 68%);
  filter: blur(12px);
  opacity: 0.22;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 5% -10px 5%;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
}

.card-inner {
  position: relative;
  border-radius: 29px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, #0a0a0e, #111117 66%, #0d0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}





.card.rarity-comune .card-inner {
  border-color: rgba(220, 220, 228, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(210, 210, 220, 0.08),
    0 0 18px rgba(235, 235, 240, 0.05);
}

.card.rarity-non-comune .card-inner {
  border-color: rgba(68, 255, 136, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(68, 255, 136, 0.08),
    0 0 22px rgba(68, 255, 136, 0.08);
  animation: rarityGlowGreen 4.4s ease-in-out infinite;
}

.card.rarity-rara .card-inner {
  border-color: rgba(76, 154, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(76, 154, 255, 0.08),
    0 0 24px rgba(76, 154, 255, 0.08);
  animation: rarityGlowBlue 4.2s ease-in-out infinite;
}

.card.rarity-epica .card-inner {
  border-color: rgba(178, 92, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(178, 92, 255, 0.08),
    0 0 24px rgba(178, 92, 255, 0.1);
  animation: rarityGlowPurple 4s ease-in-out infinite;
}

.card.rarity-leggendaria .card-inner {
  border-color: rgba(255, 153, 51, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 153, 51, 0.08),
    0 0 26px rgba(255, 153, 51, 0.1);
  animation: rarityGlowOrange 3.8s ease-in-out infinite;
}

@keyframes rarityGlowGreen {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(68, 255, 136, 0.08),
      0 0 18px rgba(68, 255, 136, 0.07);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(68, 255, 136, 0.11),
      0 0 28px rgba(68, 255, 136, 0.12);
  }
}

@keyframes rarityGlowBlue {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(76, 154, 255, 0.08),
      0 0 20px rgba(76, 154, 255, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(76, 154, 255, 0.11),
      0 0 30px rgba(76, 154, 255, 0.13);
  }
}

@keyframes rarityGlowPurple {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(178, 92, 255, 0.08),
      0 0 20px rgba(178, 92, 255, 0.09);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(178, 92, 255, 0.12),
      0 0 32px rgba(178, 92, 255, 0.14);
  }
}

@keyframes rarityGlowOrange {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 153, 51, 0.08),
      0 0 22px rgba(255, 153, 51, 0.09);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 153, 51, 0.13),
      0 0 34px rgba(255, 153, 51, 0.16);
  }
}

.dex-top {
  padding: 12px 12px 0;
}

.img-slot {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 0;
}

.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 1;
}

.img-slot img {
  width: 100%;
  height: auto;
  display: block;
  transform: none;
  transition: none;
  border-radius: 24px;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 38%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 24px;
}

.best-match-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #ffcc00, #ffe27a);
  color: #111;
  font-size: 9px;
  font-weight: 950;
  padding: 6px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255, 204, 0, 0.14);
}

.card-meta {
  padding: 12px 14px 14px;
}

.name-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.rx-name {
  width: 100%;
  text-align: center;
  font-size: 19px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 0 8px;
}

.confidence-wrap {
  margin-bottom: 12px;
}

.confidence-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.confidence-label {
  font-size: 10px;
  font-weight: 900;
  color: #bcbcc4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.confidence-value {
  font-size: 11px;
  font-weight: 900;
  color: white;
}

.confidence-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.confidence-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #ff5b7f, #ff003c, #ffcc00);
  width: 0%;
}

.card-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-chip-gen {
  min-width: 118px;
}

.meta-chip-date {
  min-width: 84px;
  color: #d8d8df;
}

.pill-comune {
  background: rgba(235, 235, 240, 0.9);
  color: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.pill-non-comune {
  background: rgba(68, 255, 136, 0.92);
  color: #04180c;
  border: 1px solid rgba(68, 255, 136, 0.44);
}

.pill-rara {
  background: rgba(76, 154, 255, 0.92);
  color: #061220;
  border: 1px solid rgba(76, 154, 255, 0.44);
}

.pill-epica {
  background: rgba(178, 92, 255, 0.92);
  color: #160425;
  border: 1px solid rgba(178, 92, 255, 0.44);
}

.pill-leggendaria {
  background: rgba(255, 153, 51, 0.94);
  color: #241204;
  border: 1px solid rgba(255, 153, 51, 0.46);
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 46px;
  gap: 8px;
  margin-top: 6px;
}

.card-btn {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-btn:hover {
  transform: translateY(-1px);
}

.btn-ico {
  font-size: 13px;
  line-height: 1;
  opacity: 0.95;
}

.card-btn-neutral {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  color: white;
}

.favorite-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: white;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.favorite-btn.is-favorite {
  border-color: rgba(255, 0, 60, 0.3);
  background: linear-gradient(180deg, rgba(255, 0, 60, 0.18), rgba(255, 0, 60, 0.06));
  box-shadow: 0 8px 18px rgba(255, 0, 60, 0.08);
}

.empty-state {
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, #111116, #0b0b0f);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state strong {
  display: block;
  color: white;
  font-size: 15px;
  margin-bottom: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-pane {
  width: min(100%, 720px);
  background: var(--panel-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 26px 26px 0 0;
  padding: 18px 16px 20px;
  max-height: 88vh;
  overflow-y: auto;
}

.dragger {
  width: 42px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 14px;
}

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

.pane-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pane-header h2 {
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
  color: var(--accent-red);
}

.pane-header p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.close-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.section {
  margin-bottom: 18px;
}

.section-title {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: #74747c;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.opt-box {
  background: linear-gradient(180deg, #16161a, #101014);
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  color: #7b7b84;
  text-transform: uppercase;
  min-height: 42px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.opt-box:hover {
  transform: translateY(-1px);
}

.opt-box.active {
  border-color: rgba(255, 0, 60, 0.45);
  background: linear-gradient(180deg, rgba(255, 0, 60, 0.16), rgba(255, 0, 60, 0.06));
  color: #fff;
}

.pane-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: 8px;
}

.secondary-btn,
.apply-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.secondary-btn {
  background: #17171b;
  color: white;
  border: 1px solid var(--border-color);
}

.apply-btn {
  background: linear-gradient(180deg, #ff1b54, #ff003c);
  color: white;
}

#statusToast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120px);
  background: rgba(255, 255, 255, 0.98);
  color: #000;
  padding: 12px 14px;
  border-radius: 13px;
  font-weight: 900;
  font-size: 11px;
  z-index: 1000;
  transition: 0.3s ease;
  min-width: 210px;
  text-align: center;
}

#statusToast.visible {
  transform: translateX(-50%) translateY(0);
}

@media (hover: none), (pointer: coarse) {
  .app-header {
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
  }

  .card::before {
    filter: blur(8px);
    opacity: 0.16;
  }

  .card::after {
    filter: blur(10px);
    opacity: 0.36;
  }

  

  .card:hover .img-slot img {
    transform: none;
  }
  
  
  .img-slot img{
  opacity:0;
  transition:opacity .28s ease;
}

.img-slot.is-loaded img{
  opacity:1;
}
  
  
  

  .card.rarity-non-comune .card-inner,
  .card.rarity-rara .card-inner,
  .card.rarity-epica .card-inner,
  .card.rarity-leggendaria .card-inner {
    animation: none;
  }
}

@media (max-width: 560px) {
  .header-ui {
    padding: 12px 12px 10px;
    gap: 8px;
  }

  .top-row {
    align-items: flex-start;
  }

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

  .install-btn,
  .build-badge {
    height: 32px;
    padding: 0 10px;
  }

  .install-btn-txt,
  .build-badge-value {
    font-size: 9px;
  }

  .build-badge-label {
    font-size: 8px;
  }

  .logo {
    font-size: 1.22rem;
  }

  .logo-sub {
    font-size: 8px;
  }

  .search-main-row {
    grid-template-columns: 1fr 112px;
    gap: 8px;
  }

  #searchInput {
    height: 44px;
    font-size: 13px;
    padding-left: 40px;
  }

  .mode-toggle-btn {
    min-width: 112px;
    height: 44px;
    font-size: 9px;
    padding: 0 10px;
  }

  .search-sub-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
  }

  .search-helper-copy {
    font-size: 10px;
  }

  .search-action-row {
    gap: 8px;
    margin-top: 12px;
  }

  .search-run-btn {
    min-width: 136px;
    height: 38px;
    font-size: 9px;
    padding: 0 12px;
  }

  .search-loader {
    width: 38px;
    height: 38px;
  }

  .toolbar-strip {
    grid-template-columns: 1.1fr 1fr 82px;
    gap: 8px;
  }

  .tool-btn {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    gap: 6px;
  }

  .tool-txt {
    font-size: 11px;
  }

  .tool-ic {
    font-size: 13px;
  }

  .tool-counter {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    padding: 0 5px;
  }

  main {
    padding: 12px 12px 24px;
  }

  .results-head {
    margin-bottom: 12px;
    padding: 2px 0;
  }

  .reaction-grid {
    gap: 14px;
  }

  .card-buttons {
    grid-template-columns: 1fr 1fr 44px;
    gap: 8px;
  }

  .card-btn {
    min-height: 38px;
    font-size: 10px;
  }

  .btn-ico {
    font-size: 12px;
  }

  .rx-name {
    font-size: 17px;
  }

  .card-tags-row {
    gap: 6px;
  }

  .meta-chip {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .opt-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pane-actions {
    grid-template-columns: 1fr 1.1fr;
  }
}


.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.56);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.header-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 12px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-left: 2px;
}

.logo {
  font-weight: 1000;
  font-size: 1.64rem;
  text-transform: uppercase;
  font-style: italic;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.logo span {
  color: var(--accent-red);
}

.logo-sub {
  font-size: 9px;
  font-weight: 800;
  color: #82828c;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.build-inline {
  font-size: 10px;
  font-weight: 900;
  color: #a5a5ad;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.search-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
    linear-gradient(180deg, rgba(255,0,60,0.028), rgba(255,0,60,0.008));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 12px 24px rgba(0,0,0,0.16);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.035) 42%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}

.search-panel.semantic-on {
  border-color: rgba(255, 0, 60, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(255,0,60,0.08),
    0 12px 24px rgba(0,0,0,0.16);
}

.search-main-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-input-wrap {
  position: relative;
}

#searchInput {
  width: 100%;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018)),
    linear-gradient(180deg, #111116, #0b0b10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px 0 42px;
  border-radius: 15px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#searchInput::placeholder {
  color: #707079;
}

#searchInput:focus {
  border-color: rgba(255, 0, 60, 0.30);
  box-shadow: 0 0 0 1px rgba(255,0,60,0.08), 0 8px 18px rgba(255,0,60,0.08);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.52;
  font-size: 14px;
  pointer-events: none;
}

.mode-toggle-btn {
  min-width: 124px;
  height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    linear-gradient(180deg, #141418, #0d0d10);
  color: #d7d7dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mode-toggle-btn:hover {
  transform: translateY(-1px);
}

.mode-toggle-btn.active {
  border-color: rgba(255,0,60,0.26);
  background: linear-gradient(180deg, rgba(255,0,60,0.16), rgba(255,0,60,0.05));
  color: #fff;
  box-shadow: 0 8px 18px rgba(255,0,60,0.08);
}

.mode-toggle-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56565f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mode-toggle-btn.active .mode-toggle-indicator {
  background: var(--accent-red);
}

.search-sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
  min-height: 20px;
}

.search-helper-copy {
  color: #b6b6bf;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.search-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin-top 0.22s ease;
}

.search-action-row.visible {
  max-height: 64px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-run-btn {
  min-width: 156px;
  height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(180deg, #ff1b54, #ff003c);
  color: white;
  font-weight: 950;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 20px rgba(255,0,60,0.16);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.search-run-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.search-run-btn:active,
.search-run-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(255,0,60,0.12);
}

.search-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.search-loader {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.16);
}

.search-loader.visible {
  display: inline-flex;
}

.install-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 18px 14px;
}

.install-prompt-overlay.visible {
  display: flex;
}

.install-prompt-card {
  width: min(100%, 420px);
  border-radius: 24px;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    linear-gradient(180deg, #101015, #0c0c10);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 34px rgba(0,0,0,0.28);
}

.install-prompt-topline {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8f98;
  margin-bottom: 8px;
}

.install-prompt-card h3 {
  font-size: 20px;
  font-weight: 950;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.install-prompt-card p {
  font-size: 13px;
  line-height: 1.45;
  color: #b7b7bf;
}

.install-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.install-prompt-secondary,
.install-prompt-primary {
  min-height: 44px;
  border: none;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.install-prompt-secondary {
  background: #17171b;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}

.install-prompt-primary {
  background: linear-gradient(180deg, #ff1b54, #ff003c);
  color: white;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-pane {
  width: min(100%, 720px);
  background: var(--panel-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 26px 26px 0 0;
  padding: 18px 16px 20px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(42px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.modal-overlay.open .modal-pane {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-overlay.closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.modal-overlay.closing .modal-pane {
  transform: translateY(34px) scale(0.988);
  opacity: 0;
}

.close-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.close-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 10px rgba(0,0,0,0.16);
}

.toolbar-strip {
  display: grid;
  grid-template-columns: 1.08fr 1fr 0.82fr;
  gap: 9px;
}

.tool-btn {
  position: relative;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, #131318, #0d0d11);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.tool-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.13);
}

.tool-btn:active,
.tool-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
}

.tool-btn-main {
  justify-content: center;
}

.tool-btn.active-favorites {
  border-color: rgba(255, 0, 60, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(255, 0, 60, 0.13), rgba(255, 0, 60, 0.04));
}

.tool-ic {
  font-size: 13px;
  width: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-txt {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-counter {
  min-width: 18px;
  height: 18px;
  right: 9px;
  font-size: 9px;
}

.card-inner {
  position: relative;
  border-radius: 29px;
  overflow: hidden;
  transform: scale(0.96);
  transform-origin: top center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, #0a0a0e, #111117 66%, #0d0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.name-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.name-inline-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.rx-name {
  display: inline-block;
  width: auto !important;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  font-size: 19px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    rgba(255,255,255,.02);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 2px 6px rgba(0,0,0,.18);
  transform: translateY(-0.8px);
}

.source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  font-size: 8px;
  line-height: 1;
}

.source-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.source-real {
  color: rgba(255,255,255,.75);
  filter: brightness(5);
  

  
}

.source-real .source-icon::before {
  content: "∆";
  color: rgba(255,255,255,.7);
  transform: translateY(0.2px);
  filter: brightness(5);
}

.source-ai {
  border-color: rgba(80,180,255,.35);
  background:
    linear-gradient(180deg, rgba(80,180,255,.18), rgba(80,180,255,.04)),
    rgba(80,180,255,.03);
  color: #fff;
}

.source-ai .source-icon::before {
  content: "✦";
  color: #59b7ff;
  text-shadow:
    0 0 6px rgba(89,183,255,.7),
    0 0 12px rgba(89,183,255,.35);
  transform: translateY(-0.8px);
}

.card[data-source="ai"] {
  box-shadow:
    0 0 0 1px rgba(80,180,255,.25),
    0 0 22px rgba(80,180,255,.08);
}

.card-meta::before {
  content: "";
  display: block;
  height: 0.5px;
  margin: 5px auto 2px;
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.08),
    transparent
  );
}

.card-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
}

.meta-chip-gen {
  min-width: 104px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 14px rgba(0,0,0,0.16);
}

.meta-chip-date {
  min-width: 96px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 5px 12px rgba(0,0,0,0.14);
    
}

.meta-chip-rarity {
  min-width: 124px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 6px 12px rgba(0,0,0,.18);
}

.pill-comune.meta-chip-rarity {
  background: linear-gradient(180deg, rgba(238,238,242,0.96), rgba(215,215,222,0.92));
  border: 1px solid rgba(255,255,255,0.35);
  color: #17181d;
}

.pill-non-comune.meta-chip-rarity {
  background: linear-gradient(180deg, rgba(74,255,146,0.96), rgba(38,214,103,0.92));
  border: 1px solid rgba(74,255,146,0.35);
  color: #04150b;
}

.pill-rara.meta-chip-rarity {
  background: linear-gradient(180deg, rgba(88,156,255,0.98), rgba(67,132,232,0.94));
  border: 1px solid rgba(88,156,255,0.34);
  color: #08111d;
}

.pill-epica.meta-chip-rarity {
  background: linear-gradient(180deg, rgba(184,96,255,0.98), rgba(145,72,224,0.94));
  border: 1px solid rgba(184,96,255,0.34);
  color: #13051e;
}

.pill-leggendaria.meta-chip-rarity {
  background: linear-gradient(180deg, rgba(255,174,72,0.98), rgba(255,144,36,0.94));
  border: 1px solid rgba(255,174,72,0.34);
  color: #221103;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 38px;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.card-btn {
  min-height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.card-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.11);
  color: #fff;
}

.card-btn:active {
  transform: translateY(1px) scale(0.985);
}

.card-btn-neutral {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 6px 14px rgba(0,0,0,.25);
}

.favorite-btn {
  min-height: 32px;
  min-width: 38px;
  padding: 0;
  font-size: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.82);
}

.favorite-btn.is-favorite {
  border-color: rgba(255, 0, 60, 0.22);
  background:
    linear-gradient(180deg, rgba(255,0,60,0.14), rgba(255,0,60,0.05)),
    rgba(255,0,60,0.04);
  color: #fff;
  animation: favoritePop .28s ease;
}

@keyframes favoritePop {
  0% { transform: scale(.9); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.btn-ico {
  font-size: 11px;
  line-height: 1;
  opacity: 0.88;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,.35)
  );
}

@media (max-width: 560px) {
  .header-ui {
    padding: 12px 12px 10px;
    gap: 8px;
  }

  .top-row {
    align-items: flex-start;
  }

  .logo {
    font-size: 1.28rem;
  }

  .logo-sub {
    font-size: 8px;
  }

  .build-inline {
    font-size: 9px;
  }

  .search-main-row {
    grid-template-columns: 1fr 112px;
    gap: 8px;
  }

  #searchInput {
    height: 44px;
    font-size: 13px;
    padding-left: 40px;
  }

  .mode-toggle-btn {
    min-width: 112px;
    height: 44px;
    font-size: 9px;
    padding: 0 10px;
  }

  .search-sub-row {
    margin-top: 7px;
  }

  .search-helper-copy {
    font-size: 10px;
  }

  .search-action-row {
    gap: 8px;
    margin-top: 12px;
  }

  .search-run-btn {
    min-width: 136px;
    height: 38px;
    font-size: 9px;
    padding: 0 12px;
  }

  .search-loader {
    width: 38px;
    height: 38px;
  }

  .install-prompt-card {
    border-radius: 20px;
    padding: 16px 14px 14px;
  }

  .install-prompt-card h3 {
    font-size: 18px;
  }

  .toolbar-strip {
    grid-template-columns: 1.08fr 1fr 78px;
    gap: 8px;
  }

  .tool-btn {
    min-height: 39px;
    padding: 0 10px;
    gap: 6px;
  }

  .tool-txt {
    font-size: 10px;
  }

  .tool-ic {
    font-size: 12px;
    width: 14px;
    flex: 0 0 14px;
  }

  .tool-counter {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .name-row {
    margin-bottom: 12px;
  }

  .name-inline-wrap {
    gap: 7px;
  }

  .rx-name {
    font-size: 17px;
    letter-spacing: -0.035em;
  }

  .source-badge {
    height: 17px;
    padding: 0 6px;
    font-size: 6px;
    letter-spacing: 0.11em;
  }

  .source-icon {
    width: 9px;
    height: 9px;
    font-size: 8px;
    flex: 0 0 9px;
  }

  .card-tags-row {
    gap: 8px;
    margin-bottom: 13px;
  }

  .meta-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .meta-chip-gen {
    min-width: 96px;
  }

  .meta-chip-date {
    min-width: 88px;
  }

  .meta-chip-rarity {
    min-width: 112px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .name-inline-wrap {
    gap: 7px;
  }

  .rx-name {
    font-size: 16px;
  }

  .source-badge {
    height: 16px;
    padding: 0 5px;
    font-size: 6px;
    letter-spacing: 0.09em;
  }

  .source-icon {
    width: 8px;
    height: 8px;
    font-size: 7px;
    flex: 0 0 8px;
  }
}


.name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.name-row::after {
  content: "";
  display: block;
  width: 78%;
  height: 1px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.03) 18%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.03) 82%,
    transparent 100%
  );
}



.card-meta{
  padding-top:14px;
}

.card-tags-row{
  margin-top:6px;
  margin-bottom:16px;
}

.card-buttons{
  margin-top:18px;
}



.img-slot{
  box-shadow:
  0 10px 28px rgba(0,0,0,.35);
}

.card-btn{
  transition:
  transform .14s ease,
  background .14s ease,
  box-shadow .14s ease;
}

.card-btn:hover{
  box-shadow:
  0 6px 16px rgba(0,0,0,.35);
}



#searchInput:focus{
  border-color: rgba(255,0,60,.35);
  box-shadow: 0 0 0 2px rgba(255,0,60,.15);
}

.tool-btn{
  backdrop-filter: blur(6px);
}

/* SKELETON */
.skeleton-card {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 1.5px;
}

.skeleton-inner {
  border-radius: 29px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    linear-gradient(180deg, #0a0a0e, #111117 66%, #0d0d11 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  margin-bottom: 14px;
}

.skeleton-title {
  width: 62%;
  height: 22px;
  border-radius: 10px;
  margin: 0 auto 14px;
}

.skeleton-tags {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

.skeleton-tag {
  height: 38px;
  border-radius: 14px;
}

.skeleton-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 38px;
  gap: 8px;
}

.skeleton-btn,
.skeleton-btn-heart {
  height: 32px;
  border-radius: 11px;
}

/* IMAGE SLOT */
.img-slot {
  position: relative;
  width: 95%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.img-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  opacity: 1;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.img-slot.is-loaded::after {
  opacity: 0;
}

.img-slot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  filter: blur(10px);
  object-fit: contain;
  transition:
    opacity .35s ease,
    filter .35s ease;
}

.img-slot.is-loaded img {
  opacity: 1;
  filter: blur(0);
}

/* MOBILE SKELETON */
@media (max-width: 560px) {
  .skeleton-inner {
    padding: 10px;
  }

  .skeleton-title {
    height: 20px;
    width: 70%;
  }

  .skeleton-tags {
    gap: 8px;
  }

  .skeleton-tag {
    height: 34px;
  }

  .skeleton-btn,
  .skeleton-btn-heart {
    height: 30px;
  }
}

/* CARD FADE IN */
.card {
  opacity: 0;
  transform: translateY(10px);
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* PAGE / VIEWPORT FIX */
html {
  height: 100%;
  background: #050505;
}

body {
  min-height: 100%;
  background: #050505;
  transform: translateZ(0);
  will-change: transform;
}

main {
  min-height: 100dvh;
}

/* GRID */
.reaction-grid {
  position: relative;
  min-height: 60vh;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  opacity: .8;
}

.reaction-grid.empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.reaction-grid.empty::before {
  content: "Nessuna reaction trovata";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  z-index: 3;
}

/* CARD IMAGE AREA */
.dex-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px 0;
  overflow: hidden;
}

.card-meta {
  flex-shrink: 0;
}

body{
  min-height:100%;
  background:#050505;
}
/* === FINAL FIXES === */
body {
  min-height: 100%;
  background: #050505;
  transform: none;
  will-change: auto;
}

.results-head {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.active-filters-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 24px;
}

.reaction-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  background: #050505;
  align-items: initial;
  justify-content: initial;
}

.dex-top {
  flex: initial;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px 0;
  overflow: hidden;
}

.card-inner {
  display: block;
  max-height: none;
}

.card-meta {
  flex-shrink: 0;
}

.img-slot {
  position: relative;
  width: min(86vw, 520px);
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-slot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(260px, 52vh, 560px);
  object-fit: contain;
}

@media (max-width: 560px) {
  .img-slot {
    width: min(90vw, 480px);
  }

  .img-slot img {
    max-height: clamp(220px, 46vh, 420px);
  }
}



.dex-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px 0;
  overflow: hidden;
}

.img-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 95%;
  overflow: hidden;
  border-radius: 24px;
}

.img-slot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
}

.search-ticker{
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  margin-top: 10px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.02);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.search-ticker.visible{
  opacity: 1;
  transform: translateY(0);
}

.search-ticker-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,0,60,.18), rgba(255,0,60,.06)),
    rgba(255,0,60,.05);
  border: 1px solid rgba(255,0,60,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 4px 10px rgba(255,0,60,.08);
}

.search-ticker-viewport{
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.search-ticker-viewport::before,
.search-ticker-viewport::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 2;
  pointer-events: none;
}

.search-ticker-viewport::before{
  left: 0;
  background: linear-gradient(90deg, #0b0b10, transparent);
}

.search-ticker-viewport::after{
  right: 0;
  background: linear-gradient(270deg, #0b0b10, transparent);
}

.search-ticker-track{
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  will-change: transform;
  animation: searchTickerScroll 18s linear infinite;
}

.search-ticker-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.search-ticker-item::before{
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  flex: 0 0 5px;
}

@keyframes searchTickerScroll{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}

@media (max-width: 560px){
  .search-ticker{
    grid-template-columns: 42px 1fr;
    min-height: 28px;
    margin-top: 8px;
    padding: 4px 7px 4px 5px;
  }

  .search-ticker-count{
    min-width: 42px;
    height: 20px;
    font-size: 9px;
  }

  .search-ticker-track{
    gap: 18px;
  }

  .search-ticker-item{
    font-size: 9px;
  }
}


.search-ticker-track{
  display:flex;
  align-items:center;
  gap:24px;
  white-space:nowrap;
  width:max-content;

  animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}


.search-ticker-track{
  display:flex;
  align-items:center;
  gap:24px;
  white-space:nowrap;
  width:max-content;
  animation:tickerScroll 25s linear infinite;
}

@keyframes tickerScroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.search-ticker-empty{
font-size:11px;
font-weight:800;
letter-spacing:.08em;
color:rgba(255,255,255,.55);
padding-left:4px;
}

.search-ticker-track{
  display:flex;
  align-items:center;
  gap:24px;
  white-space:nowrap;
  width:max-content;
  animation:tickerScroll 25s linear infinite;
}

.search-ticker-track.is-static{
  width:100%;
  justify-content:center;
}

.search-ticker-empty,
.search-ticker-single{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-align:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  color:rgba(255,255,255,.62);
  padding:0 10px;
}

.search-ticker-single{
  color:rgba(255,255,255,.86);
}

@keyframes tickerScroll{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}


.results-head{
opacity:0;
height:0;
overflow:hidden;
transition:opacity .25s ease;
}

.results-head.rx-mode{
opacity:1;
height:auto;
}

.results-head.rx-mode .grid-header{
font-size:12px;
letter-spacing:.12em;
opacity:.9;
}



.card-inner{
  transition:
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .22s ease,
    border-color .22s ease;
}

.card:hover .card-inner{
  transform: scale(0.968) translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 30px rgba(0,0,0,0.34),
    0 4px 14px rgba(0,0,0,0.22);
}

.card:active .card-inner{
  transform: scale(0.955) translateY(1px);
}



.card-btn,
.tool-btn,
.search-run-btn{
  position: relative;
  overflow: hidden;
}

.card-btn::after,
.tool-btn::after,
.search-run-btn::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.12),
    transparent
  );
  opacity: 0;
}

.card-btn:hover::after,
.tool-btn:hover::after,
.search-run-btn:hover::after{
  opacity: 1;
  animation: sweepLight .55s ease;
}

@keyframes sweepLight{
  from{
    left: -120%;
  }
  to{
    left: 140%;
  }
}



.source-ai{
  animation: aiBadgePulse 2.8s ease-in-out infinite;
}

@keyframes aiBadgePulse{
  0%, 100%{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 2px 6px rgba(0,0,0,.18),
      0 0 0 rgba(89,183,255,0);
  }
  50%{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 2px 6px rgba(0,0,0,.18),
      0 0 12px rgba(89,183,255,.18);
  }
}

.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.modal-overlay.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay.closing{
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.modal-pane{
  width: min(100%, 720px);
  max-height: 88vh;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.014)),
    linear-gradient(180deg, #101015, #0b0b10 62%, #09090d 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 -8px 30px rgba(0,0,0,0.3);
  transform: translateY(42px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.modal-overlay.open .modal-pane{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-overlay.closing .modal-pane{
  transform: translateY(34px) scale(0.988);
  opacity: 0;
}

.dragger{
  width: 56px;
  height: 6px;
  border-radius: 999px;
  margin: 12px auto 8px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.pane-header{
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  
}

.pane-title-wrap h2{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff1b54;
}

.pane-title-wrap p{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.pane-meta{
  flex: 0 0 auto;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px rgba(0,0,0,0.14);
}

.pane-meta-label{
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.pane-meta-count{
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  color: #fff;
}

.modal-content-scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 18px;
  -webkit-overflow-scrolling: touch;
}

.section{
  margin-bottom: 24px;
}

.section:last-child{
  margin-bottom: 8px;
}

.section-title{
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.opt-grid{
  display: grid;
  gap: 10px;
}

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

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

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

.opt-box{
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
    linear-gradient(180deg, #14141a, #0d0d12);
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.14);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    filter 0.16s ease;
}

.opt-box:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.13);
  color: #fff;
}

.opt-box:active{
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
}

.opt-box.active{
  border-color: rgba(255,0,60,0.24);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
    linear-gradient(180deg, rgba(255,0,60,0.15), rgba(255,0,60,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 18px rgba(255,0,60,0.08);
}

.pane-actions-wrap{
  flex: 0 0 auto;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(9,9,13,0.2), rgba(9,9,13,0.96) 24%, rgba(9,9,13,1));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.pane-actions-meta{
  min-height: 18px;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.pane-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-btn,
.apply-btn{
  min-height: 48px;
  border-radius: 16px;
  border: none;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.secondary-btn{
  color: #fff;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    #141419;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px rgba(0,0,0,0.14);
}

.apply-btn{
  color: #fff;
  background: linear-gradient(180deg, #ff1b54, #ff003c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 22px rgba(255,0,60,0.16);
}

.secondary-btn:hover,
.apply-btn:hover{
  transform: translateY(-1px);
}

.secondary-btn:active,
.apply-btn:active{
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
}

@media (max-width: 560px){
  .modal-pane{
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }

  .pane-header{
    padding: 6px 14px 12px;
    gap: 10px;
  }

  .pane-title-wrap h2{
    font-size: 14px;
  }

  .pane-title-wrap p{
    font-size: 12px;
  }

  .pane-meta{
    min-width: 58px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .pane-meta-count{
    font-size: 15px;
  }

  .modal-content-scroll{
    padding: 14px 14px 16px;
  }

  .section{
    margin-bottom: 22px;
  }

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

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

  .opt-box{
    min-height: 50px;
    border-radius: 16px;
    font-size: 10px;
  }

  .pane-actions-wrap{
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .secondary-btn,
  .apply-btn{
    min-height: 46px;
    border-radius: 15px;
    font-size: 10px;
  }
}

@media (max-width: 390px){
  .pane-header{
    align-items: flex-start;
  }

  .pane-meta{
    min-width: 54px;
  }

  .pane-title-wrap p{
    max-width: 220px;
  }

  .opt-box{
    min-height: 48px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }
}


.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: rgba(0,0,0,0.42);

  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
  opacity .24s ease,
  visibility .24s ease;

  /* FIX */
  will-change: opacity;
  transform: translateZ(0);
}

.modal-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background:#050505;
  z-index:-1;
}


.search-ticker{
  min-height: 46px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
    rgba(10,10,14,0.84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 10px 22px rgba(0,0,0,0.22);
}

.search-ticker-viewport{
  border-radius: 999px;
}

.search-ticker-viewport::before{
  background: linear-gradient(90deg, rgba(11,11,16,1), rgba(11,11,16,0));
}

.search-ticker-viewport::after{
  background: linear-gradient(270deg, rgba(11,11,16,1), rgba(11,11,16,0));
}

.search-ticker-count{
  min-width: 46px;
  height: 24px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  background:
    linear-gradient(180deg, rgba(255,38,92,0.24), rgba(255,0,60,0.10)),
    rgba(255,0,60,0.08);
  border: 1px solid rgba(255,0,60,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 18px rgba(255,0,60,0.10);
}


.search-ticker-single,
.search-ticker-empty{
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.76);
}



.search-ticker{
  margin-top: 14px;
}

.toolbar-strip{
  margin-top: 16px;
}


.search-panel{
  background:
    radial-gradient(circle at 20% 0%, rgba(255,0,60,0.06), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(80,120,255,0.05), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008)),
    rgba(8,8,12,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 18px 34px rgba(0,0,0,0.28);
}



.rx-creators{
  margin-top:4px;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.04em;
  color:rgba(255,255,255,0.55);
}

.card:hover .rx-creators{
  color:rgba(255,255,255,0.72);
}


.rx-creators{
  opacity:.75;
}


.name-row{
  display:block;
}

.name-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

.rx-name{
  text-align:center;
}



.rx-creators{
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.06em;
  color:rgba(255,255,255,.48);
  text-align:center;
}



.name-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
}

.name-inline-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

.rx-name{
  font-weight:800;
  text-align:center;
}

.rx-creators{
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.05em;
  color:rgba(255,255,255,.5);
  text-align:center;
}


.favorite-btn{
  min-height: 32px;
  min-width: 38px;
  padding: 0;
  font-size: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.82);
}

.favorite-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.favorite-icon svg{
  display: block;
  width: 14px;
  height: 14px;
}

.favorite-btn.is-favorite{
  border-color: rgba(255,110,40,0.24);
  background:
    linear-gradient(180deg, rgba(255,120,50,0.16), rgba(255,70,20,0.05)),
    rgba(255,90,30,0.04);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,110,40,0.08),
    0 8px 18px rgba(255,110,40,0.08);
  animation: hotlistPop .28s ease;
}

@keyframes hotlistPop {
  0% { transform: scale(.9); }
  50% { transform: scale(1.10); }
  100% { transform: scale(1); }
}



.hotlist-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
}

.hotlist-icon svg{
  width:12px;
  height:12px;
  display:block;
}


.tool-btn.active-favorites .hotlist-icon{
  color:#fff;
  filter: drop-shadow(0 0 4px rgba(255,120,50,.35));
}


.tool-btn.active-favorites{
  border-color: rgba(255,110,40,.25);

  background:
    linear-gradient(180deg, rgba(255,120,50,.14), rgba(255,70,20,.04)),
    rgba(255,90,30,.04);

  box-shadow:
    0 0 0 1px rgba(255,110,40,.08),
    0 8px 18px rgba(255,110,40,.08);
}


.hotlist-ai-panel{
  display:none;
  justify-content:center;
  margin:14px 0 10px;
}

.hotlist-ai-panel.visible{
  display:flex;
}

#analyzeHotlistBtn{
  border:none;
  border-radius:14px;
  padding:10px 16px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;

  color:white;
  background:linear-gradient(135deg,#ff7a18,#ffb347);

  box-shadow:
    0 6px 16px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

#analyzeHotlistBtn:hover{
  transform:translateY(-2px);
  box-shadow:
    0 10px 24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.35);
}

#analyzeHotlistBtn:active{
  transform:translateY(0);
  filter:brightness(.92);
}

.hotlist-ai-panel{
  display: none;
  justify-content: center;
  margin: 14px 0 10px;
}

.hotlist-ai-panel.visible{
  display: flex;
}

.hotlist-ai-panel{
  display: none;
  justify-content: center;
  margin: 14px 0 10px;
}

.hotlist-ai-panel.visible{
  display: flex;
}

.rx-insight-overlay{
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.rx-insight-overlay.visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rx-insight-card{
  width: min(100%, 560px);
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(255,120,40,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    linear-gradient(180deg, #111117, #0b0b10 72%, #09090d);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 20px 50px rgba(0,0,0,.34);
}

.rx-insight-topline{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}

.rx-insight-loader-bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.rx-insight-loader-fill{
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b1c, #ffb347, #ff6b1c);
  background-size: 200% 100%;
  animation:
    rxInsightLoadMove 1.1s linear infinite,
    rxInsightLoadGlow 1.4s ease-in-out infinite;
}

@keyframes rxInsightLoadMove{
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes rxInsightLoadGlow{
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.12); }
}

.rx-insight-loading-copy{
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.76);
}

.rx-insight-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rx-insight-header h3{
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.03em;
  color: #fff;
}

.rx-insight-close{
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  cursor: pointer;
}

.rx-insight-section{
  margin-bottom: 14px;
}

.rx-insight-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.rx-insight-mini{
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.025);
}

.rx-insight-label{
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.rx-insight-value{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.rx-insight-paragraph{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}

.rx-insight-verdict{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,120,40,.14), rgba(255,80,20,.05)),
    rgba(255,255,255,.02);
  border: 1px solid rgba(255,120,40,.12);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 560px){
  .rx-insight-card{
    padding: 16px;
    border-radius: 22px;
  }

  .rx-insight-header h3{
    font-size: 21px;
  }

  .rx-insight-grid{
    grid-template-columns: 1fr;
  }
}

.hotlist-ai-panel{
  display:none;
  justify-content:center;
  margin:14px 0 12px;
}

.hotlist-ai-panel.visible{
  display:flex;
}

#analyzeHotlistBtn{
  min-height:44px;
  padding:0 16px;
  border:none;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  cursor:pointer;

  background:
    linear-gradient(180deg, rgba(255,140,70,.22), rgba(255,90,30,.08)),
    rgba(255,255,255,.04);

  border:1px solid rgba(255,130,60,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,120,40,.05);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

#analyzeHotlistBtn:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 14px 28px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,120,40,.08);
}

#analyzeHotlistBtn:active{
  transform:translateY(0);
  filter:brightness(.96);
}

#analyzeHotlistBtn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

.rx-insight-header-single{
  align-items:flex-start;
  margin-bottom:16px;
}

.rx-insight-heading-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.rx-insight-topline-result{
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.46);
}

.rx-insight-body-single{
  padding-top:2px;
}

.rx-insight-paragraph-main{
  margin:0;
  font-size:15px;
  line-height:1.72;
  color:rgba(255,255,255,.86);
}

.rx-insight-paragraph-main strong{
  color:#fff;
}

/* =========================
   HOTLIST AI PANEL
========================= */

.hotlist-ai-panel{
  display:none;
  justify-content:center;
  margin:14px 0 14px;
}

.hotlist-ai-panel.visible{
  display:flex;
}

#analyzeHotlistBtn{
  min-height:46px;
  padding:0 18px;
  border:none;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#fff;
  cursor:pointer;
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at top, rgba(255,145,80,.18), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(255,110,40,.18), rgba(255,70,20,.08));

  border:1px solid rgba(255,130,60,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 28px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,120,40,.05);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    border-color .18s ease;
}

#analyzeHotlistBtn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.12) 18%,
    transparent 38%
  );
  transform:translateX(-140%);
  transition:transform .75s ease;
  pointer-events:none;
}

#analyzeHotlistBtn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,145,80,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 16px 34px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,120,40,.08);
}

#analyzeHotlistBtn:hover::before{
  transform:translateX(140%);
}

#analyzeHotlistBtn:active{
  transform:translateY(0);
  filter:brightness(.96);
}

#analyzeHotlistBtn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  filter:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(0,0,0,.18);
}

/* =========================
   RX IDENTITY MODAL
========================= */

.rx-insight-overlay{
  position:fixed;
  inset:0;
  z-index:260;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.56);
  backdrop-filter:blur(16px) saturate(1.05);
  -webkit-backdrop-filter:blur(16px) saturate(1.05);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.rx-insight-overlay.visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.rx-insight-card{
  width:min(100%, 560px);
  border-radius:28px;
  padding:18px;
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at top, rgba(255,125,55,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    linear-gradient(180deg, #121219, #0b0b10 72%, #09090d);

  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 24px 56px rgba(0,0,0,.36);
}

.rx-insight-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(140deg, rgba(255,255,255,.04), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255,160,90,.10), transparent 24%);
}

.rx-insight-topline{
  position:relative;
  z-index:1;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.46);
  margin-bottom:14px;
}

/* =========================
   LOADING
========================= */

.rx-insight-loading{
  position:relative;
  z-index:1;
}

.rx-insight-loader-bar{
  position:relative;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.06);
}

.rx-insight-loader-fill{
  position:absolute;
  inset:0;
  width:42%;
  border-radius:999px;
  background:
    linear-gradient(90deg, #ff7a1a, #ffb347, #ff7a1a);
  background-size:200% 100%;
  animation:
    rxInsightLoadMove 1.05s linear infinite,
    rxInsightLoadGlow 1.35s ease-in-out infinite;
}

@keyframes rxInsightLoadMove{
  0%   { transform:translateX(-120%); }
  100% { transform:translateX(260%); }
}

@keyframes rxInsightLoadGlow{
  0%,100% { filter:brightness(1); }
  50%     { filter:brightness(1.12); }
}

.rx-insight-loading-copy{
  margin-top:14px;
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,.76);
}

/* =========================
   RESULT
========================= */

.rx-insight-result{
  position:relative;
  z-index:1;
}

.rx-insight-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.rx-insight-header-single{
  margin-bottom:14px;
}

.rx-insight-heading-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.rx-insight-topline-result{
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.44);
}

#rxInsightTitle{
  margin:0;
  font-size:28px;
  line-height:1.02;
  font-weight:950;
  letter-spacing:-.045em;
  color:#fff;
  text-wrap:balance;
}

.rx-insight-close{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.84);
  cursor:pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.rx-insight-close:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.12);
}

.rx-insight-close:active{
  transform:translateY(0);
}

.rx-insight-body-single{
  padding-top:2px;
}

.rx-insight-paragraph{
  margin:0;
}

.rx-insight-paragraph-main{
  font-size:15px;
  line-height:1.72;
  color:rgba(255,255,255,.86);
  text-wrap:pretty;
}

/* =========================
   SMALL POLISH
========================= */

#rxInsightTitle,
.rx-insight-paragraph-main,
.rx-insight-loading-copy{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

@media (max-width: 560px){
  .rx-insight-overlay{
    padding:16px;
  }

  .rx-insight-card{
    padding:16px;
    border-radius:24px;
  }

  #rxInsightTitle{
    font-size:24px;
  }

  .rx-insight-paragraph-main{
    font-size:14px;
    line-height:1.68;
  }
}



/* =========================
   SHIP RX — FINAL
========================= */

.ship-rx-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:104px;
}

.ship-rx-wrap-empty{
  min-width:104px;
  min-height:62px;
  justify-content:center;
}

.ship-rx-box{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  outline:none;
  cursor:pointer;
  position:relative;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;

  min-width:96px;
  min-height:86px;
  padding:11px 14px 10px;

  border-radius:18px;
  overflow:hidden;

  background:
    radial-gradient(circle at 30% 18%, rgba(255,90,135,.14), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));

  border:1px solid rgba(255,120,155,.14);

  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 8px 22px rgba(0,0,0,.34),
    0 0 10px rgba(255,60,120,.08);

  transition:
    transform .2s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.ship-rx-box::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(125deg, transparent 0%, rgba(255,255,255,.08) 24%, transparent 48%);
  transform:translateX(-135%);
  opacity:.75;
}

.ship-rx-box:hover{
  transform:translateY(-1px);
  border-color:rgba(255,125,160,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 24px rgba(0,0,0,.40),
    0 0 14px rgba(255,60,120,.14);
}

.ship-rx-box:active{
  transform:translateY(0);
}

.ship-rx-box:focus{
  outline:none;
}

.ship-rx-box:focus-visible{
  border-color:rgba(255,120,155,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 26px rgba(0,0,0,.42),
    0 0 0 2px rgba(255,100,150,.10),
    0 0 16px rgba(255,60,120,.18);
}

.ship-rx-box.active{
  border-color:rgba(255,110,150,.34);
  background:
    radial-gradient(circle at 30% 18%, rgba(255,95,140,.20), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 28px rgba(0,0,0,.46),
    0 0 18px rgba(255,60,120,.20);
}

.ship-rx-box.active::after{
  animation:shipSweep 1.15s ease .08s 1;
}

/* label */

.ship-rx-label{
  font-size:9px;
  line-height:1;
  letter-spacing:.26em;
  text-transform:uppercase;
  font-weight:700;
  color:rgba(255,255,255,.46);

  opacity:0;
  transform:translateY(-6px) scale(.98);
  transition:
    opacity .28s ease,
    transform .28s ease,
    color .28s ease;

  pointer-events:none;
  user-select:none;
  will-change:opacity, transform;
}

.ship-rx-box:hover .ship-rx-label,
.ship-rx-box:focus-visible .ship-rx-label,
.ship-rx-box.active .ship-rx-label{
  opacity:1;
  transform:translateY(0) scale(1);
  color:rgba(255,255,255,.64);
}

.ship-rx-box.active .ship-rx-label{
  animation:shipLabelIn .38s cubic-bezier(.22,.9,.24,1);
}

/* content row */

.ship-rx-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.ship-rx-initials{
  font-size:13px;
  line-height:1;
  letter-spacing:.18em;
  font-weight:700;
  color:rgba(255,255,255,.92);
  text-shadow:0 0 8px rgba(255,255,255,.04);
  transition:transform .22s ease, opacity .22s ease;
}

.ship-rx-box.active .ship-rx-initials{
  transform:translateY(-.5px);
}

/* heart */

.ship-rx-count-heart{
  position:relative;

  width:32px;
  height:28px;
  flex:0 0 32px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  z-index:1;

  text-shadow:0 1px 2px rgba(0,0,0,.25);

  filter:
    drop-shadow(0 0 10px rgba(255,45,110,.45))
    drop-shadow(0 0 18px rgba(255,45,110,.18));

  transition:
    transform .22s ease,
    filter .22s ease;
}

.ship-rx-count-heart::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;

  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.24), transparent 26%),
    linear-gradient(180deg, #ff6f9e 0%, #ff145f 100%);

  clip-path:path("M16 26 C14 22,2 16,2 9 C2 4.5,6 2,9 2 C11.5 2,14 3.5,16 6 C18 3.5,20.5 2,23 2 C26 2,30 4.5,30 9 C30 16,18 22,16 26 Z");

  box-shadow:
    inset 0 0 4px rgba(255,255,255,.22),
    0 0 14px rgba(255,40,110,.28);
}

.ship-rx-box.active .ship-rx-count-heart{
  transform:scale(1.08);
  animation:shipHeartPulse 1.2s ease-in-out infinite;
}

/* heart tiers by ship power */

.ship-rx-count-heart.tier-neutral{
  filter:
    drop-shadow(0 0 8px rgba(180,180,180,.24))
    drop-shadow(0 0 14px rgba(180,180,180,.10));
}

.ship-rx-count-heart.tier-neutral::before{
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.16), transparent 26%),
    linear-gradient(180deg, #9a9a9a 0%, #6d6d6d 100%);
  box-shadow:
    inset 0 0 4px rgba(255,255,255,.14),
    0 0 12px rgba(180,180,180,.14);
}

.ship-rx-count-heart.tier-bronze{
  filter:
    drop-shadow(0 0 10px rgba(199,138,69,.34))
    drop-shadow(0 0 18px rgba(199,138,69,.14));
}

.ship-rx-count-heart.tier-bronze::before{
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.20), transparent 26%),
    linear-gradient(180deg, #d59b58 0%, #b87333 100%);
  box-shadow:
    inset 0 0 4px rgba(255,255,255,.16),
    0 0 14px rgba(199,138,69,.20);
}

.ship-rx-count-heart.tier-silver{
  color:#121212;
  text-shadow:none;
  filter:
    drop-shadow(0 0 10px rgba(209,213,219,.36))
    drop-shadow(0 0 18px rgba(209,213,219,.16));
}

.ship-rx-count-heart.tier-silver::before{
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.32), transparent 28%),
    linear-gradient(180deg, #eef1f4 0%, #c8cdd4 100%);
  box-shadow:
    inset 0 0 4px rgba(255,255,255,.24),
    0 0 14px rgba(209,213,219,.24);
}

.ship-rx-count-heart.tier-gold{
  color:#2a1b00;
  text-shadow:none;
  filter:
    drop-shadow(0 0 10px rgba(255,204,77,.42))
    drop-shadow(0 0 22px rgba(255,204,77,.18));
}

.ship-rx-count-heart.tier-gold::before{
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.32), transparent 28%),
    linear-gradient(180deg, #ffe28a 0%, #ffbf2f 100%);
  box-shadow:
    inset 0 0 4px rgba(255,255,255,.24),
    0 0 16px rgba(255,204,77,.28);
}

/* power row */

.ship-rx-power{
  margin-top:1px;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
  color:rgba(255,255,255,.78);
  opacity:.92;
  transition:
    opacity .22s ease,
    transform .22s ease,
    color .22s ease;
}

.ship-rx-box.active .ship-rx-power{
  transform:translateY(.5px);
}

.ship-rx-power-label{
  color:rgba(255,255,255,.42);
  font-weight:700;
  letter-spacing:.08em;
  margin-right:4px;
}

.ship-rx-power-value{
  color:rgba(255,255,255,.88);
}

/* hint */

.ship-rx-hint{
  max-width:160px;
  text-align:center;
  font-size:10px;
  line-height:1.36;
  letter-spacing:.01em;
  color:rgba(255,255,255,.34);

  opacity:0;
  transform:translateY(-4px);
  transition:
    opacity .24s ease,
    transform .24s ease,
    color .24s ease;
}

.ship-rx-hint.visible{
  opacity:1;
  transform:translateY(0);
}

.ship-rx-hint strong{
  color:rgba(255,255,255,.58);
  font-weight:700;
}

/* animations */

@keyframes shipLabelIn{
  0%{
    opacity:0;
    transform:translateY(-8px) scale(.96);
    letter-spacing:.32em;
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    letter-spacing:.26em;
  }
}

@keyframes shipSweep{
  0%{
    transform:translateX(-135%);
    opacity:0;
  }
  20%{
    opacity:.75;
  }
  100%{
    transform:translateX(135%);
    opacity:0;
  }
}

@keyframes shipHeartPulse{
  0%,100%{
    transform:scale(1.06);
  }
  50%{
    transform:scale(1.12);
  }
}

@media (max-width:560px){
  .ship-rx-box{
    min-width:92px;
    min-height:82px;
    padding:10px 12px 9px;
  }

  .ship-rx-initials{
    font-size:12px;
  }

  .ship-rx-power{
    font-size:10px;
  }

  .ship-rx-hint{
    max-width:142px;
    font-size:10px;
  }
}



.ship-rx-box.is-holding{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 28px rgba(0,0,0,.46),
    0 0 18px rgba(255,60,120,.30);
}

.ship-rx-box.is-holding .ship-rx-label{
  opacity:1;
  transform:translateY(0) scale(1);
  color:rgba(255,255,255,.82);
}

.ship-rx-box.is-holding::after{
  animation:shipSweep 1.15s linear infinite;
}




/* =========================================================
   RX STUDIO UPDATE
   caroselli + origine + anno/mese + chips uniformi
========================================================= */

/* ---------- MODAL CONTENT SPACING ---------- */

.modal-content-scroll{
  display:flex;
  flex-direction:column;
  gap:18px;
}

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

.section-title{
  display:block;
  font-size:12px;
  line-height:1;
  letter-spacing:.20em;
  text-transform:uppercase;
  font-weight:800;
  color:rgba(255,255,255,.52);
}

/* ---------- ORIGINE ---------- */

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

.opt-grid-2 .opt-box{
  min-height:56px;
  border-radius:18px;
}

/* ---------- BASE FILTER CHIP ---------- */

.opt-box{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  outline:none;
  cursor:pointer;

  position:relative;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  min-height:54px;
  padding:0 14px;

  border-radius:18px;

  color:rgba(255,255,255,.92);
  font-size:13px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-align:center;

  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    rgba(16,16,22,.92);

  border:1px solid rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.22);

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.opt-box::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(125deg, transparent 0%, rgba(255,255,255,.06) 24%, transparent 48%);
  transform:translateX(-140%);
  opacity:.65;
}

.opt-box:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 12px 28px rgba(0,0,0,.28);
}

.opt-box:active{
  transform:translateY(0);
}

.opt-box:focus-visible{
  border-color:rgba(255,110,150,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 2px rgba(255,90,140,.08),
    0 10px 26px rgba(0,0,0,.30);
}

.opt-box.active{
  color:#fff;
  border-color:rgba(255,80,130,.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,60,120,.18), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(20,10,18,.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 30px rgba(255,35,95,.16);
}

.opt-box.active::before{
  animation: rxChipSweep 1.05s ease 1;
}

@keyframes rxChipSweep{
  0%{
    transform:translateX(-140%);
    opacity:0;
  }
  25%{
    opacity:.7;
  }
  100%{
    transform:translateX(140%);
    opacity:0;
  }
}

.opt-box-label{
  display:block;
  white-space:nowrap;
}

.opt-box-meta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:20px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:none;
}

/* ---------- CAROUSELS ---------- */

.opt-carousel{
  display:flex;
  align-items:stretch;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 6px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.opt-carousel::-webkit-scrollbar{
  display:none;
}

.opt-box-carousel{
  flex:0 0 auto;
  min-width:122px;
  min-height:62px;
  padding:10px 14px;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  scroll-snap-align:start;
}

.opt-carousel-creators .opt-box-carousel{
  min-width:128px;
}

.opt-carousel-categories .opt-box-carousel{
  min-width:128px;
}

.opt-carousel-generations .opt-box-carousel{
  min-width:114px;
}

.opt-carousel-rarity .opt-box-carousel{
  min-width:138px;
}

/* ---------- LEGACY SMALL GRIDS ---------- */

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

.opt-grid-creator{
  gap:10px;
}

/* ---------- DATE SPLIT SECTION ---------- */

.section-date-split{
  margin-top:2px;
}

.date-split-grid{
  display:grid;
  grid-template-columns:108px minmax(0, 1fr);
  gap:16px;
  align-items:start;
}

.date-col{
  min-width:0;
}

.date-col .section-title{
  margin-bottom:10px;
}

/* ---------- YEAR STEPPER ---------- */



.date-year-stepper{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:126px;
  margin-top:8px;
}

.date-year-arrow{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(18,18,26,.95);
  color:rgba(255,255,255,.88);
  font-size:14px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.24);
  transition:
    transform .16s ease,
    border-color .16s ease,
    opacity .16s ease;
}

.date-year-arrow:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
}

.date-year-arrow.is-disabled,
.date-year-arrow:disabled{
  opacity:.34;
  pointer-events:none;
}

.date-year-display{
  width:100%;
  max-width:92px;
  min-height:72px;
  padding:10px 8px;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.date-year-caption{
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:rgba(255,255,255,.42);
  font-weight:800;
}

.date-year-value{
  font-size:22px;
  line-height:1;
  font-weight:950;
  letter-spacing:.04em;
  color:rgba(255,255,255,.96);
}

/* ---------- MONTH GRID ---------- */

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

.date-month-mini{
  min-width:0;
  width:100%;
  min-height:52px;
  padding:0;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* ---------- STATUS / RARITY LONG LABELS ---------- */

.opt-carousel-rarity .opt-box-label,
.opt-grid-2 .opt-box .opt-box-label{
  white-space:normal;
}

/* ---------- MINI CHIPS PREVIEW ---------- */

.active-filters-preview{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mini-chip{
  min-height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* ---------- TOOLBAR LABEL UPDATE ---------- */

#tuningLabel{
  white-space:nowrap;
}

/* ---------- SHIP BOX SMALL VISUAL ALIGN ---------- */

.ship-rx-wrap{
  min-width:108px;
}

.ship-rx-wrap-empty{
  min-width:108px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:560px){
  .modal-content-scroll{
    gap:16px;
  }

  .section{
    gap:10px;
  }

  .opt-carousel{
    gap:10px;
    padding-bottom:4px;
  }

  .opt-box{
    min-height:52px;
    font-size:12px;
    letter-spacing:.04em;
    padding:0 12px;
  }

  .opt-box-carousel{
    min-height:58px;
    border-radius:18px;
    min-width:114px;
    padding:10px 12px;
  }

  .opt-carousel-creators .opt-box-carousel{
    min-width:120px;
  }

  .opt-carousel-categories .opt-box-carousel{
    min-width:120px;
  }

  .opt-carousel-generations .opt-box-carousel{
    min-width:106px;
  }

  .opt-carousel-rarity .opt-box-carousel{
    min-width:130px;
  }

  .date-split-grid{
    grid-template-columns:100px minmax(0, 1fr);
    gap:12px;
  }

  .date-year-stepper{
    min-height:118px;
    gap:6px;
    margin-top:2px;
  }

  .date-year-arrow{
    width:28px;
    height:28px;
    font-size:13px;
  }

  .date-year-display{
    max-width:88px;
    min-height:68px;
    padding:9px 8px;
  }

  .date-year-value{
    font-size:20px;
  }

  .date-month-grid{
    gap:8px;
  }

  .date-month-mini{
    min-height:48px;
    font-size:11px;
  }
}




.date-year-stepper{
  margin-top:8px;
}


.date-year-stepper{
  margin-top:18px;
}


#tuningModal .modal-pane {
  position: relative;
}

.preset-overlay-in-studio {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 34px;
}

.preset-overlay-in-studio.visible {
  display: flex;
}

.preset-modal-card {
  width: 100%;
  max-width: 100%;
}



/* =========================
   PRESET / RX STUDIO
   ========================= */

#tuningModal .modal-pane {
  position: relative;
  overflow: hidden;
}

/* titolo RX Studio nel pannello */
.pane-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.pane-title-wrap h2,
.pane-title-wrap .pane-title,
.pane-header h2 {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* overlay interno a RX Studio */
.preset-overlay,
.preset-overlay-in-studio {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 14px 14px;
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.18), rgba(6, 6, 10, 0.72)),
    rgba(4, 4, 8, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 34px;
}

.preset-overlay.visible,
.preset-overlay-in-studio.visible {
  display: flex;
}

/* card modale */
.preset-modal-card,
.preset-modal-card-small {
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 0;
  border-radius: 28px;
  padding: 16px 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(12, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* header modali */
.preset-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.preset-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preset-modal-kicker {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

.preset-modal-title {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #ffffff;
}

.preset-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preset-modal-close:active {
  transform: scale(0.98);
}

/* empty state */
.preset-empty-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preset-empty-state strong {
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.preset-empty-state span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* lista preset */
.preset-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 460px);
  overflow-y: auto;
  padding-right: 2px;
}

.preset-modal-body::-webkit-scrollbar {
  width: 8px;
}

.preset-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.preset-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(16, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.preset-item.is-active {
  border-color: rgba(255, 0, 85, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(255, 0, 85, 0.12);
}

.preset-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preset-item-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.preset-item-title {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  word-break: break-word;
}

.preset-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-mini-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-default-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.preset-active-badge {
  color: #fff;
  background: rgba(255, 0, 85, 0.18);
  border-color: rgba(255, 0, 85, 0.28);
}

/* summary */
.preset-item-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preset-item-line {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

/* actions */
.preset-item-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preset-action-btn {
  min-height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(20, 20, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.preset-action-btn:active {
  transform: scale(0.985);
}

.preset-action-btn-danger {
  color: #ffb8c5;
  border-color: rgba(255, 92, 130, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 92, 130, 0.10), rgba(255, 92, 130, 0.04)),
    rgba(20, 12, 16, 0.92);
}

/* save preset body */
.preset-save-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preset-input-label {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.preset-input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(14,14,20,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.preset-input::placeholder {
  color: rgba(255,255,255,0.34);
  font-weight: 600;
}

.preset-input:focus {
  border-color: rgba(255, 0, 85, 0.34);
  box-shadow:
    0 0 0 3px rgba(255, 0, 85, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* checkbox row */
.preset-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.76);
}

.preset-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff0055;
}

/* buttons row */
.preset-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

/* pulsanti header RX Studio */
.secondary-btn-preset-open,
.icon-preset-save-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    rgba(18, 18, 24, 0.92);
  color: rgba(255,255,255,0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.10);
}

.secondary-btn-preset-open {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.secondary-btn-preset-open.is-active {
  border-color: rgba(255, 0, 85, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 0, 85, 0.14), rgba(255, 0, 85, 0.05)),
    rgba(18, 18, 24, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 22px rgba(255, 0, 85, 0.14);
  color: #fff;
}

.icon-preset-save-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex: 0 0 32px;
  padding: 0;
  margin: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-preset-save-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.icon-preset-save-btn:active,
.secondary-btn-preset-open:active {
  transform: scale(0.98);
}

/* responsive */
@media (max-width: 480px) {
  .preset-overlay,
  .preset-overlay-in-studio {
    padding: 10px 12px 12px;
  }

  .preset-modal-card,
  .preset-modal-card-small {
    border-radius: 24px;
    padding: 14px 14px 12px;
  }

  .preset-modal-title {
    font-size: 20px;
  }

  .preset-item-actions {
    grid-template-columns: 1fr;
  }

  .preset-actions-row {
    grid-template-columns: 1fr;
  }

  .preset-input {
    min-height: 48px;
    font-size: 14px;
  }

  .pane-title-wrap {
    gap: 8px;
  }
}



.preset-modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #ffffff;
}


.preset-modal-kicker {
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}



.preset-overlay,
.preset-overlay-in-studio {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 14px 14px;
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.18), rgba(6, 6, 10, 0.72)),
    rgba(4, 4, 8, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 34px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.preset-overlay.visible,
.preset-overlay-in-studio.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preset-modal-card,
.preset-modal-card-small {
  transform: translateY(-4px) scale(0.985);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
  opacity: 0;
}

.preset-overlay.visible .preset-modal-card,
.preset-overlay.visible .preset-modal-card-small,
.preset-overlay-in-studio.visible .preset-modal-card,
.preset-overlay-in-studio.visible .preset-modal-card-small {
  transform: translateY(0) scale(1);
  opacity: 1;
}


.modal-pane {
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.24s ease;
}




.drag-rx-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;

  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;

  background: rgba(10, 10, 16, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(255, 0, 85, 0.18),
    0 0 34px rgba(255, 0, 85, 0.14);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.drag-rx-ghost.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.drag-rx-ghost img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* invece di cover */
  background: #0a0a10;
  display: block;
}

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

.drag-rx-ghost.is-over-hotlist {
  border-color: rgba(255, 0, 85, 0.50);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.46),
    0 0 0 3px rgba(255, 0, 85, 0.24),
    0 0 42px rgba(255, 0, 85, 0.28);
}


.drag-rx-ghost {
  width: 124px;
  height: 148px;
  border-radius: 24px;
}

.drag-rx-ghost img {
  object-fit: cover;
}


.card,
.card * {
  -webkit-user-select: none;
  user-select: none;
}

.card img {
  -webkit-user-drag: none;
  user-drag: none;
}

body.is-dragging-hotlist {
  touch-action: none;
}



.collect-fly-clone {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 22px 54px rgba(0,0,0,0.34),
    0 0 0 1px rgba(255,0,85,0.12),
    0 0 28px rgba(255,0,85,0.10);
  transform-origin: center center;
  transition:
    transform 0.8s cubic-bezier(.2,.82,.2,1),
    opacity 0.52s ease,
    left 0.52s cubic-bezier(.2,.82,.2,1),
    top 0.52s cubic-bezier(.2,.82,.2,1),
    width 0.52s cubic-bezier(.2,.82,.2,1),
    height 0.52s cubic-bezier(.2,.82,.2,1);
}

.collect-fly-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collect-fly-clone.is-flying {
  opacity: 0.94;
}

.collect-fly-clone.is-shrinking {
  opacity: 0.18;
  transform: scale(0.22);
}

.hotlist-collect-pulse {
  animation: hotlistCollectPulse 0.5s ease;
}

@keyframes hotlistCollectPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 0, 85, 0),
      0 0 0 0 rgba(255, 0, 85, 0);
  }
  40% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 6px rgba(255, 0, 85, 0.18),
      0 0 26px rgba(255, 0, 85, 0.22);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 0, 85, 0),
      0 0 0 rgba(255, 0, 85, 0);
  }
}

.card.is-collecting {
  transform: scale(0.985);
  transition: transform 0.18s ease;
}

.favorite-btn.is-favorite .favorite-icon,
.card-side-save-btn.is-favorite .favorite-icon {
  filter: drop-shadow(0 0 8px rgba(255, 0, 85, 0.24));
}

#favoritesToggleBtn.active-favorites,
#favoritesToggleBtn.hotlist-collect-pulse {
  border-color: rgba(255, 0, 85, 0.24);
}



.collect-fly-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 22px;
  overflow: hidden;
  z-index: 9998;

  opacity: 0.35;

  transition:
    transform 0.8s cubic-bezier(.18,.82,.18,1),
    opacity 0.8s ease,
    left 0.8s cubic-bezier(.18,.82,.18,1),
    top 0.8s cubic-bezier(.18,.82,.18,1),
    width 0.8s cubic-bezier(.18,.82,.18,1),
    height 0.8s cubic-bezier(.18,.82,.18,1);
}

.collect-fly-trail img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.opt-box[data-value="__others__"] {
  opacity: 0.7;
  border-style: dashed;
}


.modal-pane {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  border-top-left-radius: 26px;
  border-top-right-radius: 26px;

  border: 1px solid rgba(255,255,255,0.06);
}


.status-info-pop {
  position: absolute;
  z-index: 120;
  min-width: 210px;
  max-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.status-info-pop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateY(0) scale(1);
}

.status-info-pop-inner {
  border-radius: 18px;
  padding: 12px 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(12,12,18,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,0,85,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-info-pop-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 6px;
}

.status-info-pop-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.status-info-pop-text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.74);
}


.status-info-backdrop {
  position: absolute;
  inset: 0;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(4, 4, 8, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  border-radius: inherit;
}

.status-info-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.status-info-pop {
  z-index: 120;
}


button,
.opt-box,
.tool-btn,
.card-btn,
.secondary-btn,
.apply-btn,
.mode-toggle-btn,
.search-run-btn,
.secondary-btn-preset-open,
.icon-preset-save-btn,
.preset-action-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button *,
.opt-box *,
.tool-btn *,
.card-btn *,
.secondary-btn *,
.apply-btn *,
.mode-toggle-btn *,
.search-run-btn *,
.secondary-btn-preset-open *,
.icon-preset-save-btn *,
.preset-action-btn * {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}


button,
.opt-box,
.tool-btn,
.card-btn {
  -webkit-tap-highlight-color: transparent;
}



.status-info-global-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(4, 4, 8, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.status-info-global-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.status-info-pop-global {
  position: absolute;
  z-index: 90;
  min-width: 210px;
  max-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.status-info-pop-global.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.status-info-pop-inner {
  border-radius: 18px;
  padding: 12px 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(12,12,18,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,0,85,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  
  
  
  
}

.status-info-pop-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 6px;
}

.status-info-pop-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.status-info-pop-text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.74);
}



#tuningModal {
  position: fixed;
}


.status-info-global-backdrop {
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


.status-info-global-backdrop {
  filter: saturate(0.9) brightness(0.85);
}

.status-info-pop-inner {
  background: rgba(12, 12, 18, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}


.status-info-global-backdrop {
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.6)),
    rgba(5,5,8,0.5);
}



.status-info-pop-global {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: min(86vw, 340px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(26px) scale(0.94);
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(.2,.82,.2,1),
    visibility 0.24s ease;
}

.status-info-pop-global.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.status-info-pop-inner {
  border-radius: 22px;
  padding: 16px 16px 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(12,12,18,0.96);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 24px 54px rgba(0,0,0,0.36),
    0 0 0 1px rgba(255,0,85,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.status-info-pop-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 8px;
}

.status-info-pop-title {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.status-info-pop-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.status-info-pop-global {
  transform: translate(-50%, -50%) translateY(34px) scale(0.9);
}


.status-info-pop-global.visible {
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.status-info-pop,
.status-info-pop *,
.status-info-pop-inner,
.status-info-pop-inner * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}


.status-info-pop {
  -webkit-tap-highlight-color: transparent;
}


.status-info-global-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(5, 5, 8, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.status-info-global-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.
