:root {
  --bg: #050816;
  --bg-card: #0b1020;
  --accent: #ffcc33;
  --accent-soft: rgba(255, 204, 51, 0.1);
  --text: #f5f5f5;
  --muted: #a0a4b8;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111830 0, #050816 45%, #020309 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe487, #ffcc33 40%, #f09600 110%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* Logo dentro il badge */
.logo-badge img.logo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-main {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.beta-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #ffcc33;
  margin-left: 6px;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero {
  background: linear-gradient(135deg, rgba(11, 16, 32, .95), rgba(15, 7, 35, .95));
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
}

.hero-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-highlight {
  background: var(--accent-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--muted);
}

.hero-highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-keepa {
  border-color: rgba(76, 175, 80, 0.7);
}

.badge-fast {
  border-color: rgba(33, 150, 243, 0.7);
}

.hero-right {
  justify-self: end;
}

.hero-card {
  background: radial-gradient(circle at top, #162349 0, #070b18 65%);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 260px;
  max-width: 100%;
  font-size: 11px;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hero-card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-card-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.7);
  color: #aaf0c1;
}

.hero-card-title {
  font-size: 12px;
  margin-bottom: 6px;
}

.hero-card-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-card-price {
  font-size: 16px;
  font-weight: 600;
}

.hero-card-old-price {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.hero-card-save {
  font-size: 11px;
  color: #aaf0c1;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.hero-card-btn {
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 10px;
  border: none;
  background: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.hero-card-progress {
  font-size: 10px;
  color: var(--muted);
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: flex-start;
}

.section-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 12px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-title {
  font-size: 12px;
  margin-bottom: 6px;
  min-height: 32px;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
}

.product-old-price {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.product-btn span.icon {
  font-size: 13px;
}

.sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

.sidebar-block {
  margin-bottom: 16px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 13px;
  margin-bottom: 6px;
}

.sidebar-text {
  font-size: 12px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chip-primary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.disclaimer {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
  margin-top: 8px;
}

.disclaimer strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    justify-self: start;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding: 16px;
  }
}
