/* Landing page — scoped to .page-home only */

.page-home {
  --landing-bg: #050816;
  --landing-card: #0b1220;
  --landing-card-hover: #0f1729;
  --landing-border: rgba(148, 163, 184, 0.12);
  --landing-border-hover: rgba(109, 93, 251, 0.45);
  --landing-accent: #6d5dfb;
  --landing-accent-2: #3ba3ff;
  --landing-text: #e8ecf4;
  --landing-muted: #94a3b8;
  --landing-radius: 18px;
  --landing-radius-sm: 16px;
  --landing-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --landing-glass: rgba(11, 18, 32, 0.72);
}

.page-home {
  background: var(--landing-bg);
  color: var(--landing-text);
}

.page-home .page {
  max-width: 1280px;
  padding-top: 0.75rem;
  padding-bottom: 4rem;
}

.page-home .header {
  margin-bottom: 0.25rem;
  background: rgba(5, 8, 22, 0.72);
  border-bottom-color: rgba(148, 163, 184, 0.05);
}

/* —— Hero —— */

.landing-hero {
  position: relative;
  text-align: center;
  padding: 5rem 0 3.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.landing-hero__glow--purple {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -30%;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, rgba(109, 93, 251, 0.55) 0%, transparent 70%);
}

.landing-hero__glow--blue {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -10%;
  left: 50%;
  transform: translateX(-10%);
  background: radial-gradient(circle, rgba(59, 163, 255, 0.4) 0%, transparent 70%);
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.landing-maintenance {
  margin-bottom: 2rem;
  text-align: left;
}

.landing-hero__title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 1.75rem;
}

.landing-hero__title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 90vw);
  height: min(280px, 50vw);
  transform: translate(-50%, -52%);
  background: radial-gradient(
    ellipse at center,
    rgba(109, 93, 251, 0.32) 0%,
    rgba(59, 163, 255, 0.14) 42%,
    transparent 72%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.landing-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.landing-hero__title-accent {
  background: linear-gradient(135deg, var(--landing-accent-2) 0%, var(--landing-accent) 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero__subtitle {
  margin: 0 auto 2.75rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--landing-muted);
}

/* Unified scan input — single glass container */
.landing-hero__scan-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(109, 93, 251, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-hero__scan-box:focus-within {
  border-color: rgba(109, 93, 251, 0.4);
  box-shadow:
    0 0 0 1px rgba(109, 93, 251, 0.12) inset,
    0 28px 72px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(109, 93, 251, 0.14);
}

.landing-hero__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.landing-hero__input {
  width: 100%;
  padding: 1.1rem 1.15rem;
  font-size: 1.0625rem;
  border-radius: 14px;
  border: none;
  background: rgba(5, 8, 22, 0.45);
  color: var(--landing-text);
  transition: background 0.2s ease;
}

.landing-hero__input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.landing-hero__input:focus {
  outline: none;
  background: rgba(5, 8, 22, 0.62);
  box-shadow: none;
}

.landing-hero__cta {
  width: 100%;
  justify-content: center;
  padding: 1.15rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #6d5dfb 0%, #5b4fe8 38%, #3ba3ff 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 12px 40px rgba(109, 93, 251, 0.55),
    0 4px 16px rgba(59, 163, 255, 0.25),
    0 0 60px rgba(109, 93, 251, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.landing-hero__cta:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 16px 52px rgba(109, 93, 251, 0.62),
    0 8px 24px rgba(59, 163, 255, 0.32),
    0 0 80px rgba(109, 93, 251, 0.35);
}

.landing-hero__err,
.landing-hero__warn {
  max-width: 700px;
  margin: 1rem auto 0;
  text-align: left;
}

@media (min-width: 640px) {
  .landing-hero__form {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }

  .landing-hero__input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .landing-hero__cta {
    width: auto;
    flex-shrink: 0;
    min-width: 14.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* —— Marketing wrapper —— */

.landing-marketing {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 2rem 0 3rem;
}

body.home-inv-loaded .landing-marketing {
  display: none;
}

/* —— Feature tags —— */

.landing-tags__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-badge__icon {
  display: flex;
  color: rgba(59, 163, 255, 0.9);
  opacity: 0.95;
}

.landing-badge__icon svg {
  width: 15px;
  height: 15px;
}

/* —— Section shared —— */

.landing-section {
  margin: 0;
}

.landing-section__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.landing-section__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing-section__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--landing-muted);
}

/* —— Feature cards —— */

.landing-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.65rem 1.5rem 1.75rem;
  border-radius: var(--landing-radius-sm);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(11, 18, 32, 0.78) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 12px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.landing-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(109, 93, 251, 0.55),
    rgba(59, 163, 255, 0.45),
    transparent
  );
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.landing-feature-card:hover {
  background: linear-gradient(
    165deg,
    rgba(18, 28, 50, 0.95) 0%,
    rgba(12, 20, 36, 0.88) 100%
  );
  border-color: rgba(109, 93, 251, 0.35);
  box-shadow:
    0 0 0 1px rgba(109, 93, 251, 0.1) inset,
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 56px rgba(109, 93, 251, 0.12);
  transform: translateY(-4px);
}

.landing-feature-card:hover::before {
  opacity: 1;
}

.landing-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(109, 93, 251, 0.35) 0%,
    rgba(59, 163, 255, 0.22) 55%,
    rgba(109, 93, 251, 0.12) 100%
  );
  color: #b8d9ff;
  box-shadow: 0 8px 24px rgba(109, 93, 251, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-feature-card:hover .landing-feature-card__icon {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(109, 93, 251, 0.28);
}

.landing-feature-card__svg {
  display: block;
}

.landing-feature-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.landing-feature-card__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--landing-muted);
}

@media (max-width: 1024px) {
  .landing-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-features__grid {
    grid-template-columns: 1fr;
  }
}

/* —— How it works —— */

.landing-how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
}

