/* ============================================
   Cellulari Low Cost — stylesheet
   ============================================ */

:root {
  --ink: #0a0a0b;
  --ink-soft: #1c1c1f;
  --white: #ffffff;
  --gray-50: #f7f7f8;
  --gray-100: #eeeeef;
  --gray-200: #e2e2e5;
  --gray-300: #cfcfd4;
  --gray-500: #8b8b93;
  --gray-600: #616168;

  --accent-1: #ff5f6d;
  --accent-2: #a24bff;
  --accent-3: #4f7cff;
  --gradient: linear-gradient(120deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  --grade-eccellente: #b45309;
  --grade-ottimo: #1d4ed8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10, 10, 11, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 10, 11, 0.10);
  --shadow-lg: 0 24px 64px rgba(10, 10, 11, 0.16);

  --header-h: 76px;
  --max-w: 1180px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; font-family: var(--font-display); font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section, .section--tight { position: relative; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section::before, .section--tight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 65% at 6% -5%, rgba(162, 75, 255, 0.16), transparent 65%),
    radial-gradient(42% 60% at 96% 8%, rgba(79, 124, 255, 0.15), transparent 65%),
    radial-gradient(45% 60% at 12% 105%, rgba(255, 95, 109, 0.13), transparent 65%),
    radial-gradient(40% 55% at 92% 98%, rgba(255, 205, 120, 0.14), transparent 65%);
}
.section > .container, .section--tight > .container { position: relative; z-index: 1; }
.section--gray {
  background: #f9f6fc;
}
.section--gray::before {
  background:
    radial-gradient(50% 70% at 4% -8%, rgba(162, 75, 255, 0.24), transparent 65%),
    radial-gradient(45% 65% at 98% 6%, rgba(79, 124, 255, 0.22), transparent 65%),
    radial-gradient(48% 65% at 10% 108%, rgba(255, 95, 109, 0.2), transparent 65%),
    radial-gradient(42% 60% at 94% 100%, rgba(255, 205, 120, 0.2), transparent 65%);
}
.section--ink {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.section--ink::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 65% at 15% 20%, rgba(162, 75, 255, 0.8), transparent 70%),
    radial-gradient(45% 60% at 85% 15%, rgba(79, 124, 255, 0.7), transparent 70%),
    radial-gradient(50% 60% at 20% 90%, rgba(255, 95, 109, 0.65), transparent 70%),
    radial-gradient(45% 55% at 90% 85%, rgba(255, 205, 120, 0.55), transparent 70%);
  filter: blur(80px);
}
.section--ink > .container { position: relative; z-index: 1; }

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-sub { margin-top: 14px; color: var(--gray-600); font-size: 17px; line-height: 1.6; }

