/**
 * La Selection — ranghi venditori: animazioni ed estetica (recovery).
 * Complementare a assets/app.css: usa le variabili già settate dal bundle React
 * (--seller-orbit-*, --story-ring-* sulle thumb storie quando presenti).
 */

:root {
  --ls-font-vendor-name: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Nomi venditori: display serif caricato da index.html */
.ls-vendor-name {
  font-family: var(--ls-font-vendor-name);
  font-optical-sizing: auto;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes ls-rank-ring-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ls-rank-shimmer {
  from {
    transform: translateX(-45%) skewX(-8deg);
    opacity: 0.25;
  }
  to {
    transform: translateX(145%) skewX(-8deg);
    opacity: 0.45;
  }
}

@keyframes ls-rank-hero-breathe {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.12) brightness(1.04);
  }
}

@keyframes ls-rank-badge-glint {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes ls-rank-badge-breathe {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.07) saturate(1.05);
  }
}

@keyframes lsSpinTop {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes _spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes lsFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Avatar liste / tile (seller-avatar-orbit) ─────────────────────────── */
.seller-avatar-orbit {
  --seller-orbit-mid: #94a3b8;
  --seller-orbit-bright: #cbd5e1;
  --seller-orbit-speed: 5s;
  position: relative;
  isolation: isolate;
  border-radius: 50%;
}

.seller-avatar-orbit__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 218deg at 50% 50%,
    var(--seller-orbit-mid),
    var(--seller-orbit-bright),
    var(--seller-orbit-mid),
    var(--seller-orbit-bright),
    var(--seller-orbit-mid)
  );
  opacity: 0.9;
  filter: blur(0.35px);
  animation: ls-rank-ring-rotate var(--seller-orbit-speed, 4.4s) linear infinite;
  box-shadow:
    0 0 7px color-mix(in srgb, var(--seller-orbit-bright) 26%, transparent),
    inset 0 0 3px color-mix(in srgb, var(--seller-orbit-mid) 18%, transparent);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3.5px),
    #000 calc(100% - 2px),
    #000 100%
  );
  mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3.5px),
    #000 calc(100% - 2px),
    #000 100%
  );
}

/* ── Stories bar: anello classifica (story-ring--) ─────────────────────── */
.stories-bar .story-thumb .story-ring {
  position: relative;
  isolation: isolate;
  /* Più fine del default 2.5px in app.css */
  padding: 1.5px;
}