.landing-step__marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.landing-step__circle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-2) 100%);
  box-shadow: 0 4px 16px rgba(109, 93, 251, 0.35);
}

.landing-step__line {
  position: absolute;
  top: 50%;
  left: calc(50% + 1.25rem);
  right: calc(-50% + 1.25rem);
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(109, 93, 251, 0.65) 0%,
    rgba(59, 163, 255, 0.35) 50%,
    rgba(109, 93, 251, 0.15) 100%
  );
  background-size: 200% 100%;
  animation: landing-step-flow 2.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes landing-step-flow {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.65;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

.landing-step__title {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.landing-step__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--landing-muted);
}

@media (max-width: 768px) {
  .landing-how__steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 24rem;
    margin: 0 auto;
  }

  .landing-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    gap: 1rem;
  }

  .landing-step__marker {
    width: auto;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .landing-step__line {
    display: none;
  }

  .landing-step__body {
    flex: 1;
    padding-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-step__line {
    animation: none;
  }

  .landing-hero__cta:hover:not(:disabled),
  .landing-feature-card:hover {
    transform: none;
  }
}

/* —— Game banner —— */

.landing-game-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--landing-border);
  background: var(--landing-card);
  min-height: 11rem;
}

.landing-game-banner__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 10% 50%, rgba(109, 93, 251, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 90% 30%, rgba(59, 163, 255, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #0a0f1c 0%, #0d1528 40%, #0a1020 100%);
}

.landing-game-banner__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.015) 48px,
      rgba(255, 255, 255, 0.015) 49px
    );
  opacity: 0.8;
}

.landing-game-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 0.65rem;
}

.landing-game-banner__icons {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  opacity: 0.92;
}

.landing-game-banner__icons img {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.landing-game-banner__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.landing-game-banner__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--landing-muted);
  max-width: 28rem;
  line-height: 1.6;
}

/* —— Trust —— */

.landing-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-trust__card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--landing-radius-sm);
  background: var(--landing-glass);
  border: 1px solid var(--landing-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-trust__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.landing-trust__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--landing-muted);
}