/* ============ Social proof badge (avatars + rating) ============ */
.social-proof-badge { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.proof-avatars { display: flex; align-items: center; }
.proof-avatars > * {
  transform: translateX(-16px) scale(0.8);
  transition: opacity .5s cubic-bezier(.215,.61,.355,1), transform .5s cubic-bezier(.215,.61,.355,1);
}
.proof-avatars.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.proof-avatars.is-visible > *:nth-child(2) { transition-delay: 50ms; }
.proof-avatars.is-visible > *:nth-child(3) { transition-delay: 100ms; }
.proof-avatars.is-visible > *:nth-child(4) { transition-delay: 150ms; }
.proof-avatars.is-visible > *:nth-child(5) { transition-delay: 200ms; }
.proof-avatars.is-visible > * { transform: none; }
.proof-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  transition: transform .2s ease;
}
.proof-avatar:hover { transform: translateY(-3px); z-index: 2; }
.proof-avatars > * + * { margin-left: -10px; }
.proof-stats { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.proof-star { width: 18px; height: 18px; color: var(--accent-1); }
.proof-label { color: var(--gray-600); font-weight: 500; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) {
  .proof-avatars > * { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gradient {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: var(--white);
}
.btn-gradient:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gradient::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-gradient:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .btn-gradient::after { display: none; }
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-danger {
  background: transparent;
  border-color: var(--accent-1);
  color: var(--accent-1);
}
.btn-outline-danger:hover { background: var(--accent-1); color: var(--white); box-shadow: 0 6px 16px rgba(255, 95, 109, 0.35); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
}
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.btn-glass:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-glass { background: rgba(255, 255, 255, 0.16); }
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(10,10,11,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.brand-tagline {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.main-nav a:hover { background: var(--gray-100); color: var(--ink); transform: translateY(-2px); }
.main-nav a:active { transform: translateY(0) scale(0.95); }
.main-nav a.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(162, 75, 255, 0.35);
}
.main-nav a.active:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(162, 75, 255, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .main-nav a { transition: background .15s ease, color .15s ease; }
  .main-nav a:hover, .main-nav a.active:hover { transform: none; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: background .15s ease, border-color .15s ease;
}
.header-account:hover { background: var(--gray-100); }
.header-account-avatar {
  position: relative;
  overflow: hidden;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.header-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.account-avatar-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 14px;
}
.account-avatar-fallback, .account-avatar-img {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-avatar-fallback {
  background: var(--gradient);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.account-avatar-img { object-fit: cover; }
.account-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--white);
  transition: background .15s ease;
}
.account-avatar-edit:hover { background: var(--accent-2); }
.account-avatar-edit svg { width: 14px; height: 14px; }
.header-account-greeting { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.header-account-greeting b { color: var(--ink); }
.header-account-wrap { display: flex; align-items: center; gap: 6px; }
.header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  flex: none;
}
.header-logout-btn svg { width: 15px; height: 15px; }
.header-logout-btn:hover { background: #fde8ea; color: var(--accent-1); border-color: #f7c3c9; transform: scale(1.06); }
.header-logout-btn:active { transform: scale(0.92); }
@media (max-width: 560px) {
  .header-account-greeting { display: none; }
  .header-account { padding: 0; border: none; background: none; }
  .header-logout-btn { width: 30px; height: 30px; }
  .header-logout-btn svg { width: 13px; height: 13px; }
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; box-shadow: var(--shadow-md); }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
}

/* ============ Hero ============ */
.hero-pin-wrap { position: relative; }
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 88px 0 64px;
}
@media (min-width: 901px) {
  .hero-pin-wrap { height: 160vh; }
  .hero {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    padding: 0;
    display: flex;
    align-items: center;
  }
  .hero > .container { width: 100%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(55% 65% at 15% 20%, rgba(162, 75, 255, 0.85), transparent 70%),
    radial-gradient(50% 60% at 85% 8%, rgba(79, 124, 255, 0.75), transparent 70%),
    radial-gradient(55% 65% at 18% 92%, rgba(255, 95, 109, 0.7), transparent 70%),
    radial-gradient(50% 60% at 90% 88%, rgba(255, 205, 120, 0.65), transparent 70%),
    radial-gradient(80% 75% at 50% 50%, rgba(162, 75, 255, 0.4), transparent 75%);
  filter: blur(70px);
  opacity: 1;
  pointer-events: none;
  animation: heroAuroraDrift 18s ease-in-out infinite;
}
@keyframes heroAuroraDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4%, 6%) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.10), transparent 62%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.hero.spot-on::after { opacity: 1; }
.text-gradient-anim {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .text-gradient-anim { animation: none; background-position: 0% 50%; }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 500; }
.hero-sub { margin-top: 20px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 480px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 40px; max-width: 420px; font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.68); }
.hero-proof b { color: var(--white); font-weight: 600; font-style: normal; }

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-logo {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.cl-logo__circle {
  position: absolute; left: 18.70%; top: 8.84%; width: 61.23%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  animation: cl-circle-fade .5s ease-out both;
  transition: box-shadow .4s ease;
}
.cl-logo__circle img { position: absolute; width: 163.32%; left: -30.54%; top: -14.43%; display: block; max-width: none; }
.cl-logo__circle::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  animation: cl-iris 1.5s cubic-bezier(.4,0,.2,1) both;
}
.cl-logo__word {
  position: absolute; left: 16.46%; top: 73.78%; width: 66.75%; height: 5.96%;
  overflow: hidden; mix-blend-mode: screen;
  animation: cl-word 1.3s cubic-bezier(.2,.9,.25,1) 1.4s both;
}
.cl-logo__word img { position: absolute; width: 149.81%; left: -24.65%; top: -1238.6%; display: block; max-width: none; filter: invert(1); }
.cl-logo__tag {
  position: absolute; left: 31.25%; top: 82.47%; width: 52.15%; height: 5.52%;
  overflow: hidden; mix-blend-mode: screen;
  animation: cl-tag 1.3s ease-out 2.3s both;
}
.cl-logo__tag img { position: absolute; width: 191.75%; left: -59.92%; top: -1494.7%; display: block; max-width: none; filter: invert(1); }
.cl-logo:hover .cl-logo__circle {
  animation: cl-circle-fade .5s ease-out both, cl-breathe 7s ease-in-out infinite;
  box-shadow: 0 24px 64px rgba(162,75,255,0.4), 0 16px 48px rgba(0,0,0,0.35);
}
@keyframes cl-circle-fade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes cl-iris {
  0%   { width: 92%; }
  100% { width: 0%; }
}
@keyframes cl-word {
  0%   { opacity: 0; transform: translateY(60%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cl-tag {
  0%   { opacity: 0; transform: translateY(50%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cl-breathe {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-9px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cl-logo__circle, .cl-logo__word, .cl-logo__tag { animation: none; opacity: 1; transform: none; }
  .cl-logo__circle::after { display: none; }
  .cl-logo:hover .cl-logo__circle { animation: none; }
}

/* ============ USP strip ============ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.usp-card {
  position: relative;
  z-index: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 32px 28px;
  border-right: 1px solid var(--gray-200);
}
.usp-card:last-child { border-right: none; }
.usp-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex: none;
  transition: background .3s ease, transform .3s ease;
}
.usp-card .icon svg { width: 19px; height: 19px; }
.usp-card:hover .icon { background: var(--gradient); transform: scale(1.08) rotate(-4deg); }
.usp-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.usp-card p { color: var(--gray-600); font-size: 13.5px; line-height: 1.5; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4/5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(162, 75, 255, 0.9), transparent 60%),
    radial-gradient(circle at 72% 30%, rgba(79, 124, 255, 0.8), transparent 60%),
    radial-gradient(circle at 45% 75%, rgba(255, 95, 109, 0.75), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 205, 120, 0.6), transparent 60%);
  filter: blur(40px);
  opacity: 0.65;
  animation: logoGlowPulse 3.4s ease-in-out infinite;
}
.about-media .cl-logo {
  position: relative;
  width: min(280px, 82%);
}
.about-media .cl-logo__circle {
  animation: cl-circle-fade .5s ease-out both, logoFloat 5s ease-in-out infinite;
}
@keyframes logoGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.18); opacity: 0.85; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .about-media::before, .about-media .cl-logo__circle { animation: none; }
}
.about-copy p { color: var(--gray-600); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-copy .btn { margin-top: 8px; }
.timeline { margin-top: 28px; display: grid; gap: 14px; }
.timeline-item { display: flex; gap: 14px; }
.timeline-item b { flex: none; width: 56px; color: var(--accent-2); font-weight: 800; }
.timeline-item span { color: var(--gray-600); font-size: 14.5px; }

/* ============ Feature list (perche sceglierci) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  z-index: 0;
  text-align: left;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gray-200);
  transition: border-color .3s ease, transform .3s ease;
}
.feature-card:hover { border-left-color: var(--accent-2); transform: translateX(4px); }
.feature-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 14.5px; line-height: 1.55; }

/* ============ Category CTA ============ */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-card.alt { background: linear-gradient(135deg, #2a2a30, #0a0a0b); }
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.28;
  transition: opacity .35s ease, transform .6s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover::before { opacity: 0.4; transform: scale(1.06); }
.cat-card * { position: relative; }
.cat-card .tag { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 15px; opacity: .8; margin-bottom: 10px; }
.cat-card h3 { font-size: 24px; margin-bottom: 10px; }
.cat-card p { font-size: 14.5px; opacity: .78; margin-bottom: 20px; max-width: 320px; }

/* ============ Valuation banner ============ */
.valuation-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: var(--white);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}
.valuation-banner h2 { font-size: clamp(24px, 3vw, 32px); }
.valuation-banner p { margin-top: 14px; opacity: .92; font-size: 15.5px; line-height: 1.6; }
.valuation-banner .btn { margin-top: 4px; }

/* ============ Store locations ============ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.store-card {
  position: relative;
  z-index: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.store-card h3 { font-size: 17px; margin-bottom: 4px; }
.store-card .addr { color: var(--gray-600); font-size: 14.5px; margin-bottom: 16px; }
.store-hours { display: grid; gap: 6px; font-size: 13.5px; }
.store-hours div { display: flex; justify-content: space-between; color: var(--gray-600); }
.store-hours b { color: var(--ink); font-weight: 700; }
.store-card .map-link { margin-top: 16px; display: inline-flex; font-size: 13.5px; font-weight: 700; color: var(--accent-2); align-items: center; gap: 6px; }

/* ============ Testimonials ============ */
.reviews-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  mask-image: linear-gradient(to right, transparent, black 2%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 96%, transparent);
}
.review-card {
  position: relative;
  z-index: 0;
  scroll-snap-align: start;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.review-card .stars { color: var(--accent-1); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
.review-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.review-card .who b { font-size: 13.5px; display: block; }
.review-card .who span { font-size: 12px; color: var(--gray-500); }

/* ============ Cursor-tracked glow (cards) ============ */
.usp-card::after, .feature-card::after, .store-card::after, .review-card::after, .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 20%), rgba(162, 75, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.usp-card:hover::after, .feature-card:hover::after, .store-card:hover::after, .review-card:hover::after, .product-card:hover::after {
  opacity: 1;
}
@media (hover: none) {
  .usp-card::after, .feature-card::after, .store-card::after, .review-card::after, .product-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .usp-card::after, .feature-card::after, .store-card::after, .review-card::after, .product-card::after { transition: none; }
}

/* ============ Magnetic CTA buttons ============ */
.btn-magnetic { transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease, background .15s ease, color .15s ease; }
@media (prefers-reduced-motion: reduce) {
  .btn-magnetic { transition: box-shadow .15s ease, background .15s ease, color .15s ease; }
}

/* ============ Count-up numbers ============ */
.countup { font-variant-numeric: tabular-nums; }

/* ============ Footer ============ */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  z-index: 0;
  height: 380px;
  background:
    radial-gradient(55% 100% at 15% 0%, rgba(162, 75, 255, 0.6), transparent 70%),
    radial-gradient(50% 100% at 85% 0%, rgba(79, 124, 255, 0.5), transparent 70%),
    radial-gradient(45% 100% at 50% 0%, rgba(255, 95, 109, 0.35), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: 36px; border-radius: 50%; }
.site-footer p.desc { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--white); }

/* ============ Page hero (sub-pages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background: #fdfcff;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(48% 65% at 8% 5%, rgba(162, 75, 255, 0.32), transparent 65%),
    radial-gradient(42% 60% at 88% 0%, rgba(79, 124, 255, 0.28), transparent 65%),
    radial-gradient(48% 60% at 15% 100%, rgba(255, 95, 109, 0.24), transparent 65%),
    radial-gradient(42% 55% at 92% 95%, rgba(255, 205, 120, 0.26), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: var(--gray-500); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin-top: 12px; color: var(--gray-600); font-size: 16px; max-width: 560px; }

/* ============ Shop toolbar ============ */
.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: 36px; align-items: flex-start; }
.filters-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.filters-panel::before {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 190px; height: 190px;
  background: var(--gradient);
  filter: blur(54px);
  opacity: 0.16;
  pointer-events: none;
}
.filters-head {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}
.filters-head-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(162,75,255,0.32);
}
.filters-head-icon svg { width: 19px; height: 19px; }
.filters-head h3 { font-size: 17px; }
.filters-head p { font-size: 12.5px; color: var(--gray-500); margin-top: 2px; font-weight: 600; }
.filters-head p strong { color: var(--ink); font-weight: 800; }
.filter-group { position: relative; z-index: 1; margin-bottom: 26px; }
.filters-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
  margin-bottom: 13px;
  font-weight: 700;
  font-family: var(--font-body);
}
.fg-icon {
  width: 21px; height: 21px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.fg-icon svg { width: 12px; height: 12px; }
.filter-group--condition .fg-icon { background: rgba(255,95,109,0.13); color: var(--accent-1); }
.filter-group--grade .fg-icon { background: rgba(180,83,9,0.13); color: var(--grade-eccellente); }
.filter-group--type .fg-icon { background: rgba(79,124,255,0.13); color: var(--accent-3); }
.filter-group--price .fg-icon { background: rgba(162,75,255,0.13); color: var(--accent-2); }
.filter-chip-list { display: flex; flex-direction: column; gap: 7px; }
.filter-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--gray-50);
  border: 1px solid transparent;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.filter-chip:hover { background: var(--gray-100); transform: translateX(3px); }
.filter-chip.active {
  background: var(--gradient);
  color: var(--white);
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(162,75,255,0.28);
}
.chip-count {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.filter-chip:hover .chip-count { border-color: var(--gray-300); }
.filter-chip.active .chip-count { color: #fff; background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.32); }
.grade-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 7px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.grade-dot.eccellente { background: var(--grade-eccellente); }
.grade-dot.ottimo { background: var(--grade-ottimo); }
.grade-inline {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  margin: 0 1px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-weight: 800;
  font-size: 0.94em;
}
.grade-inline.eccellente { color: var(--grade-eccellente); }
.grade-inline.ottimo { color: var(--grade-ottimo); }
.filter-chip.grade-chip.eccellente.active { background: var(--grade-eccellente); box-shadow: 0 8px 20px rgba(180,83,9,0.28); }
.filter-chip.grade-chip.ottimo.active { background: var(--grade-ottimo); box-shadow: 0 8px 20px rgba(29,78,216,0.28); }

.grade-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(180,83,9,0.08), rgba(29,78,216,0.08));
  border: 1px solid var(--gray-200);
}
.grade-guarantee-icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.grade-guarantee-icon svg { width: 17px; height: 17px; }
.grade-guarantee-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(162,75,255,0.4);
  animation: guaranteePulse 2.2s ease-out infinite;
}
@keyframes guaranteePulse {
  0% { box-shadow: 0 0 0 0 rgba(162,75,255,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(162,75,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(162,75,255,0); }
}
.grade-guarantee p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.grade-guarantee b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .grade-guarantee-icon::after { animation: none; }
}
.price-slider { position: relative; z-index: 1; padding-top: 2px; }
.price-slider-value {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.price-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--gray-200);
  outline: none;
  cursor: pointer;
}
.price-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-3) var(--range-progress, 100%), var(--gray-200) var(--range-progress, 100%));
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-2);
  box-shadow: 0 2px 8px rgba(10,10,11,0.22);
  transition: transform .2s var(--ease-out);
}
.price-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.price-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--gray-200); }
.price-range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); }
.price-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-2);
  box-shadow: 0 2px 8px rgba(10,10,11,0.22);
  cursor: pointer;
}
.price-slider-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-500); font-weight: 600; margin-top: 9px; }
.reset-filters {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.reset-filters svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.reset-filters:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(162,75,255,0.06); }
.reset-filters:hover svg { transform: rotate(-90deg); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  font-size: 14.5px;
}
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--gray-500); }
.result-count { font-size: 13.5px; color: var(--gray-500); font-weight: 600; }
.sort-select {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--white);
}
.mobile-filter-toggle { display: none; }