/* Anello dinamico classifica quando non ancora vista */
.stories-bar .story-thumb .story-ring[class*="story-ring--"]:not(.viewed)::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
  background: conic-gradient(
    from 210deg at 50% 50%,
    var(--story-ring-mid, #f5b833),
    var(--story-ring-bright, #fbbf24),
    var(--story-ring-mid, #f59e0b),
    var(--story-ring-bright, #fcd34d),
    var(--story-ring-mid, #f5b833)
  );
  opacity: 0.95;
  filter: blur(0.35px);
  animation: ls-rank-ring-rotate var(--story-ring-speed, 4s) linear infinite;
  box-shadow:
    0 0 7px color-mix(in srgb, var(--story-ring-bright, #fcd34d) 24%, transparent),
    inset 0 0 3px color-mix(in srgb, var(--story-ring-mid, #f59e0b) 14%, transparent);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3.8px),
    #000 calc(100% - 2.2px),
    #000 100%
  );
  mask: radial-gradient(
    farthest-side,
    transparent 0 calc(100% - 3.8px),
    #000 calc(100% - 2.2px),
    #000 100%
  );
}

.stories-bar .story-thumb .story-ring-inner {
  position: relative;
  z-index: 1;
}

/* Vista: tratteniamo tinta rango (no spin) */
.stories-bar .story-thumb .story-ring.story-ring--mvp.viewed,
.stories-bar .story-thumb .story-ring.story-ring--leggenda.viewed,
.stories-bar .story-thumb .story-ring.story-ring--gold.viewed,
.stories-bar .story-thumb .story-ring.story-ring--premium.viewed,
.stories-bar .story-thumb .story-ring.story-ring--principiante.viewed {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--story-ring-mid, #555) 55%, #1a1a1a),
    color-mix(in srgb, var(--story-ring-bright, #777) 35%, #2a2a2a)
  );
  box-shadow: 0 0 10px color-mix(in srgb, var(--story-ring-bright, #888) 22%, transparent);
}

/* ── Home hero rango (ls-rank-hero) ───────────────────────────────────── */
.ls-rank-hero {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ls-rank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 42%,
    transparent 64%
  );
  mix-blend-mode: soft-light;
  animation: ls-rank-shimmer 9s ease-in-out infinite alternate;
  opacity: 0.35;
}

.ls-rank-hero--mvp {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.22),
    0 20px 50px rgba(56, 189, 248, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

.ls-rank-hero--leggenda {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.28),
    0 20px 52px rgba(244, 114, 182, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

.ls-rank-hero--gold {
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 20px 48px rgba(245, 158, 11, 0.14),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

.ls-rank-hero--premium {
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.28),
    0 20px 48px rgba(34, 197, 94, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

.ls-rank-hero--principiante {
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.38);
}

/* ── Badge testo rango (seller-rank-badge--) ───────────────────────────── */
.seller-rank-badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.seller-rank-badge--mvp {
  background: linear-gradient(
    130deg,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(15, 23, 42, 0.92) 48%,
    rgba(167, 139, 250, 0.2) 100%
  );
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #e0f2fe;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

.seller-rank-badge--leggenda {
  background: linear-gradient(
    130deg,
    rgba(168, 85, 247, 0.24) 0%,
    rgba(30, 10, 40, 0.92) 50%,
    rgba(244, 114, 182, 0.18) 100%
  );
  border: 1px solid rgba(244, 114, 182, 0.42);
  color: #fae8ff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.22);
}

.seller-rank-badge--gold {
  background: linear-gradient(
    130deg,
    rgba(251, 191, 36, 0.28) 0%,
    rgba(40, 22, 4, 0.92) 48%,
    rgba(252, 211, 77, 0.22) 100%
  );
  border: 1px solid rgba(252, 211, 77, 0.5);
  color: #fff7d6;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.seller-rank-badge--premium {
  background: linear-gradient(
    130deg,
    rgba(74, 222, 128, 0.22) 0%,
    rgba(6, 24, 14, 0.92) 50%,
    rgba(34, 197, 94, 0.2) 100%
  );
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #ecfdf5;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.seller-rank-badge--principiante {
  background: linear-gradient(
    130deg,
    rgba(148, 163, 184, 0.2) 0%,
    rgba(15, 18, 26, 0.92) 100%
  );
  border: 1px solid rgba(203, 213, 225, 0.35);
  color: #e2e8f0;
}

/* Gloss mobile su tutti i ranghi (+ respiro luce quando motion consentita) */
.seller-rank-badge--mvp::after,
.seller-rank-badge--leggenda::after,
.seller-rank-badge--gold::after,
.seller-rank-badge--premium::after,
.seller-rank-badge--principiante::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.26) 44%,
    transparent 72%
  );
  background-size: 200% 100%;
  opacity: 0.42;
  mix-blend-mode: overlay;
}

.seller-rank-badge--premium::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(187, 247, 208, 0.35) 42%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 74%
  );
}

.seller-rank-badge--principiante::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(226, 232, 240, 0.2) 45%,
    transparent 72%
  );
  opacity: 0.28;
}

@media (prefers-reduced-motion: no-preference) {
  .seller-rank-badge--mvp::after,
  .seller-rank-badge--leggenda::after,
  .seller-rank-badge--gold::after,
  .seller-rank-badge--premium::after,
  .seller-rank-badge--principiante::after {
    animation: ls-rank-badge-glint 3.2s ease-in-out infinite;
  }

  .seller-rank-badge--premium::after {
    animation-duration: 3.6s;
  }

  .seller-rank-badge--principiante::after {
    animation-duration: 5.8s;
  }

  .seller-rank-badge--mvp,
  .seller-rank-badge--leggenda,
  .seller-rank-badge--gold,
  .seller-rank-badge--premium,
  .seller-rank-badge--principiante {
    animation: ls-rank-badge-breathe 2.85s ease-in-out infinite;
  }

  .seller-rank-badge--leggenda {
    animation-duration: 2.95s;
  }

  .seller-rank-badge--gold {
    animation-duration: 3.05s;
  }

  .seller-rank-badge--premium {
    animation-duration: 3.35s;
  }

  .seller-rank-badge--principiante {
    animation-duration: 4s;
  }
}

/* ── Modale “Classifica clic” (Home → podio primi 3) ───────────────────── */
@keyframes ls-click-podium-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 10px 26px rgba(0, 0, 0, 0.38);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 14px 34px rgba(0, 0, 0, 0.42);
  }
}

@keyframes ls-click-podium-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.ls-click-rank-sheet {
  isolation: isolate;
}

.ls-click-rank-podium {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.ls-click-rank-podium > * {
  position: relative;
  z-index: 1;
}

.ls-click-rank-podium::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.ls-click-rank-podium--1::before {
  background: linear-gradient(
    118deg,
    rgba(251, 191, 36, 0) 0%,
    rgba(251, 191, 36, 0.45) 42%,
    rgba(252, 211, 77, 0.55) 52%,
    rgba(251, 191, 36, 0) 100%
  );
  background-size: 220% 100%;
  animation: ls-click-podium-shine 3.4s ease-in-out infinite;
}

.ls-click-rank-podium--2::before {
  background: linear-gradient(
    118deg,
    rgba(203, 213, 225, 0) 0%,
    rgba(226, 232, 240, 0.42) 45%,
    rgba(148, 163, 184, 0.48) 56%,
    rgba(203, 213, 225, 0) 100%
  );
  background-size: 240% 100%;
  animation: ls-click-podium-shine 4.1s ease-in-out infinite;
  animation-delay: 0.35s;
}

.ls-click-rank-podium--3::before {
  background: linear-gradient(
    118deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(251, 146, 60, 0.42) 44%,
    rgba(234, 88, 12, 0.42) 54%,
    rgba(245, 158, 11, 0) 100%
  );
  background-size: 260% 100%;
  animation: ls-click-podium-shine 4.6s ease-in-out infinite;
  animation-delay: 0.65s;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-click-rank-podium--1 {
    border-color: rgba(251, 191, 36, 0.45) !important;
    animation: ls-click-podium-glow 2.9s ease-in-out infinite;
    animation-delay: 0s;
  }

  .ls-click-rank-podium--2 {
    border-color: rgba(203, 213, 225, 0.42) !important;
    animation: ls-click-podium-glow 3.2s ease-in-out infinite;
    animation-delay: 0.22s;
  }

  .ls-click-rank-podium--3 {
    border-color: rgba(245, 158, 11, 0.45) !important;
    animation: ls-click-podium-glow 3.5s ease-in-out infinite;
    animation-delay: 0.44s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ls-rank-hero {
    animation: ls-rank-hero-breathe 10s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seller-avatar-orbit__ring,
  .stories-bar .story-thumb .story-ring[class*="story-ring--"]:not(.viewed)::before,
  .ls-rank-hero,
  .ls-rank-hero::after,
  .seller-rank-badge--mvp::after,
  .seller-rank-badge--leggenda::after,
  .seller-rank-badge--gold::after,
  .seller-rank-badge--premium::after,
  .seller-rank-badge--principiante::after {
    animation: none !important;
  }

  .seller-rank-badge--mvp,
  .seller-rank-badge--leggenda,
  .seller-rank-badge--gold,
  .seller-rank-badge--premium,
  .seller-rank-badge--principiante {
    filter: none !important;
  }

  .ls-click-rank-podium::before,
  .ls-click-rank-podium--1,
  .ls-click-rank-podium--2,
  .ls-click-rank-podium--3 {
    animation: none !important;
  }

  .seller-avatar-orbit__ring {
    opacity: 0.76;
    filter: blur(0.5px);
  }
}

/* ── Seller detail: info cards (legit / profilo venditore) ── */
@keyframes ls-seller-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ls-seller-detail-sheet .ls-seller-info-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(
    165deg,
    rgba(28, 28, 32, 0.92),
    rgba(18, 18, 20, 0.88)
  ) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-seller-detail-sheet .ls-seller-info-card {
    animation: ls-seller-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .ls-seller-info-cards > .ls-seller-info-card:nth-child(1) {
    animation-delay: 0.04s;
  }
  .ls-seller-info-cards > .ls-seller-info-card:nth-child(2) {
    animation-delay: 0.12s;
  }
  .ls-seller-info-cards > .ls-seller-info-card:nth-child(3) {
    animation-delay: 0.2s;
  }

  .ls-seller-reviews-wrap .ls-seller-review-card {
    animation-delay: 0.24s;
  }
  .ls-seller-reviews-wrap .ls-seller-review-list {
    animation-delay: 0.3s;
  }
  .ls-seller-reviews-wrap .ls-seller-review-empty {
    animation-delay: 0.26s;
  }
}

.ls-seller-detail-sheet .ls-seller-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 80% at 0% 0%,
    rgba(34, 197, 94, 0.09),
    transparent 55%
  );
  opacity: 0.9;
}

.ls-seller-detail-sheet .ls-seller-info-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(34, 197, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-seller-detail-sheet .ls-seller-info-card:hover {
    transform: translateY(-2px);
  }
}

.ls-seller-contact-card .ls-seller-contact-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ls-seller-contact-card .ls-seller-contact-link:active {
  background: rgba(255, 255, 255, 0.05);
}

.ls-seller-contact-card .ls-seller-link-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ls-seller-contact-card .ls-seller-link-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.ls-seller-contact-card .ls-seller-link-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Contatti: divider tra le righe + colori brand (Telegram / Signal / Instagram) */
.ls-seller-contact-card .shop-sheet-link-btn.ls-seller-contact-link {
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ls-seller-contact-card
  .shop-sheet-link-btn.ls-seller-contact-link
  + .shop-sheet-link-btn.ls-seller-contact-link {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-top: 8px;
  padding-top: 16px;
}

.ls-seller-contact-card .shop-sheet-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

.ls-seller-contact-card .shop-sheet-link-btn--telegram .shop-sheet-link-icon {
  background: linear-gradient(165deg, #4db8f0, #1590d4);
  color: #fff;
}

.ls-seller-contact-card .shop-sheet-link-btn--telegram .ls-seller-link-title {
  color: #93d8ff;
}

.ls-seller-contact-card .shop-sheet-link-btn--telegram:hover {
  background: rgba(42, 171, 238, 0.09);
}

.ls-seller-contact-card .shop-sheet-link-btn--telegram:active {
  background: rgba(42, 171, 238, 0.14);
}

.ls-seller-contact-card .shop-sheet-link-btn--signal .shop-sheet-link-icon {
  background: linear-gradient(165deg, #5c8ef5, #2f55c8);
  color: #fff;
}

.ls-seller-contact-card .shop-sheet-link-btn--signal .ls-seller-link-title {
  color: #a9c7ff;
}

.ls-seller-contact-card .shop-sheet-link-btn--signal:hover {
  background: rgba(58, 118, 240, 0.1);
}

.ls-seller-contact-card .shop-sheet-link-btn--signal:active {
  background: rgba(58, 118, 240, 0.16);
}

.ls-seller-contact-card .shop-sheet-link-btn--instagram .shop-sheet-link-icon {
  background: linear-gradient(
    125deg,
    #fccc63 0%,
    #fb923c 18%,
    #e956a8 52%,
    #b54cff 82%,
    #6f36d6 100%
  );
  color: #fff;
}

.ls-seller-contact-card .shop-sheet-link-btn--instagram .ls-seller-link-title {
  color: #fca5d4;
}

.ls-seller-contact-card .shop-sheet-link-btn--instagram:hover {
  background: rgba(233, 86, 168, 0.08);
}

.ls-seller-contact-card .shop-sheet-link-btn--instagram:active {
  background: rgba(233, 86, 168, 0.13);
}

.ls-seller-reviews-wrap {
  margin-top: 4px;
}

.ls-seller-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ls-seller-review-cta {
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-seller-review-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

.ls-seller-review-empty {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pagina Top (Top Vendor of the Week): animazioni
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes ls-top-ambient-breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1) translateZ(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translate3d(1.5%, -0.8%, 0);
  }
}

@keyframes ls-top-sparkle-pan {
  0% {
    transform: translate3d(-5%, -3%, 0) rotate(0deg);
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(5%, 4%, 0) rotate(12deg);
    opacity: 0.55;
  }
}

@keyframes ls-top-hero-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes ls-top-hero-glow-ring {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 215, 90, 0.25),
      0 10px 40px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(251, 191, 36, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 235, 150, 0.38),
      0 14px 48px rgba(0, 0, 0, 0.46),
      0 0 36px rgba(251, 191, 36, 0.24);
  }
}

@keyframes ls-top-hero-border-sheen {
  0% {
    opacity: 0.15;
    background-position: 0% 50%;
  }
  100% {
    opacity: 0.42;
    background-position: 200% 50%;
  }
}

@keyframes ls-top-avatar-inner-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 248, 200, 0.12),
      0 0 18px rgba(251, 191, 36, 0.18);
  }
}

@keyframes ls-top-avatar-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes ls-top-name-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.2em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes ls-top-badge-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 224, 120, 0.55));
  }
}