@media (max-width: 640px) {
  .landing-trust__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Inventory results (portfolio dashboard) —— */

.page-home .landing-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Summary */
.page-home .inv-portfolio-summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  padding: 2.25rem 2rem 2rem;
  border-radius: 20px;
  background: linear-gradient(
    155deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(11, 18, 32, 0.82) 55%,
    rgba(9, 14, 28, 0.9) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 72px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.page-home .inv-portfolio-summary__glow {
  position: absolute;
  top: -40%;
  left: 8%;
  width: min(480px, 70vw);
  height: min(320px, 50vw);
  background: radial-gradient(
    ellipse at center,
    rgba(109, 93, 251, 0.28) 0%,
    rgba(59, 163, 255, 0.12) 45%,
    transparent 72%
  );
  filter: blur(32px);
  pointer-events: none;
}

.page-home .inv-portfolio-summary__main {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 16rem;
}

.page-home .inv-portfolio-summary__label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--landing-muted);
}

.page-home .inv-portfolio-summary__value {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    #f0f4ff 0%,
    #c7d8ff 35%,
    #93c5fd 70%,
    #a78bfa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 48px rgba(109, 93, 251, 0.35);
  filter: drop-shadow(0 0 24px rgba(59, 163, 255, 0.2));
}

.page-home .inv-portfolio-summary__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  flex-shrink: 0;
}

.page-home .inv-portfolio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 6.5rem;
}

.page-home .inv-portfolio-stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--landing-muted);
}

.page-home .inv-portfolio-stat__value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--landing-text);
  font-variant-numeric: tabular-nums;
}

/* Unified control bar */
.page-home .inv-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.page-home .inv-control-bar__group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.page-home .inv-control-bar__caption {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-muted);
  white-space: nowrap;
}

.page-home .inv-control-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(5, 8, 22, 0.45);
}

.page-home .inv-control-bar__games .game-toggles {
  gap: 0.4rem;
}

.page-home .inv-control-bar__games .game-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.page-home .inv-control-bar__games .game-btn--all {
  min-width: 2.75rem;
  font-size: 0.68rem;
}

.page-home .inv-control-bar__games .game-btn[aria-pressed="true"] {
  background: linear-gradient(
    135deg,
    rgba(109, 93, 251, 0.35) 0%,
    rgba(59, 163, 255, 0.22) 100%
  );
  box-shadow: 0 0 20px rgba(109, 93, 251, 0.2);
}

.page-home .inv-control-bar .view-btn,
.page-home .inv-control-bar .sort-btn {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--landing-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.38rem 0.72rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.page-home .inv-control-bar .view-btn:hover,
.page-home .inv-control-bar .sort-btn:hover {
  color: var(--landing-text);
  background: rgba(255, 255, 255, 0.06);
}

.page-home .inv-control-bar .view-btn[aria-pressed="true"],
.page-home .inv-control-bar .sort-btn[aria-pressed="true"] {
  color: #eef2ff;
  background: linear-gradient(
    135deg,
    rgba(109, 93, 251, 0.4) 0%,
    rgba(59, 163, 255, 0.25) 100%
  );
  box-shadow: 0 0 16px rgba(109, 93, 251, 0.15);
}

.page-home .inv-control-bar__currency {
  margin-left: auto;
}

.page-home .inv-control-bar__currency .currency-label {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.page-home .inv-control-bar__currency .currency-caption {
  font-size: 0.72rem;
  margin: 0;
}

.page-home .inv-control-bar__currency select {
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.55);
}

/* Items panel */
.page-home .inv-items-panel {
  padding-top: 0.5rem;
}

.page-home .landing-results .inv-cards {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 1.35rem;
}

.page-home .landing-results .inv-card {
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(14, 20, 36, 0.9) 0%,
    rgba(9, 14, 26, 0.85) 100%
  );
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.page-home .landing-results .inv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 93, 251, 0.35);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(109, 93, 251, 0.12);
}

.page-home .landing-results .inv-card-image-wrap {
  aspect-ratio: 1;
  padding: 1.1rem 1rem 0.65rem;
  background: radial-gradient(
    ellipse 80% 70% at 50% 45%,
    rgba(109, 93, 251, 0.1) 0%,
    rgba(5, 8, 22, 0.2) 55%,
    transparent 100%
  );
  border-bottom: none;
}

.page-home .landing-results .inv-card-img {
  object-fit: contain;
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.22s ease;
}

.page-home .landing-results .inv-card:hover .inv-card-img {
  transform: scale(1.1);
}

.page-home .landing-results .inv-card-body {
  padding: 0.85rem 1rem 1.1rem;
  gap: 0.45rem;
}