/* ============ Product grid/card ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  z-index: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 1/1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}
.product-badges {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-badge, .grade-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-badge.usato { background: var(--ink); color: var(--white); }
.product-badge.nuovo { background: var(--gradient); color: var(--white); }
.grade-badge.eccellente { background: var(--grade-eccellente); color: var(--white); }
.grade-badge.ottimo { background: var(--grade-ottimo); color: var(--white); }
.grade-badge.unassigned { background: var(--gray-100); color: var(--gray-500); }
.product-media.has-photo { padding: 0; }
.product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .18s ease; cursor: zoom-in; }
.product-card:hover .product-photo { transform: scale(1.06); }

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 48px 20px;
}
.img-lightbox.open { opacity: 1; pointer-events: auto; }
.img-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  touch-action: pinch-zoom;
  cursor: zoom-out;
}
.img-lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.img-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.img-lightbox-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .img-lightbox { transition: none; }
}
.mini-phone { width: 58%; aspect-ratio: 9/18; border-radius: 20px; background: linear-gradient(160deg,#232328,#0a0a0b); border: 1.5px solid rgba(0,0,0,0.06); padding: 6px; box-shadow: 0 10px 24px rgba(10,10,11,0.12); }
.mini-phone .mp-screen { width: 100%; height: 100%; border-radius: 14px; background: var(--gradient); }
.product-card.nuovo .mini-phone .mp-screen { background: linear-gradient(160deg, #2c2f36, #0a0a0b); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-name { font-size: 15.5px; font-weight: 700; }
.product-meta { font-size: 12.5px; color: var(--gray-500); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.color-swatch { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--gray-300); background: var(--white); color: var(--ink-soft); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.color-swatch:hover { background: var(--gray-100); }
.color-swatch { display: inline-flex; align-items: center; }
.color-swatch.active {
  background: var(--sw-bg, var(--ink));
  color: var(--sw-fg, var(--white));
  border-color: var(--sw-bg, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  animation: swatchPop .3s ease;
}
.color-swatch.out-of-stock { opacity: .45; text-decoration: line-through; }
.swatch-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; margin-right: 6px; border: 1px solid rgba(0,0,0,.18); flex: none; }
.product-battery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: #e9f9ee;
  color: #178a4c;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(23, 138, 76, 0.16);
}
.product-battery svg { width: 15px; height: 15px; flex: none; }
.product-battery.min { background: #d8f5e3; color: #0f6b3a; border-color: rgba(15, 107, 58, 0.2); }
.product-specs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.product-specs:empty { display: none; }
.product-storage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(79, 124, 255, 0.18);
}
.product-storage svg { width: 14px; height: 14px; flex: none; color: var(--accent-3); }
@keyframes swatchPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.battery-upsell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}
.battery-upsell[hidden] { display: none; }
.battery-upsell svg { width: 16px; height: 16px; flex: none; color: var(--accent-2); transition: color .18s ease; }
.battery-upsell:hover {
  border-color: var(--accent-2);
  background: #faf6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(162, 75, 255, 0.18);
}
.battery-upsell input { width: 15px; height: 15px; accent-color: var(--accent-2); flex: none; }
.battery-upsell b { color: var(--accent-2); transition: color .18s ease; }
.battery-upsell.checked {
  border-color: transparent;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(162, 75, 255, 0.38);
  animation: swatchPop .3s ease;
}
.battery-upsell.checked:hover { transform: translateY(-1px) scale(1.02); }
.battery-upsell.checked svg,
.battery-upsell.checked b { color: var(--white); }
.battery-upsell.checked::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: batteryShine 1.1s ease;
}
@keyframes batteryShine {
  from { left: -60%; }
  to { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .battery-upsell { transition: border-color .15s ease, background .15s ease, color .15s ease; }
  .battery-upsell:hover { transform: none; }
  .battery-upsell.checked:hover { transform: none; }
  .battery-upsell.checked { animation: none; }
  .battery-upsell.checked::after { display: none; }
}
.product-action { margin-top: auto; }
.product-unavailable { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.unavailable-label { font-size: 13px; font-weight: 800; color: #d33; }
.notify-toggle { font-size: 12px; font-weight: 700; color: var(--accent-2); background: none; border: none; padding: 0; cursor: pointer; text-align: right; }
.notify-form {
  display: flex; gap: 6px;
  overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0;
  transition: max-height 200ms var(--ease-out), opacity 200ms var(--ease-out), margin-top 200ms var(--ease-out);
}
.notify-form.open { max-height: 60px; opacity: 1; margin-top: 10px; }
.notify-form.notify-form-exit { max-height: 0; opacity: 0; margin-top: 0; transition-duration: 150ms; }
.notify-input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 12.5px; }
.notify-confirm { font-size: 12.5px; color: #16a34a; font-weight: 700; margin-top: 4px; animation: notifyConfirmIn 200ms var(--ease-out) both; }
@keyframes notifyConfirmIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .notify-form { transition: opacity 150ms ease; }
  .notify-form.notify-form-exit { transition: opacity 150ms ease; }
  .notify-confirm { animation: none; }
}
.product-media .mini-phone { transition: opacity .18s ease; }
.product-media.color-swap .product-photo,
.product-media.color-swap .mini-phone { opacity: 0; }
.product-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 19px; font-weight: 800; }
.add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none;
  flex: none;
  transition: transform .15s ease, background .15s ease;
}
.add-btn:hover { background: var(--gradient); }
.add-btn:active { transform: scale(0.9); }
.add-btn svg { width: 18px; height: 18px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray-500); }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* ============ Cart drawer ============ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,11,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 91;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--gray-200); }
.cart-header h3 { font-size: 18px; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; background: none; }
.cart-close svg { width: 16px; height: 16px; }
.cart-title-count {
  display: inline-block; margin-left: 9px; vertical-align: middle;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-600);
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
}
.cart-title-count[hidden] { display: none; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.cart-item {
  display: flex; align-items: flex-start; flex-shrink: 0; gap: 11px;
  padding: 11px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white);
  overflow: hidden; max-height: 260px;
  transition: opacity 200ms ease-out, max-height 200ms ease-out, padding 200ms ease-out, border-color .15s ease, box-shadow .15s ease;
}
.cart-item:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.cart-item.cart-item-exit { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px; border-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .cart-item { transition: opacity 150ms ease; }
}
.cart-item .ci-thumb { position: relative; overflow: hidden; width: 60px; height: 60px; border-radius: 10px; background: var(--gray-50); display: flex; align-items: center; justify-content: center; flex: none; }
.cart-item .ci-thumb .mini-phone { width: 46%; }
.cart-item .ci-thumb .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-qty-badge {
  position: absolute; top: 3px; right: 3px; z-index: 1;
  min-width: 18px; padding: 1px 5px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 800; text-align: center;
}
.cart-item-info { flex: 1; min-width: 0; }
.ci-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cart-item-info .ci-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.ci-storage { font-weight: 700; color: var(--gray-600); }
.ci-total { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ci-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ci-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 10px; font-weight: 700;
}
.ci-tag.nuovo { background: var(--ink); color: var(--white); }
.ci-tag.accent { background: #f3e8ff; color: var(--accent-2); }
.ci-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.ci-unit { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.ci-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-accessories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
.ci-accessory {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--gray-300); border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--gray-600);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ci-accessory:hover { border-color: var(--gray-400); background: var(--gray-50); }
.ci-accessory input { width: 12px; height: 12px; accent-color: var(--accent-2); flex: none; }
.ci-accessory b { color: var(--accent-2); font-weight: 700; }
.ci-accessory:has(input:checked) {
  border-color: var(--accent-2); background: #faf6ff; color: var(--accent-2);
}
.qty-controls { display: flex; align-items: center; gap: 7px; }
.qty-controls button {
  width: 23px; height: 23px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  background: var(--white);
  color: var(--accent-2);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.qty-controls button:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.14);
  box-shadow: 0 4px 12px rgba(162, 75, 255, 0.35);
}
.qty-controls button:active { transform: scale(0.85) rotate(-10deg); }
@media (prefers-reduced-motion: reduce) {
  .qty-controls button { transition: background .15s ease, color .15s ease; }
  .qty-controls button:hover { transform: none; }
  .qty-controls button:active { transform: none; }
}
.qty-controls span { font-size: 12.5px; font-weight: 700; min-width: 14px; text-align: center; }
.ci-remove {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 109, 0.28);
  background: rgba(255, 95, 109, 0.08);
  color: var(--accent-1);
  font-size: 11.5px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.ci-remove svg { width: 13px; height: 13px; flex: none; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ci-remove:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(255, 95, 109, 0.35);
}
.ci-remove:hover svg { animation: removeWiggle .5s cubic-bezier(.34, 1.56, .64, 1); }
.ci-remove:active { transform: scale(0.9) rotate(-3deg); }
@keyframes removeWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-14deg) scale(1.1); }
  65% { transform: rotate(10deg) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .ci-remove, .ci-remove svg { transition: background .15s ease, color .15s ease; }
  .ci-remove:hover { transform: none; }
  .ci-remove:hover svg { animation: none; }
  .ci-remove:active { transform: none; }
}
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.cart-footer { padding: 12px 20px 16px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; color: var(--gray-600); margin-bottom: 9px; }
.cart-total-row b { font-size: 19px; font-weight: 800; color: var(--ink); }
.cart-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.cart-contact input { padding: 8px 11px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 12.5px; background: var(--white); min-width: 0; }
#checkoutBtn { padding: 12px 18px; font-size: 14.5px; }
.cart-note { font-size: 10.5px; color: var(--gray-500); margin: 7px 0 0; line-height: 1.4; text-align: center; }
.cart-alt-pay { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-200); }
.cart-alt-pay-label { display: block; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); margin-bottom: 7px; }
.cart-alt-pay-row { display: flex; flex-direction: column; gap: 9px; }
.btn-quiet {
  padding: 13px 16px;
  font-size: 14.5px; font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--gray-100);
  color: var(--gray-600);
}
.btn-quiet:hover { box-shadow: none; }
#cardCheckoutBtn { background: rgba(79, 124, 255, 0.14); color: var(--accent-3); }
#cardCheckoutBtn:hover { background: rgba(79, 124, 255, 0.24); }
#klarnaCheckoutBtn { background: #ffb3c7; color: #0b051d; }
#klarnaCheckoutBtn:hover { background: #ffa0b9; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: #4ade80; }

/* ============ Forms ============ */
.form-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-size: 14.5px;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(162,75,255,0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-options input { position: absolute; opacity: 0; pointer-events: none; }
.pill-options label {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.pill-options input:checked + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-aside {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  padding: 40px 32px;
}
.form-aside h3 { font-size: 20px; margin-bottom: 16px; }
.form-aside ol { display: grid; gap: 18px; counter-reset: steps; margin-top: 20px; }
.form-aside li { display: flex; gap: 14px; counter-increment: steps; font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.5; }
.form-aside li::before {
  content: counter(steps);
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { display: grid; gap: 16px; margin-top: 24px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.contact-row .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row .icon svg { width: 18px; height: 18px; }
.contact-row b { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-row span, .contact-row a { font-size: 13.5px; color: var(--gray-600); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.show { display: block; animation: formSuccessIn 400ms var(--ease-out) both; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success.show .check { animation: formCheckIn 400ms var(--ease-out) 80ms both; }
.form-success .check svg { width: 28px; height: 28px; color: #fff; }
@keyframes formSuccessIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes formCheckIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

#valuationForm { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
#valuationForm.form-exit { opacity: 0; transform: translateY(-8px); }

@media (prefers-reduced-motion: reduce) {
  #valuationForm.form-exit { transform: none; }
  .form-success.show { animation: formSuccessIn 200ms ease both; }
  .form-success.show .check { animation: none; }
}

/* ============ Admin ============ */
.admin-login-section { min-height: calc(100vh - var(--header-h)); }
.admin-login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-login-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  text-align: center;
}
.admin-login-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(55% 65% at 15% 20%, rgba(162, 75, 255, 0.85), transparent 70%),
    radial-gradient(50% 60% at 85% 8%, rgba(79, 124, 255, 0.75), transparent 70%),
    radial-gradient(55% 65% at 18% 92%, rgba(255, 95, 109, 0.7), transparent 70%),
    radial-gradient(50% 60% at 90% 88%, rgba(255, 205, 120, 0.65), transparent 70%),
    radial-gradient(80% 75% at 50% 50%, rgba(162, 75, 255, 0.4), transparent 75%);
  filter: blur(70px);
  opacity: 1;
  animation: heroAuroraDrift 18s ease-in-out infinite;
}
.admin-login-visual .cl-logo { position: relative; z-index: 1; width: min(220px, 55%); margin-bottom: 32px; }
.admin-login-video-frame {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  margin-bottom: 28px;
  width: min(360px, 88%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.admin-login-video { display: block; width: 100%; border-radius: 14px; }
.admin-login-visual h2 { position: relative; z-index: 1; font-size: 26px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.admin-login-visual p { position: relative; z-index: 1; font-size: 14px; opacity: .85; max-width: 320px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .admin-login-visual::before { animation: none; }
}
.admin-login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
@media (max-width: 900px) {
  .admin-login-split { grid-template-columns: 1fr; min-height: auto; }
  .admin-login-visual { display: none; }
  .admin-login-form-side { padding: 64px 24px; }
}
.admin-login { max-width: 380px; width: 100%; margin: 0; }
.admin-error { color: #d33; font-size: 13.5px; margin-top: 10px; display: none; }
.admin-error.show { display: block; }
.admin-forgot-link { display: block; width: 100%; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); background: none; border: none; padding: 0; cursor: pointer; text-align: center; }
.admin-forgot-link:hover { text-decoration: underline; }
.admin-forgot-link:disabled { opacity: .6; cursor: default; text-decoration: none; }
.admin-hint { font-size: 13.5px; color: var(--gray-600); margin-top: 10px; text-align: center; display: none; }
.admin-hint.show { display: block; }
.admin-hint.success { color: #1a7a3c; }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.admin-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); background: var(--gray-50); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.actions { display: flex; gap: 8px; white-space: nowrap; }
.admin-table .link-btn { font-size: 13px; font-weight: 700; color: var(--accent-2); background: none; border: none; padding: 0; cursor: pointer; }
.admin-table .link-btn.danger { color: #d33; }
.badge-cond { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-cond.usato { background: var(--gray-100); color: var(--ink); }
.badge-cond.nuovo { background: var(--ink); color: var(--white); }
.admin-empty { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.admin-image-preview { margin: 4px 0 18px; }
.admin-image-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--gray-200); display: block; }
.admin-checkbox { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--gray-600); cursor: pointer; }
.admin-checkbox input { width: 16px; height: 16px; }
.admin-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--gray-100); display: block; }
.admin-thumb-placeholder { width: 44px; height: 44px; border-radius: 8px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 11px; }
.admin-tab-badge { background: var(--gradient); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.auth-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  max-width: 320px;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--gray-100);
  border-radius: 999px;
}
.auth-tabs-indicator {
  position: absolute;
  top: 4px; left: 4px; bottom: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(162, 75, 255, 0.3);
  transition: transform .3s var(--ease-out), width .3s var(--ease-out);
}
.auth-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-600);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease;
}
.auth-tab.active { color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .auth-tabs-indicator { transition: none; }
}

/* ============ Register form: colourful sections ============ */
@keyframes authCardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-card { animation: authCardIn .35s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
}
.auth-section + .auth-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.auth-section-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.auth-section-icon {
  width: 32px; height: 32px; flex: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.auth-section-icon svg { width: 16px; height: 16px; }
.auth-section-icon.c1 { background: linear-gradient(135deg, var(--accent-1), #ff9382); }
.auth-section-icon.c2 { background: linear-gradient(135deg, var(--accent-2), #c586ff); }
.auth-section-icon.c3 { background: linear-gradient(135deg, var(--accent-3), #7ea6ff); }
.auth-section-icon.muted { background: var(--gray-100); color: var(--gray-500); }
.auth-section-head b { display: block; font-size: 13.5px; }
.auth-section-head small { font-size: 11.5px; color: var(--gray-500); font-weight: 500; }
.field-icon-input { position: relative; }
.field-icon-input svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--gray-400); pointer-events: none;
  transition: color .15s ease;
}
.field-icon-input input { padding-left: 42px; }
.field-icon-input:focus-within svg { color: var(--accent-2); }
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-status.nuovo { background: var(--accent-2); color: #fff; }
.badge-status.in_lavorazione { background: var(--gray-200); color: var(--ink); }
.badge-status.spedito { background: var(--accent-3); color: #fff; }
.badge-status.consegnato { background: #16a34a; color: #fff; }
.badge-status.annullato { background: #d33; color: #fff; }
.order-detail-item { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.order-detail-contact { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; margin-bottom: 4px; }
.order-detail-item-block { border-bottom: 1px solid var(--gray-100); padding-bottom: 12px; margin-bottom: 12px; }
.order-detail-item-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.order-detail-item-block .order-detail-item { border-bottom: none; padding-bottom: 2px; }
.imei-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.imei-field { display: flex; align-items: center; gap: 10px; }
.imei-field label { font-size: 11.5px; font-weight: 700; color: var(--gray-500); flex: none; width: 100px; }
.imei-field input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13px; font-family: monospace; }
.imei-field input:focus { outline: none; border-color: var(--accent-2); }
.admin-colors-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.admin-color-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--gray-200); border-radius: 10px; }
.admin-color-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--gray-100); flex: none; }
.admin-color-row input[type="text"] { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13.5px; }
.admin-color-row .btn { flex: none; }
.admin-color-photo-label { font-size: 12.5px; font-weight: 700; color: var(--accent-2); cursor: pointer; white-space: nowrap; }
.admin-color-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-color-add input[type="text"] { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13.5px; }
.admin-color-add input[type="file"] { font-size: 12.5px; max-width: 200px; }

/* ============ Admin: stat cards ============ */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
}
.admin-stat-card .icon {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--ink);
}
.admin-stat-card .icon svg { width: 20px; height: 20px; }
.admin-stat-card.warn .icon { background: #fff3e0; color: #b45309; }
.admin-stat-card.danger .icon { background: #fde8e8; color: #c22; }
.admin-stat-card .num { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1; }
.admin-stat-card .label { font-size: 12.5px; color: var(--gray-500); font-weight: 600; margin-top: 4px; }
.admin-stat-card.clickable { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.admin-stat-card.clickable:hover { border-color: var(--gray-300); transform: translateY(-2px); }

/* ============ Admin: stock badges + stepper ============ */
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
}
.stock-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-badge.ok { background: #e9f9ee; color: #178a4c; }
.stock-badge.low { background: #fff3e0; color: #b45309; }
.stock-badge.out { background: #fde8e8; color: #c22; }
.stock-badge.untracked { background: var(--gray-100); color: var(--gray-500); cursor: default; }
.stock-badge .chev { width: 12px; height: 12px; transition: transform .15s ease; }
.stock-badge.open .chev { transform: rotate(180deg); }

.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--gray-300); border-radius: 999px; overflow: hidden; }
.qty-stepper button {
  width: 30px; height: 30px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); border: none; font-size: 16px; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: background .15s ease;
}
.qty-stepper button:hover { background: var(--gray-100); }
.qty-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.qty-stepper input {
  width: 48px; text-align: center; border: none; font-size: 14px; font-weight: 700;
  padding: 0; height: 30px; -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; background: var(--gray-50); }

.stock-editor-row td { background: var(--gray-50); padding: 18px 20px !important; }
.stock-editor { display: flex; flex-direction: column; gap: 12px; }
.stock-editor-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stock-editor-line .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.stock-editor-line .swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); flex: none; }
.stock-editor-save { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.stock-editor-save svg { width: 14px; height: 14px; color: #178a4c; }

/* ============ Admin: product form sections ============ */
.admin-form-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--gray-200); }
.admin-form-section:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.admin-form-section h3 { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.admin-form-section .sub { font-size: 12.5px; color: var(--gray-500); margin-bottom: 18px; }

.admin-dropzone {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.admin-dropzone:hover, .admin-dropzone.dragover { border-color: var(--accent-2); background: #faf6ff; }
.admin-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-dropzone .dz-icon {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-500);
}
.admin-dropzone .dz-icon svg { width: 20px; height: 20px; }
.admin-dropzone .dz-text b { display: block; font-size: 13.5px; }
.admin-dropzone .dz-text span { font-size: 12px; color: var(--gray-500); }
.admin-dropzone.has-image { border-style: solid; padding: 12px; }

.admin-color-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-color-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--white);
}
.admin-color-card-top { display: flex; align-items: center; gap: 10px; }
.admin-color-card .admin-color-thumb { width: 48px; height: 48px; border-radius: 10px; }
.admin-color-card input[type="text"] { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13.5px; min-width: 0; }
.admin-color-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-color-add-card {
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.admin-color-add-card .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-color-add-card input[type="text"] { flex: 1; min-width: 120px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 13.5px; }

/* ============ Account dashboard ============ */
.account-dashboard { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.account-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-avatar-wrap--topbar { width: 72px; height: 72px; margin: 0; flex: none; }
.account-avatar-wrap--topbar .account-avatar-fallback,
.account-avatar-wrap--topbar .account-avatar-img { width: 72px; height: 72px; font-size: 22px; }
.account-avatar-wrap--topbar .account-avatar-edit { width: 26px; height: 26px; }
.account-avatar-wrap--topbar .account-avatar-edit svg { width: 12px; height: 12px; }
.account-identity h2 { font-size: 21px; font-weight: 800; margin: 0 0 3px; }
.account-member-since { font-size: 13px; color: var(--gray-500); }

.points-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #fff;
  padding: 30px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: 0 22px 50px rgba(162, 75, 255, 0.32);
}
.points-hero::before, .points-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.points-hero::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.points-hero::after { width: 140px; height: 140px; bottom: -70px; left: 10%; background: rgba(255, 255, 255, 0.1); }
.points-hero-main { position: relative; z-index: 1; min-width: 220px; }
.points-hero-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .9; }
.points-hero-value { font-size: 54px; font-weight: 800; line-height: 1; margin: 8px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.points-hero-value small { font-size: 15px; font-weight: 600; opacity: .85; }
.points-hero-sub { font-size: 13.5px; opacity: .92; max-width: 340px; line-height: 1.5; margin-top: 12px; }
.badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tier-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); font-weight: 800; font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.32); }
.tier-badge svg { width: 15px; height: 15px; }
.reward-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); font-weight: 700; font-size: 12.5px; border: 1px dashed rgba(255, 255, 255, 0.5); }
.reward-badge svg { width: 14px; height: 14px; flex: none; }
.points-progress-wrap { position: relative; z-index: 1; flex: 1 1 220px; max-width: 300px; }
.points-progress-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.points-progress-fill { height: 100%; border-radius: 999px; background: #fff; width: 0%; transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.points-progress-caption { font-size: 12.5px; margin-top: 9px; opacity: .92; }

.account-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stat-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px; text-align: center; background: var(--white); }
.account-stat-icon { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.account-stat-icon svg { width: 17px; height: 17px; }
.account-stat-icon.stat-icon-orders { background: linear-gradient(135deg, var(--accent-3), #2f5ce0); }
.account-stat-icon.stat-icon-spent { background: linear-gradient(135deg, #34d399, #0d9488); }
.account-stat-icon.stat-icon-tier { background: linear-gradient(135deg, #ffdd7a, #c8960c); }
.account-stat-icon.tier-color-bronzo { background: linear-gradient(135deg, #dd9c66, #8c5523); }
.account-stat-icon.tier-color-argento { background: linear-gradient(135deg, #dcdee2, #8b8f99); }
.account-stat-icon.tier-color-oro { background: linear-gradient(135deg, #ffdd7a, #c8960c); }
.account-stat-icon.tier-color-platino { background: linear-gradient(135deg, #f2f5fa, #a9b7ce); }
.account-stat-value { font-size: 24px; font-weight: 800; }
.account-stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 600; }

.tier-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier-step-wrap { position: relative; }
.tier-step {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 8px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: transform .25s cubic-bezier(.34, 1.2, .64, 1), box-shadow .25s ease, border-color .25s ease, opacity .25s ease;
}
.tier-step-you {
  display: none;
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  white-space: nowrap;
}
.tier-step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.18);
}
.tier-step-icon svg { width: 21px; height: 21px; }
.tier-step-name { font-size: 13.5px; font-weight: 800; }
.tier-step-range { font-size: 10.5px; color: var(--gray-500); font-weight: 600; }

.tier-step--bronzo {
  background: linear-gradient(150deg, #eab377 0%, #b8702f 55%, #7d4718 100%);
  border-color: #7d4718;
}
.tier-step--bronzo .tier-step-name { color: #fff; }
.tier-step--bronzo .tier-step-range { color: rgba(255, 255, 255, 0.88); }
.tier-step--argento { background: linear-gradient(160deg, #eef0f3, #c7cbd2); border-color: #9ea3ad; }
.tier-step--oro { background: linear-gradient(160deg, #ffedb0, #f0c34a); border-color: #d1a013; }
.tier-step--platino {
  background: linear-gradient(150deg, #f0f3f7 0%, #cad3de 55%, #97a6b9 100%);
  border-color: #7e8ea3;
}
.tier-step--platino .tier-step-name { color: var(--ink); }

.tier-step--bronzo .tier-step-icon { background: linear-gradient(135deg, #f0c896, #8c5523); border: 2px solid rgba(255, 255, 255, 0.45); }
.tier-step--argento .tier-step-icon { background: linear-gradient(135deg, #dcdee2, #8b8f99); }
.tier-step--oro .tier-step-icon { background: linear-gradient(135deg, #ffdd7a, #c8960c); }
.tier-step--platino .tier-step-icon { background: linear-gradient(135deg, #e6eaf0, #7e8ea3); border: 2px solid rgba(255, 255, 255, 0.5); }

/* Movement: every unlocked step shines; the current step shines brighter and glows */
.tier-step.achieved, .tier-step.current {
  position: relative;
  overflow: hidden;
}
.tier-step.achieved::after, .tier-step.current::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: tierShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.tier-step.current::after {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation-duration: 2.1s;
}
@keyframes tierShine {
  0% { left: -60%; }
  40%, 100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
  .tier-step.achieved::after, .tier-step.current::after { animation: none; display: none; }
}

.tier-step.locked { opacity: .42; filter: grayscale(.85); }
.tier-step.locked .tier-step-icon { box-shadow: none; }

.tier-step.achieved { box-shadow: 0 2px 8px rgba(10, 10, 11, 0.06); }

.tier-step.current {
  border-width: 2.5px;
  border-color: var(--accent-2);
  transform: translateY(-4px);
  animation: tierGlowPulse 2.4s ease-in-out infinite;
}
@keyframes tierGlowPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(162, 75, 255, 0.32); }
  50% { box-shadow: 0 18px 40px rgba(162, 75, 255, 0.58); }
}
.tier-step-wrap.current .tier-step-you { display: inline-block; }

@media (max-width: 560px) {
  .tier-legend { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
  .tier-step.current { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tier-step { transition: none; }
  .tier-step.current { transform: none; animation: none; box-shadow: 0 10px 26px rgba(162, 75, 255, 0.32); }
}

.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.account-section-title { font-size: 15.5px; font-weight: 800; margin-bottom: 16px; }

.order-history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.order-history-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-history-item:first-child { padding-top: 0; }
.order-history-main { display: flex; flex-direction: column; gap: 5px; min-width: 160px; }
.order-history-date { font-size: 11.5px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.order-history-items { font-size: 13.5px; font-weight: 600; }
.order-history-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.order-history-total { font-weight: 800; font-size: 14px; }
.points-pill { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(120deg, var(--accent-1), var(--accent-2)); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

.account-address { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; margin-top: 4px; }
.account-side-col { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-stats-row { grid-template-columns: 1fr 1fr; }
  .points-hero { padding: 26px 22px; }
  .points-hero-value { font-size: 42px; }
}
@media (max-width: 480px) {
  .account-stats-row { grid-template-columns: 1fr; }
}

/* ============ Admin: tab transitions ============ */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFadeIn .28s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.admin-tab.pulse { animation: tabPulse 1.6s ease; }
@keyframes tabPulse { 0%, 100% { color: inherit; } 25%, 65% { color: var(--accent-2); } }
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
  .admin-tab.pulse { animation: none; }
}

/* ============ Admin: overview dashboard ============ */
.overview-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.overview-updated { font-size: 11.5px; color: var(--gray-400); white-space: nowrap; margin-top: 4px; }
.revenue-chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-stop-start { stop-color: var(--accent-2); stop-opacity: 0.28; }
.chart-stop-end { stop-color: var(--accent-2); stop-opacity: 0; }
.chart-line { stroke: var(--accent-2); }
.chart-dot { fill: var(--accent-2); }
.chart-dot:hover { fill: var(--accent-1); }

.activity-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 4px; border: none; border-bottom: 1px solid var(--gray-100);
  background: none; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: background .15s ease;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: var(--gray-50); }
.activity-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.activity-title { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-sub { font-size: 11.5px; color: var(--gray-500); }
.activity-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ============ Admin: skeleton loading ============ */
.skeleton-row td { padding: 13px 16px; }
.skeleton-bar {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
  background-size: 400% 100%; animation: skeletonShimmer 1.4s ease infinite;
}
.skeleton-thumb { width: 40px; height: 40px; border-radius: 8px; }
@keyframes skeletonShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton-bar { animation: none; } }

/* ============ Admin: toast notifications ============ */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.toast.toast-in { opacity: 1; transform: translateY(0); }
.toast.toast-out { opacity: 0; transform: translateY(8px); }
.toast-icon { flex: none; width: 18px; height: 18px; }
.toast-icon svg { width: 100%; height: 100%; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error { background: #3a1414; }
.toast-error .toast-icon { color: #f87171; }
.toast-info .toast-icon { color: var(--accent-3); }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close { flex: none; background: none; border: none; color: inherit; opacity: .6; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-close:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (max-width: 640px) {
  .toast-stack { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ============ Chatbot widget ============ */
.chatbot-widget { position: fixed; bottom: 20px; right: 20px; z-index: 150; }
.chatbot-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(162, 75, 255, 0.4);
  cursor: pointer;
  position: relative;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  opacity: .5;
  animation: chatbotPulse 2.4s ease-out infinite;
}
@keyframes chatbotPulse {
  0% { transform: scale(0.9); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chatbot-toggle svg { width: 25px; height: 25px; position: absolute; transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.chatbot-toggle .icon-close { opacity: 0; transform: rotate(-45deg) scale(0.5); }
.chatbot-widget.open .chatbot-toggle .icon-chat { opacity: 0; transform: rotate(45deg) scale(0.5); }
.chatbot-widget.open .chatbot-toggle .icon-close { opacity: 1; transform: rotate(0) scale(1); }
.chatbot-widget.open .chatbot-toggle::before { display: none; }

.chatbot-window {
  position: absolute;
  bottom: 72px; right: 0;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 140px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34, 1.2, .64, 1);
}
.chatbot-widget.open .chatbot-window { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--gradient); color: #fff; flex: none; }
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; flex: none; }
.chatbot-avatar svg { width: 18px; height: 18px; }
.chatbot-header-info b { display: block; font-size: 14px; }
.chatbot-header-info span { display: block; font-size: 11px; opacity: .85; }
.chatbot-close { background: none; border: none; color: #fff; opacity: .8; cursor: pointer; padding: 4px; display: flex; }
.chatbot-close:hover { opacity: 1; }
.chatbot-close svg { width: 18px; height: 18px; }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chatbot-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.chatbot-msg.bot { align-self: flex-start; background: var(--gray-100); color: var(--ink); border-bottom-left-radius: 4px; }
.chatbot-msg.user { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.chatbot-links { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; max-width: 85%; }
.chatbot-links a { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--accent-2); color: var(--accent-2); font-size: 12.5px; font-weight: 700; transition: background .15s ease, color .15s ease; }
.chatbot-links a:hover { background: var(--accent-2); color: #fff; }

.chatbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; flex: none; }
.chatbot-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.chatbot-chip:hover { background: var(--gray-50); border-color: var(--accent-2); transform: translateY(-1px); }

.chatbot-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--gray-200); flex: none; }
.chatbot-input-row input { flex: 1; min-width: 0; border: 1px solid var(--gray-300); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; }
.chatbot-input-row input:focus { outline: none; border-color: var(--accent-2); }
.chatbot-input-row button { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.chatbot-input-row button:hover { transform: scale(1.08); }
.chatbot-input-row button svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-window { width: calc(100vw - 32px); height: min(500px, calc(100vh - 120px)); bottom: 68px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle::before { animation: none; }
  .chatbot-window { transition: opacity .15s ease; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; margin: 0 auto; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .valuation-banner { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 780px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .usp-card:last-child { border-bottom: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 40px; }
  .form-card { padding: 24px; }
  .product-badges { top: 8px; left: 8px; right: 8px; gap: 4px; }
  .product-badge, .grade-badge { font-size: 8.5px; padding: 4px 7px; letter-spacing: 0; }
}

/* ============================================
   Admin console — shell, sidebar, dashboard
   ============================================ */
body.admin-console { background: var(--gray-50); }
body.admin-console .site-header { display: none; }

.admin-shell { grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.admin-sidebar {
  background: var(--ink);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.admin-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.admin-sidebar-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: none; }
.admin-sidebar-brand b { display: block; color: var(--white); font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.admin-sidebar-brand small { font-size: 11.5px; color: rgba(255, 255, 255, .45); }

.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-tab {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 13px; border-radius: 12px;
  background: none; border: none; font-family: inherit;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .66);
  cursor: pointer; text-align: left;
  transition: background .18s ease, color .18s ease;
}
.admin-tab svg { width: 18px; height: 18px; flex: none; }
.admin-tab:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.admin-tab.active { background: var(--gradient); color: var(--white); box-shadow: 0 8px 22px rgba(162, 75, 255, .35); }
.admin-tab .admin-tab-badge { margin-left: auto; background: var(--white); color: var(--ink); }
.admin-tab.active .admin-tab-badge { background: rgba(0, 0, 0, .28); color: var(--white); }

.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }
.admin-side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 11px;
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55);
  cursor: pointer; text-align: left; transition: background .18s ease, color .18s ease;
}
.admin-side-link svg { width: 16px; height: 16px; flex: none; }
.admin-side-link:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.admin-side-link.danger:hover { background: rgba(255, 95, 109, .16); color: #ff8a94; }

.admin-main { padding: 32px 36px 64px; max-width: 1320px; }
.admin-topbar-text .eyebrow { margin-bottom: 6px; }
.admin-topbar h1 { font-size: 30px; margin-bottom: 5px; }
.admin-topbar-sub { font-size: 14px; color: var(--gray-600); }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-today { font-size: 12.5px; font-weight: 600; color: var(--gray-500); text-transform: capitalize; }
.admin-icon-btn {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); cursor: pointer; transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.admin-icon-btn svg { width: 17px; height: 17px; }
.admin-icon-btn:hover { color: var(--ink); border-color: var(--gray-300); transform: translateY(-1px); }
.admin-icon-btn.spinning svg { animation: adminSpin .8s linear infinite; }
@keyframes adminSpin { to { transform: rotate(360deg); } }

/* Cards and tables on the console canvas */
body.admin-console .form-card { border: 1px solid var(--gray-200); border-radius: 18px; box-shadow: var(--shadow-sm); }
body.admin-console .admin-table-wrap { border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); }
body.admin-console .admin-table th { background: var(--white); border-bottom: 1px solid var(--gray-200); font-weight: 700; }
body.admin-console .admin-table tbody tr { transition: background .15s ease; }
body.admin-console .admin-table tbody tr:hover { background: var(--gray-50); }

body.admin-console .admin-stat-card { border-color: transparent; box-shadow: var(--shadow-sm); border-radius: 18px; }
.admin-stat-card .icon.accent { background: #f3e8ff; color: var(--accent-2); }
.admin-stat-card .icon.success { background: #e9f9ee; color: #178a4c; }
.admin-stat-card .icon.info { background: #e8f0ff; color: var(--accent-3); }

.admin-table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-table-head h2 { font-size: 17px; }
.admin-result-count { font-size: 12.5px; font-weight: 600; color: var(--gray-500); }

/* Toolbar: search, filter chips, primary action */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-search { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.admin-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gray-500); pointer-events: none; }
.admin-search input {
  width: 100%; padding: 11px 16px 11px 40px;
  border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white);
  font-size: 13.5px; font-family: inherit;
}
.admin-search input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(162, 75, 255, .12); }
.admin-search input::-webkit-search-cancel-button { cursor: pointer; }

.admin-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-chip {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: var(--white);
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--gray-600);
  cursor: pointer; transition: all .15s ease;
}
.admin-chip:hover { border-color: var(--gray-300); color: var(--ink); }
.admin-chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.admin-chip.warn.active { background: #b45309; border-color: #b45309; }
.admin-chip.danger.active { background: #c22; border-color: #c22; }
.admin-toolbar .btn-gradient { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }

/* Collapsible product form */
.admin-form-card { margin-bottom: 28px; animation: adminFormIn .28s var(--ease-out); }
.admin-form-card[hidden] { display: none; }
@keyframes adminFormIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.admin-form-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* Toggle switch (es. "proponi batteria nuova") */
.admin-switch-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 17px; margin-top: 4px;
  border: 1px solid var(--gray-200); border-radius: 14px; background: var(--gray-50);
  cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.admin-switch-row:hover { border-color: var(--gray-300); }
.admin-switch-row:has(input:checked) { border-color: var(--accent-2); background: #faf6ff; }
.admin-switch { position: relative; flex: none; margin-top: 2px; }
.admin-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.admin-switch-track {
  display: block; width: 46px; height: 27px; border-radius: 999px;
  background: var(--gray-300); transition: background .22s ease;
}
.admin-switch-thumb {
  display: block; width: 21px; height: 21px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  transform: translate(3px, 3px); transition: transform .22s var(--ease-out);
}
.admin-switch input:checked + .admin-switch-track { background: var(--gradient); }
.admin-switch input:checked + .admin-switch-track .admin-switch-thumb { transform: translate(22px, 3px); }
.admin-switch input:focus-visible + .admin-switch-track { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.admin-switch-text b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.admin-switch-text small { font-size: 12.5px; color: var(--gray-600); line-height: 1.5; }

/* Product table cells */
.admin-product-name { font-weight: 600; }
.admin-product-sub { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.admin-product-sub:empty { display: none; }
.admin-mini-chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 11px; font-weight: 700;
}
.admin-mini-chip.accent { background: #f3e8ff; color: var(--accent-2); }
.admin-battery-chip {
  display: inline-flex; align-items: center; margin-top: 5px;
  padding: 2px 9px; border-radius: 999px;
  background: #e9f9ee; color: #178a4c;
  font-size: 11px; font-weight: 700;
}
.admin-battery-chip.min { background: #d8f5e3; color: #0f6b3a; }
.admin-checkbox--min { margin-top: 2px; font-size: 12.5px; }
.admin-checkbox--min b { color: #0f6b3a; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    position: sticky; top: 0; height: auto; z-index: 20; min-width: 0;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 10px 14px; overflow-x: auto;
  }
  .admin-sidebar-brand { padding: 0; flex: none; }
  .admin-sidebar-brand span { display: none; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-tab { padding: 9px 13px; white-space: nowrap; }
  .admin-sidebar-foot { margin-top: 0; margin-left: auto; flex-direction: row; border-top: none; padding-top: 0; }
  .admin-side-link span { display: none; }
  .admin-main { padding: 24px 20px 56px; }
  .admin-topbar h1 { font-size: 24px; }
}
@media (max-width: 620px) {
  .admin-toolbar .btn-gradient { margin-left: 0; width: 100%; justify-content: center; }
  .admin-search { max-width: none; }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: minmax(0, 1fr); }
  .admin-stat-card { padding: 16px 18px; }
  .admin-main { padding: 20px 16px 48px; }
}