@keyframes ls-top-emoji-twist {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes ls-top-stat-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ls-top-stat-value-pop {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
}

@keyframes ls-top-cta-scan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes ls-top-cta-heartbeat {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(120, 255, 160, 0.4),
      0 8px 24px rgba(34, 197, 94, 0.12);
    transform: translateZ(0);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(167, 255, 190, 0.65),
      0 10px 32px rgba(34, 197, 94, 0.22);
    transform: translateY(-1px);
  }
}

@keyframes ls-top-error-soft {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.ls-top-page {
  position: relative;
  isolation: isolate;
}

.ls-top-page__ambient {
  transform-origin: 50% 30%;
}

.ls-top-page__sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ls-top-page__sparkles::before,
.ls-top-page__sparkles::after {
  content: "";
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255, 246, 200, 0.14) 0, transparent 38%),
    radial-gradient(circle at 76% 32%, rgba(120, 255, 170, 0.1) 0, transparent 35%),
    radial-gradient(circle at 58% 78%, rgba(251, 191, 36, 0.12) 0, transparent 32%),
    radial-gradient(circle at 12% 62%, rgba(255, 200, 100, 0.08) 0, transparent 28%);
  opacity: 0.65;
}

.ls-top-page__sparkles::after {
  inset: -20%;
  background-image: radial-gradient(
    circle at 48% 40%,
    rgba(255, 255, 255, 0.07) 0,
    transparent 22%
  );
  mix-blend-mode: overlay;
}