.page-home .landing-results .inv-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.page-home .landing-results .inv-card-title a {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.92);
}

.page-home .landing-results .inv-card-title a:hover {
  color: #93c5fd;
}

.page-home .landing-results .inv-card-value {
  margin: 0.15rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #c7d8ff;
  font-variant-numeric: tabular-nums;
}

.page-home .landing-results .inv-card-qty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--landing-muted);
}

.page-home .landing-results .inv-card-qty-label {
  opacity: 0.85;
}

.page-home .landing-results .inv-card-qty-num {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.75);
  font-variant-numeric: tabular-nums;
}

/* Table view polish */
.page-home .landing-results .inv-table {
  font-size: 0.95rem;
}

.page-home .landing-results .inv-table thead {
  font-size: 0.7rem;
}

.page-home .landing-results .inv-table th,
.page-home .landing-results .inv-table td {
  border-bottom-color: rgba(148, 163, 184, 0.08);
  padding: 0.75rem 0.65rem;
}

.page-home .landing-results .table-scroll {
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.06);
}

.page-home .landing-results .empty-hint {
  margin-top: 1.5rem;
  font-size: 1rem;
  text-align: center;
  color: var(--landing-muted);
}

@media (max-width: 768px) {
  .page-home .inv-portfolio-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.35rem;
  }

  .page-home .inv-portfolio-summary__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .page-home .inv-control-bar__currency {
    margin-left: 0;
    width: 100%;
  }

  .page-home .inv-control-bar__currency .currency-label {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .page-home .landing-results .inv-cards {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .landing-results .inv-card:hover,
  .page-home .landing-results .inv-card:hover .inv-card-img {
    transform: none;
  }
}

.page-home .scan-loading-overlay {
  background: rgba(5, 8, 22, 0.78);
}

.page-home .scan-loading-overlay__panel {
  background: var(--landing-card);
  border-color: var(--landing-border);
}

.page-home .scan-loading-overlay__spinner {
  border-color: rgba(109, 93, 251, 0.25);
  border-top-color: var(--landing-accent);
}

/* —— Side ads (desktop gutters) —— */

.page-home .home-side-ad {
  display: none;
}

@media (min-width: 1680px) {
  .page-home .home-side-ad {
    --side-ad-gutter: max(0px, (100vw - 1280px) / 2);
    display: block;
    position: fixed;
    z-index: 40;
    top: 5.25rem;
    width: min(240px, calc(var(--side-ad-gutter) - 20px));
    max-height: calc(100vh - 6.5rem);
    pointer-events: none;
  }

  .page-home .home-side-ad--left {
    left: max(8px, calc(var(--side-ad-gutter) - 240px - 48px));
    right: auto;
  }

  .page-home .home-side-ad--right {
    left: auto;
    right: max(8px, calc(var(--side-ad-gutter) - 240px - 48px));
  }

  .page-home .home-side-ad__card {
    position: relative;
    pointer-events: auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: #0b1220;
  }

  .page-home .home-side-ad__marking {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 20px;
    padding: 4px;
    border-radius: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgb(87, 92, 102);
    background-color: rgba(255, 255, 255, 0.88);
    opacity: 0.9;
    max-width: calc(100% - 40px);
    overflow: hidden;
    pointer-events: none;
  }

  .page-home .home-side-ad__marking-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-home .home-side-ad__image-wrap {
    position: relative;
    display: block;
    line-height: 0;
  }

  .page-home .home-side-ad__link {
    display: block;
  }

  .page-home .home-side-ad__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    background: transparent;
  }

  .page-home .home-side-ad--broken {
    display: none;
  }

  .page-home .home-side-ad__info-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(209, 209, 209, 0.9);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .home-side-ad__info-btn:hover {
    background-color: #969696;
  }

  .page-home .home-side-ad__info-panel {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 8px 28px 8px 8px;
    background-color: #fff;
    overflow: auto;
  }

  .page-home .home-side-ad__info-panel.hidden {
    display: none;
  }

  .page-home .home-side-ad__info-text {
    margin: 0;
    font-family: "YS Text Variable", "YS Text", Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    color: #a3acbf;
    word-break: break-word;
  }

  .page-home .home-side-ad__info-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .home-side-ad__info-close:hover {
    background-color: #969696;
  }
}