.ls-top-page__hero {
  position: relative;
}

.ls-top-page__hero > * {
  position: relative;
  z-index: 1;
}

.ls-top-page__hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    118deg,
    transparent 12%,
    rgba(255, 240, 180, 0.12) 44%,
    rgba(251, 191, 36, 0.18) 52%,
    transparent 76%
  );
  background-size: 220% 100%;
}

.ls-top-page__avatar-ring {
  position: relative;
}

.ls-top-page__avatar-inner {
  transform: translateZ(0);
}

.ls-top-page__avatar-img {
  transform-origin: center center;
}

.ls-top-page__cta-link {
  position: relative;
  overflow: hidden;
}

.ls-top-page__cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 22%,
    rgba(167, 255, 205, 0.18) 48%,
    transparent 74%
  );
  background-size: 220% 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ls-top-page__cta-link:hover::before {
  opacity: 1;
}

.ls-top-page.ls-top-page--error .ls-top-page__error-card {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 16px;
}

.ls-top-page__features {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ls-top-page__features-title {
  letter-spacing: -0.02em;
}

.ls-top-page__name-row .seller-rank-badge {
  flex-shrink: 0;
  align-self: center;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-top-page > .ls-top-page__ambient {
    animation: ls-top-ambient-breathe 9s ease-in-out infinite alternate;
  }

  .ls-top-page > .ls-top-page__sparkles::before {
    animation: ls-top-sparkle-pan 14s ease-in-out infinite alternate;
  }

  .ls-top-page > .ls-top-page__sparkles::after {
    animation: ls-top-sparkle-pan 11s ease-in-out infinite alternate-reverse;
  }

  .ls-top-page:not(.ls-top-page--loading):not(.ls-top-page--error) .ls-top-page__hero {
    animation:
      ls-top-hero-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both,
      ls-top-hero-glow-ring 3s ease-in-out infinite 0.75s;
  }

  .ls-top-page:not(.ls-top-page--loading):not(.ls-top-page--error) .ls-top-page__hero::before {
    animation: ls-top-hero-border-sheen 4.5s ease-in-out infinite;
  }

  .ls-top-page__avatar-inner {
    animation: ls-top-avatar-inner-pulse 2.8s ease-in-out infinite;
  }

  .ls-top-page__avatar-img {
    animation: ls-top-avatar-zoom 6s ease-in-out infinite;
  }

  .ls-top-page__name {
    animation: ls-top-name-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  .ls-top-page__badge {
    animation: ls-top-badge-glow 2.6s ease-in-out infinite;
  }

  .ls-top-page__badge-emoji {
    display: inline-block;
    animation: ls-top-emoji-twist 1.85s ease-in-out infinite;
    transform-origin: 60% 70%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  }

  .ls-top-page__stat--1 {
    animation: ls-top-stat-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }

  .ls-top-page__stat--2 {
    animation: ls-top-stat-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
  }

  .ls-top-page__stat--3 {
    animation: ls-top-stat-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
  }

  .ls-top-page__stat-value {
    animation: ls-top-stat-value-pop 2.4s ease-in-out infinite 1s;
  }

  .ls-top-page__stat--2 .ls-top-page__stat-value {
    animation-delay: 1.2s;
  }

  .ls-top-page__stat--3 .ls-top-page__stat-value {
    animation-delay: 1.4s;
  }

  .ls-top-page__cta-link::before {
    animation: ls-top-cta-scan 2.8s linear infinite;
  }

  .ls-top-page__cta-link {
    animation: ls-top-cta-heartbeat 2.2s ease-in-out infinite;
  }

  .ls-top-page.ls-top-page--error .ls-top-page__error-card {
    animation: ls-top-error-soft 0.55s ease-out 0.15s both;
  }
}

@keyframes ls-nav-crown-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}

@keyframes ls-nav-crown-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0))
      drop-shadow(0 0 4px rgba(212, 160, 32, 0.45))
      drop-shadow(0 0 10px rgba(245, 158, 11, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 2px rgba(254, 252, 232, 0.55))
      drop-shadow(0 0 8px rgba(251, 191, 36, 0.72))
      drop-shadow(0 1px 14px rgba(180, 83, 9, 0.38));
  }
}

@keyframes ls-nav-banknote-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0))
      drop-shadow(0 0 3px rgba(52, 211, 153, 0.42))
      drop-shadow(0 0 8px rgba(22, 163, 74, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 2px rgba(187, 247, 208, 0.45))
      drop-shadow(0 0 10px rgba(74, 222, 128, 0.68))
      drop-shadow(0 1px 14px rgba(21, 128, 61, 0.32));
  }
}

@keyframes ls-nav-legit-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0))
      drop-shadow(0 0 3px rgba(96, 165, 250, 0.45))
      drop-shadow(0 0 8px rgba(59, 130, 246, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 2px rgba(191, 219, 254, 0.52))
      drop-shadow(0 0 10px rgba(59, 130, 246, 0.7))
      drop-shadow(0 1px 14px rgba(29, 78, 216, 0.35));
  }
}

/* Tab bar — voce Top: corona dorata animata */
.ls-nav-motion .nav-item .ls-nav-top-crown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 19px;
  flex-shrink: 0;
  line-height: 0;
}

.ls-nav-motion .nav-item .ls-nav-top-crown {
  display: block;
  color: #e2a317;
}

.ls-nav-motion .nav-item.active .ls-nav-top-crown {
  color: #ffe566;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-nav-motion .nav-item .ls-nav-top-crown-wrap {
    animation: ls-nav-crown-float 2.85s ease-in-out infinite;
    transform-origin: 50% 82%;
  }

  .ls-nav-motion .nav-item.active .ls-nav-top-crown-wrap {
    animation-duration: 2.35s;
  }

  .ls-nav-motion .nav-item .ls-nav-top-crown {
    animation: ls-nav-crown-glow 1.95s ease-in-out infinite;
  }

  .ls-nav-motion .nav-item.active .ls-nav-top-crown {
    animation-duration: 1.5s;
  }
}

/* Tab bar — voce Legit: scudo blu (float + glow come Top / Sponsor) */
.ls-nav-motion .nav-item .ls-nav-legit-shield-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 19px;
  flex-shrink: 0;
  line-height: 0;
}

.ls-nav-motion .nav-item .ls-nav-legit-shield {
  display: block;
  color: #2563eb;
}

.ls-nav-motion .nav-item.active .ls-nav-legit-shield {
  color: #60a5fa;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-nav-motion .nav-item .ls-nav-legit-shield-wrap {
    animation: ls-nav-crown-float 2.85s ease-in-out infinite;
    transform-origin: 50% 82%;
  }

  .ls-nav-motion .nav-item.active .ls-nav-legit-shield-wrap {
    animation-duration: 2.35s;
  }

  .ls-nav-motion .nav-item .ls-nav-legit-shield {
    animation: ls-nav-legit-glow 1.95s ease-in-out infinite;
  }

  .ls-nav-motion .nav-item.active .ls-nav-legit-shield {
    animation-duration: 1.5s;
  }
}

/* Tab bar — voce Sponsor: banconota verde (float + glow come Top) */
.ls-nav-motion .nav-item .ls-nav-sponsor-banknote-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 19px;
  flex-shrink: 0;
  line-height: 0;
}

.ls-nav-motion .nav-item .ls-nav-sponsor-banknote {
  display: block;
  color: #16a34a;
}

.ls-nav-motion .nav-item.active .ls-nav-sponsor-banknote {
  color: #4ade80;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-nav-motion .nav-item .ls-nav-sponsor-banknote-wrap {
    animation: ls-nav-crown-float 2.85s ease-in-out infinite;
    transform-origin: 50% 82%;
  }

  .ls-nav-motion .nav-item.active .ls-nav-sponsor-banknote-wrap {
    animation-duration: 2.35s;
  }

  .ls-nav-motion .nav-item .ls-nav-sponsor-banknote {
    animation: ls-nav-banknote-glow 1.95s ease-in-out infinite;
  }

  .ls-nav-motion .nav-item.active .ls-nav-sponsor-banknote {
    animation-duration: 1.5s;
  }
}

/* ── Pagina Sponsor: titolo + schede prezzi (palette = ranghi) ─────────── */
.ls-sponsor-page__header {
  text-align: center;
  margin-bottom: 22px;
}

.ls-sponsor-page__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.28;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
}

.ls-sponsor-page__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ls-sponsor-page__title-banknote {
  display: flex;
  line-height: 0;
}

.ls-sponsor-page__title-banknote--mirror .ls-sponsor-page__banknote-svg {
  transform: scaleX(-1);
}

.ls-sponsor-page__banknote-svg {
  display: block;
  color: #22c55e;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-sponsor-page__title-banknote {
    animation: ls-nav-crown-float 3.05s ease-in-out infinite;
    transform-origin: 50% 82%;
  }

  .ls-sponsor-page__title-banknote--mirror {
    animation-delay: 0.18s;
  }

  .ls-sponsor-page__banknote-svg {
    animation: ls-nav-banknote-glow 2.1s ease-in-out infinite;
  }
}

.ls-sponsor-tier {
  position: relative;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.ls-sponsor-tier__inner {
  position: relative;
  z-index: 1;
  padding: 16px 14px 15px;
}

.ls-sponsor-tier__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.ls-sponsor-tier__rank-badge {
  font-size: 10px !important;
  padding: 4px 10px !important;
  letter-spacing: 0.06em;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ls-sponsor-tier__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.ls-sponsor-tier__price {
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  line-height: 1.3;
}

.ls-sponsor-tier__features {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 238, 248, 0.92);
}

.ls-sponsor-tier__feature {
  margin-bottom: 4px;
}

.ls-sponsor-tier__feature:last-child {
  margin-bottom: 0;
}

.ls-sponsor-tier::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 44%,
    transparent 72%
  );
  background-size: 200% 100%;
  opacity: 0.38;
  mix-blend-mode: overlay;
}

.ls-sponsor-tier--principiante {
  border: 1px solid rgba(203, 213, 225, 0.35);
  background: linear-gradient(
    145deg,
    rgba(148, 163, 184, 0.16) 0%,
    rgba(15, 18, 26, 0.94) 52%,
    rgba(10, 12, 18, 0.98) 100%
  );
}

.ls-sponsor-tier--principiante .ls-sponsor-tier__price {
  background: linear-gradient(
    135deg,
    rgba(226, 232, 240, 0.16) 0%,
    rgba(15, 18, 26, 0.55) 100%
  );
  border-color: rgba(203, 213, 225, 0.35);
  color: #f1f5f9;
}

.ls-sponsor-tier--gold {
  border: 1px solid rgba(252, 211, 77, 0.48);
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.2) 0%,
    rgba(40, 22, 4, 0.9) 48%,
    rgba(12, 10, 8, 0.98) 100%
  );
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(245, 158, 11, 0.12);
}

.ls-sponsor-tier--gold .ls-sponsor-tier__price {
  background: linear-gradient(
    135deg,
    rgba(252, 211, 77, 0.22) 0%,
    rgba(60, 32, 6, 0.65) 100%
  );
  border-color: rgba(252, 211, 77, 0.45);
  color: #fff7d6;
}

.ls-sponsor-tier--premium {
  border: 1px solid rgba(74, 222, 128, 0.42);
  background: linear-gradient(
    145deg,
    rgba(74, 222, 128, 0.18) 0%,
    rgba(6, 24, 14, 0.9) 50%,
    rgba(8, 12, 10, 0.98) 100%
  );
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 16px rgba(34, 197, 94, 0.1);
}

.ls-sponsor-tier--premium .ls-sponsor-tier__price {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.24) 0%,
    rgba(6, 40, 22, 0.62) 100%
  );
  border-color: rgba(74, 222, 128, 0.45);
  color: #ecfdf5;
}

.ls-sponsor-tier--leggenda {
  border: 1px solid rgba(244, 114, 182, 0.42);
  background: linear-gradient(
    145deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(30, 10, 40, 0.9) 50%,
    rgba(10, 8, 14, 0.98) 100%
  );
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(168, 85, 247, 0.14);
}

.ls-sponsor-tier--leggenda .ls-sponsor-tier__price {
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.18) 0%,
    rgba(50, 12, 44, 0.62) 100%
  );
  border-color: rgba(244, 114, 182, 0.4);
  color: #fae8ff;
}

.ls-sponsor-tier--leggenda::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(244, 114, 182, 0.2) 42%,
    rgba(167, 139, 250, 0.16) 54%,
    transparent 74%
  );
}

.ls-sponsor-tier--gold::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(252, 211, 77, 0.28) 42%,
    rgba(251, 191, 36, 0.18) 52%,
    transparent 74%
  );
}

.ls-sponsor-tier--premium::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(187, 247, 208, 0.28) 42%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 74%
  );
}

.ls-sponsor-tier--principiante::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(226, 232, 240, 0.22) 45%,
    transparent 72%
  );
  opacity: 0.26;
}

@media (prefers-reduced-motion: no-preference) {
  .ls-sponsor-tier::after {
    animation: ls-rank-badge-glint 4s ease-in-out infinite;
  }

  .ls-sponsor-tier--leggenda::after {
    animation-duration: 3.1s;
  }

  .ls-sponsor-tier--gold::after {
    animation-duration: 3.25s;
  }

  .ls-sponsor-tier--premium::after {
    animation-duration: 3.5s;
  }

  .ls-sponsor-tier--principiante::after {
    animation-duration: 5.2s;
  }

  .ls-sponsor-tier {
    animation: ls-rank-badge-breathe 3.45s ease-in-out infinite;
  }

  .ls-sponsor-page > .ls-sponsor-tier:nth-child(3) {
    animation-duration: 3.55s;
  }

  .ls-sponsor-page > .ls-sponsor-tier:nth-child(4) {
    animation-duration: 3.62s;
  }

  .ls-sponsor-page > .ls-sponsor-tier:nth-child(5) {
    animation-duration: 2.92s;
  }

  .ls-sponsor-tier__price {
    animation: ls-rank-badge-breathe 4.4s ease-in-out infinite;
  }

  .ls-sponsor-tier--premium .ls-sponsor-tier__price {
    animation-duration: 4.8s;
  }

  .ls-sponsor-tier--gold .ls-sponsor-tier__price {
    animation-duration: 4.2s;
  }

  .ls-sponsor-tier--leggenda .ls-sponsor-tier__price {
    animation-duration: 4s;
  }
}

/* ── Community feed (sheet a tutto schermo, portal) ─────────────────────── */
.card.ls-community-feed-sheet {
  border: none !important;
  box-shadow: none !important;
  background: linear-gradient(
    178deg,
    rgba(14, 18, 26, 0.98) 0%,
    rgba(6, 8, 12, 1) 45%,
    #030508 100%
  ) !important;
  display: flex;
  flex-direction: column;
}

.ls-community-feed-handle {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin: 4px auto 18px;
  flex-shrink: 0;
}

.ls-community-feed-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.ls-community-feed-head-text .ls-ranking-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ls-community-feed-head-text h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.ls-community-feed-head-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.ls-community-feed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  margin: 0;
  min-width: 0;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.ls-community-feed-btn:active {
  transform: scale(0.98);
}

.ls-community-feed-btn--channel {
  color: #04210f;
  background: linear-gradient(160deg, #bbf7d0 0%, #22c55e 42%, #15803d 100%);
  box-shadow:
    0 2px 14px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ls-community-feed-btn--channel:hover {
  filter: brightness(1.04);
}

.ls-community-feed-btn--close {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ls-community-feed-btn--close:hover {
  background: rgba(255, 255, 255, 0.11);
}

.ls-community-feed-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.ls-community-feed-list > .ls-community-post {
  display: block;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ls-community-post__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(247, 250, 252, 0.95);
}

.ls-community-post__meta {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 650;
  color: rgba(148, 163, 184, 0.92);
}

.ls-community-feed-sheet .ls-brand-empty.ls-brand-empty--muted {
  margin-top: 8px;
  padding: 28px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(125, 211, 252, 0.12);
  text-align: center;
}

.ls-community-feed-sheet .ls-brand-empty--muted .ls-brand-empty-title {
  color: var(--text);
}

.ls-community-feed-sheet .ls-brand-empty--muted .ls-brand-empty-text {
  color: var(--text-muted);
}

@media (min-width: 400px) {
  .ls-community-feed-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .ls-community-feed-head-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .ls-community-feed-head-actions {
    width: auto;
    min-width: 260px;
    flex-shrink: 0;
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Home: griglia (.grid-card), Top vendor e classifica ─────────────── */
@keyframes ls-home-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes ls-home-card-sheen {
  0%,
  100% {
    transform: translateX(-55%) skewX(-10deg);
    opacity: 0;
  }
  12% {
    opacity: 0.18;
  }
  45% {
    transform: translateX(85%) skewX(-10deg);
    opacity: 0.1;
  }
}

@keyframes ls-home-live-border-glow {
  0%,
  100% {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow:
      0 14px 38px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(52, 211, 153, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    border-color: rgba(52, 211, 153, 0.38);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.46),
      0 0 18px rgba(34, 197, 94, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

.page-content.ls-home-page .home-grid.ls-home-tiles {
  gap: 14px;
  padding: 2px 2px 8px;
}

.page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 124px;
  padding: 20px 18px;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.08) 0%,
    color-mix(in srgb, var(--card) 90%, rgb(12, 16, 22)) 52%,
    rgba(10, 12, 18, 0.98) 100%
  );
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.32s ease,
    filter 0.32s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card::before {
  content: "";
  position: absolute;
  inset: -50% -35%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 62%
  );
  opacity: 0;
}

.page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card > * {
  position: relative;
  z-index: 1;
}

.page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:active {
  opacity: 1;
  transform: scale(0.987);
}

.page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card > svg:first-child {
  filter: drop-shadow(0 2px 14px rgba(34, 197, 94, 0.2));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-content.ls-home-page .ls-community-live-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(
    152deg,
    rgba(48, 68, 98, 0.42) 0%,
    rgba(18, 22, 32, 0.96) 46%,
    rgba(8, 10, 16, 0.99) 100%
  );
  border-color: rgba(148, 163, 184, 0.18);
}

.page-content.ls-home-page .ls-community-live-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.page-content.ls-home-page .ls-community-live-head-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.page-content.ls-home-page .ls-live-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid #93c5fd;
  background: radial-gradient(circle at 50% 50%, #075985 0%, #075985 45%, transparent 46%);
}

.page-content.ls-home-page .ls-community-live-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.14;
  color: rgba(252, 252, 253, 0.98);
  letter-spacing: -0.02em;
}

.page-content.ls-home-page .ls-community-live-live-badge {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1;
  padding: 6px 0;
  margin-top: 1px;
  color: #4ade80;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-shadow:
    0 0 10px rgba(74, 222, 128, 0.45),
    0 0 2px rgba(22, 101, 52, 0.6);
}

.page-content.ls-home-page .ls-community-live-desc {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.36;
  color: rgba(226, 232, 240, 0.75);
  flex: 1 1 auto;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-content.ls-home-page .ls-community-live-cta {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(152deg, #bef264 0%, #22c55e 42%, #166534 100%);
  box-shadow:
    0 2px 12px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.page-content.ls-home-page .ls-community-live-cta-chevron {
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.95;
  margin-bottom: -1px;
}

.ls-home-promo-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 16px 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.2) 0%,
    rgba(18, 14, 8, 0.96) 46%,
    rgba(12, 10, 22, 0.98) 100%
  );
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease;
  -webkit-tap-highlight-color: transparent;
}

.ls-home-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% -10%, rgba(252, 211, 77, 0.35), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.ls-home-promo-card > div {
  position: relative;
  z-index: 1;
}

.ls-home-promo-card:active {
  opacity: 1;
  transform: scale(0.989);
}

.ls-home-classifica-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(74, 222, 128, 0.2) !important;
  background: linear-gradient(
    154deg,
    rgba(74, 222, 128, 0.1) 0%,
    color-mix(in srgb, var(--card) 92%, #08120c) 50%,
    rgba(14, 16, 20, 0.98) 100%
  ) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.ls-home-classifica-card:active {
  opacity: 1;
  transform: scale(0.989);
}

@media (prefers-reduced-motion: no-preference) {
  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(1) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(2) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 62ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(3) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 118ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(4) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 176ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(5) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 234ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:nth-child(6) {
    animation: ls-home-card-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 288ms;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card::before {
    animation: ls-home-card-sheen 14s ease-in-out infinite;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(74, 222, 128, 0.22);
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(74, 222, 128, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    filter: saturate(1.04);
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:hover > svg:first-child {
    transform: scale(1.06) rotate(-2deg);
  }

  .page-content.ls-home-page .ls-community-live-tile {
    animation: ls-home-live-border-glow 4.8s ease-in-out infinite;
  }

  .ls-home-promo-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.52),
      0 0 26px rgba(251, 191, 36, 0.12),
      0 0 0 1px rgba(252, 211, 77, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .ls-home-classifica-card:hover {
    transform: translateY(-3px) translateZ(0);
    border-color: rgba(74, 222, 128, 0.38);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.46),
      0 0 22px rgba(34, 197, 94, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-seller-detail-sheet .ls-seller-info-card {
    animation: none !important;
  }

  .ls-seller-detail-sheet .ls-seller-info-card:hover {
    transform: none;
  }

  .ls-seller-review-cta:hover {
    transform: none;
  }

  .ls-nav-top-crown-wrap,
  .ls-nav-top-crown,
  .ls-nav-legit-shield-wrap,
  .ls-nav-legit-shield,
  .ls-nav-sponsor-banknote-wrap,
  .ls-nav-sponsor-banknote {
    animation: none !important;
  }

  .ls-sponsor-page__title-banknote,
  .ls-sponsor-page__banknote-svg,
  .ls-sponsor-tier,
  .ls-sponsor-tier::after,
  .ls-sponsor-tier__price {
    animation: none !important;
  }

  .ls-top-page__ambient,
  .ls-top-page__sparkles::before,
  .ls-top-page__sparkles::after,
  .ls-top-page__hero,
  .ls-top-page__hero::before,
  .ls-top-page__avatar-inner,
  .ls-top-page__avatar-img,
  .ls-top-page__name,
  .ls-top-page__badge,
  .ls-top-page__badge-emoji,
  .ls-top-page__stat,
  .ls-top-page__stat-value,
  .ls-top-page__cta-link,
  .ls-top-page__cta-link::before,
  .ls-top-page__error-card,
  .ls-top-page__features {
    animation: none !important;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card,
  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card::before,
  .page-content.ls-home-page .ls-community-live-tile,
  .ls-home-promo-card,
  .ls-home-classifica-card {
    animation: none !important;
  }

  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:hover,
  .page-content.ls-home-page .home-grid.ls-home-tiles > .grid-card:hover > svg:first-child,
  .ls-home-promo-card:hover,
  .ls-home-classifica-card:hover {
    transform: none;
    filter: none;
  }
}
