@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&family=Nunito+Sans:wght@600;700;800;900&family=Poppins:wght@500;600;700;800;900&family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --blue: #0038ff;
  --dark: #05081f;
  --navy: #080b37;
  --text: #070a22;
  --muted: #17255f;
  --line: #dfe6f7;
  --soft: #f5f7ff;
  --card: rgba(255, 255, 255, 0.86);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(0, 56, 255, 0.08), transparent 34%),
    linear-gradient(115deg, #f7faff 0%, #ffffff 34%, #f4f8ff 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(130deg, transparent 0 38px, rgba(0, 56, 255, 0.055) 39px, transparent 40px);
  opacity: 0.45;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.header {
  width: min(100% - 56px, 1460px);
  height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  align-items: center;
}

.brand-placeholder {
  width: 230px;
  height: 42px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 58px;
  font-size: 14px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
}

.login {
  color: var(--dark);
}

.btn {
  height: 62px;
  padding: 0 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #0637ff 0%, #02033d 86%);
  box-shadow: 0 16px 28px rgba(0, 24, 140, 0.26);
}

.btn-secondary {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cfd8f1;
  box-shadow: 0 10px 24px rgba(10, 20, 80, 0.06);
}

.btn.small {
  height: 42px;
  width: 224px;
  font-size: 12px;
  padding: 0 18px;
}

.page {
  width: min(100% - 68px, 1428px);
  margin: 0 auto 46px;
}

.hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 38px;
  align-items: center;
  padding-top: 4px;
}

.hero-left {
  position: relative;
  padding-top: 72px;
}

.star {
  width: 44px;
  height: 44px;
  position: absolute;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  background: var(--blue);
  box-shadow: 0 0 20px rgba(0, 56, 255, 0.35);
  border-radius: 99px;
}

.star::before {
  width: 44px;
  height: 5px;
  top: 19px;
  left: 0;
}

.star::after {
  width: 5px;
  height: 44px;
  left: 19px;
  top: 0;
}

.star-left {
  left: -42px;
  top: 72px;
}

.hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.29;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--blue);
}

.hero-left p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}

.cloud-icon {
  font-size: 20px;
}

.play-icon {
  width: 22px;
  height: 22px;
  border: 2px solid #02083c;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
}

.dashboard {
  height: 546px;
  display: grid;
  grid-template-columns: 230px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 58px rgba(15, 25, 88, 0.13);
  overflow: hidden;
}

.dashboard-sidebar {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.dashboard-logo-placeholder {
  height: 38px;
  margin: 0 18px 20px;
}

.side-menu {
  display: grid;
  gap: 8px;
}

.side-menu a,
.logout {
  height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: #07103e;
  font-size: 13px;
  font-weight: 800;
}

.side-menu a.active {
  color: var(--blue);
  background: #eef2ff;
}

.logout {
  margin-top: auto;
}

.dashboard-main {
  padding: 18px 18px 14px;
}

.dashboard-top {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-top h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.dashboard-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-tools button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.bell {
  font-size: 22px;
  color: #07103e;
}

.dashboard-grid {
  height: calc(100% - 52px);
  display: grid;
  grid-template-columns: 1.06fr 0.92fr;
  grid-template-rows: 1.55fr 0.85fr;
  gap: 14px 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(12, 22, 80, 0.06);
}

.panel h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.upload-first {
  padding: 22px 26px;
  text-align: left;
}

.file-scene {
  height: 120px;
  margin: 4px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.file-scene span,
.main-file {
  width: 42px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(8, 18, 78, 0.08);
  font-size: 10px;
  font-weight: 900;
  transform: rotate(-14deg);
}

.file-scene span:nth-child(2),
.file-scene span:nth-child(4) {
  transform: rotate(14deg);
}

.main-file {
  width: 76px;
  height: 92px;
  transform: none;
  font-size: 27px;
  background: linear-gradient(145deg, #eaf0ff, white);
}

.upload-first .btn {
  margin: 0 auto 10px;
}

.upload-box {
  padding: 22px 20px;
}

.dropzone {
  height: 226px;
  margin-top: 16px;
  border: 1px dashed #b9c5e8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.drop-icon {
  font-size: 34px;
  color: #07103e;
}

.dropzone strong {
  font-size: 13px;
}

.dropzone span {
  color: var(--muted);
  font-size: 12px;
}

.dropzone button {
  height: 40px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 20px rgba(8, 18, 78, 0.08);
  font-weight: 800;
}

.dropzone small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payments {
  padding: 18px 20px;
}

.payments p {
  margin: 8px 0 12px;
}

.payment-row {
  height: 38px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.pay-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.stripe {
  background: var(--blue);
}

.paypal {
  background: #50caff;
  color: #05205b;
}

.payment-row button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: var(--blue);
  background: #f0f3fb;
  font-size: 11px;
  font-weight: 900;
}

.withdraw-manage-btn {
  display: block;
  width: 210px;
  min-width: 210px;
  height: 44px;
  margin: 24px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  background: #f0f3fb;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
}

.commission {
  position: relative;
  padding: 18px 24px;
  overflow: hidden;
}

.commission strong {
  display: block;
  margin-top: 8px;
  font-size: 52px;
  line-height: 0.95;
}

.commission p {
  margin: 0;
}

.commission > span {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  background: #eef2ff;
  font-size: 12px;
  font-weight: 800;
}

.small-star {
  right: 34px;
  top: 74px;
  transform: scale(0.82);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.feature-card {
  height: 96px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 15px 34px rgba(12, 22, 80, 0.07);
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  align-items: center;
  gap: 16px;
}

.feature-icon,
.cta-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, #073aff, #02032f 82%);
  box-shadow: 0 13px 26px rgba(0, 25, 145, 0.22);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.feature-card button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 8px 18px rgba(8, 18, 78, 0.1);
  font-size: 18px;
  font-weight: 900;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.36fr;
  gap: 14px;
  margin-top: 14px;
}

.card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 15px 34px rgba(12, 22, 80, 0.07);
}

.how {
  padding: 22px 36px;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.step {
  display: grid;
  grid-template-columns: 36px 58px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.step > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(8, 18, 78, 0.08);
  font-weight: 900;
}

.circle-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eef2ff;
  font-size: 31px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.price {
  padding: 22px 34px;
}

.big-rate {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.big-rate strong {
  font-size: 54px;
  line-height: 0.9;
}

.big-rate span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price p,
.price small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.payment-badges {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.payment-badges span {
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: #f1f3f8;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.payment-badges span:nth-child(2) {
  color: #0b64b4;
  font-size: 20px;
  font-style: italic;
}

.cta {
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  align-items: center;
}

.cta-icon {
  width: 70px;
  height: 70px;
}

.cta h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.18;
}

.cta h2 span {
  color: var(--blue);
}

.cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}

.cta-buttons .btn {
  height: 50px;
  min-width: 178px;
}

@media (max-width: 1100px) {
  .header,
  .page {
    width: min(100% - 28px, 100%);
  }

  .header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 20px 0;
    gap: 18px;
  }

  .brand-placeholder {
    display: none;
  }

  .nav,
  .header-actions {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .dashboard {
    height: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-grid,
  .features,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    height: auto;
  }

  .panel {
    min-height: 220px;
  }
}

/* === FIX SPACING COME SCREENSHOT 3 === */

body {
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 56, 255, 0.07), transparent 34%),
    linear-gradient(115deg, #f8fbff 0%, #ffffff 36%, #f4f8ff 100%);
}

.header {
  width: min(100% - 56px, 1478px);
  height: 76px;
  grid-template-columns: 300px 1fr 300px;
  padding: 0;
}

.nav {
  gap: 58px;
}

.header-actions .btn {
  width: 166px;
  height: 52px;
}

.page {
  width: min(100% - 68px, 1422px);
  margin: 0 auto 48px;
}

.hero {
  grid-template-columns: 430px 1fr;
  gap: 34px;
  align-items: start;
  padding-top: 0;
}

.hero-left {
  padding-top: 136px;
}

.star-left {
  left: -44px;
  top: 64px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.27;
  font-weight: 900;
}

.hero-left p {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.52;
}

.hero-buttons {
  margin-top: 34px;
  gap: 16px;
}

.hero-buttons .btn {
  height: 62px;
}

.hero-buttons .btn-primary {
  width: 204px;
}

.hero-buttons .btn-secondary {
  width: 216px;
}

.dashboard {
  height: 542px;
  grid-template-columns: 232px 1fr;
  border-radius: 8px;
}

.dashboard-sidebar {
  padding: 26px 16px 24px;
}

.dashboard-logo-placeholder {
  height: 38px;
  margin: 0 18px 20px;
}

.side-menu {
  gap: 7px;
}

.side-menu a,
.logout {
  height: 48px;
  padding: 0 18px;
}

.dashboard-main {
  padding: 18px 18px 14px;
}

.dashboard-top {
  height: 42px;
}

.dashboard-top h2 {
  font-size: 24px;
}

.dashboard-grid {
  height: calc(100% - 52px);
  grid-template-columns: 1.06fr 0.92fr;
  grid-template-rows: 302px 152px;
  gap: 14px 18px;
}

.panel {
  min-height: 0;
  overflow: hidden;
}

.upload-first {
  padding: 21px 26px;
}

.upload-first p {
  margin: 10px 0 0;
}

.file-scene {
  height: 112px;
  margin: 6px 0 6px;
}

.upload-first .btn.small {
  width: 224px;
  height: 40px;
  margin-bottom: 9px;
}

.upload-box {
  padding: 21px 20px;
}

.dropzone {
  height: 226px;
  margin-top: 15px;
}

.payments {
  padding: 18px 20px;
}

.commission {
  padding: 18px 24px;
}

.commission strong {
  font-size: 52px;
}

.features {
  margin-top: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  height: 96px;
  padding: 16px 18px;
  grid-template-columns: 64px 1fr 34px;
  gap: 16px;
}

.bottom-grid {
  margin-top: 14px;
  grid-template-columns: 0.93fr 0.92fr 1.2fr;
  gap: 14px;
}

.card {
  min-height: 272px;
}

.how {
  padding: 22px 36px;
}

.price {
  padding: 22px 34px;
}

.cta {
  padding: 22px 32px;
  grid-template-columns: 82px 1fr;
  gap: 24px;
}

.cta-buttons {
  margin-top: 24px;
  gap: 40px;
}

.cta-buttons .btn {
  height: 50px;
}

@media (max-width: 1100px) {
  .header,
  .page {
    width: min(100% - 28px, 100%);
  }

  .header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 20px 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding-top: 50px;
  }

  .dashboard {
    height: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .features,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    height: auto;
    grid-template-rows: auto;
  }

  .panel {
    min-height: 220px;
  }
}

/* === REFINEMENT ICONS + SPACING === */

:root {
  --radius-soft: 12px;
}

.btn,
.panel,
.card,
.feature-card,
.dropzone,
.dashboard,
.dashboard-tools button,
.payment-row button,
.dropzone button,
.side-menu a,
.logout {
  border-radius: var(--radius-soft);
}

.header-actions .btn,
.hero-buttons .btn {
  border-radius: 10px;
}

.btn {
  gap: 16px;
}

.icon-upload {
  width: 22px;
  height: 18px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.icon-upload::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.icon-upload::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-play {
  width: 24px;
  height: 24px;
  border: 2px solid #02083c;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.icon-play::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-left: 7px solid #02083c;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.icon-arrow {
  width: 24px;
  height: 14px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.icon-arrow::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.icon-arrow::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero {
  grid-template-columns: 455px minmax(880px, 1fr);
  gap: 26px;
}

.hero-left {
  padding-top: 132px;
}

.dashboard {
  height: 542px;
  grid-template-columns: 232px 1fr;
}

.dashboard-main {
  padding: 18px 18px 14px 20px;
}

.dashboard-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(310px, 0.95fr);
  grid-template-rows: 300px 154px;
  gap: 16px 20px;
}

.upload-first {
  padding: 24px 30px;
}

.upload-box {
  padding: 24px 24px;
}

.payments,
.commission {
  padding: 20px 24px;
}

.features {
  margin-top: 14px;
  gap: 16px;
}

.feature-card {
  height: 98px;
  padding: 17px 20px;
  grid-template-columns: 66px 1fr 36px;
}

.bottom-grid {
  margin-top: 16px;
  gap: 16px;
  grid-template-columns: 0.95fr 0.95fr 1.18fr;
}

.card {
  min-height: 276px;
}

.how {
  padding: 24px 40px;
}

.price {
  padding: 24px 38px;
}

.cta {
  padding: 24px 36px;
}

.payment-badges {
  gap: 14px;
}

.logo-badge {
  width: 144px;
  height: 52px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f8;
}

.logo-badge svg {
  width: 118px;
  height: 44px;
  display: block;
}

.stripe-logo text {
  fill: #0646ff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.paypal-logo text {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 900;
}

.paypal-logo .pay {
  fill: #003087;
}

.paypal-logo .pal {
  fill: #009cde;
}

.payment-row {
  height: 42px;
}

.payment-row button {
  min-width: 94px;
}

.commission > span {
  border-radius: 9px;
}

.feature-card button {
  width: 38px;
  height: 38px;
}

@media (min-width: 1400px) {
  .page {
    width: min(100% - 88px, 1450px);
  }
}

/* === ALLINEAMENTO GENERALE + RIMOZIONE + BLU === */

.star-left {
  display: none;
}

.page {
  width: min(100% - 72px, 1440px);
  margin-inline: auto;
}

.header {
  width: min(100% - 72px, 1440px);
  grid-template-columns: 330px 1fr 330px;
}

.header-actions {
  padding-right: 0;
}

.header-actions .btn {
  width: 168px;
  height: 54px;
}

/* Hero più simile alla reference: dashboard meno enorme e più allineata */
.hero {
  grid-template-columns: 430px 1fr;
  gap: 40px;
  align-items: start;
}

.hero-left {
  padding-top: 180px;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.hero-left p {
  max-width: 430px;
}

.hero-buttons {
  gap: 18px;
}

.hero-buttons .btn-primary {
  width: 198px;
}

.hero-buttons .btn-secondary {
  width: 216px;
}

/* Box dashboard leggermente più piccolo e più arioso */
.dashboard {
  height: 520px;
  grid-template-columns: 224px 1fr;
}

.dashboard-main {
  padding: 18px 18px 14px;
}

.dashboard-grid {
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 286px 150px;
  gap: 16px 18px;
}

.upload-first {
  padding: 22px 28px;
}

.upload-box {
  padding: 22px 22px;
}

.dropzone {
  height: 214px;
}

.file-scene {
  height: 102px;
}

/* Tutti i blocchi sotto usano la stessa larghezza della parte sopra */
.features,
.bottom-grid {
  width: 100%;
}

.features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  height: 94px;
  padding: 16px 18px;
}

.bottom-grid {
  grid-template-columns: 0.95fr 0.95fr 1.58fr;
  gap: 16px;
  margin-top: 34px;
}

.card {
  min-height: 272px;
}

/* CTA più proporzionata come nella reference */
.cta {
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 24px 34px;
}

.cta-buttons {
  gap: 36px;
}

.cta-buttons .btn-primary {
  width: 178px;
}

.cta-buttons .btn-secondary {
  width: 236px;
}

/* Angoli meno spigolosi, ma non troppo tondi */
.dashboard,
.panel,
.feature-card,
.card,
.dropzone,
.btn,
.logo-badge,
.payment-row button,
.dropzone button {
  border-radius: 10px;
}

/* Trasforma il + della commissione in stellina più simile alla reference */
.commission .small-star {
  display: block;
  position: absolute;
  right: 34px;
  top: 72px;
  width: 46px;
  height: 46px;
  transform: none;
}

.commission .small-star::before,
.commission .small-star::after {
  display: none;
}

.commission .small-star {
  background: #0646ff;
  clip-path: polygon(
    50% 0%,
    58% 38%,
    100% 50%,
    58% 62%,
    50% 100%,
    42% 62%,
    0% 50%,
    42% 38%
  );
  filter: drop-shadow(0 0 18px rgba(0, 56, 255, 0.45));
}

/* === LOGHI REALI STRIPE / PAYPAL === */

.payment-badges.logo-payments {
  display: flex;
  gap: 14px;
  margin: 14px 0 16px;
}

.logo-payments .payment-logo-card {
  width: 144px;
  height: 52px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f1f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-payments img {
  display: block;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
}

.logo-payments .payment-logo-card:first-child img {
  max-height: 28px;
}

.logo-payments .payment-logo-card:nth-child(2) img {
  max-height: 31px;
}

/* === LOGHI REALI NELLA DASHBOARD === */

.payment-row {
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
}

.pay-method-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f2f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pay-method-logo img {
  display: block;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
}

.pay-method-logo.stripe-box {
  background: #6273E9;
}

/* === SIDEBAR DASHBOARD PIU STRETTA === */

.dashboard {
  grid-template-columns: 175px 1fr;
}

.dashboard-sidebar {
  padding-left: 14px;
  padding-right: 14px;
}

.side-menu a,
.logout {
  padding-left: 16px;
  padding-right: 14px;
}

.dashboard-main {
  padding-left: 22px;
}

.dashboard-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

/* === ICONE IMMAGINE NEI BOTTONI === */

.btn-img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.btn-img-cloud {
  width: 22px;
  height: 22px;
}

.btn.small .btn-img-cloud {
  width: 18px;
  height: 18px;
}

.btn-img-play {
  width: 36px;
  height: 36px;
}

.btn.small .btn-img-play {
  width: 34px;
  height: 34px;
}

/* Se restano vecchie icone CSS o emoji, le nasconde */
.icon-upload,
.icon-play,
.cloud-icon,
.play-icon {
  display: none !important;
}

/* Pulsanti Carica prodotto senza freccia: testo centrato meglio */
.btn-primary {
  gap: 12px;
}

.btn-primary.small {
  gap: 9px;
}

/* === BOX DASHBOARD UN PO PIU STRETTO === */

.hero {
  grid-template-columns: 430px minmax(0, 920px);
  justify-content: space-between;
}

.dashboard {
  width: 100%;
}

/* === DASHBOARD PIU ALTA === */

.dashboard {
  height: 650px;
}

.dashboard-grid {
  grid-template-rows: 316px 164px;
}

.upload-first,
.upload-box {
  min-height: 316px;
}

.payments,
.commission {
  min-height: 164px;
}

.dropzone {
  height: 244px;
}

.file-scene {
  height: 126px;
}

/* === FRECCE CARD PERFETTAMENTE CENTRATE === */

.feature-card button {
  position: relative;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card button::before {
  content: "";
  width: 14px;
  height: 2px;
  background: #02083c;
  border-radius: 999px;
  transform: translateX(-1px);
}

.feature-card button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid #02083c;
  border-right: 2px solid #02083c;
  transform: translateX(2px) rotate(45deg);
}

/* === FRECCIA IMMAGINE NEI 4 BOX ORIZZONTALI === */

.feature-card button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  font-size: 0;
}

.feature-card button::before,
.feature-card button::after {
  display: none !important;
}

.feature-card button img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
  transform: translateX(0);
}

/* === MINI BOX CARICA PRIMO PRODOTTO: SOLO BOTTONE SECONDARIO === */

.upload-first {
  display: flex;
  flex-direction: column;
}

.upload-first p {
  margin-bottom: 0;
}

.file-scene {
  height: 156px;
  margin: 18px 0 18px;
}

.upload-first .btn-secondary.small {
  width: 224px;
  height: 42px;
  margin: 0 auto;
}

/* Il vecchio bottone primario, se per errore resta nel markup, viene nascosto */
.upload-first .btn-primary.small {
  display: none;
}

/* === FRECCIA BIANCA IMMAGINE NEI BOTTONI INIZIA ORA === */

.btn-img-arrow-white {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.header-actions .btn .btn-img-arrow-white {
  width: 24px;
  height: 24px;
}

.cta-buttons .btn .btn-img-arrow-white {
  width: 22px;
  height: 22px;
}

/* Nasconde eventuali vecchie frecce rimaste */
.btn-primary .icon-arrow,
.btn-primary > span:not(.icon-upload):not(.icon-play):not(.cloud-icon):not(.play-icon) {
  display: none;
}

/* === ICONA PORTAFOGLIO DA FILE === */

.step-img-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.wallet-img-icon {
  width: 55px;
  height: 55px;
}

/* === BOTTONE HERO "SCOPRI COME FUNZIONA" PIU LARGO E CENTRATO === */

.hero-buttons .btn-secondary {
  width: 270px;
  height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.hero-buttons .btn-secondary .btn-img-play {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.hero-buttons .btn-secondary {
  font-size: 16px;
  font-weight: 900;
}

/* === BOTTONI SECONDARI CON CORNICE BLU NOTTE === */

:root {
  --button-navy: #02033d;
}

.btn-secondary {
  border: 2px solid var(--button-navy);
}

/* Tasto "Scopri come funziona" dentro la dashboard */
.upload-first .btn-secondary.small {
  width: 255px;
  height: 46px;
  font-size: 14px;
  gap: 14px;
  border-color: var(--button-navy);
}

/* Icona play nel bottone dashboard */
.upload-first .btn-secondary.small .btn-img-play {
  width: 28px;
  height: 28px;
}

/* Tasto "Scopri come funziona" della hero */
.hero-buttons .btn-secondary {
  border-color: var(--button-navy);
}

/* Tasto "Scopri la piattaforma" in basso */
.cta-buttons .btn-secondary {
  border-color: var(--button-navy);
}

/* === CENTRATURA PERFETTA BOTTONI SECONDARI CON PLAY === */

.hero-buttons .btn-secondary,
.upload-first .btn-secondary.small,
.cta-buttons .btn-secondary {
  display: inline-grid;
  grid-template-columns: max-content 30px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  column-gap: 18px;
  text-align: center;
}

.hero-buttons .btn-secondary .btn-img-play,
.upload-first .btn-secondary.small .btn-img-play,
.cta-buttons .btn-secondary .btn-img-play {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin: 0;
  transform: none;
}

.upload-first .btn-secondary.small {
  grid-template-columns: max-content 20px;
  column-gap: 15px;
}

/* === BOTTONE HERO "SCOPRI COME FUNZIONA" INDIPENDENTE === */

.hero-how-btn {
  width: 300px;
  height: 62px;
  padding: 0 24px;
  display: grid !important;
  grid-template-columns: 1fr 28px;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  border: 2px solid #02033d;
}

.hero-how-btn .btn-img-play {
  width: 28px;
  height: 28px;
  justify-self: center;
  object-fit: contain;
}

.hero-how-btn {
  font-size: 18px;
  font-weight: 900;
}

/* === PULSANTE SCEGLI FILE BLU NOTTE SOFT === */

.dropzone button {
  color: #ffffff;
  background: linear-gradient(135deg, #1238ff 0%, #050746 88%);
  border: 0;
  box-shadow:
    0 19px 29px rgba(5, 7, 70, 0.4),
    0 0 38px rgba(18, 56, 255, 0.4);
}

.dropzone button:hover {
  background: linear-gradient(135deg, #1742ff 0%, #07094f 88%);
}

/* === LINK LINGUA NAVBAR === */

.nav {
  align-items: center;
}

.language-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.planet-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #05081f;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.planet-icon::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 20px;
  height: 7px;
  border: 2px solid #05081f;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  transform: rotate(-18deg);
}

.chevron-down {
  width: 8px;
  height: 8px;
  border-right: 2px solid #05081f;
  border-bottom: 2px solid #05081f;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  flex: 0 0 auto;
}

/* === BANDIERA ITALIA NAVBAR === */

.italy-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(5, 8, 31, 0.12);
  background: linear-gradient(
    90deg,
    #009246 0 33.333%,
    #ffffff 33.333% 66.666%,
    #ce2b37 66.666% 100%
  );
}

/* === ICONE 4 FEATURE BOX COME REFERENCE === */

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

/* 1. pagina prodotto */
.feature-page::before {
  width: 30px;
  height: 32px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  left: 15px;
  top: 13px;
}

.feature-page::after {
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  right: 12px;
  bottom: 13px;
  background: transparent;
}

/* piccola lente */
.feature-page {
  background:
    linear-gradient(#ffffff, #ffffff) 42px 45px / 10px 3px no-repeat,
    linear-gradient(135deg, #073aff, #02032f 82%);
}

/* 2. carrello */
.feature-cart::before {
  width: 34px;
  height: 26px;
  border: 3px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  left: 13px;
  top: 18px;
  transform: skewX(-8deg);
}

.feature-cart::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  left: 19px;
  bottom: 13px;
  box-shadow: 22px 0 0 #ffffff;
}

.feature-cart {
  background:
    linear-gradient(#ffffff, #ffffff) 10px 16px / 12px 3px no-repeat,
    linear-gradient(135deg, #073aff, #02032f 82%);
}

/* 3. carta pagamento */
.feature-card-pay::before {
  width: 35px;
  height: 26px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  left: 12px;
  top: 16px;
}

.feature-card-pay::after {
  width: 35px;
  height: 4px;
  background: #ffffff;
  left: 12px;
  top: 24px;
}

.feature-card-pay {
  background:
    linear-gradient(#ffffff, #ffffff) 19px 35px / 11px 3px no-repeat,
    linear-gradient(#ffffff, #ffffff) 34px 35px / 10px 3px no-repeat,
    linear-gradient(135deg, #073aff, #02032f 82%);
}

/* 4. dashboard chart */
.feature-chart::before {
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: #ffffff;
  left: 17px;
  bottom: 16px;
  box-shadow:
    12px -9px 0 #ffffff,
    24px -20px 0 #ffffff;
}

.feature-chart::after {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  left: 13px;
  bottom: 13px;
}

.feature-chart {
  background: linear-gradient(135deg, #073aff, #02032f 82%);
}

/* === IMMAGINI ICONE FEATURE BOX === */

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.feature-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-card button img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.nav {
  transform: translateX(3.8px);
}

.header {
  height: auto;
  padding-top: 24px;
  padding-bottom: 24px;
}

.dashboard-tools {
  display: none;
}

.dashboard-main {
  padding-top: 32px;
}

.dashboard-top {
  height: 58px;
}

.dashboard-grid {
  margin-top: 10px;
}

/* === SCROLLBAR DENTRO IL BOX DASHBOARD === */

.dashboard {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Stile tipo scrollbar del computer */
.dashboard::-webkit-scrollbar {
  width: 12px;
}

.dashboard::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard::-webkit-scrollbar-thumb {
  background: #8b8b8b;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.dashboard::-webkit-scrollbar-thumb:hover {
  background: #6f6f6f;
  border: 3px solid transparent;
  background-clip: content-box;
}

.dashboard {
  overflow: hidden;
}

.dashboard-main {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === BOX METODI/PAGAMENTI E COMMISSIONE PIU ALTI === */

.dashboard-grid {
  grid-template-rows: 310px 205px;
  row-gap: 22px;
}

.payments,
.commission {
  min-height: 150px;
  padding-top: 20px;
  padding-bottom: 0px;
}

/* === GAP SOTTO DENTRO IL BOX DASHBOARD === */

.dashboard-main {
  padding-bottom: 28px;
}

.dashboard-grid {
  padding-bottom: 28px;
}

/* === PREMIUM BLUE DETAILS: Apple x Linear x Stripe === */

:root {
  --premium-navy: #02033d;
  --premium-blue: #0646ff;
  --premium-line: rgba(6, 70, 255, 0.08);
  --premium-glow: rgba(6, 70, 255, 0.11);
  --premium-glow-soft: rgba(6, 70, 255, 0.055);
}

/* Sfondo: linee diagonali ultra sottili */
body {
  background:
    radial-gradient(circle at 82% 12%, rgba(6, 70, 255, 0.08), transparent 28%),
    radial-gradient(circle at 8% 86%, rgba(2, 3, 61, 0.045), transparent 30%),
    linear-gradient(115deg, #f8fbff 0%, #ffffff 38%, #f4f8ff 100%);
}

body::after {
  background:
    repeating-linear-gradient(
      132deg,
      transparent 0 42px,
      rgba(6, 70, 255, 0.045) 43px,
      transparent 44px
    );
  opacity: 0.42;
}

/* Flare astratti quasi invisibili */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 20%, rgba(6, 70, 255, 0.16) 0 2px, transparent 18px),
    radial-gradient(circle at 91% 58%, rgba(6, 70, 255, 0.12) 0 2px, transparent 20px),
    radial-gradient(circle at 68% 91%, rgba(2, 3, 61, 0.08) 0 1px, transparent 18px);
  opacity: 0.55;
}

/* Glow raffinato dietro blocchi principali */
.dashboard,
.cta,
.card,
.feature-card,
.panel {
  border-color: rgba(6, 70, 255, 0.13);
  box-shadow:
    0 18px 44px rgba(8, 22, 88, 0.075),
    0 0 42px rgba(6, 70, 255, 0.045);
}

/* Dashboard più premium */
.dashboard {
  position: relative;
  box-shadow:
    0 24px 70px rgba(8, 22, 88, 0.11),
    0 0 80px rgba(6, 70, 255, 0.075);
}

/* Riflesso blu sottile sui bordi */
.dashboard,
.panel,
.card,
.feature-card,
.btn {
  background-clip: padding-box;
}

.panel,
.card,
.feature-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 8% 0%, rgba(6, 70, 255, 0.055), transparent 34%);
}

/* Pulsanti con ombra blu, non nera */
.btn-primary {
  box-shadow:
    0 16px 34px rgba(2, 3, 61, 0.22),
    0 0 34px rgba(6, 70, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Pulsanti secondari: micro bordo premium */
.btn-secondary {
  box-shadow:
    0 10px 24px rgba(8, 22, 88, 0.055),
    inset 0 1px 0 rgba(6, 70, 255, 0.08);
}

/* Highlight luminoso sulle icone blu */
.feature-icon,
.cta-icon,
.brand-mark {
  box-shadow:
    0 14px 30px rgba(2, 3, 61, 0.2),
    0 0 26px rgba(6, 70, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Angoli delle sezioni con luce blu quasi invisibile */
.hero,
.features,
.bottom-grid {
  position: relative;
}

.hero::after,
.bottom-grid::after {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(6, 70, 255, 0.045), transparent 32%),
    linear-gradient(315deg, rgba(2, 3, 61, 0.035), transparent 28%);
  border-radius: 18px;
}

/* Micro riflesso al passaggio */
.feature-card:hover,
.card:hover,
.panel:hover {
  border-color: rgba(6, 70, 255, 0.2);
  box-shadow:
    0 20px 48px rgba(8, 22, 88, 0.09),
    0 0 48px rgba(6, 70, 255, 0.065);
}

/* === MANROPE PER TUTTI I TESTI SECONDARI === */

body,
.nav,
.header-actions,
.btn,
.hero-left p,
.dashboard,
.panel,
.feature-card,
.card,
.dropzone,
.payment-row,
.side-menu,
.logout,
.language-link {
  font-family: "Manrope", Arial, sans-serif;
}

/* Mantiene invariato il font del titolo principale */
.hero h1,
.hero h1 span {
  font-family: inherit;
}

/* === LOGO + SCRITTA NELLA HERO === */

.hero-left {
  position: relative;
}

.hero-logo {
  display: block;
  width: 52px;
  height: auto;
  object-fit: contain;

  --hero-logo-x: 0px;
  --hero-logo-y: -180px;

  transform: translate(var(--hero-logo-x), var(--hero-logo-y));
  margin-bottom: 12px;
}

.hero-scritta {
  display: block;
  width: 400px;
  height: auto;
  object-fit: contain;

  --scritta-x: 0px;
  --scritta-y: -160px;

  transform: translate(var(--scritta-x), var(--scritta-y));
  margin-bottom: -8px;
}

.hero h1 {
  margin-top: -122px;
}

/* === LOGO BIANCO NEL QUADRATO CTA === */

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-icon img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* === STATO ACCOUNT CARD === */

.account-state {
  padding: 24px 28px;
}

.account-state h3 {
  margin-bottom: 18px;
}

.account-checklist {
  display: grid;
  gap: 13px;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #07103e;
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd6f3;
  background: #f7f9ff;
  flex: 0 0 auto;
}

<div class="account-item done">

.account-item.done .status-dot {
  border-color: #20c97a;
  background: #20c97a;
  position: relative;
}

.account-item.done .status-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* === SCROLLBAR DASHBOARD BLU NOTTE E ARROTONDATA === */

.dashboard-main {
  scrollbar-width: thin;
  scrollbar-color: #02033d transparent;
}

.dashboard-main::-webkit-scrollbar {
  width: 8px;
}

.dashboard-main::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.dashboard-main::-webkit-scrollbar-thumb {
  background: #02033d;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dashboard-main::-webkit-scrollbar-thumb:hover {
  background: #03065a;
}

/* === PREMIUM HOVER EFFECTS: Linear x Stripe x Apple === */

:root {
  --premium-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --premium-hover-shadow:
    0 22px 48px rgba(8, 22, 88, 0.11),
    0 0 42px rgba(6, 70, 255, 0.08);
  --premium-hover-border: rgba(6, 70, 255, 0.22);
}

.btn,
.feature-card,
.panel,
.card,
.dropzone,
.payment-row button,
.withdraw-manage-btn,
.feature-card button,
.side-menu a,
.logout,
.language-link {
  transition:
    transform 0.38s var(--premium-ease),
    box-shadow 0.38s var(--premium-ease),
    border-color 0.38s var(--premium-ease),
    background 0.38s var(--premium-ease),
    opacity 0.38s var(--premium-ease);
  will-change: transform;
}

/* Card e box principali */
.feature-card:hover,
.panel:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: var(--premium-hover-border);
  box-shadow: var(--premium-hover-shadow);
}

/* Pulsanti */
.btn:hover,
.payment-row button:hover,
.withdraw-manage-btn:hover,
.feature-card button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 34px rgba(8, 22, 88, 0.12),
    0 0 30px rgba(6, 70, 255, 0.08);
}

/* Upload box */
.dropzone:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 70, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(6, 70, 255, 0.06),
    0 18px 38px rgba(8, 22, 88, 0.08),
    0 0 34px rgba(6, 70, 255, 0.06);
}

/* Sidebar e nav */
.side-menu a:hover,
.logout:hover,
.language-link:hover {
  color: #0646ff;
  background: rgba(6, 70, 255, 0.055);
}

/* Micro highlight sulle icone */
.feature-card:hover .feature-icon,
.card:hover .cta-icon,
.panel:hover .pay-method-logo,
.panel:hover .main-file {
  box-shadow:
    0 14px 30px rgba(2, 3, 61, 0.16),
    0 0 28px rgba(6, 70, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.feature-icon,
.cta-icon,
.pay-method-logo,
.main-file {
  transition:
    transform 0.38s var(--premium-ease),
    box-shadow 0.38s var(--premium-ease);
}

/* Click: leggerissimo ritorno */
.btn:active,
.feature-card:active,
.panel:active,
.card:active,
.dropzone:active,
.feature-card button:active {
  transform: translateY(-1px);
}

/* Accessibilita: niente animazioni se disattivate dal sistema */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature-card,
  .panel,
  .card,
  .dropzone,
  .payment-row button,
  .withdraw-manage-btn,
  .feature-card button,
  .side-menu a,
  .logout,
  .language-link,
  .feature-icon,
  .cta-icon,
  .pay-method-logo,
  .main-file {
    transition: none;
  }

  .btn:hover,
  .feature-card:hover,
  .panel:hover,
  .card:hover,
  .dropzone:hover,
  .payment-row button:hover,
  .withdraw-manage-btn:hover,
  .feature-card button:hover {
    transform: none;
  }
}

/* alza solo la freccia del primo box */
.feature-card-first button {
  transform: translateY(-6.35px);
}

.payments .payment-row:first-of-type {
  margin-top: 30px;
}

/* === FEATURE BOX INTACTE + SCROLL ORIZZONTALE SOLO SE SERVE === */

.features {
  --feature-card-width: 340px;
  --feature-card-height: 116px;

  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px;

  width: 100%;
  min-height: var(--feature-card-height);

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.feature-card {
  flex: 0 0 var(--feature-card-width);
  width: var(--feature-card-width);
  min-width: var(--feature-card-width);
  max-width: var(--feature-card-width);

  height: var(--feature-card-height);
  min-height: var(--feature-card-height);
  max-height: var(--feature-card-height);

  grid-template-columns: 66px 1fr 38px;
  overflow: visible;
  scroll-snap-align: start;
}

.feature-card h3,
.feature-card p {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.features::-webkit-scrollbar {
  height: 7px;
}

.features::-webkit-scrollbar-track {
  background: transparent;
}

.features::-webkit-scrollbar-thumb {
  background: #02033d;
  border-radius: 999px;
}

.features {
  scrollbar-width: thin;
  scrollbar-color: #02033d transparent;
}

/* === SCROLLBAR FEATURE QUASI INVISIBILE === */

.features::-webkit-scrollbar {
  height: 3px;
}

.features::-webkit-scrollbar-track {
  background: transparent;
}

.features::-webkit-scrollbar-thumb {
  background: rgba(2, 3, 61, 0.18);
  border-radius: 999px;
}

.features {
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 3, 61, 0.18) transparent;
}

.features {
  scrollbar-width: none;
}

.features::-webkit-scrollbar {
  display: none;
}

/* === SPAZIO HOVER FEATURE CARD SENZA TAGLIO === */

.features {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 12px;
  margin-top: 12px;
}

/* evita che lo scroll verticale compaia */
.features {
  clip-path: inset(-16px 0 -16px 0);
}

/* === GAP UGUALE SOPRA E SOTTO FEATURE BOX === */

.features {
  margin-top: 28px;
  margin-bottom: 28px;
  padding-top: 0;
  padding-bottom: 0;
}

/* === FEATURE: GAP UGUALE + HOVER NON TAGLIATO === */

.features {
  margin-top: 24px;
  margin-bottom: 24px;

  padding-top: 16px;
  padding-bottom: 16px;

  overflow-x: auto;
  overflow-y: visible;

  clip-path: inset(-24px 0 -24px 0);
}

/* === 3 BOX BASSI: NO SCROLL DESKTOP, SCROLL SOLO SCHERMI STRETTI === */

.bottom-grid {
  --bottom-card-1: 370px;
  --bottom-card-2: 370px;
  --bottom-card-3: calc(100% - var(--bottom-card-1) - var(--bottom-card-2) - 32px);
  --bottom-card-height: 300px;

  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px;
  width: 100%;

  overflow-x: hidden;
  overflow-y: hidden;

  padding-top: 16px;
  padding-bottom: 16px;
  margin-top: -15px;
  margin-bottom: 24px;
}

.bottom-grid .card {
  height: var(--bottom-card-height);
  min-height: var(--bottom-card-height);
  max-height: var(--bottom-card-height);
  overflow: hidden;
}

.bottom-grid .how {
  flex: 0 0 var(--bottom-card-1);
  width: var(--bottom-card-1);
  min-width: var(--bottom-card-1);
  max-width: var(--bottom-card-1);
}

.bottom-grid .price {
  flex: 0 0 var(--bottom-card-2);
  width: var(--bottom-card-2);
  min-width: var(--bottom-card-2);
  max-width: var(--bottom-card-2);
}

.bottom-grid .cta {
  flex: 1 1 auto;
  width: var(--bottom-card-3);
  min-width: 0;
  max-width: none;
}

/* scroll invisibile */
.bottom-grid {
  scrollbar-width: none;
}

.bottom-grid::-webkit-scrollbar {
  display: none;
}

/* quando lo schermo è stretto, i box restano fissi e scorrono */
@media (max-width: 1520px) {
  .bottom-grid {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .bottom-grid .card {
    scroll-snap-align: start;
  }

  .bottom-grid .cta {
    flex: 0 0 630px;
    width: 630px;
    min-width: 630px;
    max-width: 630px;
  }
}

/* === HOVER LIFT NAVBAR === */

.nav a,
.login,
.language-link {
  display: inline-flex;
  align-items: center;
  transition: transform 160ms ease, color 160ms ease;
}

.nav a:hover,
.login:hover,
.language-link:hover {
  transform: translateY(-3px);
  color: #0646ff;
}

/* === HERO + DASHBOARD FISSE, SCROLL ORIZZONTALE SOTTO 1520PX === */

@media (max-width: 1519px) {
  .hero {
    --hero-left-fixed: 600px;
    --dashboard-fixed: 1120px;
    --hero-gap-fixed: 40px;

    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--hero-gap-fixed) !important;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }

  .hero::-webkit-scrollbar {
    display: none;
  }

  .hero-left {
    flex: 0 0 var(--hero-left-fixed) !important;
    width: var(--hero-left-fixed) !important;
    min-width: var(--hero-left-fixed) !important;
    max-width: var(--hero-left-fixed) !important;
  }

  .dashboard {
    flex: 0 0 var(--dashboard-fixed) !important;
    width: var(--dashboard-fixed) !important;
    min-width: var(--dashboard-fixed) !important;
    max-width: var(--dashboard-fixed) !important;
  }
}

/* === DASHBOARD INTERNA INTATTA ANCHE SU SCHERMI MOLTO STRETTI === */

@media (max-width: 1519px) {
  .dashboard {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .dashboard::-webkit-scrollbar {
    display: none;
  }

  .dashboard-sidebar {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
  }

  .dashboard-main {
    flex: 0 0 930px !important;
    width: 930px !important;
    min-width: 930px !important;
  }

  .dashboard-grid {
    width: 880px !important;
    min-width: 880px !important;
    max-width: 880px !important;

    grid-template-columns: 1.08fr 0.92fr !important;
  }

  .upload-first,
  .upload-box,
  .payments,
  .account-state {
    min-width: 0 !important;
  }
}

/* === SU SCHERMI STRETTI MOSTRA SEMPRE L'INIZIO DEL BOX DASHBOARD === */

@media (max-width: 1519px) {
  .page {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .page::-webkit-scrollbar {
    display: none;
  }

  .hero {
    justify-content: flex-start !important;
    transform: none !important;
    margin-left: 0 !important;
  }

  .dashboard {
    margin-left: 0 !important;
  }
}

/* === NON NASCONDERE MAI LA SIDEBAR DELLA DASHBOARD === */

@media (max-width: 1519px) {
  .dashboard {
    display: grid !important;
    grid-template-columns: 190px 930px !important;
    width: 1120px !important;
    min-width: 1120px !important;
    overflow-x: hidden !important;
  }

  .dashboard-sidebar {
    display: flex !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }

  .dashboard-main {
    width: 930px !important;
    min-width: 930px !important;
    max-width: 930px !important;
  }
}

/* === NAVBAR RESPONSIVE COMPATTA === */

.header {
  overflow: visible;
}

.nav,
.header-actions {
  white-space: nowrap;
}

@media (max-width: 1250px) {
  .header {
    grid-template-columns: 220px 1fr 260px;
  }

  .nav {
    gap: 34px;
    font-size: 13px;
    transform: none;
  }

  .language-link {
    gap: 5px;
  }

  .italy-flag {
    width: 15px;
    height: 10px;
  }

  .chevron-down {
    width: 7px;
    height: 7px;
  }

  .header-actions {
    gap: 18px;
    font-size: 13px;
  }

  .header-actions .btn {
    width: 146px;
    height: 46px;
    font-size: 13px;
    padding: 0 18px;
  }

  .header-actions .btn-img-arrow-white {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 980px) {
  .header {
    width: min(100% - 24px, 100%);
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    gap: 20px;
    font-size: 12px;
  }

  .header-actions {
    gap: 12px;
    font-size: 12px;
  }

  .header-actions .btn {
    width: 126px;
    height: 42px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .header {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .nav,
  .header-actions {
    justify-content: center;
  }

  .nav {
    gap: 16px;
    font-size: 11px;
  }

  .header-actions .btn {
    width: 118px;
    height: 40px;
  }
}

/* === HOVER PREMIUM SOLO PULSANTI BLU PRINCIPALI === */

.btn-primary {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow, filter;
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08) saturate(1.04);
  box-shadow:
    0 18px 38px rgba(2, 3, 61, 0.24),
    0 0 42px rgba(6, 70, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:active {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* === MOBILE PULITO === */

.mobile-header-logo,
.mobile-menu-btn {
  display: none;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  .header {
    width: 100% !important;
    height: 58px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .nav,
  .header-actions,
  .brand-placeholder,
  .header-logo {
    display: none !important;
  }

  .mobile-header-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-logo-mark {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  .mobile-logo-text {
    width: 138px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .mobile-menu-btn span {
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #05081f !important;
  }

  .page {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px 34px !important;
    overflow-x: hidden !important;
  }

  .hero {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding-top: 18px !important;
  }

  .hero-left {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-top: 0 !important;
  }

  .hero-logo,
  .hero-scritta {
    display: none !important;
  }

  .hero h1 {
    margin: 0 !important;
    font-size: 31px !important;
    line-height: 1.18 !important;
    max-width: 310px !important;
  }

  .hero-left p {
    margin-top: 24px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 300px !important;
  }

  .hero-buttons {
    display: grid !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .hero-how-btn {
    width: 100% !important;
    height: 52px !important;
  }

  .dashboard {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin-top: 28px !important;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .dashboard-sidebar {
    display: none !important;
  }

  .dashboard-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .dashboard-top {
    height: auto !important;
    margin: 0 0 16px !important;
  }

  .dashboard-top h2 {
    font-size: 28px !important;
  }

  .dashboard-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 16px !important;
    overflow: visible !important;
  }

  .panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px !important;
    overflow: visible !important;
  }

  .file-scene {
    height: 125px !important;
    margin: 18px 0 !important;
  }

  .dropzone {
    height: 230px !important;
  }

  .features {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 22px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .feature-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 104px !important;
    max-height: none !important;
    padding: 16px !important;
    grid-template-columns: 64px 1fr 38px !important;
    overflow: visible !important;
  }

  .feature-card h3,
  .feature-card p {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  .bottom-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .bottom-grid .card,
  .bottom-grid .how,
  .bottom-grid .price,
  .bottom-grid .cta {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .how,
  .price,
  .cta {
    padding: 24px !important;
  }

  .cta {
    display: grid !important;
    grid-template-columns: 64px 1fr !important;
    gap: 18px !important;
  }

  .cta-buttons {
    grid-column: 1 / -1 !important;
    display: grid !important;
    gap: 12px !important;
  }

  .cta-buttons .btn {
    width: 140% !important;
  }
}

@media (max-width: 760px) {
  .cta-buttons {
    transform: translateX(-87px);
  }
}

/* === FIX MOBILE: dashboard non sovrapposta ai 4 box === */
@media (max-width: 760px) {
  .dashboard {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 26px !important;
    overflow: visible !important;
  }

  .dashboard-main {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dashboard-grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 16px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dashboard-grid > * {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .features {
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    margin-top: 26px !important;
    transform: none !important;
  }

  .feature-card {
    position: relative !important;
    transform: none !important;
  }
}

/* === MOBILE MENU: 3 linee identiche === */
@media (max-width: 760px) {
  .mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
    gap: 5px !important;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 2.5px !important;
    max-height: 2.5px !important;
    border-radius: 999px !important;
    background: #05081f !important;
    flex: 0 0 auto !important;
  }
}

/* === MOBILE: posizione scritta.png === */
@media (max-width: 760px) {
  .mobile-logo-text {
    position: relative !important;

    /* sposta a destra/sinistra */
    left: 0px !important;

    /* abbassa/alza */
    top: 4px !important;
  }
}

/* === MOBILE: abbassa i 3 box finali === */
@media (max-width: 760px) {
  .bottom-grid {
    margin-top: 55px !important;
  }
}

/* === MOBILE: abbassa tutta la dashboard === */
@media (max-width: 760px) {
  .dashboard {
    margin-top: 68px !important;
  }
}

/* === MOBILE: abbassa i 4 box === */
@media (max-width: 760px) {
  .features {
    margin-top: 42px !important;
  }
}

/* === PC: testo piccolo sotto loghi Stripe/PayPal === */
@media (min-width: 761px) {
  .price > p:last-child {
    font-size: 5px !important;
    line-height: 1 !important;
  }
}

/* === MOBILE: abbassa prima sezione hero === */
@media (max-width: 760px) {
  .hero-left {
    margin-top: 42px !important;
  }
}

/* === MOBILE PREMIUM ATMOSPHERE - SOLO TELEFONO === */
@media (max-width: 760px) {
  html {
    scroll-behavior: smooth;
  }

  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(6, 70, 255, 0.095), transparent 34%),
      radial-gradient(circle at 92% 28%, rgba(2, 3, 61, 0.07), transparent 32%),
      radial-gradient(circle at 12% 76%, rgba(6, 70, 255, 0.06), transparent 36%),
      repeating-linear-gradient(
        132deg,
        transparent 0 36px,
        rgba(6, 70, 255, 0.035) 37px,
        transparent 38px
      ),
      linear-gradient(180deg, #fbfdff 0%, #f7faff 48%, #ffffff 100%) !important;
  }

  /* Scrollbar pulita */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 3, 61, 0.18) transparent;
  }

  *::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background: rgba(2, 3, 61, 0.16);
    border-radius: 999px;
  }

  /* Hero più premium */
  .hero-left {
    position: relative !important;
    padding-top: 10px !important;
  }

  .hero-left::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 42px;
    width: 260px;
    height: 220px;
    background: radial-gradient(circle, rgba(6, 70, 255, 0.11), transparent 68%);
    filter: blur(34px);
    pointer-events: none;
    z-index: -1;
  }

  .mobile-logo-mark {
    filter: drop-shadow(0 10px 22px rgba(6, 70, 255, 0.16));
  }

  .mobile-logo-text {
    filter: drop-shadow(0 8px 18px rgba(2, 3, 61, 0.08));
  }

  .hero h1 {
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 12px 34px rgba(6, 70, 255, 0.08);
  }

  .hero-left p {
    margin-top: 26px !important;
  }

  .hero-buttons {
    margin-top: 28px !important;
    gap: 14px !important;
  }

  /* Box più tridimensionali ma puliti */
  .panel,
  .feature-card,
  .bottom-grid .card,
  .bottom-grid .how,
  .bottom-grid .price,
  .bottom-grid .cta {
    background:
      linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,250,255,0.9)),
      radial-gradient(circle at 12% 0%, rgba(6,70,255,0.045), transparent 34%) !important;
    border: 1px solid rgba(255,255,255,0.78) !important;
    box-shadow:
      0 18px 44px rgba(8, 22, 88, 0.075),
      0 0 34px rgba(6, 70, 255, 0.045),
      inset 0 1px 0 rgba(255,255,255,0.9) !important;
    transition:
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .dashboard-grid,
  .features,
  .bottom-grid {
    gap: 18px !important;
  }

  .features {
    margin-top: 34px !important;
    margin-bottom: 28px !important;
  }

  .bottom-grid {
    margin-top: 32px !important;
  }

  /* Icone più vive */
  .feature-icon,
  .circle-icon,
  .cta-icon,
  .pay-method-logo,
  .stripe-box {
    filter:
      drop-shadow(0 10px 18px rgba(6, 70, 255, 0.16))
      saturate(1.08) contrast(1.04);
  }

  .feature-icon {
    transform: scale(1.04);
  }

  /* Pulsanti premium */
  .btn-primary {
    box-shadow:
      0 18px 38px rgba(2, 3, 61, 0.24),
      0 0 38px rgba(6, 70, 255, 0.18),
      inset 0 1px 0 rgba(255,255,255,0.2) !important;
  }

  .btn,
  .connect-btn,
  .feature-card,
  .panel,
  .bottom-grid .card {
    transition:
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .btn:hover,
  .connect-btn:hover,
  .feature-card:hover,
  .panel:hover,
  .bottom-grid .card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 22px 52px rgba(8, 22, 88, 0.1),
      0 0 44px rgba(6, 70, 255, 0.075) !important;
  }

  /* Fade-in elegante */
  .hero-left,
  .dashboard,
  .features,
  .bottom-grid {
    animation: mobileFadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .dashboard { animation-delay: 80ms; }
  .features { animation-delay: 140ms; }
  .bottom-grid { animation-delay: 200ms; }

  @keyframes mobileFadeUp {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* === MOBILE: canvas unico, niente container grandi separati === */
@media (max-width: 760px) {
  .hero,
  .dashboard,
  .features,
  .bottom-grid {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
  }

  .hero::before,
  .hero::after,
  .dashboard::before,
  .dashboard::after,
  .features::before,
  .features::after,
  .bottom-grid::before,
  .bottom-grid::after {
    display: none !important;
    content: none !important;
  }

  .dashboard-main,
  .dashboard-grid {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .page {
    background: transparent !important;
  }

  /* separazione leggerissima tra sezioni, senza superficie visibile */
  .dashboard,
  .features,
  .bottom-grid {
    filter: drop-shadow(0 18px 34px rgba(6, 70, 255, 0.035));
  }
}

/* === MOBILE: altezza header + posizione elementi === */
@media (max-width: 760px) {
  .header {
    height: 64px !important;
    min-height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .mobile-header-logo,
  .mobile-menu-btn {
    position: relative !important;
    top: 9px !important;
  }
}

/* === MOBILE: pulsanti sempre centrati dentro i box === */
@media (max-width: 760px) {
  .panel .btn,
  .card .btn,
  .cta .btn,
  .dropzone .btn,
  .upload-first .btn,
  .upload-box .btn,
  .hero-buttons .btn {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none;
  }

  .upload-first .btn-secondary,
  .upload-box .btn-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: min(100%, 320px) !important;
  }

  .dropzone .btn,
  .choose-file,
  .file-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cta-buttons {
    display: grid !important;
    justify-items: center !important;
  }

  .cta-buttons .btn {
    width: min(100%, 320px) !important;
  }
}


/* === MOBILE: ultimo box CTA sistemato bene === */
@media (max-width: 760px) {
  .bottom-grid .cta,
  .cta {
    display: grid !important;
    grid-template-columns: 82px 1fr !important;
    column-gap: 18px !important;
    row-gap: 18px !important;
    padding: 28px 24px 30px !important;
    overflow: hidden !important;
  }

  /* titolo largo su tutto il box */
  .cta h2 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 29px !important;
    line-height: 1.12 !important;
  }

  .cta p {
    margin: 0 !important;
    max-width: none !important;
  }

  .cta-icon {
    align-self: start !important;
    justify-self: start !important;
  }

  /* pulsanti larghi, centrati, senza uscire */
  .cta .cta-buttons {
    grid-column: 1 / -1 !important;
    width: min(100%, 310px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    transform: none !important;
  }

  .cta .cta-buttons .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 56px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* === MOBILE: CTA finale corretta, titolo largo + pulsanti centrati === */
@media (max-width: 760px) {
  .bottom-grid .cta,
  .cta {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 16px !important;
    row-gap: 18px !important;
    padding: 28px 22px 30px !important;
    overflow: hidden !important;
  }

  /* se titolo/testo/pulsanti sono dentro un div, li libera senza cambiare HTML */
  .cta > div:not(.cta-icon):not(.cta-buttons) {
    display: contents !important;
  }

  /* titolo su tutta la larghezza, anche a sinistra */
  .cta h2 {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  /* prismaxwhite resta sotto al titolo, a sinistra del testo */
  .cta-icon {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: start !important;
    width: 80px !important;
    height: 80px !important;
    transform: none !important;
    margin: 0 !important;
  }

  .cta p {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: center !important;
  }

  /* pulsanti larghi, centrati, dentro la card */
  .cta .cta-buttons {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 4px auto 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    transform: none !important;
  }

  .cta .cta-buttons .btn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 56px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px !important;
    white-space: nowrap !important;
    font-size: 16px !important;
  }
}

/* === MOBILE: togli aura attorno ai 4 box === */
@media (max-width: 760px) {
  .features {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .features::before,
  .features::after {
    display: none !important;
    content: none !important;
  }
}

/* === MOBILE: togli effetto scuro dai 4 box feature === */
@media (max-width: 760px) {
  .features .feature-card {
    box-shadow: none !important;
    filter: none !important;
  }

  .features .feature-card::before,
  .features .feature-card::after {
    display: none !important;
    content: none !important;
  }
}

/* === MOBILE: cornice blu notte su tutte le card/box === */
@media (max-width: 760px) {
  .panel,
  .feature-card,
  .bottom-grid .card,
  .bottom-grid .how,
  .bottom-grid .price,
  .bottom-grid .cta,
  .dashboard-card,
  .card {
    border: 3px solid rgba(2, 3, 61, 0.22) !important;
  }
}

/* === MOBILE: titolo Dashboard come selettore blu notte === */
@media (max-width: 760px) {
  .dashboard-top {
    width: 100% !important;
    margin-bottom: 18px !important;
  }

  .dashboard-top h2 {
    width: 100% !important;
    height: 54px !important;
    padding: 0 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    background: linear-gradient(135deg, #0646ff 0%, #02033d 100%) !important;
    color: #ffffff !important;

    border-radius: 14px !important;
    box-shadow:
      0 16px 34px rgba(2, 3, 61, 0.22),
      0 0 30px rgba(6, 70, 255, 0.16) !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .dashboard-top h2::after {
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2.5px solid #ffffff !important;
    border-bottom: 2.5px solid #ffffff !important;
    transform: rotate(45deg) translateY(-2px) !important;
    flex: 0 0 auto !important;
  }
}

/* === MOBILE: blocca zoom/tap zoom === */
@media (max-width: 760px) {
  html,
  body {
    touch-action: manipulation;
    overscroll-behavior-x: none;
  }
}

/* === MOBILE PREMIUM REFINEMENT - SOLO TELEFONO === */
@media (max-width: 760px) {
  html,
  body {
    touch-action: manipulation;
    overscroll-behavior-x: none;
  }

  body {
    background:
      radial-gradient(circle at 20% 6%, rgba(6, 70, 255, 0.075), transparent 30%),
      radial-gradient(circle at 92% 42%, rgba(2, 3, 61, 0.055), transparent 34%),
      repeating-linear-gradient(
        132deg,
        transparent 0 38px,
        rgba(6, 70, 255, 0.028) 39px,
        transparent 40px
      ),
      linear-gradient(180deg, #fbfdff 0%, #f7faff 48%, #ffffff 100%) !important;
  }

  .hero,
  .dashboard,
  .features,
  .bottom-grid {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .panel,
  .feature-card,
  .bottom-grid .card,
  .bottom-grid .how,
  .bottom-grid .price,
  .bottom-grid .cta {
    border: 1px solid rgba(2, 3, 61, 0.135) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,250,255,0.92)),
      radial-gradient(circle at 12% 0%, rgba(6,70,255,0.035), transparent 36%) !important;
    box-shadow:
      0 14px 34px rgba(8, 22, 88, 0.055),
      0 0 22px rgba(6, 70, 255, 0.035),
      inset 0 1px 0 rgba(255,255,255,0.95) !important;
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .panel,
  .bottom-grid .card {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  .hero-left {
    position: relative !important;
  }

  .hero-left::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 36px;
    width: 280px;
    height: 240px;
    background: radial-gradient(circle, rgba(6, 70, 255, 0.10), transparent 68%);
    filter: blur(38px);
    z-index: -1;
    pointer-events: none;
  }

  .hero h1 {
    line-height: 1.13 !important;
    text-shadow: 0 14px 34px rgba(6, 70, 255, 0.075);
  }

  .hero-left p {
    margin-top: 28px !important;
    line-height: 1.62 !important;
  }

  .btn-primary {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0646ff 0%, #02033d 92%) !important;
    box-shadow:
      0 18px 38px rgba(2, 3, 61, 0.24),
      0 0 38px rgba(6, 70, 255, 0.18),
      inset 0 1px 0 rgba(255,255,255,0.24) !important;
  }

  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 45%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.20), transparent);
    pointer-events: none;
  }

  .btn,
  .connect-btn,
  .feature-card,
  .panel {
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .btn:active,
  .connect-btn:active,
  .feature-card:active,
  .panel:active {
    transform: translateY(-2px) scale(0.992);
    box-shadow:
      0 20px 46px rgba(8, 22, 88, 0.085),
      0 0 34px rgba(6, 70, 255, 0.055) !important;
  }

  .feature-card {
    min-height: 112px !important;
    align-items: center !important;
  }

  .feature-icon,
  .circle-icon,
  .cta-icon,
  .pay-method-logo,
  .stripe-box {
    filter:
      drop-shadow(0 10px 18px rgba(6, 70, 255, 0.16))
      saturate(1.08)
      contrast(1.04);
  }

  .feature-icon {
    transform: scale(1.04);
  }

  .feature-card .arrow-circle {
    box-shadow:
      0 8px 20px rgba(8, 22, 88, 0.06),
      inset 0 1px 0 rgba(255,255,255,0.95) !important;
  }

  .circle-icon,
  .cta-icon {
    animation: mobileIconFloat 5.5s ease-in-out infinite;
  }

  @keyframes mobileIconFloat {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3px);
    }
  }

  .how h2,
  .price h2,
  .cta h2,
  .panel h3 {
    margin-bottom: 18px !important;
  }

  .bottom-grid {
    gap: 20px !important;
  }

  *::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  *::-webkit-scrollbar-thumb {
    background: rgba(2, 3, 61, 0.14);
    border-radius: 999px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .circle-icon,
  .cta-icon {
    animation: none !important;
  }
}

/* === TABLET: navbar più staccata dai bordi === */
@media (min-width: 761px) and (max-width: 1180px) {
  .header {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
}

/* === POSIZIONE HEADER: telefono / tablet / pc === */

/* Telefono */
@media (max-width: 760px) {
  .header {
    transform: translateY(20px) !important;
  }
}

/* Tablet */
@media (min-width: 761px) and (max-width: 1180px) {
  .header {
    transform: translateY(0px) !important;
  }
}

/* PC */
@media (min-width: 1181px) {
  .header {
    transform: translateY(0px) !important;
  }
}

/* === TABLET + PC: Accedi come pulsante blu notte === */
@media (min-width: 761px) {
  .header .login {
    position: relative !important;

    /* sposta Accedi a sinistra/destra */
    left: -28px !important;

    height: 54px !important;
    min-width: 132px !important;
    padding: 0 28px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: linear-gradient(135deg, #0646ff 0%, #02033d 100%) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    text-decoration: none !important;

    font-weight: 850 !important;

    box-shadow:
      0 16px 34px rgba(2, 3, 61, 0.22),
      0 0 30px rgba(6, 70, 255, 0.16),
      inset 0 1px 0 rgba(255,255,255,0.2) !important;

    transition:
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .header .login:hover {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow:
      0 18px 38px rgba(2, 3, 61, 0.25),
      0 0 40px rgba(6, 70, 255, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.24) !important;
  }
}

/* === PAGINA REGISTRAZIONE === */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(6, 70, 255, 0.08), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(2, 3, 61, 0.055), transparent 32%),
    repeating-linear-gradient(
      132deg,
      transparent 0 42px,
      rgba(6, 70, 255, 0.032) 43px,
      transparent 44px
    ),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  font-family: "Manrope", Arial, sans-serif;
  color: #05081f;
  overflow-x: hidden;
}

.auth-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 64px 28px 48px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  margin-bottom: 84px;
}

.auth-logo-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(6, 70, 255, 0.16));
}

.auth-logo-text {
  width: 270px;
  height: auto;
  object-fit: contain;
}

.auth-card h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.auth-card > p {
  font-size: 21px;
  line-height: 1.5;
  color: #24335f;
  margin: 0 0 58px;
}

.auth-form {
  display: grid;
  gap: 30px;
}

.auth-form label {
  display: grid;
  gap: 12px;
  font-size: 18px;
  font-weight: 850;
  color: #070b25;
}

.auth-form input {
  width: 100%;
  height: 74px;
  border: 1px solid rgba(2, 3, 61, 0.16);
  border-radius: 14px;
  padding: 0 24px;
  font: inherit;
  font-size: 20px;
  color: #070b25;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 34px rgba(8, 22, 88, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.9);
  outline: none;
}

.auth-form input::placeholder {
  color: rgba(36, 51, 95, 0.35);
}

.auth-form input:focus {
  border-color: rgba(6, 70, 255, 0.42);
  box-shadow:
    0 18px 40px rgba(8, 22, 88, 0.06),
    0 0 0 4px rgba(6, 70, 255, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.password-field span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #526080;
  font-size: 20px;
}

.auth-primary {
  height: 78px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 100%);
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 850;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(2, 3, 61, 0.24),
    0 0 42px rgba(6, 70, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

.auth-provider {
  height: 64px;
  border: 1px solid rgba(2, 3, 61, 0.13);
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  color: #08102d;
  font: inherit;
  font-size: 21px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
}

.google-icon {
  font-weight: 900;
  color: #4285f4;
}

.microsoft-icon {
  width: 25px;
  height: 25px;
  background:
    linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52%),
    linear-gradient(#00a4ef 0 48%, transparent 48% 52%, #ffb900 52%);
}

.auth-switch {
  text-align: center;
  margin-top: 42px;
  font-size: 21px;
  color: #6c7898;
}

.auth-switch a {
  color: #0646ff;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 38px 24px 40px;
  }

  .auth-logo {
    margin-bottom: 58px;
    gap: 12px;
  }

  .auth-logo-mark {
    width: 34px;
    height: 34px;
  }

  .auth-logo-text {
    width: 150px;
  }

  .auth-card h1 {
    font-size: 34px;
  }

  .auth-card > p {
    font-size: 18px;
    margin-bottom: 42px;
  }

  .auth-form input,
  .auth-primary {
    height: 62px;
  }

  .auth-primary {
    font-size: 20px;
  }

  .auth-provider {
    height: 58px;
    font-size: 17px;
  }
}

/* === REGISTRAZIONE: più compatta + icone provider === */
.auth-shell {
  width: min(100%, 560px) !important;
  padding-top: 38px !important;
  padding-bottom: 28px !important;
}

.auth-logo {
  margin-bottom: 46px !important;
}

.auth-logo-mark {
  width: 40px !important;
  height: 40px !important;
}

.auth-logo-text {
  width: 160px !important;
}

.auth-card h1 {
  font-size: 34px !important;
  margin-bottom: 14px !important;
}

.auth-card > p {
  font-size: 18px !important;
  margin-bottom: 36px !important;
}

.auth-form {
  gap: 20px !important;
}

.auth-form label {
  gap: 9px !important;
  font-size: 15px !important;
}

.auth-form input {
  height: 58px !important;
  font-size: 17px !important;
  border-radius: 12px !important;
}

.auth-primary {
  height: 62px !important;
  font-size: 20px !important;
}

.auth-provider {
  height: 54px !important;
  font-size: 18px !important;
}

.auth-provider-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.auth-switch {
  margin-top: 28px !important;
  font-size: 18px !important;
}

@media (max-width: 760px) {
  .auth-shell {
    padding-top: 38px !important;
  }

  .auth-logo {
    margin-bottom: 38px !important;
  }
}

/* === REGISTRAZIONE: ancora più compatta === */
.auth-shell {
  width: min(100%, 520px) !important;
  padding-top: 24px !important;
  padding-bottom: 20px !important;
}

.auth-logo {
  margin-bottom: 30px !important;
}

.auth-logo-mark {
  width: 40px !important;
  height: 40px !important;
}

.auth-logo-text {
  width: 205px !important;
}

.auth-card h1 {
  font-size: 30px !important;
  margin-bottom: 10px !important;
}

.auth-card > p {
  font-size: 16px !important;
  margin-bottom: 26px !important;
}

.auth-form {
  gap: 15px !important;
}

.auth-form label {
  gap: 7px !important;
  font-size: 14px !important;
}

.auth-form input {
  height: 50px !important;
  font-size: 15px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.auth-primary {
  height: 54px !important;
  font-size: 18px !important;
}

.auth-provider {
  height: 48px !important;
  font-size: 16px !important;
}

.auth-provider-icon {
  width: 21px !important;
  height: 21px !important;
}

.auth-switch {
  margin-top: 20px !important;
  font-size: 16px !important;
}

/* === REGISTRAZIONE: card premium attorno al form === */
.auth-shell {
  width: min(100%, 620px) !important;
  padding-top: 52px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.auth-logo {
  margin-bottom: 34px !important;
}

.auth-card {
  width: 100% !important;
  padding: 38px 42px 34px !important;

  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 22px !important;

  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.075),
    0 8px 24px rgba(6, 70, 255, 0.035) !important;
}

.auth-card h1 {
  margin-top: 0 !important;
}

.auth-switch {
  margin-bottom: 0 !important;
}

/* === REGISTRAZIONE MOBILE === */
@media (max-width: 760px) {
  .auth-shell {
    width: 100% !important;
    padding-top: 38px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .auth-logo {
    margin-bottom: 28px !important;
  }

  .auth-card {
    padding: 30px 20px 28px !important;
    border-radius: 18px !important;
  }
}

/* === PASSWORD TOGGLE === */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px !important;
}

.password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border: 2px solid #64708f;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.password-toggle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #64708f;
}

.password-toggle.is-active {
  border-color: #02033d;
}

.password-toggle.is-active::after {
  background: #02033d;
}

/* === FIX PASSWORD ICON: dentro la casella, niente cerchio vecchio === */
.password-field {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

.password-field input {
  width: 100% !important;
  padding-right: 58px !important;
}

.password-field span {
  display: none !important;
}

.password-toggle {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 24px !important;
  height: 18px !important;
  border: 2px solid #64708f !important;
  border-radius: 999px !important;
  background: transparent !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
}

.password-toggle::after {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #64708f !important;
}

.password-toggle.is-active {
  border-color: #02033d !important;
}

.password-toggle.is-active::after {
  background: #02033d !important;
}

/* === PASSWORD TOGGLE ANIMATO === */
.password-toggle {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 30px !important;
  height: 22px !important;
  border: 2px solid #64708f !important;
  border-radius: 999px !important;
  background: #ffffff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  padding: 2px !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  z-index: 10 !important;

  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.password-toggle span {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #64708f !important;
  transform: translateX(4) !important;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 260ms ease;
}

.password-toggle.is-active {
  background: #02033d !important;
  border-color: #02033d !important;
  box-shadow: 0 0 18px rgba(2, 3, 61, 0.18) !important;
}

.password-toggle.is-active span {
  background: #ffffff !important;
  transform: translateX(8px) !important;
}

/* === FIX FINALE PASSWORD TOGGLE: dentro input + niente cerchio extra === */
.password-field {
  position: relative !important;
}

.password-field input {
  padding-right: 70px !important;
}

/* spegne il vecchio cerchietto */
.password-toggle::after {
  display: none !important;
  content: none !important;
}

/* mette il toggle bene dentro la casella */
.password-toggle {
  right: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 34px !important;
  height: 24px !important;
}

/* pallino interno */
.password-toggle span {
  width: 11px !important;
  height: 11px !important;
}

/* movimento del pallino quando attivo */
.password-toggle.is-active span {
  transform: translateX(10px) !important;
}

/* === SPOSTA PALLINO PASSWORD A DESTRA/SINISTRA === */
.password-toggle span {
  position: relative !important;
  left: 0px !important;
  top: 6px !important;
}

.password-toggle.is-active span {
  left: 0px !important;
}

/* === SPOSTA PALLINO PASSWORD QUANDO ATTIVO === */
.password-toggle.is-active span {
  position: relative !important;
  left: 6px !important;
  top: 0px !important;
}

/* === PC/TABLET: ripristina CTA finale === */
@media (min-width: 761px) {
  .bottom-grid .cta {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon title"
      "icon text"
      "icon buttons" !important;
    column-gap: 42px !important;
    row-gap: 18px !important;
    align-items: center !important;
    padding: 42px 46px !important;
    overflow: hidden !important;
  }

  .bottom-grid .cta .cta-icon {
    grid-area: icon !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .bottom-grid .cta h2 {
    grid-area: title !important;
    margin: 0 !important;
    max-width: 520px !important;
    text-align: left !important;
  }

  .bottom-grid .cta p {
    grid-area: text !important;
    margin: 0 !important;
    max-width: 520px !important;
  }

  .bottom-grid .cta .cta-buttons {
    grid-area: buttons !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  .bottom-grid .cta .cta-buttons .btn {
    height: 58px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  .bottom-grid .cta .cta-buttons .btn-primary {
    width: 190px !important;
  }

  .bottom-grid .cta .cta-buttons .btn-secondary {
    width: 265px !important;
  }
}

/* === PC/TABLET: posizione pulsanti ultimo box === */
@media (min-width: 761px) {
  .bottom-grid .cta .cta-buttons {
    position: relative !important;

    /* abbassa/alza i pulsanti */
    top: 24px !important;

    /* distanza tra i due pulsanti */
    gap: 0px !important;
  }
}

.password-toggle {
  pointer-events: auto !important;
}

.password-toggle span {
  pointer-events: none !important;
}

.password-toggle.is-active {
  background: #02033d !important;
  border-color: #02033d !important;
}

.password-toggle.is-active span {
  background: #ffffff !important;
  transform: translateX(10px) !important;
}

/* === PC/TABLET: CTA finale corretta === */
@media (min-width: 761px) {
  .bottom-grid .cta {
    display: grid !important;
    grid-template-columns: 92px 1fr !important;
    grid-template-areas:
      "icon content" !important;

    align-items: center !important;
    column-gap: 44px !important;

    padding: 34px 44px !important;
    min-height: 240px !important;
    overflow: hidden !important;
  }

  .bottom-grid .cta .cta-icon {
    grid-area: icon !important;
    width: 86px !important;
    height: 86px !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
  }

  .bottom-grid .cta > div:not(.cta-icon):not(.cta-buttons) {
    grid-area: content !important;
    display: block !important;
    min-width: 0 !important;
  }

  .bottom-grid .cta h2 {
    margin: 0 0 12px !important;
    max-width: 430px !important;
    text-align: left !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .bottom-grid .cta p {
    margin: 0 0 26px !important;
    max-width: 430px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .bottom-grid .cta .cta-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 28px !important;
    width: 100% !important;
    max-width: 620px !important;

    margin: 0 !important;
    transform: none !important;
  }

  .bottom-grid .cta .cta-buttons .btn {
    height: 54px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .bottom-grid .cta .cta-buttons .btn-primary {
    width: 178px !important;
  }

  .bottom-grid .cta .cta-buttons .btn-secondary {
    width: 250px !important;
  }
}

/* === PC/TABLET: micro posizione pulsanti CTA finale === */
@media (min-width: 761px) {
  .bottom-grid .cta .cta-buttons {
    position: relative !important;
    top: -8px !important;
    gap: 0px !important;
  }
}

/* === SCHERMATA ACCOUNT CREATO === */
.auth-success-screen {
  display: none;
  min-height: 100vh;
  padding: 90px 24px 40px;
  align-items: center;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 12%, rgba(6, 70, 255, 0.075), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(2, 3, 61, 0.055), transparent 32%),
    repeating-linear-gradient(
      132deg,
      transparent 0 42px,
      rgba(6, 70, 255, 0.032) 43px,
      transparent 44px
    ),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.auth-page.is-success .auth-shell {
  display: none !important;
}

.auth-page.is-success .auth-success-screen {
  display: flex;
}

.success-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 92px;
  text-decoration: none;
}

.success-logo img:first-child {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.success-logo img:last-child {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.success-card {
  width: min(100%, 620px);
  min-height: 330px;
  padding: 58px 42px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.075),
    0 10px 34px rgba(6, 70, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #eef3ff;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}

.mail-shape {
  width: 58px;
  height: 42px;
  border: 5px solid #315ea7;
  border-radius: 8px;
  position: relative;
}

.mail-shape::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 22px;
  border-left: 5px solid #315ea7;
  border-bottom: 5px solid #315ea7;
  transform: rotate(-45deg);
}

.success-icon span {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #173f8f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.success-card h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.1;
  color: #05081f;
  text-align: center;
}

.success-card p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: #24335f;
  text-align: center;
}

@media (max-width: 760px) {
  .auth-success-screen {
    padding-top: 60px;
  }

  .success-logo {
    margin-bottom: 62px;
  }

  .success-logo img:first-child {
    width: 32px;
    height: 32px;
  }

  .success-logo img:last-child {
    width: 150px;
  }

  .success-card {
    min-height: 300px;
    padding: 44px 24px;
    border-radius: 18px;
  }

  .success-card h1 {
    font-size: 32px;
  }

  .success-card p {
    font-size: 16px;
  }
}

/* === SUCCESS SCREEN: usa mail.png === */
.success-icon {
  background: transparent !important;
  width: 118px !important;
  height: 118px !important;
  margin-bottom: 30px !important;
}

.success-icon img {
  width: 118px !important;
  height: 118px !important;
  object-fit: contain !important;
  display: block !important;
}

.success-icon .mail-shape,
.success-icon span {
  display: none !important;
}

/* === PAGINA ACCOUNT VERIFICATO === */

.verified-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 78, 255, 0.035) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 50% 42%, rgba(0, 78, 255, 0.08), transparent 34%),
    #f8fbff;
}

.verified-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 54px 24px;
  box-sizing: border-box;
}

.verified-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
}

.verified-logo img:first-child {
  width: 48px;
  height: auto;
}

.verified-logo img:last-child {
  width: 260px;
  height: auto;
}

.verified-card {
  width: min(720px, 92vw);
  min-height: 350px;
  padding: 58px 44px;
  border-radius: 26px;
  border: 1px solid rgba(7, 25, 75, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 34px 90px rgba(10, 35, 90, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.verified-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 26px;
}

.verified-card h1 {
  margin: 0 0 18px;
  color: #050a24;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
}

.verified-card p {
  margin: 0;
  max-width: 560px;
  color: #23345f;
  font-size: 21px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .verified-wrap {
    gap: 48px;
    padding: 38px 18px;
  }

  .verified-logo img:first-child {
    width: 34px;
  }

  .verified-logo img:last-child {
    width: 190px;
  }

  .verified-card {
    min-height: 330px;
    padding: 44px 24px;
    border-radius: 22px;
  }

  .verified-icon {
    width: 122px;
    height: 122px;
  }

  .verified-card h1 {
    font-size: 30px;
  }

  .verified-card p {
    font-size: 17px;
  }
}

/* === FOOTER PRISMAX === */

.site-footer {
  width: 100%;
  margin-top: 90px;
  padding: 34px 50px 30px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(7, 25, 75, 0.06);
  box-sizing: border-box;
}

.footer-inner {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr auto auto;
  align-items: center;
  gap: 54px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-brand-icon {
  width: 34px;
  height: auto;
  display: block;
}

.footer-brand-text {
  width: 170px;
  height: auto;
  display: block;
}

.footer-copy {
  margin: 0;
  color: #07133d;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 58px;
}

.footer-links a {
  color: #07133d;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.28s ease, color 0.28s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  color: #004cff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-socials a {
  width: 28px;
  height: 28px;
  color: #061047;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease, color 0.28s ease, filter 0.28s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  color: #004cff;
  filter: drop-shadow(0 10px 18px rgba(0, 76, 255, 0.18));
}

.footer-socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Mobile */
@media (max-width: 760px) {
  .site-footer {
    margin-top: 54px;
    padding: 32px 24px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    gap: 26px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-socials {
    gap: 28px;
  }
}

/* === FOOTER PC: barra più bassa, full width, più vicina === */
@media (min-width: 761px) {
  .site-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    margin-top: 42px !important;

    padding-top: 22px !important;
    padding-bottom: 22px !important;
    padding-left: 52px !important;
    padding-right: 52px !important;

    background: rgba(255, 255, 255, 0.86) !important;
    border-top: 1px solid rgba(7, 25, 75, 0.055) !important;
    box-sizing: border-box !important;
  }

  .footer-inner {
    max-width: none !important;
    width: 100% !important;
    min-height: 58px !important;

    display: grid !important;
    grid-template-columns: 340px 1fr auto auto !important;
    align-items: center !important;
    gap: 52px !important;
  }

  .footer-brand-icon {
    width: 32px !important;
  }

  .footer-brand-text {
    width: 158px !important;
  }

  .footer-copy {
    font-size: 14px !important;
  }

  .footer-links {
    gap: 54px !important;
  }

  .footer-socials {
    gap: 30px !important;
  }

  .footer-socials a {
    width: 27px !important;
    height: 27px !important;
  }
}

/* === PC/TABLET: footer senza spazio sotto + scroll orizzontale quando stringi === */
@media (min-width: 761px) {
  html,
  body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .page {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .site-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    margin-bottom: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none !important;
  }

  .site-footer::-webkit-scrollbar {
    display: none !important;
  }

  .footer-inner {
    width: 1760px !important;
    min-width: 1760px !important;
    max-width: 1760px !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* === PC/TABLET: footer compatto, full width, senza gap enorme === */
@media (min-width: 761px) {
  html,
  body,
  .page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .site-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;

    padding: 18px 52px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .site-footer::-webkit-scrollbar {
    display: none !important;
  }

  .footer-inner {
    width: 100% !important;
    min-width: 1160px !important;
    max-width: none !important;

    display: grid !important;
    grid-template-columns: 340px 1fr auto auto !important;
    align-items: center !important;

    gap: 24px !important;
    margin: 0 auto !important;
  }

  .footer-copy {
    font-size: 13px !important;
  }

  .footer-links {
    gap: 38px !important;
  }

  .footer-links a {
    font-size: 14px !important;
  }

  .footer-socials {
    gap: 24px !important;
  }

  .footer-socials a {
    width: 25px !important;
    height: 25px !important;
  }
}

/* === SCROLLBAR PRINCIPALE SOTTILE BLU NOTTE === */

html {
  scrollbar-width: thin;
  scrollbar-color: #03083f transparent;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 7px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: #03083f;
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: #07105a;
}

/* === TOGLI NUBE/CASE BLU DA "ITALIANO" === */
.language-link,
.language-link:hover,
.language-link:focus,
.language-link:active {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  outline: none !important;
}

/* === PAGINA ACCOUNT VERIFICATO === */

.verified-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 78, 255, 0.035) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 50% 42%, rgba(0, 78, 255, 0.08), transparent 34%),
    #f8fbff;
}

.verified-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 54px 24px;
  box-sizing: border-box;
}

.verified-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
}

.verified-logo img:first-child {
  width: 48px;
  height: auto;
}

.verified-logo img:last-child {
  width: 260px;
  height: auto;
}

.verified-card {
  width: min(720px, 92vw);
  min-height: 350px;
  padding: 58px 44px;
  border-radius: 26px;
  border: 1px solid rgba(7, 25, 75, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 90px rgba(10, 35, 90, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.verified-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 26px;
}

.verified-card h1 {
  margin: 0 0 18px;
  color: #050a24;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
}

.verified-card p {
  margin: 0;
  max-width: 560px;
  color: #23345f;
  font-size: 21px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .verified-wrap {
    gap: 48px;
    padding: 38px 18px;
  }

  .verified-logo img:first-child {
    width: 34px;
  }

  .verified-logo img:last-child {
    width: 190px;
  }

  .verified-card {
    min-height: 330px;
    padding: 44px 24px;
    border-radius: 22px;
  }

  .verified-icon {
    width: 122px;
    height: 122px;
  }

  .verified-card h1 {
    font-size: 30px;
  }

  .verified-card p {
    font-size: 17px;
  }
}

/* === UTENTE LOGGATO: PROFILO + CTA FINALE === */

.profile-button {
  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #063cff 0%, #020642 100%) !important;
  box-shadow: 0 22px 42px rgba(0, 38, 160, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.profile-avatar::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.profile-avatar::after {
  content: "";
  width: 18px;
  height: 9px;
  border-radius: 999px 999px 5px 5px;
  background: #fff;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

/* Quando l'utente è loggato: togli Inizia ora dall'ultimo box */
body.is-logged-in .bottom-grid .cta .cta-buttons .btn-primary {
  display: none !important;
}

/* Allarga Scopri la piattaforma */
body.is-logged-in .bottom-grid .cta .cta-buttons {
  justify-content: flex-start !important;
  gap: 0 !important;
}

body.is-logged-in .bottom-grid .cta .cta-buttons .btn-secondary {
  width: 330px !important;
  min-width: 330px !important;
}

.profile-button {
  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #063cff 0%, #020642 100%) !important;
  box-shadow: 0 22px 42px rgba(0, 38, 160, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.profile-avatar::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.profile-avatar::after {
  content: "";
  width: 18px;
  height: 9px;
  border-radius: 999px 999px 5px 5px;
  background: #fff;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

/* === ICONA PROFILO CON INIZIALI UTENTE === */

.profile-button {
  width: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #063cff 0%, #020642 100%) !important;
  box-shadow: 0 22px 42px rgba(0, 38, 160, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
}

.profile-initials {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  font-family: Manrope, Arial, sans-serif;
}

.expand-dashboard-btn {
  display: none !important;
}

body.is-logged-in .expand-dashboard-btn {
  width: 58px !important;
  height: 58px !important;
  margin-top: 120px !important;
  border: none !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #073cff 0%, #03083f 100%) !important;
  box-shadow: 0 18px 34px rgba(0, 45, 180, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

body.is-logged-in .expand-dashboard-btn img {
  width: 35px !important;
  height: 35px !important;
  object-fit: contain !important;
}

/* === HOVER PREMIUM PULSANTE INGRANDISCI === */

body.is-logged-in .expand-dashboard-btn {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease !important;
}

body.is-logged-in .expand-dashboard-btn:hover {
  transform: translateY(-4px) !important;
  filter: brightness(1.07) !important;
  box-shadow:
    0 24px 48px rgba(0, 45, 180, 0.28),
    0 8px 18px rgba(3, 8, 63, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.is-logged-in .expand-dashboard-btn:active {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
  box-shadow:
    0 15px 30px rgba(0, 45, 180, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* === PC: CONTROLLO DIFREY.PNG IN ALTO HERO === */
@media (min-width: 761px) {
  .hero-logo,
  .brand-placeholder img[src*="difrey.png"],
  img[src*="difrey.png"] {
    width: 340px !important;          /* grandezza */
    height: auto !important;

    position: relative !important;
    left: 0px !important;             /* destra/sinistra */
    top: -144px !important;              /* sopra/sotto */

    transform: none !important;
  }
}

/* === PC: CONTROLLO DIFREYLOGO.PNG NEL BOX CTA === */
@media (min-width: 761px) {
  .cta-icon img[src*="difreylogo.png"],
  img[src*="difreylogo.png"] {
    width: 150px !important;           /* grandezza */
    height: auto !important;

    position: relative !important;
    left: 0px !important;             /* destra/sinistra */
    top: 0px !important;              /* sopra/sotto */

    transform: none !important;
  }
}

/* === RIPRISTINO FOOTER PC DIFREY === */
@media (min-width: 761px) {
  .site-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    margin-top: 42px !important;
    margin-bottom: 0 !important;

    padding: 18px 52px !important;
    min-height: 88px !important;

    background: rgba(255, 255, 255, 0.88) !important;
    border-top: 1px solid rgba(7, 25, 75, 0.06) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  .site-footer::-webkit-scrollbar {
    display: none !important;
  }

  .footer-inner {
    width: 100% !important;
    min-width: 1180px !important;
    max-width: none !important;

    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: 330px 1fr auto auto !important;
    align-items: center !important;
    gap: 34px !important;
  }

  .footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-decoration: none !important;
  }

  .footer-brand img,
  .footer-brand img[src*="difrey.png"] {
    width: 160px !important;
    height: auto !important;
    display: block !important;
    position: static !important;
    transform: none !important;
  }

  .footer-copy {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #07133d !important;
    white-space: nowrap !important;
  }

  .footer-links {
    display: flex !important;
    align-items: center !important;
    gap: 38px !important;
  }

  .footer-links a {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #07133d !important;
    text-decoration: none !important;
  }

  .footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .footer-socials a {
    width: 25px !important;
    height: 25px !important;
  }
}

/* === REGISTRAZIONE / VERIFICATO: LOGO CENTRATO E REGOLABILE === */

.auth-logo,
.verified-logo {
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;

  position: relative !important;
  left: 0px !important;   /* destra/sinistra */
  top: 125px !important;    /* sopra/sotto */
}

.auth-logo img,
.verified-logo img {
  display: block !important;
}

.auth-logo img[src*="difrey.png"],
.verified-logo img[src*="difrey.png"],
.auth-logo img[src*="prismax.png"],
.verified-logo img[src*="prismax.png"] {
  width: 200px !important;   /* grandezza logo */
  height: auto !important;
  object-fit: contain !important;
}

/* === GAP TRA LOGO DIFREY E BOX SOTTO === */

.auth-shell,
.verified-wrap {
  gap: 0px !important;
}

/* === REGISTRAZIONE / VERIFICATO: ABBASSA TUTTO IL BLOCCO === */

body:has(.auth-card) .auth-shell,
body:has(.verified-card) .verified-wrap {
  justify-content: flex-start !important;
  padding-top: 50px !important;
  gap: 0px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

body:has(.auth-card) .auth-logo,
body:has(.verified-card) .verified-logo {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body:has(.auth-card) .auth-card,
body:has(.verified-card) .verified-card {
  margin-top: 0 !important;
}

/* === MANIERE FORTI: ABBASSA REGISTRAZIONE E VERIFICATO === */

body:has(.auth-card) .auth-shell,
body:has(.verified-card) .verified-wrap {
  position: relative !important;
  transform: translateY(0px) !important;
}

/* === DIMENSIONE UGUALE BOX REGISTRATI E VERIFICATO === */

.auth-card,
.verified-card {
  width: 480px !important;
  max-width: 80vw !important;

  min-height: 370px !important;
  height: auto !important;

  padding: 42px 52px !important;
  box-sizing: border-box !important;
}

/* === REGISTRATI / VERIFICATO: BOX CENTRATO PERFETTO + ALTEZZA RIDOTTA === */

.auth-card,
.verified-card {
  width: 620px !important;
  max-width: 92vw !important;

  min-height: 300px !important;
  height: auto !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-top: 26px !important;
  padding-bottom: 12px !important;
  box-sizing: border-box !important;
}

.auth-shell,
.verified-wrap {
  align-items: center !important;
}

/* === REGISTRATI / VERIFICATO: RIDUCI BOX + CONTENUTO INTERNO === */

.auth-card,
.verified-card {
  width: 560px !important;
  max-width: 84vw !important;

  min-height: 390px !important;
  height: auto !important;

  padding: 30px 42px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  box-sizing: border-box !important;
}

/* Titolo e sottotitolo registrazione */
.auth-card h1,
.verified-card h1 {
  font-size: 26px !important;
  line-height: 1.08 !important;
  margin-bottom: 8px !important;
}

.auth-card > p,
.verified-card p {
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin-bottom: 24px !important;
}

/* Form */
.auth-form {
  gap: 14px !important;
}

.auth-form label {
  font-size: 12px !important;
  gap: 7px !important;
}

.auth-form input,
.password-field {
  height: 48px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
}

.auth-form input {
  padding-left: 18px !important;
  padding-right: 58px !important;
}

/* Toggle password */
.password-toggle {
  width: 36px !important;
  height: 22px !important;
  right: 14px !important;
}

.password-toggle span {
  width: 14px !important;
  height: 14px !important;
}

/* Pulsante principale */
.auth-primary {
  height: 56px !important;
  font-size: 18px !important;
  border-radius: 13px !important;
  margin-top: 4px !important;
}

/* Google / Microsoft */
.auth-provider {
  height: 48px !important;
  font-size: 18px !important;
  border-radius: 12px !important;
  gap: 14px !important;
}

.auth-provider-icon {
  width: 24px !important;
  height: 24px !important;
}

/* Testo finale "Hai già un account?" */
.auth-switch {
  font-size: 16px !important;
  margin-top: 10px !important;
}

/* Success image */
.verified-icon {
  width: 112px !important;
  height: 112px !important;
  margin-bottom: 20px !important;
}

.password-toggle span {
  top: 47% !important;
  transform: translateY(-50%) !important;
}

/* Hover premium pulsanti registrazione */
.auth-primary,
.auth-provider {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease,
    border-color 0.28s ease !important;
  will-change: transform;
}

.auth-primary:hover {
  transform: translateY(-4px) !important;
  filter: brightness(1.06) !important;
  box-shadow:
    0 22px 44px rgba(0, 45, 180, 0.26),
    0 8px 18px rgba(3, 8, 63, 0.16) !important;
}

.auth-provider:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(3, 8, 63, 0.28) !important;
  box-shadow:
    0 18px 36px rgba(7, 19, 61, 0.10),
    0 8px 18px rgba(0, 45, 180, 0.08) !important;
}

.auth-primary:active,
.auth-provider:active {
  transform: translateY(-1px) !important;
}

/* === ACCOUNT CREATO: STESSE REGOLE DI REGISTRATI / VERIFICATO === */

.account-created-logo,
.check-email-logo {
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;

  position: relative !important;
  left: 0px !important;     /* destra/sinistra logo */
  top: 125px !important;    /* sopra/sotto logo */
}

.account-created-logo img,
.check-email-logo img {
  display: block !important;
}

.account-created-logo img[src*="difrey.png"],
.check-email-logo img[src*="difrey.png"],
.account-created-logo img[src*="prismax.png"],
.check-email-logo img[src*="prismax.png"] {
  width: 200px !important;  /* grandezza logo */
  height: auto !important;
  object-fit: contain !important;
}

/* Gap tra logo e box */
.account-created-wrap,
.check-email-wrap {
  gap: 0px !important;
}

/* Abbassa tutto il blocco */
body:has(.created-card) .account-created-wrap,
body:has(.check-email-card) .check-email-wrap {
  justify-content: flex-start !important;
  padding-top: 50px !important;
  gap: 0px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

body:has(.created-card) .account-created-logo,
body:has(.check-email-card) .check-email-logo {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Box uguale a registrati/verificato */
.created-card,
.check-email-card,
.account-created-card {
  width: 560px !important;
  max-width: 84vw !important;

  min-height: 390px !important;
  height: auto !important;

  padding: 30px 42px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;

  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;
}

/* Titolo e testo uguali */
.created-card h1,
.check-email-card h1,
.account-created-card h1 {
  font-size: 26px !important;
  line-height: 1.08 !important;
  margin-bottom: 8px !important;
}

.created-card p,
.check-email-card p,
.account-created-card p {
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin-bottom: 24px !important;
}

/* Icona mail */
.created-icon,
.check-email-icon,
.created-card img[src*="mail.png"],
.check-email-card img[src*="mail.png"],
.account-created-card img[src*="mail.png"] {
  width: 112px !important;
  height: 112px !important;
  object-fit: contain !important;
  margin-bottom: 20px !important;
}

/* === PAGINA ACCEDI === */

.login-card {
  justify-content: center !important;
}

.login-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: -2px !important;
  margin-bottom: 2px !important;
}

.forgot-password {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0647ff !important;
  text-decoration: none !important;
}

.auth-divider {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 6px 0 2px !important;
}

.auth-divider span {
  height: 1px !important;
  background: rgba(7, 19, 61, 0.10) !important;
}

.auth-divider p {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(7, 19, 61, 0.55) !important;
}

/* Errore login password */
.login-error {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  margin: -4px 0 4px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #ef3340 !important;

  opacity: 0 !important;
  transform: translateY(-4px) !important;
  pointer-events: none !important;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease !important;
}

.login-error.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.login-error span {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;

  border-radius: 999px !important;
  background: #ef3340 !important;
  color: #ffffff !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.password-field.is-error {
  border-color: #ef3340 !important;
  box-shadow:
    0 0 0 1px rgba(239, 51, 64, 0.18),
    0 14px 28px rgba(239, 51, 64, 0.08) !important;
}

/* === PAGINA PASSWORD DIMENTICATA === */

.forgot-card {
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

.forgot-icon {
  width: 112px !important;
  height: 112px !important;
  object-fit: contain !important;
  margin-bottom: 20px !important;
}

.forgot-card h1 {
  width: 100% !important;
  text-align: center !important;
  font-size: 30px !important;
  line-height: 1.08 !important;
  margin: 0 0 12px !important;
}

.forgot-card > p {
  max-width: 440px !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  margin: 0 auto 24px !important;
  color: #263765 !important;
}

.forgot-form {
  width: 100% !important;
}

.forgot-message {
  display: none !important;
  margin: -4px 0 2px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0647ff !important;
}

.forgot-message.is-visible {
  display: block !important;
}

.forgot-message.is-error {
  color: #ef3340 !important;
}

.back-login-btn {
  height: 48px !important;
  width: 100% !important;

  display: grid !important;
  grid-template-columns: 44px 1fr 44px !important;
  align-items: center !important;

  border: 1px solid rgba(7, 19, 61, 0.14) !important;
  border-radius: 12px !important;
  background: #ffffff !important;

  text-decoration: none !important;
  color: #07133d !important;

  font-size: 18px !important;
  font-weight: 900 !important;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease !important;
}

.back-login-btn span {
  color: #0647ff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.back-login-btn:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(3, 8, 63, 0.28) !important;
  box-shadow:
    0 18px 36px rgba(7, 19, 61, 0.10),
    0 8px 18px rgba(0, 45, 180, 0.08) !important;
}

.back-login-btn:active {
  transform: translateY(-1px) !important;
}

/* Password dimenticata: email come registrati + bottone senza freccia */
.forgot-form label {
  width: 100% !important;
  text-align: left !important;
  align-items: flex-start !important;

  font-size: 12px !important;
  font-weight: 900 !important;
  color: #050a24 !important;
}

.forgot-form label input {
  width: 100% !important;
}

.back-login-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-template-columns: none !important;
  padding: 0 !important;
}

.back-login-btn span {
  display: none !important;
}

/* === PASSWORD DIMENTICATA: EMAIL INVIATA === */

.forgot-sent-screen {
  display: none !important;
}

body.forgot-sent-active .auth-shell {
  display: none !important;
}

body.forgot-sent-active .forgot-sent-screen {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  padding-top: 50px !important;
  box-sizing: border-box !important;
}

.forgot-sent-logo {
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;

  position: relative !important;
  left: 0px !important;
  top: 125px !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.forgot-sent-logo img {
  width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.forgot-sent-card {
  width: 560px !important;
  max-width: 84vw !important;

  min-height: 390px !important;
  height: auto !important;

  padding: 42px 48px !important;
  margin: 0 auto !important;

  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;

  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(7, 19, 61, 0.10) !important;
  box-shadow: 0 32px 80px rgba(7, 19, 61, 0.10) !important;
}

.forgot-sent-icon {
  width: 112px !important;
  height: 112px !important;
  object-fit: contain !important;
  margin-bottom: 24px !important;
}

.forgot-sent-card h1 {
  font-size: 34px !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
  color: #050a24 !important;
}

.forgot-sent-main {
  margin: 0 0 28px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #263765 !important;
}

.forgot-sent-note {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: rgba(38, 55, 101, 0.78) !important;
}

.header-actions {
  position: relative;
  z-index: 50;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(191, 205, 235, 0.8);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(4, 16, 82, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s ease;
  z-index: 9999;
}

.profile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(191, 205, 235, 0.55);
}

.profile-menu-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3ff;
  border: 2px solid rgba(4, 16, 82, 0.35);
  color: #06145f;
  font-weight: 800;
  font-size: 18px;
}

.profile-menu-user strong {
  display: block;
  font-size: 15px;
  color: #060b26;
  line-height: 1.15;
}

.profile-menu-user small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #7180a3;
}

.profile-menu-list {
  padding: 12px 0;
}

.profile-menu-item,
.profile-menu-logout {
  width: 100%;
  min-height: 46px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: #070d2b;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-menu-item:hover,
.profile-menu-logout:hover {
  background: rgba(6, 20, 95, 0.055);
  color: #0047ff;
  transform: translateX(2px);
}

.profile-menu-logout {
  border-top: 1px solid rgba(191, 205, 235, 0.55);
}

/* FIX MENU PROFILO SOPRA TUTTO */

.site-header,
header {
  position: relative !important;
  z-index: 99990 !important;
  overflow: visible !important;
}

.header-actions {
  position: relative !important;
  z-index: 99999 !important;
  overflow: visible !important;
}

.profile-menu {
  z-index: 100000 !important;
  background: #ffffff !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-menu.is-open {
  z-index: 100000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.page,
.hero,
.dashboard,
.dashboard-shell,
.dashboard-preview,
.dashboard-main,
.dashboard-card,
.upload-card {
  position: relative;
  z-index: 1;
}

/* FIX MENU PROFILO: icona sempre circolare, email adattabile */

.profile-menu-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.profile-menu-avatar {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;

  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  flex: 0 0 54px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
}

.profile-menu-user {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.profile-menu-user strong {
  display: block !important;
  max-width: 100% !important;
  font-size: var(--profile-email-size, 15px) !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.profile-menu-user strong.is-wrapped-email {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* FIX DEFINITIVO SCHERMATA ACCOUNT CREATO */

.auth-success-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  padding-top: 115px !important;
  background:
    linear-gradient(135deg, rgba(0, 64, 255, 0.035), transparent 36%),
    repeating-linear-gradient(
      135deg,
      rgba(0, 64, 255, 0.045) 0px,
      rgba(0, 64, 255, 0.045) 1px,
      transparent 1px,
      transparent 34px
    ),
    #fbfdff !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-success .auth-success-screen {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.is-success .auth-shell {
  display: none !important;
}

.success-logo {
  position: static !important;
  transform: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 300px !important;
  height: auto !important;

  margin: 0 auto 95px auto !important;
}

.success-logo img {
  width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.success-card {
  width: 720px !important;
  max-width: calc(100vw - 48px) !important;
  min-height: 330px !important;

  margin: 0 auto !important;
  padding: 58px 54px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(210, 219, 238, 0.9) !important;
  border-radius: 22px !important;
  box-shadow: 0 34px 90px rgba(10, 24, 70, 0.13) !important;
}

.success-icon {
  width: 120px !important;
  height: 120px !important;
  margin: 0 auto 34px auto !important;
}

.success-icon img {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain !important;
  display: block !important;
}

.success-card h1 {
  margin: 0 0 16px 0 !important;
  text-align: center !important;
  font-size: 46px !important;
  line-height: 1.05 !important;
}

.success-card p {
  margin: 0 !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.45 !important;
}

/* FIX FORZATO - SCHERMATA ACCOUNT CREATO */

body.is-success {
  overflow: hidden !important;
}

body.is-success .auth-success-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: block !important;

  background:
    linear-gradient(135deg, rgba(0, 70, 255, 0.035), transparent 38%),
    repeating-linear-gradient(
      135deg,
      rgba(0, 70, 255, 0.045) 0px,
      rgba(0, 70, 255, 0.045) 1px,
      transparent 1px,
      transparent 34px
    ),
    #fbfdff !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.is-success .auth-shell {
  display: none !important;
}

/* LOGO ACCOUNT CREATO */
body.is-success .success-logo {
  position: fixed !important;
  top: 82px !important;              /* alza/abbassa logo */
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 260px !important;           /* grandezza logo */
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body.is-success .success-logo img {
  width: 260px !important;           /* grandezza logo */
  max-width: 260px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* CARD ACCOUNT CREATO */
body.is-success .success-card {
  position: fixed !important;
  top: 300px !important;             /* alza/abbassa box */
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 720px !important;
  height: 360px !important;          /* altezza box */
  max-width: calc(100vw - 48px) !important;

  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(210, 219, 238, 0.95) !important;
  border-radius: 22px !important;
  box-shadow: 0 34px 90px rgba(10, 24, 70, 0.13) !important;
}

body.is-success .success-icon {
  width: 118px !important;
  height: 118px !important;
  margin: 0 0 34px 0 !important;
}

body.is-success .success-icon img {
  width: 118px !important;
  height: 118px !important;
  object-fit: contain !important;
}

body.is-success .success-card h1 {
  margin: 0 0 16px 0 !important;
  font-size: 48px !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

body.is-success .success-card p {
  margin: 0 !important;
  font-size: 23px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/* FORZA LOGO ACCOUNT CREATO PIU' IN BASSO */
html body.auth-page.is-success #authSuccessScreen .success-logo {
  position: fixed !important;
  top: 180px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000000 !important;
  margin: 0 !important;
}

html body.auth-page.is-success #authSuccessScreen .success-logo img {
  width: 205px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* === ACCOUNT CREATO: LOGO + BOX CENTRATI === */

body.auth-page.is-success .auth-success-screen {
  position: fixed !important;
  inset: 0 !important;

  display: grid !important;
  grid-template-rows: auto auto !important;
  justify-content: center !important;
  justify-items: center !important;
  align-content: center !important;

  gap: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Logo */
body.auth-page.is-success .success-logo {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}

body.auth-page.is-success .success-logo img {
  width: 240px !important;
  height: auto !important;
  display: block !important;
}

/* Box */
body.auth-page.is-success .success-card {
  width: 620px !important;
  max-width: 90vw !important;

  min-height: 300px !important;
  padding: 58px 70px !important;

  margin: 0 !important;
  transform: none !important;
}

/* === FIX FORTE: ACCOUNT CREATO CENTRATO PERFETTAMENTE === */

body.auth-page.is-success .auth-success-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* logo centrato */
body.auth-page.is-success .success-logo {
  position: fixed !important;
  top: 95px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.auth-page.is-success .success-logo img {
  width: 230px !important;
  height: auto !important;
  display: block !important;
}

/* box centrato allo schermo */
body.auth-page.is-success .success-card {
  position: fixed !important;
  top: 56% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 620px !important;
  max-width: 90vw !important;
  min-height: 300px !important;

  margin: 0 !important;
}

/* === LANGUAGE DROPDOWN PREMIUM === */

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 100001;
}

.language-switcher .language-link {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #050927;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 0.28s ease, color 0.28s ease;
}

.language-switcher .language-link:hover {
  transform: translateY(-2px);
  color: #0048ff;
}

.language-switcher.is-open .chevron-down {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 230px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 18, 65, 0.12);
  box-shadow:
    0 24px 70px rgba(3, 10, 55, 0.14),
    0 8px 24px rgba(0, 72, 255, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu button {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0 14px;
  text-align: left;
  color: #050927;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.language-menu button:hover {
  background: rgba(0, 72, 255, 0.08);
  color: #0048ff;
  transform: translateX(3px);
}

/* === MENU LINGUE: BOX VERTICALE STILE PROFILO === */

.language-switcher {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 100000 !important;
}

.language-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* freccia normale: verso il basso */
.language-toggle .chevron-down {
  width: 9px !important;
  height: 9px !important;
  border-right: 2.5px solid #050927 !important;
  border-bottom: 2.5px solid #050927 !important;
  transform: rotate(45deg) !important;
  transition: transform 0.25s ease !important;
}

/* freccia quando menu aperto: verso l'alto ^ */
.language-switcher.is-open .chevron-down {
  transform: rotate(225deg) !important;
}

html.is-night-mode .language-toggle .chevron-down,
body.is-night-mode .language-toggle .chevron-down {
  border-right-color: #f7f9ff !important;
  border-bottom-color: #f7f9ff !important;
}

/* === HOME RESPONSIVE: BORDI LATERALI PIU' STRETTI QUANDO LA FINESTRA SI STRINGE === */
@media (min-width: 761px) and (max-width: 1519px) {
  body:has(.hero) .header,
  body:has(.hero) .page {
    width: calc(100% - 16px) !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body:has(.hero) .page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body:has(.hero) .hero,
  body:has(.hero) .features,
  body:has(.hero) .bottom-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.language-menu {
  position: absolute !important;
  top: calc(100% + 16px) !important;
  right: 0 !important;

  width: 270px !important;
  max-height: 430px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;

  padding: 14px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(5, 9, 39, 0.12) !important;
  box-shadow: 0 24px 70px rgba(3, 10, 55, 0.16) !important;
  backdrop-filter: blur(18px) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(0.98) !important;
  transform-origin: top right !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
}

.language-switcher.is-open .language-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.language-menu button {
  width: 100% !important;
  height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;

  padding: 0 14px !important;
  color: #050927 !important;
  font-family: Manrope, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-align: left !important;

  cursor: pointer !important;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease !important;
}

.language-menu button:hover {
  background: rgba(0, 72, 255, 0.08) !important;
  color: #0048ff !important;
  transform: translateX(4px) !important;
}

/* Spunta verde automatica per account registrato */
.account-created-check .account-status-dot {
  width: 22px;
  height: 22px;
  border: 2px solid #c7d4f5;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  flex: 0 0 22px;
  position: relative;
  transition: all 0.25s ease;
}

body.is-logged-in .account-created-check .account-status-dot {
  background: #18c77a;
  border-color: #18c77a;
  box-shadow: 0 8px 22px rgba(24, 199, 122, 0.22);
}

body.is-logged-in .account-created-check .account-status-dot::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.account-status-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.account-status-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.account-status-row strong {
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  color: #050927 !important;
}

.account-status-dot {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border: 2px solid #c7d4f5 !important;
  border-radius: 999px !important;
  background: #fff !important;
  display: grid !important;
  place-items: center !important;
}

body.is-logged-in .account-created-check .account-status-dot {
  background: #18c77a !important;
  border-color: #18c77a !important;
}

body.is-logged-in .account-created-check .account-status-dot::after {
  content: "" !important;
  width: 9px !important;
  height: 5px !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: rotate(-45deg);
}

/* FIX STATO ACCOUNT */
.account-checklist {
  display: none !important;
}

.account-status-list {
  display: none !important;
}

.account-state .account-status-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin-top: 24px !important;
}

.account-state .account-status-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.account-state .account-status-row strong {
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  color: #050927 !important;
  margin: 0 !important;
}

.account-state .account-status-dot {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 999px !important;
  border: 2px solid #bfd0f5 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
}

.account-state .account-status-dot::before,
.account-state .account-status-dot::after {
  content: none !important;
}

body.is-logged-in .account-state .account-created-check .account-status-dot {
  background: #18c77a !important;
  border-color: #18c77a !important;
  box-shadow: 0 8px 22px rgba(24, 199, 122, 0.22) !important;
}

body.is-logged-in .account-state .account-created-check .account-status-dot::after {
  content: "✓" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
}

/* === STATO ACCOUNT: righe compatte + spunta immagine === */

.account-state {
  --status-dot-size: 22px;      /* grandezza cerchi */
  --status-text-size: 15px;     /* grandezza scritte */
  --status-check-size: 14px;    /* grandezza spunta.png */
  --status-row-gap: 10px;       /* distanza tra le righe */
  --status-inline-gap: 13px;    /* distanza cerchio/testo */
}

.account-state .account-status-list {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--status-row-gap) !important;
  margin-top: 18px !important;
}

.account-state .account-status-row {
  display: flex !important;
  align-items: center !important;
  gap: var(--status-inline-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.account-state .account-status-row strong {
  font-size: var(--status-text-size) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #050927 !important;
  margin: 0 !important;
}

.account-state .account-status-dot {
  width: var(--status-dot-size) !important;
  height: var(--status-dot-size) !important;
  min-width: var(--status-dot-size) !important;
  flex: 0 0 var(--status-dot-size) !important;
  border-radius: 999px !important;
  border: 2px solid #bfd0f5 !important;
  background: #fff !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.account-state .account-status-dot::before,
.account-state .account-status-dot::after {
  content: none !important;
  display: none !important;
}

body.is-logged-in .account-state .account-created-check .account-status-dot {
  border-color: #18c77a !important;
  background: #18c77a url("immagini/spunta.png") center / var(--status-check-size) var(--status-check-size) no-repeat !important;
  box-shadow: 0 7px 18px rgba(24, 199, 122, 0.2) !important;
}

/* === STATO ACCOUNT: rimuove spunta.png e segni sopra === */

body.is-logged-in .account-state .account-created-check .account-status-dot {
  background-image: none !important;
  background: #18c77a !important;
}

.account-state .account-status-dot::before,
.account-state .account-status-dot::after,
.account-created-check .account-status-dot::before,
.account-created-check .account-status-dot::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* === FIX DEFINITIVO: CERCHIO VERDE VUOTO, SENZA SPUNTA / IMMAGINI / SEGNI === */

.account-created-check .account-status-dot {
  background: #18c77a !important;
  background-image: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

/* elimina qualsiasi immagine dentro al cerchio */
.account-created-check .account-status-dot img,
.account-created-check .account-status-dot svg,
.account-created-check .account-status-dot > * {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* elimina qualsiasi spunta fatta con ::before / ::after */
.account-created-check .account-status-dot::before,
.account-created-check .account-status-dot::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  transform: none !important;
}

/* === STATO ACCOUNT: VERDE SOLO SE UTENTE LOGGATO === */

/* stato normale: nessun utente loggato */
body:not(.is-logged-in) .account-created-check .account-status-dot {
  background: #fff !important;
  border: 2px solid #bfd0f5 !important;
  box-shadow: none !important;
}

/* elimina qualsiasi contenuto dentro al cerchio */
.account-created-check .account-status-dot,
.account-created-check .account-status-dot::before,
.account-created-check .account-status-dot::after {
  background-image: none !important;
  content: none !important;
}

.account-created-check .account-status-dot * {
  display: none !important;
}

/* utente loggato: Account creato diventa verde */
body.is-logged-in .account-created-check .account-status-dot {
  background: #18c77a !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(24, 199, 122, 0.22) !important;
}

/* === DASHBOARD / IMPOSTAZIONI: VISTE SEPARATE === */

.dashboard-view,
.settings-view {
  display: none;
}

.dashboard-view.is-active,
.settings-view.is-active {
  display: block;
}

.dashboard-view {
  height: 100%;
}

.side-menu .dash-nav-control.is-active {
  color: var(--blue);
  background: #eef2ff;
}

.settings-view {
  min-height: 100%;
  overflow: visible;
  padding-right: 0;
}

.settings-view h2 {
  height: 58px;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: #050927;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 310px 205px;
  gap: 22px 20px;
  margin-top: 10px;
  padding-bottom: 28px;
}

.settings-card {
  height: 100%;
  min-height: 0;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(12, 22, 80, 0.06);
}

.settings-card h3 {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  color: #050927;
}

.settings-card strong {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  color: #050927;
}

.settings-card p,
.settings-card span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.settings-security-body,
.settings-appearance-body,
.notification-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
}

.settings-appearance-body {
  grid-template-columns: 42px 1fr;
}

.settings-icon-slot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #073aff, #02032f 82%);
  box-shadow: 0 12px 24px rgba(0, 25, 145, 0.2);
}

.settings-icon-slot.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.settings-action-btn,
.danger-btn {
  height: 38px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  background: #eef2ff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.settings-action-btn.arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.settings-action-btn.arrow span {
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.settings-notifications {
  display: grid;
  gap: 16px;
}

.notification-row {
  padding-top: 14px;
  border-top: 1px solid rgba(223, 230, 247, 0.9);
}

.notification-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.settings-toggle {
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: #dce5fb;
  position: relative;
}

.settings-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(8, 18, 78, 0.18);
}

.settings-toggle.is-on {
  background: linear-gradient(135deg, #0637ff, #02033d 86%);
}

.settings-toggle.is-on::after {
  left: 21px;
}

.settings-danger strong {
  font-size: 14px;
}

.danger-btn {
  color: #fff;
  background: #dd2747;
}

@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 1519px) {
  .settings-grid {
    width: 880px !important;
    min-width: 880px !important;
    max-width: 880px !important;
  }
}

@media (max-width: 760px) {
  .settings-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* === IMPOSTAZIONI: layout premium come reference === */

.settings-card {
  padding: 28px 32px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #dfe6f7 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(12, 22, 80, 0.055) !important;
}

.settings-card h3 {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  color: #050927 !important;
}

.settings-security,
.settings-appearance,
.settings-billing,
.settings-danger {
  display: flex !important;
  flex-direction: column !important;
}

.settings-security-body {
  grid-template-columns: 78px 1fr !important;
  gap: 24px !important;
  align-items: center !important;
  margin-top: 34px !important;
}

.settings-billing-body {
  display: grid !important;
  grid-template-columns: 56px 1fr !important;
  gap: 18px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.settings-appearance-body {
  display: grid !important;
  grid-template-columns: 56px 1fr !important;
  gap: 18px !important;
  align-items: center !important;
  margin-top: 76px !important;
}

.settings-card strong {
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  color: #050927 !important;
}

.settings-card p,
.settings-card span {
  color: #1a2c70 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

.settings-icon-slot {
  position: relative !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #eef4ff !important;
  border: 1px solid #c9d7ff !important;
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.12) !important;
}

.settings-icon-slot.small {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border-color: transparent !important;
  background: #eef4ff !important;
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.08) !important;
}

.settings-billing .settings-icon-slot {
  width: 52px !important;
  height: 52px !important;
}

.settings-appearance .settings-icon-slot {
  width: 52px !important;
  height: 52px !important;
}

.settings-lock-icon::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  width: 14px;
  height: 15px;
  border: 3px solid #0646ff;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.settings-lock-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 31px;
  width: 24px;
  height: 20px;
  border: 3px solid #0646ff;
  border-radius: 5px;
  background:
    radial-gradient(circle at center, #0646ff 0 2px, transparent 3px),
    #eef4ff;
}

.settings-mail-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 18px;
  height: 14px;
  border: 2px solid #0646ff;
  border-radius: 2px;
}

.settings-mail-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #0646ff;
  border-bottom: 2px solid #0646ff;
  transform: rotate(-45deg);
}

.settings-file-icon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  width: 20px;
  height: 28px;
  border: 3px solid #0646ff;
  border-radius: 3px;
}

.settings-file-icon::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 25px;
  width: 12px;
  height: 10px;
  border-top: 3px solid #0646ff;
  border-bottom: 3px solid #0646ff;
}

.settings-appearance-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 21px;
  height: 21px;
  border: 3px solid #0646ff;
  border-radius: 50%;
}

.settings-appearance-icon::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 12px;
  width: 17px;
  height: 25px;
  border-left: 3px solid #0646ff;
  border-bottom: 3px solid #0646ff;
  border-radius: 0 0 0 15px;
  transform: rotate(42deg);
}

.settings-action-btn,
.danger-btn {
  position: relative !important;
  width: 100% !important;
  height: 52px !important;
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  border-radius: 10px !important;
  border: 1px solid #d7e2fb !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #050927 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.settings-button-icon {
  position: absolute !important;
  right: 22px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

.settings-button-lock::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #050927;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.settings-button-lock::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 12px;
  height: 9px;
  border: 2px solid #050927;
  border-radius: 3px;
}

.settings-notifications {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.settings-appearance .notification-row,
.settings-appearance .settings-toggle {
  display: none !important;
}

.notification-row {
  grid-template-columns: 48px 1fr 48px !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 18px 0 !important;
  border-top: 1px solid rgba(199, 211, 241, 0.75) !important;
}

.notification-row:first-of-type {
  margin-top: 18px !important;
  border-top: 0 !important;
}

.notification-row strong {
  margin-bottom: 4px !important;
}

.notification-row p {
  margin: 0 !important;
  max-width: 270px !important;
}

.settings-toggle {
  width: 44px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0646ff, #02033d) !important;
  box-shadow: 0 8px 20px rgba(0, 56, 255, 0.16) !important;
}

.settings-toggle::after {
  top: 3px !important;
  left: 23px !important;
  width: 18px !important;
  height: 18px !important;
}

.settings-billing .settings-action-btn {
  width: calc(100% - 56px) !important;
  height: 46px !important;
  margin-left: 56px !important;
}

.settings-appearance .settings-action-btn {
  width: calc(100% - 56px) !important;
  height: 46px !important;
  margin-left: 56px !important;
}

.settings-action-btn.arrow span {
  position: absolute !important;
  right: 22px !important;
  margin: 0 !important;
  color: #050927 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.settings-danger h3 {
  color: #ff1f2f !important;
}

.settings-danger {
  border-color: #ff1f2f !important;
}

.settings-danger strong {
  margin-top: 20px !important;
  font-size: 14px !important;
}

.settings-danger p {
  max-width: 330px !important;
  margin-top: 8px !important;
}

.danger-btn {
  width: 190px !important;
  height: 46px !important;
  margin-top: auto !important;
  justify-content: center !important;
  border-color: #ff2737 !important;
  color: #ff1f2f !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.settings-billing,
.settings-danger {
  padding-bottom: 18px !important;
}

.settings-button-trash::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 9px;
  height: 10px;
  border: 2px solid #ff1f2f;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.settings-button-trash::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 2px;
  background: #ff1f2f;
  box-shadow: 4px -3px 0 -1px #ff1f2f;
}

@media (max-width: 760px) {
  .settings-card {
    min-height: 240px !important;
  }

  .settings-billing .settings-action-btn,
  .danger-btn {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .notification-row {
    grid-template-columns: 42px 1fr 44px !important;
    gap: 14px !important;
  }
}

/* === IMPOSTAZIONI: icone definitive PNG === */

.settings-lock-icon,
.settings-appearance-icon,
.settings-file-icon {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  border-radius: 50% !important;
  background-color: #eef4ff !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid #c9d7ff !important;
}

.settings-appearance .settings-appearance-icon,
.settings-billing .settings-file-icon {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
}

.settings-appearance-body,
.settings-billing-body {
  grid-template-columns: 78px 1fr !important;
}

.settings-lock-icon {
  background-image: url("immagini/lucchettone.png") !important;
  background-size: auto 34px !important;
  background-position: 50% 50% !important;
}

.settings-appearance-icon {
  background-image: url("immagini/pennello.png") !important;
  background-size: auto 34px !important;
}

.settings-file-icon {
  background-image: url("immagini/documento.png") !important;
  background-size: auto 34px !important;
  background-position: 50% 50% !important;
}

.settings-lock-icon::before,
.settings-lock-icon::after,
.settings-appearance-icon::before,
.settings-appearance-icon::after,
.settings-file-icon::before,
.settings-file-icon::after,
.settings-button-lock::before,
.settings-button-lock::after,
.settings-button-trash::before,
.settings-button-trash::after {
  content: none !important;
  display: none !important;
}

.settings-button-lock,
.settings-button-trash {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: auto 18px !important;
}

.settings-button-lock {
  background-image: url("immagini/lucchetto.png") !important;
}

.settings-button-trash {
  background-image: url("immagini/cestino.png") !important;
}

.settings-appearance .settings-action-btn,
.settings-billing .settings-action-btn {
  width: calc(100% - 78px) !important;
  margin-left: 78px !important;
}

/* Micro-allineamenti visuali richiesti */
.settings-lock-icon {
  background-position: 50% 50% !important;
}

.settings-file-icon {
  background-position: 50% 50% !important;
}

.danger-btn {
  width: 232px !important;
}

.danger-btn .settings-button-trash {
  right: 22px !important;
}

.settings-grid {
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: minmax(205px, auto) minmax(205px, auto) !important;
  align-items: start !important;
}

.settings-billing {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.settings-appearance {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.settings-security {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.settings-danger {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.settings-security,
.settings-appearance,
.settings-billing,
.settings-danger {
  min-height: 205px !important;
  height: auto !important;
  padding-bottom: 28px !important;
}

.settings-security.has-password-date {
  min-height: 268px !important;
}

.settings-security-body,
.settings-appearance-body {
  margin-top: 18px !important;
}

.settings-security .settings-action-btn,
.settings-appearance .settings-action-btn,
.settings-billing .settings-action-btn,
.settings-danger .danger-btn {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  height: 52px !important;
}

.settings-security .settings-action-btn,
.settings-appearance .settings-action-btn,
.settings-billing .settings-action-btn,
.settings-danger .danger-btn {
  transform: translateY(10px);
}

.settings-card,
.settings-card .settings-action-btn,
.settings-card .danger-btn {
  transition:
    min-height 0.38s var(--premium-ease),
    transform 0.38s var(--premium-ease),
    box-shadow 0.38s var(--premium-ease),
    border-color 0.38s var(--premium-ease),
    background 0.38s var(--premium-ease);
  will-change: transform;
}

.settings-card:hover {
  transform: translateY(-4px);
  border-color: var(--premium-hover-border) !important;
  box-shadow: var(--premium-hover-shadow) !important;
}

.settings-danger:hover {
  border-color: #ff1f2f !important;
  box-shadow:
    0 22px 48px rgba(255, 31, 47, 0.12),
    0 0 42px rgba(255, 31, 47, 0.08) !important;
}

.settings-card .settings-action-btn:hover,
.settings-card .danger-btn:hover {
  transform: translateY(15px);
  box-shadow:
    0 16px 34px rgba(8, 22, 88, 0.12),
    0 0 30px rgba(6, 70, 255, 0.08) !important;
}

.settings-card:active {
  transform: translateY(-1px);
}

/* === DASHBOARD RICOSTRUITA COME IMPOSTAZIONI === */

@media (min-width: 761px) {
  .dashboard-main {
    padding: 32px 28px 28px !important;
    box-sizing: border-box !important;
  }

  .dashboard-view {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .dashboard-view .dashboard-top {
    height: 58px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .dashboard-view .dashboard-top h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #050927 !important;
  }

  .dashboard-view .dashboard-tools {
    display: none !important;
  }

  .dashboard-view .dashboard-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 310px 205px !important;
    gap: 22px 20px !important;
    margin: 10px 0 0 !important;
    padding: 0 0 28px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .dashboard-view .account-state {
    grid-column: 1 / -1 !important;
  }

  .dashboard-view .panel {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 22px 24px !important;
    overflow: hidden !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: var(--card) !important;
    box-shadow: 0 16px 36px rgba(12, 22, 80, 0.06) !important;
    box-sizing: border-box !important;
  }

  .dashboard-view .panel h3 {
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #050927 !important;
  }

  .dashboard-view .panel p,
  .dashboard-view .panel span,
  .dashboard-view .panel small {
    color: var(--muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
  }

  .dashboard-view .upload-first {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 24px 32px 26px !important;
  }

  .dashboard-view .upload-first p {
    margin: 0 !important;
  }

  .dashboard-view .upload-first .file-scene {
    width: 100% !important;
    height: 128px !important;
    margin: 16px 0 14px !important;
    flex: 0 0 auto !important;
  }

  .dashboard-view .file-scene span,
  .dashboard-view .main-file {
    color: #0646ff !important;
  }

  .dashboard-view .upload-first .btn.small {
    width: calc(100% - 36px) !important;
    max-width: none !important;
    height: 52px !important;
    margin: auto auto 0 !important;
    align-self: center !important;
  }

  .dashboard-view .upload-box {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px !important;
  }

  .dashboard-view .upload-box .dropzone {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 4px !important;
    border-radius: 10px !important;
  }

  .dashboard-view .payments,
  .dashboard-view .account-state {
    display: flex !important;
    flex-direction: column !important;
    padding: 22px 24px !important;
  }

  .dashboard-view .payments > p {
    margin: 0 0 18px !important;
  }

  .dashboard-view .payment-row {
    min-height: 40px !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .dashboard-view .payment-row + .payment-row {
    margin-top: 10px !important;
  }

  .dashboard-view .account-status-list {
    margin-top: 8px !important;
    gap: 11px !important;
  }
}

/* Spazio pulito tra i pulsanti della CTA finale */
.bottom-grid .cta .cta-buttons {
  gap: 14px !important;
}

.settings-card .settings-action-btn:active,
.settings-card .danger-btn:active {
  transform: translateY(17px);
}

/* === MODALE ELIMINA ACCOUNT === */

body.delete-modal-open {
  overflow: hidden !important;
}

.delete-account-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.delete-account-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.delete-account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 18, 0.56);
  backdrop-filter: blur(1px);
}

.delete-account-dialog {
  position: relative;
  width: 452px;
  min-height: 578px;
  max-width: calc(100vw - 36px);
  padding: 38px 24px 24px;
  border: 1px solid rgba(225, 230, 243, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(5, 10, 35, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #050927;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

.delete-account-modal.is-open .delete-account-dialog {
  transform: translateY(0) scale(1);
}

.delete-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #111633;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.delete-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 0 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe8ec;
}

.delete-modal-icon img {
  width: auto;
  height: 38px;
  display: block;
  object-fit: contain;
}

.delete-account-dialog h2 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.delete-account-dialog > strong {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.delete-account-dialog > p {
  width: 340px;
  max-width: 100%;
  margin: 22px 0 0;
  color: #202a55;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.delete-modal-warning {
  width: 100%;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 31, 47, 0.08);
  border-radius: 8px;
  background: #fff0f2;
  color: #111633;
}

.delete-modal-warning h3 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9273b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.delete-modal-warning h3 span {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c9273b;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.delete-modal-warning ul {
  margin: 0;
  padding-left: 19px;
}

.delete-modal-warning li {
  color: #202a55;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.delete-modal-actions {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
}

.delete-modal-actions button {
  height: 46px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.delete-modal-cancel {
  border: 1px solid #dde5f6;
  background: #fff;
  color: #050927;
}

.delete-modal-confirm {
  border: 0;
  color: #fff;
  background: #ef202b;
  box-shadow: 0 16px 32px rgba(239, 32, 43, 0.18);
}

.delete-modal-confirm:disabled {
  cursor: wait;
}

.delete-modal-confirm.is-loading {
  opacity: 0.78;
  transform: none !important;
}

.delete-modal-error {
  display: none;
  width: 100%;
  margin: 12px 0 0;
  color: #ef202b;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.delete-modal-error.is-visible {
  display: block;
}

.delete-modal-actions button:hover {
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .delete-account-dialog {
    width: 100%;
    min-height: 0;
  }

  .delete-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* === MODALE CAMBIA PASSWORD === */

body.password-modal-open {
  overflow: hidden !important;
}

.password-change-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.password-change-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.password-change-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 18, 0.36);
  backdrop-filter: blur(1px);
}

.password-change-dialog {
  position: relative;
  width: 506px;
  max-width: calc(100vw - 36px);
  padding: 28px 26px 26px;
  border: 1px solid rgba(225, 230, 243, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 34px 90px rgba(5, 10, 35, 0.22);
  color: #050927;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

.password-change-modal.is-open .password-change-dialog {
  transform: translateY(0) scale(1);
}

.password-change-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #111633;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.password-change-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.08);
}

.password-change-icon img {
  width: auto;
  height: 32px;
  display: block;
  object-fit: contain;
}

.password-change-dialog h2 {
  margin: 0;
  text-align: center;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  color: #050927;
}

.password-change-dialog > p {
  margin: 14px 0 24px;
  color: #25366f;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.password-change-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.password-change-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #050927;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.password-change-field {
  position: relative;
  display: block;
}

.password-change-input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 18px;
  border: 1px solid #dce4f6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #050927;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-change-input:focus {
  border-color: rgba(6, 70, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(6, 70, 255, 0.08);
}

.password-change-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #050927;
  transform: translateY(-50%);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.22s ease, transform 0.22s ease;
}

.password-change-eye svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: currentColor;
  transform-origin: 50% 50%;
}

.password-change-eye.is-active {
  color: #02033d;
}

.password-change-eye.is-blinking svg {
  animation: passwordEyeBlink 0.32s ease;
}

@keyframes passwordEyeBlink {
  0% {
    transform: scaleY(1);
  }

  42% {
    transform: scaleY(0.12);
  }

  100% {
    transform: scaleY(1);
  }
}

.password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  margin-top: 2px;
  color: #1a4ed8;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.password-requirements span {
  position: relative;
  padding-left: 26px;
}

.password-requirements span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1.5px solid #2f6fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.password-requirements span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 8px;
  border-right: 1.8px solid #2f6fff;
  border-bottom: 1.8px solid #2f6fff;
  transform: translateY(-60%) rotate(40deg);
}

.password-requirements span:not(.is-valid) {
  color: #7b88b6;
}

.password-requirements span:not(.is-valid)::before {
  border-color: #b9c8f4;
}

.password-requirements span:not(.is-valid)::after {
  opacity: 0;
}

.password-change-message {
  display: none;
  min-height: 16px;
  margin: 0;
  color: #ef202b;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.password-change-message.is-visible {
  display: block;
}

.password-change-message.is-success {
  color: #0a9b61;
}

.password-change-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.password-change-actions button {
  height: 48px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.password-change-cancel {
  border: 1px solid #dde5f6;
  background: #fff;
  color: #050927;
}

.password-change-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #174cff 0%, #02033d 88%);
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.2);
}

.password-change-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}

.password-change-actions button:hover {
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .password-change-dialog {
    width: 100%;
  }

  .password-requirements,
  .password-change-actions {
    grid-template-columns: 1fr;
  }
}

/* === MODALE PERSONALIZZA === */

body.customize-modal-open {
  overflow: hidden !important;
}

.customize-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.customize-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.customize-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 18, 0.56);
  backdrop-filter: blur(1px);
}

.customize-modal-dialog {
  position: relative;
  width: 582px;
  min-height: 500px;
  max-width: calc(100vw - 36px);
  padding: 36px 30px 30px;
  border: 1px solid rgba(225, 230, 243, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(5, 10, 35, 0.24);
  color: #050927;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

.customize-modal.is-open .customize-modal-dialog {
  transform: translateY(0) scale(1);
}

.customize-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #111633;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.customize-modal-dialog > h2 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.customize-modal-dialog > p {
  margin: 16px 0 28px;
  color: #1a2c70;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.customize-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.customize-option-card {
  min-height: 342px;
  padding: 30px 18px 18px;
  border: 1px solid #dfe6f7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 14px 34px rgba(12, 22, 80, 0.035);
}

.customize-option-icon {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.08);
}

.customize-option-icon img {
  width: auto;
  height: 48px;
  display: block;
  object-fit: contain;
}

.customize-option-card h3 {
  margin: 30px 0 12px;
  color: #050927;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.customize-option-card p {
  width: 190px;
  max-width: 100%;
  margin: 0 auto;
  color: #1a2c70;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.customize-option-btn {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: auto;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #050927;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.customize-option-btn span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
}

.customize-option-card:hover {
  border-color: var(--premium-hover-border);
  box-shadow: var(--premium-hover-shadow);
  transform: translateY(-4px);
}

.customize-option-card,
.customize-option-icon {
  transition:
    transform 0.38s var(--premium-ease),
    box-shadow 0.38s var(--premium-ease),
    border-color 0.38s var(--premium-ease);
}

.customize-option-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(8, 22, 88, 0.12),
    0 0 30px rgba(6, 70, 255, 0.08);
}

@media (max-width: 640px) {
  .customize-modal-dialog {
    width: 100%;
    min-height: 0;
  }

  .customize-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* === MODALITA NOTTE PREMIUM === */

html.is-night-mode,
html.is-night-mode body,
body.is-night-mode {
  color-scheme: dark;
}

html.is-night-mode body,
body.is-night-mode {
  --blue: #5f84ff;
  --dark: #f7f9ff;
  --navy: #eef3ff;
  --text: #f7f9ff;
  --muted: #c6d2ff;
  --line: rgba(132, 157, 255, 0.26);
  --soft: #0d1430;
  --card: rgba(14, 21, 48, 0.86);
  --premium-hover-border: rgba(119, 149, 255, 0.54);
  --premium-hover-shadow:
    0 26px 60px rgba(0, 0, 0, 0.34),
    0 0 48px rgba(82, 118, 255, 0.18);
  color: #f7f9ff !important;
  background:
    radial-gradient(circle at 74% 8%, rgba(85, 119, 255, 0.16), transparent 34%),
    radial-gradient(circle at 9% 80%, rgba(28, 196, 255, 0.08), transparent 30%),
    linear-gradient(120deg, #060a19 0%, #0b1128 42%, #080d20 100%) !important;
}

html.is-night-mode body::after,
body.is-night-mode::after {
  background:
    repeating-linear-gradient(130deg, transparent 0 38px, rgba(124, 151, 255, 0.08) 39px, transparent 40px) !important;
  opacity: 0.34 !important;
}

html.is-night-mode .header,
html.is-night-mode .page,
body.is-night-mode .header,
body.is-night-mode .page {
  color: #f7f9ff !important;
}

html.is-night-mode .nav a,
html.is-night-mode .language-link,
html.is-night-mode .login,
html.is-night-mode .side-menu a,
body.is-night-mode .nav a,
body.is-night-mode .language-link,
body.is-night-mode .login,
body.is-night-mode .side-menu a {
  color: #f7f9ff !important;
}

html.is-night-mode .hero h1,
html.is-night-mode .hero-left p,
html.is-night-mode .dashboard-top h2,
html.is-night-mode .settings-view h2,
html.is-night-mode h2,
html.is-night-mode h3,
html.is-night-mode strong,
body.is-night-mode .hero h1,
body.is-night-mode .hero-left p,
body.is-night-mode .dashboard-top h2,
body.is-night-mode .settings-view h2,
body.is-night-mode h2,
body.is-night-mode h3,
body.is-night-mode strong {
  color: #f7f9ff !important;
}

html.is-night-mode .hero h1 span,
body.is-night-mode .hero h1 span {
  color: #6d92ff !important;
  text-shadow: 0 0 28px rgba(91, 126, 255, 0.22);
}

html.is-night-mode p,
html.is-night-mode small,
html.is-night-mode .panel p,
html.is-night-mode .settings-card p,
html.is-night-mode .settings-card span,
html.is-night-mode .customize-modal-dialog > p,
html.is-night-mode .customize-option-card p,
body.is-night-mode p,
body.is-night-mode small,
body.is-night-mode .panel p,
body.is-night-mode .settings-card p,
body.is-night-mode .settings-card span,
body.is-night-mode .customize-modal-dialog > p,
body.is-night-mode .customize-option-card p {
  color: #c6d2ff !important;
}

html.is-night-mode .dashboard,
html.is-night-mode .dashboard-sidebar,
html.is-night-mode .dashboard-main,
html.is-night-mode .panel,
html.is-night-mode .settings-card,
html.is-night-mode .feature-card,
html.is-night-mode .card,
html.is-night-mode .profile-menu,
html.is-night-mode .language-menu,
body.is-night-mode .dashboard,
body.is-night-mode .dashboard-sidebar,
body.is-night-mode .dashboard-main,
body.is-night-mode .panel,
body.is-night-mode .settings-card,
body.is-night-mode .feature-card,
body.is-night-mode .card,
body.is-night-mode .profile-menu,
body.is-night-mode .language-menu {
  border-color: rgba(132, 157, 255, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(18, 27, 60, 0.92), rgba(8, 13, 31, 0.88)) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html.is-night-mode .dashboard-sidebar,
body.is-night-mode .dashboard-sidebar {
  border-right-color: rgba(132, 157, 255, 0.2) !important;
  background: rgba(9, 14, 32, 0.72) !important;
}

html.is-night-mode .side-menu .dash-nav-control.is-active,
html.is-night-mode .side-menu a:hover,
body.is-night-mode .side-menu .dash-nav-control.is-active,
body.is-night-mode .side-menu a:hover {
  color: #8fafff !important;
  background: rgba(92, 127, 255, 0.14) !important;
}

html.is-night-mode .dropzone,
html.is-night-mode .settings-icon-slot,
html.is-night-mode .customize-option-icon,
html.is-night-mode .main-file,
html.is-night-mode .file-scene span,
html.is-night-mode .payment-row button,
html.is-night-mode .withdraw-manage-btn,
html.is-night-mode .settings-action-btn,
html.is-night-mode .danger-btn,
html.is-night-mode .customize-option-btn,
html.is-night-mode .delete-modal-cancel,
body.is-night-mode .dropzone,
body.is-night-mode .settings-icon-slot,
body.is-night-mode .customize-option-icon,
body.is-night-mode .main-file,
body.is-night-mode .file-scene span,
body.is-night-mode .payment-row button,
body.is-night-mode .withdraw-manage-btn,
body.is-night-mode .settings-action-btn,
body.is-night-mode .danger-btn,
body.is-night-mode .customize-option-btn,
body.is-night-mode .delete-modal-cancel {
  border-color: rgba(132, 157, 255, 0.32) !important;
  background: rgba(12, 19, 43, 0.9) !important;
  color: #f7f9ff !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.is-night-mode .btn-secondary,
body.is-night-mode .btn-secondary {
  color: #f7f9ff !important;
  border-color: rgba(132, 157, 255, 0.35) !important;
  background: rgba(12, 19, 43, 0.88) !important;
}

html.is-night-mode .btn-primary,
html.is-night-mode .dropzone button,
body.is-night-mode .btn-primary,
body.is-night-mode .dropzone button {
  color: #fff !important;
  background: linear-gradient(135deg, #2f5dff 0%, #02063d 88%) !important;
  box-shadow: 0 18px 42px rgba(50, 88, 255, 0.28) !important;
}

html.is-night-mode .settings-danger,
body.is-night-mode .settings-danger {
  border-color: #ff4a5c !important;
}

html.is-night-mode .settings-danger h3,
html.is-night-mode .danger-btn,
body.is-night-mode .settings-danger h3,
body.is-night-mode .danger-btn {
  color: #ff5b69 !important;
}

html.is-night-mode .danger-btn,
body.is-night-mode .danger-btn {
  border-color: #ff4a5c !important;
  background: rgba(42, 15, 27, 0.74) !important;
}

html.is-night-mode .settings-card:hover,
html.is-night-mode .panel:hover,
html.is-night-mode .card:hover,
html.is-night-mode .feature-card:hover,
body.is-night-mode .settings-card:hover,
body.is-night-mode .panel:hover,
body.is-night-mode .card:hover,
body.is-night-mode .feature-card:hover {
  border-color: rgba(132, 157, 255, 0.54) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 54px rgba(82, 118, 255, 0.2) !important;
}

html.is-night-mode .settings-danger:hover,
body.is-night-mode .settings-danger:hover {
  border-color: #ff4a5c !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 54px rgba(255, 74, 92, 0.18) !important;
}

html.is-night-mode .customize-modal-backdrop,
html.is-night-mode .delete-account-backdrop,
html.is-night-mode .password-change-backdrop,
body.is-night-mode .customize-modal-backdrop,
body.is-night-mode .delete-account-backdrop,
body.is-night-mode .password-change-backdrop {
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(2px);
}

html.is-night-mode .customize-modal-dialog,
html.is-night-mode .delete-account-dialog,
html.is-night-mode .password-change-dialog,
body.is-night-mode .customize-modal-dialog,
body.is-night-mode .delete-account-dialog,
body.is-night-mode .password-change-dialog {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(18, 27, 60, 0.98), rgba(8, 13, 31, 0.98)) !important;
  color: #f7f9ff !important;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(82, 118, 255, 0.14) !important;
}

html.is-night-mode .customize-option-card,
body.is-night-mode .customize-option-card {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(10, 16, 38, 0.78) !important;
}

html.is-night-mode .customize-modal-close,
html.is-night-mode .delete-modal-close,
html.is-night-mode .password-change-close,
body.is-night-mode .customize-modal-close,
body.is-night-mode .delete-modal-close,
body.is-night-mode .password-change-close {
  color: #f7f9ff !important;
}

html.is-night-mode .delete-modal-warning,
body.is-night-mode .delete-modal-warning {
  border-color: rgba(255, 74, 92, 0.18) !important;
  background: rgba(70, 20, 34, 0.42) !important;
}

html.is-night-mode .delete-modal-warning li,
body.is-night-mode .delete-modal-warning li {
  color: #ffd8df !important;
}

html.is-night-mode .delete-modal-confirm,
body.is-night-mode .delete-modal-confirm {
  color: #fff !important;
  background: #ef202b !important;
}

html.is-night-mode .language-menu button,
body.is-night-mode .language-menu button {
  color: #f7f9ff !important;
}

html.is-night-mode .profile-menu small,
body.is-night-mode .profile-menu small {
  color: #c6d2ff !important;
}

/* === MODALITA NOTTE: copertura finale testi, scrollbar e footer === */

html.is-night-mode body :where(h1, h2, h3, h4, h5, h6, p, a, button, strong, span, small, li, label, div),
body.is-night-mode :where(h1, h2, h3, h4, h5, h6, p, a, button, strong, span, small, li, label, div) {
  color: #f7f9ff !important;
}

html.is-night-mode .hero h1 span,
html.is-night-mode .cta h2 span,
body.is-night-mode .hero h1 span,
body.is-night-mode .cta h2 span {
  color: #6d92ff !important;
}

html.is-night-mode :where(.hero-left p, .panel p, .card p, .feature-card p, .price small, .settings-card p, .customize-option-card p, .delete-account-dialog > p),
body.is-night-mode :where(.hero-left p, .panel p, .card p, .feature-card p, .price small, .settings-card p, .customize-option-card p, .delete-account-dialog > p) {
  color: #c6d2ff !important;
}

html.is-night-mode .step > span,
body.is-night-mode .step > span {
  color: #f7f9ff !important;
  background: rgba(12, 19, 43, 0.92) !important;
  border-color: rgba(154, 177, 255, 0.42) !important;
}

html.is-night-mode .account-state .account-status-row strong,
html.is-night-mode .account-status-row strong,
body.is-night-mode .account-state .account-status-row strong,
body.is-night-mode .account-status-row strong {
  color: #f7f9ff !important;
}

html.is-night-mode .account-state .account-status-dot,
body.is-night-mode .account-state .account-status-dot {
  background: rgba(12, 19, 43, 0.92) !important;
  border-color: rgba(154, 177, 255, 0.55) !important;
}

html.is-night-mode body.is-logged-in .account-state .account-created-check .account-status-dot,
body.is-night-mode.is-logged-in .account-state .account-created-check .account-status-dot {
  background: #18c77a !important;
  border-color: #18c77a !important;
}

html.is-night-mode .profile-menu,
body.is-night-mode .profile-menu {
  background: linear-gradient(145deg, rgba(18, 27, 60, 0.98), rgba(8, 13, 31, 0.98)) !important;
  border-color: rgba(132, 157, 255, 0.28) !important;
}

html.is-night-mode .profile-menu-item,
html.is-night-mode .profile-menu-logout,
html.is-night-mode .profile-menu-user strong,
html.is-night-mode .profile-menu-user small,
body.is-night-mode .profile-menu-item,
body.is-night-mode .profile-menu-logout,
body.is-night-mode .profile-menu-user strong,
body.is-night-mode .profile-menu-user small {
  color: #f7f9ff !important;
}

html.is-night-mode .profile-menu-item:hover,
html.is-night-mode .profile-menu-logout:hover,
body.is-night-mode .profile-menu-item:hover,
body.is-night-mode .profile-menu-logout:hover {
  background: rgba(92, 127, 255, 0.14) !important;
  color: #9fb7ff !important;
}

html.is-night-mode .language-menu button,
body.is-night-mode .language-menu button {
  color: #f7f9ff !important;
}

html.is-night-mode .settings-danger h3,
body.is-night-mode .settings-danger h3 {
  color: #ff5b69 !important;
}

html.is-night-mode .danger-btn,
html.is-night-mode .danger-btn *,
body.is-night-mode .danger-btn,
body.is-night-mode .danger-btn * {
  color: #ff5b69 !important;
}

html.is-night-mode .delete-modal-confirm,
html.is-night-mode .delete-modal-confirm *,
body.is-night-mode .delete-modal-confirm,
body.is-night-mode .delete-modal-confirm * {
  color: #ffffff !important;
}

html.is-night-mode .site-footer,
body.is-night-mode .site-footer {
  background:
    linear-gradient(145deg, rgba(18, 27, 60, 0.96), rgba(8, 13, 31, 0.98)) !important;
  border-color: rgba(132, 157, 255, 0.22) !important;
  box-shadow:
    0 -24px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html.is-night-mode .site-footer *,
body.is-night-mode .site-footer * {
  color: #f7f9ff !important;
}

html.is-night-mode .footer-socials svg,
body.is-night-mode .footer-socials svg {
  fill: #f7f9ff !important;
}

html.is-night-mode,
html.is-night-mode body,
html.is-night-mode .dashboard-main,
html.is-night-mode .dashboard,
html.is-night-mode .language-menu,
html.is-night-mode .profile-menu,
body.is-night-mode,
body.is-night-mode .dashboard-main,
body.is-night-mode .dashboard,
body.is-night-mode .language-menu,
body.is-night-mode .profile-menu {
  scrollbar-width: thin !important;
  scrollbar-color: #9fb7ff rgba(8, 13, 31, 0.25) !important;
}

html.is-night-mode *::-webkit-scrollbar,
html.is-night-mode::-webkit-scrollbar,
html.is-night-mode body::-webkit-scrollbar,
body.is-night-mode *::-webkit-scrollbar,
body.is-night-mode::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html.is-night-mode *::-webkit-scrollbar-track,
html.is-night-mode::-webkit-scrollbar-track,
html.is-night-mode body::-webkit-scrollbar-track,
body.is-night-mode *::-webkit-scrollbar-track,
body.is-night-mode::-webkit-scrollbar-track {
  background: rgba(8, 13, 31, 0.22) !important;
  border-radius: 999px !important;
}

html.is-night-mode *::-webkit-scrollbar-thumb,
html.is-night-mode::-webkit-scrollbar-thumb,
html.is-night-mode body::-webkit-scrollbar-thumb,
body.is-night-mode *::-webkit-scrollbar-thumb,
body.is-night-mode::-webkit-scrollbar-thumb {
  background: #9fb7ff !important;
  border: 2px solid rgba(8, 13, 31, 0.85) !important;
  border-radius: 999px !important;
}

html.is-night-mode *::-webkit-scrollbar-thumb:hover,
html.is-night-mode::-webkit-scrollbar-thumb:hover,
html.is-night-mode body::-webkit-scrollbar-thumb:hover,
body.is-night-mode *::-webkit-scrollbar-thumb:hover,
body.is-night-mode::-webkit-scrollbar-thumb:hover {
  background: #c3d1ff !important;
}

html.is-night-mode .btn-img-arrow-white,
body.is-night-mode .btn-img-arrow-white {
  display: none !important;
}

html.is-night-mode .how .circle-icon,
body.is-night-mode .how .circle-icon {
  color: #0038ff !important;
  background: #eef2ff !important;
}

html.is-night-mode .settings-lock-icon,
body.is-night-mode .settings-lock-icon {
  background-color: #eef4ff !important;
  background-image: url("immagini/lucchettone.png") !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: auto 34px !important;
}

html.is-night-mode .settings-appearance-icon,
body.is-night-mode .settings-appearance-icon {
  background-color: #eef4ff !important;
  background-image: url("immagini/pennello.png") !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: auto 34px !important;
}

html.is-night-mode .settings-file-icon,
body.is-night-mode .settings-file-icon {
  background-color: #eef4ff !important;
  background-image: url("immagini/documento.png") !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: auto 34px !important;
}

html.is-night-mode .settings-button-lock,
body.is-night-mode .settings-button-lock {
  background-image: url("immagini/lucchettobianco.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: auto 18px !important;
}

html.is-night-mode .settings-button-trash,
body.is-night-mode .settings-button-trash {
  background-image: url("immagini/cestino.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: auto 18px !important;
}

html.is-night-mode .customize-option-icon,
body.is-night-mode .customize-option-icon {
  background-color: #eef4ff !important;
}

html.is-night-mode .customize-option-icon img,
body.is-night-mode .customize-option-icon img,
html.is-night-mode .feature-icon img,
body.is-night-mode .feature-icon img,
html.is-night-mode .pay-method-logo img,
body.is-night-mode .pay-method-logo img,
html.is-night-mode .circle-icon img,
body.is-night-mode .circle-icon img {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

html.is-night-mode .delete-modal-error,
body.is-night-mode .delete-modal-error {
  color: #ff6f7d !important;
}

html.is-night-mode .password-change-icon,
body.is-night-mode .password-change-icon {
  background: rgba(238, 244, 255, 0.12) !important;
  border: 1px solid rgba(154, 177, 255, 0.35) !important;
}

html.is-night-mode .password-change-icon img,
body.is-night-mode .password-change-icon img {
  content: url("immagini/lucchettobianco.png") !important;
}

html.is-night-mode .password-change-dialog > p,
body.is-night-mode .password-change-dialog > p {
  color: #c6d2ff !important;
}

html.is-night-mode .password-change-input,
body.is-night-mode .password-change-input {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(10, 16, 38, 0.84) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .password-change-eye,
body.is-night-mode .password-change-eye {
  color: #050927 !important;
}

html.is-night-mode .password-change-eye.is-active,
body.is-night-mode .password-change-eye.is-active {
  color: #02033d !important;
}

html.is-night-mode .password-change-cancel,
body.is-night-mode .password-change-cancel {
  border-color: rgba(132, 157, 255, 0.32) !important;
  background: rgba(12, 19, 43, 0.9) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .password-change-message,
body.is-night-mode .password-change-message {
  color: #ff6f7d !important;
}

html.is-night-mode .password-change-message.is-success,
body.is-night-mode .password-change-message.is-success {
  color: #52e6a2 !important;
}

html.is-night-mode .btn-img-play,
body.is-night-mode .btn-img-play {
  content: url("immagini/playbianco.png") !important;
  object-fit: contain !important;
}

html.is-night-mode .hero-how-btn .btn-img-play,
body.is-night-mode .hero-how-btn .btn-img-play {
  width: 25px !important;
  height: 25px !important;
}

html.is-night-mode .hero-how-btn,
body.is-night-mode .hero-how-btn {
  grid-template-columns: 1fr 25px !important;
}

html.is-night-mode .upload-first .btn-secondary.small .btn-img-play,
body.is-night-mode .upload-first .btn-secondary.small .btn-img-play,
html.is-night-mode .cta-buttons .btn-secondary .btn-img-play,
body.is-night-mode .cta-buttons .btn-secondary .btn-img-play {
  width: 20px !important;
  height: 20px !important;
}

html.is-night-mode .dashboard-view .panel h3,
body.is-night-mode .dashboard-view .panel h3 {
  color: #f7f9ff !important;
}

/* Override finale: pulsanti hero identici tra giorno e notte */
@media (min-width: 761px) {
  .hero-left .hero-how-btn {
    width: 266px !important;
    min-width: 266px !important;
    max-width: 266px !important;
    box-sizing: border-box !important;
  }
}

html:not(.is-night-mode) .hero-left .hero-how-btn .btn-img-play,
body:not(.is-night-mode) .hero-left .hero-how-btn .btn-img-play {
  width: 25px !important;
  min-width: 25px !important;
  max-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  object-fit: contain !important;
  display: block !important;
}

html:not(.is-night-mode) .hero-left .hero-how-btn,
body:not(.is-night-mode) .hero-left .hero-how-btn {
  grid-template-columns: 1fr 25px !important;
}

/* === PAGINA ACCEDI RINNOVATA, SENZA HEADER === */

body.login-page {
  min-height: 100svh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 9% 33%, rgba(6, 70, 255, 0.08), transparent 13%),
    radial-gradient(circle at 86% 78%, rgba(6, 70, 255, 0.08), transparent 12%),
    linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(6, 70, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

.login-page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.login-page .login-premium-card {
  width: 604px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 42px 56px 32px !important;
  border: 1px solid rgba(214, 224, 247, 0.95) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)) !important;
  box-shadow:
    0 34px 100px rgba(10, 24, 85, 0.11),
    0 12px 32px rgba(6, 70, 255, 0.045) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.login-card-logo {
  width: 178px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body.login-page .login-card-logo img[src*="difrey.png"] {
  width: auto !important;
  max-width: 190px !important;
  height: 54px !important;
  max-height: 54px !important;
  display: block !important;
  object-fit: contain !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

body.login-page .login-premium-card h1 {
  margin: 0 !important;
  color: #050927 !important;
  text-align: center !important;
  font-size: 30px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

body.login-page .login-premium-card > p {
  margin: 10px 0 26px !important;
  color: #6d789f !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.login-page .login-premium-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.login-page .login-field-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  color: #050927 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

body.login-page .login-input-shell {
  position: relative !important;
  width: 100% !important;
  height: 52px !important;
  border: 1px solid #dce4f6 !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  display: block !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(7, 19, 61, 0.025) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.login-page .login-input-shell:focus-within {
  border-color: rgba(6, 70, 255, 0.46) !important;
  box-shadow:
    0 0 0 3px rgba(6, 70, 255, 0.08),
    0 12px 28px rgba(6, 70, 255, 0.055) !important;
}

body.login-page .login-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: #5177ff;
  transform: translateY(-50%);
}

body.login-page .login-input-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

body.login-page .login-input-shell input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 56px 0 60px !important;
  border: 0 !important;
  background: transparent !important;
  color: #050927 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.login-page .login-input-shell input::placeholder {
  color: #a8b2ce !important;
}

body.login-page .password-toggle {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #7f8cad !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

body.login-page .password-toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: currentColor !important;
}

body.login-page .password-toggle::before,
body.login-page .password-toggle::after,
body.login-page .password-toggle span {
  content: none !important;
  display: none !important;
}

body.login-page .password-toggle.is-active {
  color: #02033d !important;
}

body.login-page .login-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
}

body.login-page .forgot-password {
  color: #0646ff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.remember-login {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #25366f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.remember-login input {
  display: none;
}

.remember-login span {
  width: 18px;
  height: 18px;
  border: 1px solid #d5def3;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.remember-login input:checked + span {
  border-color: #0646ff;
  background: #0646ff;
  box-shadow: inset 0 0 0 4px #fff;
}

body.login-page .auth-primary {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  box-shadow:
    0 18px 42px rgba(6, 70, 255, 0.24),
    0 8px 18px rgba(2, 3, 61, 0.12) !important;
}

body.login-page .auth-divider {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 !important;
}

body.login-page .auth-divider span {
  height: 1px !important;
  background: #dfe6f4 !important;
}

body.login-page .auth-divider p {
  margin: 0 !important;
  color: #7d89aa !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.login-page .auth-provider {
  width: 100% !important;
  height: 52px !important;
  border: 1px solid #dce4f6 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #050927 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.login-page .auth-provider-icon {
  width: 24px !important;
  height: 24px !important;
}

body.login-page .auth-switch {
  margin: 2px 0 0 !important;
  color: #7d89aa !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

body.login-page .auth-switch a {
  color: #0646ff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.login-page .login-error {
  max-height: 0 !important;
  margin: -6px 0 !important;
  overflow: hidden !important;
  font-size: 13px !important;
}

body.login-page .login-error.is-visible {
  max-height: 44px !important;
  margin: 0 !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  .login-page-shell {
    padding: 10px 0;
  }

  body.login-page .login-premium-card {
    width: 584px !important;
    padding: 32px 50px 26px !important;
    border-radius: 24px !important;
  }

  .login-card-logo {
    width: 158px;
    height: 48px;
    margin-bottom: 14px;
  }

  body.login-page .login-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.login-page .login-premium-card h1 {
    font-size: 27px !important;
  }

  body.login-page .login-premium-card > p {
    margin: 8px 0 20px !important;
    font-size: 15px !important;
  }

  body.login-page .login-premium-form {
    gap: 11px !important;
  }

  body.login-page .login-field-label {
    gap: 7px !important;
    font-size: 13px !important;
  }

  body.login-page .login-input-shell,
  body.login-page .auth-primary,
  body.login-page .auth-provider {
    height: 48px !important;
  }

  body.login-page .login-input-shell input {
    font-size: 15px !important;
  }

  body.login-page .auth-primary,
  body.login-page .auth-provider {
    font-size: 17px !important;
  }

  body.login-page .auth-switch,
  body.login-page .forgot-password,
  .remember-login {
    font-size: 14px !important;
  }

  body.login-page .auth-divider p {
    font-size: 14px !important;
  }
}

@media (max-width: 760px) {
  .login-page-shell {
    width: min(100% - 28px, 560px);
    padding: 28px 0;
  }

  body.login-page .login-premium-card {
    padding: 34px 24px 30px !important;
    border-radius: 20px !important;
  }

  body.login-page .login-premium-card h1 {
    font-size: 26px !important;
  }

  body.login-page .login-premium-card > p {
    margin-bottom: 30px !important;
  }

  body.login-page .login-row {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* === PAGINA REGISTRATI RINNOVATA COME ACCEDI === */

body.register-page {
  min-height: 100svh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 9% 33%, rgba(6, 70, 255, 0.08), transparent 13%),
    radial-gradient(circle at 86% 78%, rgba(6, 70, 255, 0.08), transparent 12%),
    linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
}

body.register-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(6, 70, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

body.register-page .register-page-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(100% - 40px, 760px) !important;
  min-height: 100svh !important;
  margin: 0 auto !important;
  padding: 18px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body.register-page .register-card {
  width: 604px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 42px 56px 32px !important;
  border: 1px solid rgba(214, 224, 247, 0.95) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)) !important;
  box-shadow:
    0 34px 100px rgba(10, 24, 85, 0.11),
    0 12px 32px rgba(6, 70, 255, 0.045) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.register-card-logo {
  width: 178px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body.register-page .register-card-logo img[src*="difrey.png"] {
  width: auto !important;
  max-width: 190px !important;
  height: 54px !important;
  max-height: 54px !important;
  display: block !important;
  object-fit: contain !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

body.register-page .register-card h1 {
  margin: 0 !important;
  color: #050927 !important;
  text-align: center !important;
  font-size: 30px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

body.register-page .register-card > p {
  margin: 10px 0 26px !important;
  color: #6d789f !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.register-page .register-premium-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.register-page .register-premium-form label {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  color: #050927 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

body.register-page .register-premium-form input {
  width: 100% !important;
  height: 52px !important;
  padding: 0 18px !important;
  border: 1px solid #dce4f6 !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #050927 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(7, 19, 61, 0.025) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.register-page .register-premium-form input::placeholder {
  color: #a8b2ce !important;
}

body.register-page .register-premium-form input:focus {
  border-color: rgba(6, 70, 255, 0.46) !important;
  box-shadow:
    0 0 0 3px rgba(6, 70, 255, 0.08),
    0 12px 28px rgba(6, 70, 255, 0.055) !important;
}

body.register-page .password-field {
  position: relative !important;
  width: 100% !important;
  height: 52px !important;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.register-page .password-field input {
  height: 52px !important;
  padding-right: 62px !important;
}

body.register-page .password-toggle {
  right: 16px !important;
  top: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7f8cad !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}

body.register-page .password-toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: currentColor !important;
}

body.register-page .password-toggle::before,
body.register-page .password-toggle::after,
body.register-page .password-toggle span {
  content: none !important;
  display: none !important;
}

body.register-page .password-toggle.is-active {
  color: #02033d !important;
}

body.register-page .auth-primary,
body.register-page .auth-provider {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

body.register-page .auth-primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  box-shadow:
    0 18px 42px rgba(6, 70, 255, 0.24),
    0 8px 18px rgba(2, 3, 61, 0.12) !important;
}

body.register-page .auth-provider {
  border: 1px solid #dce4f6 !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #050927 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.register-page .auth-provider-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

body.register-page .auth-switch {
  margin: 2px 0 0 !important;
  color: #7d89aa !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

body.register-page .auth-switch a {
  color: #0646ff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  body.register-page .register-page-shell {
    padding: 10px 0 !important;
  }

  body.register-page .register-card {
    width: 584px !important;
    padding: 32px 50px 26px !important;
    border-radius: 24px !important;
  }

  .register-card-logo {
    width: 158px;
    height: 48px;
    margin-bottom: 14px;
  }

  body.register-page .register-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.register-page .register-card h1 {
    font-size: 27px !important;
  }

  body.register-page .register-card > p {
    margin: 8px 0 18px !important;
    font-size: 15px !important;
  }

  body.register-page .register-premium-form {
    gap: 10px !important;
  }

  body.register-page .register-premium-form label {
    gap: 6px !important;
    font-size: 13px !important;
  }

  body.register-page .register-premium-form input,
  body.register-page .password-field,
  body.register-page .password-field input,
  body.register-page .auth-primary,
  body.register-page .auth-provider {
    height: 46px !important;
  }

  body.register-page .register-premium-form input,
  body.register-page .auth-primary,
  body.register-page .auth-provider {
    font-size: 15px !important;
  }

  body.register-page .auth-switch {
    font-size: 14px !important;
  }
}

@media (max-width: 760px) {
  body.register-page .register-page-shell {
    width: min(100% - 28px, 560px) !important;
    padding: 28px 0 !important;
  }

  body.register-page .register-card {
    padding: 34px 24px 30px !important;
    border-radius: 20px !important;
  }

  .register-card-logo {
    width: 158px;
    height: 48px;
    margin-bottom: 14px;
  }

  body.register-page .register-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.register-page .register-card h1 {
    font-size: 26px !important;
  }

  body.register-page .register-card > p {
    margin-bottom: 24px !important;
  }
}

/* === OCCHI PASSWORD COME MODALE CAMBIA PASSWORD === */

body.login-page .password-toggle,
body.register-page .password-toggle {
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #050927 !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
  transition: color 0.22s ease, transform 0.22s ease !important;
}

body.login-page .password-toggle svg,
body.register-page .password-toggle svg {
  width: 27px !important;
  height: 27px !important;
  display: block !important;
  fill: currentColor !important;
  transform-origin: 50% 50% !important;
}

body.login-page .password-toggle::before,
body.login-page .password-toggle::after,
body.login-page .password-toggle span,
body.register-page .password-toggle::before,
body.register-page .password-toggle::after,
body.register-page .password-toggle span {
  content: none !important;
  display: none !important;
}

body.login-page .password-toggle.is-active,
body.register-page .password-toggle.is-active {
  color: #02033d !important;
}

body.login-page .password-toggle.is-blinking svg,
body.register-page .password-toggle.is-blinking svg {
  animation: passwordEyeBlink 0.32s ease !important;
}

/* === CERCHIO ATTIVO PER OCCHI PASSWORD === */

.password-change-eye,
body.login-page .password-toggle,
body.register-page .password-toggle {
  position: absolute !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
  transition:
    color 0.22s ease,
    transform 0.22s ease !important;
}

.password-change-eye svg,
body.login-page .password-toggle svg,
body.register-page .password-toggle svg {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 27px !important;
  height: 27px !important;
  z-index: 1 !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: 50% 50% !important;
}

.password-change-eye.is-active,
body.login-page .password-toggle.is-active,
body.register-page .password-toggle.is-active {
  border-radius: 50% !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #02033d !important;
  box-shadow: none !important;
}

.password-change-eye.is-active::before,
body.login-page .password-toggle.is-active::before,
body.register-page .password-toggle.is-active::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(92, 145, 255, 0.48) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96), rgba(225, 237, 255, 0.82) 48%, rgba(199, 219, 255, 0.78) 100%) !important;
  box-shadow:
    0 9px 20px rgba(6, 70, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  transform: translate(-50%, -50%) !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.password-change-eye.is-blinking svg,
body.login-page .password-toggle.is-blinking svg,
body.register-page .password-toggle.is-blinking svg {
  animation: passwordEyeBlinkCentered 0.32s ease !important;
}

@keyframes passwordEyeBlinkCentered {
  0% {
    transform: translate(-50%, -50%) scaleY(1);
  }

  42% {
    transform: translate(-50%, -50%) scaleY(0.12);
  }

  100% {
    transform: translate(-50%, -50%) scaleY(1);
  }
}

/* === RIPRISTINA ANIMAZIONE OCCHIO SENZA SPOSTARE IL CERCHIO === */

.password-change-eye.is-blinking svg,
body.login-page .password-toggle.is-blinking svg,
body.register-page .password-toggle.is-blinking svg {
  animation: none !important;
}

.password-change-eye.is-blinking svg path,
body.login-page .password-toggle.is-blinking svg path,
body.register-page .password-toggle.is-blinking svg path {
  animation: passwordEyePathBlink 0.34s ease !important;
  transform-box: fill-box !important;
  transform-origin: 50% 50% !important;
}

@keyframes passwordEyePathBlink {
  0% {
    transform: scaleY(1);
  }

  42% {
    transform: scaleY(0.08);
  }

  100% {
    transform: scaleY(1);
  }
}

/* === ACCOUNT CREATO RINNOVATO COME ACCEDI/REGISTRATI === */

body.register-page.is-success {
  min-height: 100svh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 9% 33%, rgba(6, 70, 255, 0.08), transparent 13%),
    radial-gradient(circle at 86% 78%, rgba(6, 70, 255, 0.08), transparent 12%),
    linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
}

body.register-page.is-success .auth-shell {
  display: none !important;
}

body.register-page.is-success .auth-success-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  padding: 18px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 9% 33%, rgba(6, 70, 255, 0.08), transparent 13%),
    radial-gradient(circle at 86% 78%, rgba(6, 70, 255, 0.08), transparent 12%),
    linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
}

body.register-page.is-success .auth-success-screen::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image: linear-gradient(135deg, rgba(6, 70, 255, 0.045) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  opacity: 0.42 !important;
}

body.register-page.is-success .success-card {
  position: relative !important;
  z-index: 1 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 604px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 42px 56px 44px !important;
  border: 1px solid rgba(214, 224, 247, 0.95) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)) !important;
  box-shadow:
    0 34px 100px rgba(10, 24, 85, 0.11),
    0 12px 32px rgba(6, 70, 255, 0.045) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.success-card-logo {
  width: 178px !important;
  height: 54px !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  text-decoration: none !important;
}

body.register-page.is-success .success-card-logo img[src*="difrey.png"] {
  width: auto !important;
  max-width: 190px !important;
  height: 54px !important;
  max-height: 54px !important;
  display: block !important;
  object-fit: contain !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

body.register-page.is-success .success-icon {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 26px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 18px 40px rgba(6, 70, 255, 0.08) !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

body.register-page.is-success .success-icon img {
  width: 92px !important;
  height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  display: block !important;
  object-fit: contain !important;
}

body.register-page.is-success .success-card h1 {
  margin: 0 0 12px !important;
  color: #050927 !important;
  text-align: center !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

body.register-page.is-success .success-card p {
  max-width: 410px !important;
  margin: 0 auto !important;
  color: #25366f !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  body.register-page.is-success .auth-success-screen {
    padding: 10px !important;
  }

  body.register-page.is-success .success-card {
    width: 584px !important;
    padding: 32px 50px 34px !important;
    border-radius: 24px !important;
  }

  .success-card-logo {
    width: 158px !important;
    height: 48px !important;
    margin-bottom: 22px !important;
  }

  body.register-page.is-success .success-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.register-page.is-success .success-icon {
    width: 82px !important;
    height: 82px !important;
    margin-bottom: 22px !important;
  }

  body.register-page.is-success .success-icon img {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
  }

  body.register-page.is-success .success-card h1 {
    font-size: 30px !important;
  }

  body.register-page.is-success .success-card p {
    font-size: 16px !important;
  }
}

@media (max-width: 760px) {
  body.register-page.is-success .auth-success-screen {
    padding: 28px 14px !important;
  }

  body.register-page.is-success .success-card {
    padding: 34px 24px 36px !important;
    border-radius: 20px !important;
  }

  .success-card-logo {
    width: 158px !important;
    height: 48px !important;
    margin-bottom: 24px !important;
  }

  body.register-page.is-success .success-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.register-page.is-success .success-card h1 {
    font-size: 28px !important;
  }

  body.register-page.is-success .success-card p {
    font-size: 16px !important;
  }
}

/* === ACCOUNT CONFERMATO RINNOVATO COME ACCEDI/REGISTRATI === */

body.verified-page {
  min-height: 100svh !important;
  margin: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 9% 33%, rgba(6, 70, 255, 0.08), transparent 13%),
    radial-gradient(circle at 86% 78%, rgba(6, 70, 255, 0.08), transparent 12%),
    linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(255, 255, 255, 0.98)) !important;
}

body.verified-page::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image: linear-gradient(135deg, rgba(6, 70, 255, 0.045) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  opacity: 0.42 !important;
}

body.verified-page .verified-wrap {
  position: relative !important;
  z-index: 1 !important;
  width: min(100% - 40px, 760px) !important;
  min-height: 100svh !important;
  margin: 0 auto !important;
  padding: 18px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body.verified-page .verified-card {
  position: relative !important;
  width: 604px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 42px 56px 44px !important;
  border: 1px solid rgba(214, 224, 247, 0.95) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)) !important;
  box-shadow:
    0 34px 100px rgba(10, 24, 85, 0.11),
    0 12px 32px rgba(6, 70, 255, 0.045) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.verified-card-logo {
  width: 178px !important;
  height: 54px !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  text-decoration: none !important;
}

body.verified-page .verified-card-logo img[src*="difrey.png"] {
  width: auto !important;
  max-width: 190px !important;
  height: 54px !important;
  max-height: 54px !important;
  display: block !important;
  object-fit: contain !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

body.verified-page .verified-icon {
  width: 92px !important;
  height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  margin: 0 auto 26px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 18px 40px rgba(20, 199, 105, 0.12)) !important;
}

body.verified-page .verified-card h1 {
  margin: 0 0 12px !important;
  color: #050927 !important;
  text-align: center !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

body.verified-page .verified-card p {
  max-width: 430px !important;
  margin: 0 auto !important;
  color: #25366f !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  body.verified-page .verified-wrap {
    padding: 10px 0 !important;
  }

  body.verified-page .verified-card {
    width: 584px !important;
    padding: 32px 50px 34px !important;
    border-radius: 24px !important;
  }

  .verified-card-logo {
    width: 158px !important;
    height: 48px !important;
    margin-bottom: 22px !important;
  }

  body.verified-page .verified-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.verified-page .verified-icon {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    margin-bottom: 22px !important;
  }

  body.verified-page .verified-card h1 {
    font-size: 30px !important;
  }

  body.verified-page .verified-card p {
    font-size: 16px !important;
  }
}

@media (max-width: 760px) {
  body.verified-page {
    overflow-y: auto !important;
  }

  body.verified-page .verified-wrap {
    width: min(100% - 28px, 560px) !important;
    padding: 28px 0 !important;
  }

  body.verified-page .verified-card {
    padding: 34px 24px 36px !important;
    border-radius: 20px !important;
  }

  .verified-card-logo {
    width: 158px !important;
    height: 48px !important;
    margin-bottom: 24px !important;
  }

  body.verified-page .verified-card-logo img[src*="difrey.png"] {
    width: auto !important;
    max-width: 172px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  body.verified-page .verified-card h1 {
    font-size: 28px !important;
  }

  body.verified-page .verified-card p {
    font-size: 16px !important;
  }
}

/* === DATA ULTIMA MODIFICA PASSWORD === */

.settings-card .password-change-note {
  max-width: 230px !important;
  margin: 6px 0 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.password-last-updated[hidden] {
  display: none !important;
}

.settings-card .password-last-updated {
  margin: 6px 0 0 !important;
}

.settings-card .password-last-updated span {
  display: inline !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

/* === HOME: SCROLL AREAS SENZA ALONE DI CONTENITORE === */
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features > .feature-card,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid > .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  filter: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features > .feature-card:hover,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid > .card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

/* === HOME: DASHBOARD HERO SENZA ALONE ESTERNO === */
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-main,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-grid,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view {
  box-shadow: none !important;
  filter: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-main::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-main::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-grid::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-grid::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard .panel,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view .panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  filter: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard .panel:hover,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view .panel:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 1519px) {
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .page,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero-left,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero-buttons,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-sidebar,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-main,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-grid,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn),
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button),
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    filter: none !important;
  }

  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn):hover,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    filter: none !important;
  }
}

/* === HOME: SFONDO BIANCO PURO === */
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode)::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode)::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .page,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero-left {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .page::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .page::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero::after,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero-left::before,
html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero-left::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

/* === HOME NOTTE: SCROLL AREAS SENZA ALONE DI CONTENITORE === */
html.is-night-mode body:has(.hero) .features,
html.is-night-mode body:has(.hero) .bottom-grid,
body.is-night-mode:has(.hero) .features,
body.is-night-mode:has(.hero) .bottom-grid {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  filter: none !important;
}

html.is-night-mode body:has(.hero) .features::before,
html.is-night-mode body:has(.hero) .features::after,
html.is-night-mode body:has(.hero) .bottom-grid::before,
html.is-night-mode body:has(.hero) .bottom-grid::after,
body.is-night-mode:has(.hero) .features::before,
body.is-night-mode:has(.hero) .features::after,
body.is-night-mode:has(.hero) .bottom-grid::before,
body.is-night-mode:has(.hero) .bottom-grid::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
  opacity: 0 !important;
}

html.is-night-mode body:has(.hero) .features > .feature-card,
html.is-night-mode body:has(.hero) .bottom-grid > .card,
body.is-night-mode:has(.hero) .features > .feature-card,
body.is-night-mode:has(.hero) .bottom-grid > .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  filter: none !important;
}

html.is-night-mode body:has(.hero) .features > .feature-card:hover,
html.is-night-mode body:has(.hero) .bottom-grid > .card:hover,
body.is-night-mode:has(.hero) .features > .feature-card:hover,
body.is-night-mode:has(.hero) .bottom-grid > .card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* === HOME NOTTE: DASHBOARD HERO SENZA ALONE ESTERNO === */
html.is-night-mode body:has(.hero) .dashboard,
html.is-night-mode body:has(.hero) .dashboard-main,
html.is-night-mode body:has(.hero) .dashboard-grid,
html.is-night-mode body:has(.hero) .dashboard-view,
body.is-night-mode:has(.hero) .dashboard,
body.is-night-mode:has(.hero) .dashboard-main,
body.is-night-mode:has(.hero) .dashboard-grid,
body.is-night-mode:has(.hero) .dashboard-view {
  box-shadow: none !important;
  filter: none !important;
}

html.is-night-mode body:has(.hero) .dashboard::before,
html.is-night-mode body:has(.hero) .dashboard::after,
html.is-night-mode body:has(.hero) .dashboard-main::before,
html.is-night-mode body:has(.hero) .dashboard-main::after,
html.is-night-mode body:has(.hero) .dashboard-grid::before,
html.is-night-mode body:has(.hero) .dashboard-grid::after,
html.is-night-mode body:has(.hero) .dashboard-view::before,
html.is-night-mode body:has(.hero) .dashboard-view::after,
body.is-night-mode:has(.hero) .dashboard::before,
body.is-night-mode:has(.hero) .dashboard::after,
body.is-night-mode:has(.hero) .dashboard-main::before,
body.is-night-mode:has(.hero) .dashboard-main::after,
body.is-night-mode:has(.hero) .dashboard-grid::before,
body.is-night-mode:has(.hero) .dashboard-grid::after,
body.is-night-mode:has(.hero) .dashboard-view::before,
body.is-night-mode:has(.hero) .dashboard-view::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

html.is-night-mode body:has(.hero) .dashboard .panel,
html.is-night-mode body:has(.hero) .dashboard-view .panel,
body.is-night-mode:has(.hero) .dashboard .panel,
body.is-night-mode:has(.hero) .dashboard-view .panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  filter: none !important;
}

html.is-night-mode body:has(.hero) .dashboard .panel:hover,
html.is-night-mode body:has(.hero) .dashboard-view .panel:hover,
body.is-night-mode:has(.hero) .dashboard .panel:hover,
body.is-night-mode:has(.hero) .dashboard-view .panel:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 1519px) {
  html.is-night-mode body:has(.hero) .page,
  html.is-night-mode body:has(.hero) .hero,
  html.is-night-mode body:has(.hero) .hero-left,
  html.is-night-mode body:has(.hero) .hero-buttons,
  html.is-night-mode body:has(.hero) .dashboard,
  html.is-night-mode body:has(.hero) .dashboard-sidebar,
  html.is-night-mode body:has(.hero) .dashboard-main,
  html.is-night-mode body:has(.hero) .dashboard-grid,
  html.is-night-mode body:has(.hero) .dashboard-view,
  body.is-night-mode:has(.hero) .page,
  body.is-night-mode:has(.hero) .hero,
  body.is-night-mode:has(.hero) .hero-left,
  body.is-night-mode:has(.hero) .hero-buttons,
  body.is-night-mode:has(.hero) .dashboard,
  body.is-night-mode:has(.hero) .dashboard-sidebar,
  body.is-night-mode:has(.hero) .dashboard-main,
  body.is-night-mode:has(.hero) .dashboard-grid,
  body.is-night-mode:has(.hero) .dashboard-view {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  html.is-night-mode body:has(.hero) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn),
  html.is-night-mode body:has(.hero) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button),
  html.is-night-mode body:has(.hero) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button),
  body.is-night-mode:has(.hero) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn),
  body.is-night-mode:has(.hero) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button),
  body.is-night-mode:has(.hero) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    filter: none !important;
  }

  html.is-night-mode body:has(.hero) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn):hover,
  html.is-night-mode body:has(.hero) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover,
  html.is-night-mode body:has(.hero) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover,
  body.is-night-mode:has(.hero) .hero :where(.btn, .btn-primary, .btn-secondary, .hero-how-btn):hover,
  body.is-night-mode:has(.hero) .dashboard :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover,
  body.is-night-mode:has(.hero) .dashboard-view :where(.btn, button, .dropzone, .file-scene span, .main-file, .pay-method-logo, .payment-row button):hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    filter: none !important;
  }
}

/* === HOME NOTTE: NESSUN ALONE SULLA PARTE SINISTRA === */
html.is-night-mode body:has(.hero),
body.is-night-mode:has(.hero) {
  background:
    linear-gradient(120deg, #060a19 0%, #0b1128 42%, #080d20 100%) !important;
}

html.is-night-mode body:has(.hero)::before,
html.is-night-mode body:has(.hero)::after,
body.is-night-mode:has(.hero)::before,
body.is-night-mode:has(.hero)::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

html.is-night-mode body:has(.hero) .page,
html.is-night-mode body:has(.hero) .hero,
html.is-night-mode body:has(.hero) .hero-left,
body.is-night-mode:has(.hero) .page,
body.is-night-mode:has(.hero) .hero,
body.is-night-mode:has(.hero) .hero-left {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

html.is-night-mode body:has(.hero) .page::before,
html.is-night-mode body:has(.hero) .page::after,
html.is-night-mode body:has(.hero) .hero::before,
html.is-night-mode body:has(.hero) .hero::after,
html.is-night-mode body:has(.hero) .hero-left::before,
html.is-night-mode body:has(.hero) .hero-left::after,
body.is-night-mode:has(.hero) .page::before,
body.is-night-mode:has(.hero) .page::after,
body.is-night-mode:has(.hero) .hero::before,
body.is-night-mode:has(.hero) .hero::after,
body.is-night-mode:has(.hero) .hero-left::before,
body.is-night-mode:has(.hero) .hero-left::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

/* === NESSUNA LINEA DIAGONALE / ALONE GLOBALE SU QUALSIASI PAGINA === */
html.is-night-mode body::before,
html.is-night-mode body::after,
body.is-night-mode::before,
body.is-night-mode::after,
body:has(.hero)::before,
body:has(.hero)::after,
body::after,
body.login-page::before,
body.login-page::after,
body.register-page::before,
body.register-page::after,
body.verified-page::before,
body.verified-page::after,
body.is-success::before,
body.is-success::after,
.auth-page::before,
.auth-page::after,
.login-page-shell::before,
.login-page-shell::after,
.register-page-shell::before,
.register-page-shell::after,
.verified-wrap::before,
.verified-wrap::after,
.auth-success-screen::before,
.auth-success-screen::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

.auth-success-screen,
body.is-success .auth-success-screen,
body.register-page.is-success .auth-success-screen,
body.auth-page.is-success .auth-success-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(6, 70, 255, 0.075), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(2, 3, 61, 0.055), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%) !important;
}

/* === HOME RESPONSIVE FINALE: BORDI LATERALI RIDOTTI SU FINESTRA STRETTA === */
@media (min-width: 761px) and (max-width: 1519px) {
  body:has(.hero) .header,
  body:has(.hero) .page {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  body:has(.hero) .page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body:has(.hero) .hero,
  body:has(.hero) .features,
  body:has(.hero) .bottom-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body:has(.hero) .hero,
  body:has(.hero) .features,
  body:has(.hero) .bottom-grid {
    overflow-x: auto !important;
  }
}

/* === HOME RESPONSIVE: SPAZIO FINALE QUANDO SCORRI TUTTO A DESTRA === */
@media (min-width: 761px) and (max-width: 1519px) {
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero::after,
  html.is-night-mode body:has(.hero) .hero::after,
  body.is-night-mode:has(.hero) .hero::after,
  body:has(.hero) .hero::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 1px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features::after,
  html.is-night-mode body:has(.hero) .features::after,
  body.is-night-mode:has(.hero) .features::after,
  body:has(.hero) .features::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 1px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid::after,
  html.is-night-mode body:has(.hero) .bottom-grid::after,
  body.is-night-mode:has(.hero) .bottom-grid::after,
  body:has(.hero) .bottom-grid::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 1px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }
}

/* === HOME RESPONSIVE: GAP DESTRO REALE IDENTICO SU TUTTE LE SEZIONI === */
@media (min-width: 761px) and (max-width: 1519px) {
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .hero::after,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .features::after,
  html:not(.is-night-mode) body:has(.hero):not(.is-night-mode) .bottom-grid::after,
  html.is-night-mode body:has(.hero) .hero::after,
  html.is-night-mode body:has(.hero) .features::after,
  html.is-night-mode body:has(.hero) .bottom-grid::after,
  body.is-night-mode:has(.hero) .hero::after,
  body.is-night-mode:has(.hero) .features::after,
  body.is-night-mode:has(.hero) .bottom-grid::after,
  body:has(.hero) .hero::after,
  body:has(.hero) .features::after,
  body:has(.hero) .bottom-grid::after {
    content: none !important;
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
  }

  body:has(.hero) .dashboard,
  body:has(.hero) .features .feature-card:last-child,
  body:has(.hero) .bottom-grid .cta {
    margin-right: 30px !important;
  }
}

/* === HEADER PC RIMPICCIOLITO: SEMPRE VISIBILE E NON ATTACCATO AI BORDI === */
@media (min-width: 761px) and (max-width: 1519px) {
  body:has(.hero) .header {
    position: relative !important;
    z-index: 99990 !important;
    width: calc(100vw - 56px) !important;
    max-width: none !important;
    height: 86px !important;
    margin: 0 28px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(96px, 1fr) max-content minmax(150px, 1fr) !important;
    align-items: center !important;
    column-gap: 18px !important;
    overflow: visible !important;
    transform: none !important;
  }

  body:has(.hero) .mobile-header-logo,
  body:has(.hero) .mobile-menu-btn,
  body:has(.hero) .brand-placeholder {
    display: none !important;
  }

  body:has(.hero) .nav {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(24px, 3.2vw, 48px) !important;
    width: max-content !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  body:has(.hero) .header-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  body:has(.hero) .header .login {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 132px !important;
    min-width: 132px !important;
    height: 54px !important;
    padding: 0 24px !important;
    margin: 0 !important;
    transform: none !important;
  }

  body:has(.hero) .profile-button {
    width: 72px !important;
    min-width: 72px !important;
    height: 62px !important;
    border-radius: 14px !important;
    margin: 0 !important;
    transform: none !important;
  }

  body:has(.hero) .profile-menu {
    right: 0 !important;
    top: calc(100% + 12px) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body:has(.hero) .header {
    width: calc(100vw - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    grid-template-columns: minmax(42px, 1fr) max-content minmax(122px, 1fr) !important;
    column-gap: 12px !important;
  }

  body:has(.hero) .nav {
    gap: clamp(16px, 2.4vw, 26px) !important;
    font-size: 13px !important;
  }

  body:has(.hero) .language-toggle {
    gap: 6px !important;
  }

  body:has(.hero) .header .login {
    width: 120px !important;
    min-width: 120px !important;
    height: 50px !important;
    padding: 0 20px !important;
  }

  body:has(.hero) .profile-button {
    width: 66px !important;
    min-width: 66px !important;
    height: 58px !important;
  }
}

@media (min-width: 761px) and (max-width: 840px) {
  body:has(.hero) .header {
    width: calc(100vw - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    grid-template-columns: minmax(14px, 1fr) max-content minmax(112px, 1fr) !important;
    column-gap: 8px !important;
  }

  body:has(.hero) .nav {
    gap: 14px !important;
    font-size: 12px !important;
  }

  body:has(.hero) .italy-flag {
    width: 14px !important;
    height: 10px !important;
  }

  body:has(.hero) .header .login {
    width: 112px !important;
    min-width: 112px !important;
    height: 48px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }
}

/* === MODALITA' NOTTE: DIFREYNOTTE.PNG STESSA MISURA/POSIZIONE DI DIFREY.PNG === */
@media (min-width: 761px) {
html.is-night-mode body:has(.hero) .hero-logo[src*="difreynotte.png"],
body.is-night-mode:has(.hero) .hero-logo[src*="difreynotte.png"] {
  width: 317px !important;
  height: auto !important;
  position: relative !important;
  left: 22px !important;
    top: -144px !important;
    transform: none !important;
    object-fit: contain !important;
  }

html.is-night-mode body:has(.hero) .footer-brand img[src*="difreynotte.png"],
body.is-night-mode:has(.hero) .footer-brand img[src*="difreynotte.png"] {
    width: 149px !important;
    height: auto !important;
    display: block !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
  }
}

/* === AGGIUNGI NUOVO PRODOTTO === */

body.product-modal-open {
  overflow: hidden !important;
}

.product-create-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-create-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 249, 255, 0.76);
  backdrop-filter: blur(14px);
}

.product-create-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 44px));
  height: min(820px, calc(100svh - 40px));
  max-height: calc(100svh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe6f7;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(252, 254, 255, 0.97));
  box-shadow:
    0 36px 100px rgba(9, 20, 70, 0.16),
    0 12px 34px rgba(6, 70, 255, 0.06);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s ease;
}

.product-create-modal.is-open .product-create-dialog {
  transform: translateY(0) scale(1);
}

.product-create-header {
  height: 86px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 230, 247, 0.84);
  box-sizing: border-box;
}

.product-create-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-create-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid #d7e2fb;
  box-shadow: 0 14px 32px rgba(6, 70, 255, 0.11);
}

.product-create-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.product-create-header h2 {
  margin: 0;
  color: #050927;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
}

.product-create-header p {
  margin: 7px 0 0;
  color: #6c78a0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.product-create-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #050927;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-create-close:hover {
  background: #eef4ff;
  transform: translateY(-1px);
}

.product-create-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.product-create-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 28px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #bac9ef transparent;
}

.product-create-main::-webkit-scrollbar {
  width: 8px;
}

.product-create-main::-webkit-scrollbar-track {
  background: transparent;
}

.product-create-main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bac9ef;
}

.product-create-left,
.product-create-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.product-card {
  border: 1px solid #dfe6f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(12, 22, 80, 0.045);
  padding: 20px;
  box-sizing: border-box;
}

.product-card h3 {
  margin: 0;
  color: #050927;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.product-card p {
  margin: 6px 0 0;
  color: #6c78a0;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.product-dropzone {
  margin-top: 14px;
  min-height: 170px;
  border: 1px dashed #b9c9ef;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(6, 70, 255, 0.035), transparent 54%),
    rgba(255, 255, 255, 0.66);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-dropzone:hover {
  border-color: rgba(6, 70, 255, 0.5);
  box-shadow: 0 18px 44px rgba(6, 70, 255, 0.09);
  transform: translateY(-2px);
}

.product-drop-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
}

.product-drop-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.product-dropzone strong {
  color: #050927;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.product-dropzone span {
  color: #6c78a0;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.product-dropzone em {
  min-width: 116px;
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(6, 70, 255, 0.22);
}

.product-dropzone small,
.product-cover-card small {
  color: #7e8aac;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.product-two-fields {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
}

.product-details-card label,
.product-description-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #050927;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.product-details-card input,
.product-card select {
  width: 100%;
  height: 42px;
  border: 1px solid #dce4f6;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  color: #050927;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-details-card input {
  padding: 0 14px;
}

.product-card select {
  margin-top: 14px;
  padding: 0 14px;
}

.product-details-card input:focus,
.product-card select:focus,
.product-editor:focus-within {
  border-color: rgba(6, 70, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(6, 70, 255, 0.08);
}

.product-price-field {
  position: relative;
  display: block;
}

.product-price-field b {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #050927;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-50%);
}

.product-price-field input {
  padding-left: 34px;
}

.product-description-field {
  margin-top: 18px;
}

.product-editor {
  overflow: hidden;
  border: 1px solid #dce4f6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.product-editor-toolbar {
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e5ebf8;
  color: #5f6b91;
  font-size: 11px;
  font-weight: 900;
}

.product-editor textarea {
  width: 100%;
  min-height: 104px;
  padding: 16px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: #050927;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.product-cover-card {
  min-height: 150px;
}

.product-cover-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 120px auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.product-cover-preview {
  width: 96px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4f7ff;
  color: #6c78a0;
  font-size: 22px;
}

.product-soft-primary,
.product-soft-secondary,
.product-link-btn,
.product-preview-btn,
.product-cancel-btn,
.product-draft-btn,
.product-publish-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-soft-primary,
.product-soft-secondary {
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 12px;
}

.product-soft-primary {
  color: #fff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  box-shadow: 0 12px 26px rgba(6, 70, 255, 0.18);
}

.product-soft-secondary,
.product-draft-btn {
  color: #050927;
  background: #f1f5ff;
}

.product-link-btn {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0646ff;
  font-size: 12px;
}

.product-radio-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.product-radio-row input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #0646ff;
}

.product-radio-row span {
  color: #6c78a0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.product-radio-row strong {
  display: block;
  margin-bottom: 2px;
  color: #050927;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.product-preview-btn {
  height: 38px;
  margin-top: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce4f6;
  border-radius: 9px;
  background: #fff;
  color: #050927;
  font-size: 12px;
}

.product-tips-card ul {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.product-tips-card li {
  position: relative;
  padding-left: 22px;
  color: #53618d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.product-tips-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(6, 70, 255, 0.16), rgba(6, 70, 255, 0.04));
  border: 1px solid rgba(6, 70, 255, 0.18);
}

.product-create-actions {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(223, 230, 247, 0.84);
  background: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}

.product-create-actions > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-cancel-btn,
.product-draft-btn,
.product-publish-btn {
  height: 42px;
  padding: 0 28px;
  border-radius: 9px;
  font-size: 12px;
}

.product-cancel-btn {
  min-width: 146px;
  border: 1px solid #dce4f6;
  color: #050927;
  background: #fff;
}

.product-draft-btn {
  min-width: 142px;
}

.product-publish-btn {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.24);
}

.product-soft-primary:hover,
.product-soft-secondary:hover,
.product-preview-btn:hover,
.product-cancel-btn:hover,
.product-draft-btn:hover,
.product-publish-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .product-create-main {
    grid-template-columns: 1fr;
  }

  .product-create-dialog {
    width: min(760px, calc(100vw - 30px));
  }
}

@media (max-width: 760px) {
  .product-create-modal {
    padding: 10px;
  }

  .product-create-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    border-radius: 16px;
  }

  .product-create-header {
    height: auto;
    min-height: 84px;
    padding: 18px;
  }

  .product-create-header h2 {
    font-size: 20px;
  }

  .product-create-main {
    padding: 16px;
  }

  .product-two-fields,
  .product-cover-actions {
    grid-template-columns: 1fr;
  }

  .product-create-actions {
    height: auto;
    padding: 14px 16px;
    gap: 12px;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .product-create-actions > div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-cancel-btn,
  .product-draft-btn,
  .product-publish-btn {
    width: 100%;
  }
}

html.is-night-mode .product-create-backdrop,
body.is-night-mode .product-create-backdrop {
  background: rgba(2, 6, 20, 0.72) !important;
}

html.is-night-mode .product-create-dialog,
body.is-night-mode .product-create-dialog {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: linear-gradient(145deg, rgba(18, 27, 60, 0.98), rgba(8, 13, 31, 0.98)) !important;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.44),
    0 0 80px rgba(82, 118, 255, 0.13) !important;
}

html.is-night-mode .product-create-header,
html.is-night-mode .product-create-actions,
body.is-night-mode .product-create-header,
body.is-night-mode .product-create-actions {
  border-color: rgba(132, 157, 255, 0.22) !important;
  background: rgba(9, 14, 32, 0.66) !important;
}

html.is-night-mode .product-card,
body.is-night-mode .product-card {
  border-color: rgba(132, 157, 255, 0.26) !important;
  background: rgba(10, 16, 38, 0.78) !important;
  box-shadow: none !important;
}

html.is-night-mode .product-dropzone,
html.is-night-mode .product-editor,
html.is-night-mode .product-details-card input,
html.is-night-mode .product-card select,
body.is-night-mode .product-dropzone,
body.is-night-mode .product-editor,
body.is-night-mode .product-details-card input,
body.is-night-mode .product-card select {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(8, 13, 31, 0.74) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .product-editor-toolbar,
body.is-night-mode .product-editor-toolbar {
  border-color: rgba(132, 157, 255, 0.2) !important;
  color: #c6d2ff !important;
}

html.is-night-mode .product-create-icon,
html.is-night-mode .product-drop-icon,
html.is-night-mode .product-cover-preview,
body.is-night-mode .product-create-icon,
body.is-night-mode .product-drop-icon,
body.is-night-mode .product-cover-preview {
  border-color: rgba(132, 157, 255, 0.26) !important;
  background: rgba(238, 244, 255, 0.11) !important;
}

html.is-night-mode .product-soft-secondary,
html.is-night-mode .product-draft-btn,
html.is-night-mode .product-cancel-btn,
html.is-night-mode .product-preview-btn,
body.is-night-mode .product-soft-secondary,
body.is-night-mode .product-draft-btn,
body.is-night-mode .product-cancel-btn,
body.is-night-mode .product-preview-btn {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(12, 19, 43, 0.9) !important;
  color: #f7f9ff !important;
}

/* === PAGINA SEPARATA: AGGIUNGI NUOVO PRODOTTO === */

body.new-product-page {
  min-height: 100vh !important;
  overflow-x: hidden !important;
  color: #050927 !important;
  background: #ffffff !important;
  font-family: "Manrope", "Inter", Arial, sans-serif !important;
}

body.new-product-page::before,
body.new-product-page::after {
  content: none !important;
  display: none !important;
}

.new-product-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6ecfa;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.new-product-back {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe6f7;
  border-radius: 10px;
  color: #17255f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(12, 22, 80, 0.045);
}

.new-product-back span {
  font-size: 15px;
  line-height: 1;
}

.new-product-topbar-spacer {
  width: 120px;
  height: 1px;
}

.new-product-account {
  display: flex;
  align-items: center;
  gap: 16px;
}

.new-product-bell {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #17255f;
  cursor: pointer;
}

.new-product-bell svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.new-product-user {
  height: 40px;
  padding: 0 12px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e7f8;
  border-radius: 12px;
  background: #ffffff;
  color: #050927;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(12, 22, 80, 0.045);
}

.new-product-user span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  font-size: 11px;
}

.new-product-user strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.new-product-user svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.new-product-shell {
  width: min(100% - 72px, 1180px);
  margin: 34px auto 0;
  padding-bottom: 94px;
}

.new-product-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.new-product-heading-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe6f7;
  border-radius: 14px;
  background: #f5f7ff;
  box-shadow: 0 12px 30px rgba(6, 70, 255, 0.07);
}

.new-product-heading-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.new-product-heading h1 {
  margin: 0;
  color: #050927;
  font-size: 29px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.new-product-heading p {
  margin: 8px 0 0;
  color: #6e7aa1;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.new-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 22px;
  align-items: start;
}

.new-product-left,
.new-product-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.new-product-card {
  border: 1px solid #dfe6f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(12, 22, 80, 0.045);
  padding: 22px;
  box-sizing: border-box;
}

.new-product-card h2 {
  margin: 0;
  color: #050927;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

.new-product-card p {
  margin: 7px 0 0;
  color: #6e7aa1;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.new-product-dropzone {
  margin-top: 16px;
  min-height: 174px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #b8c9ef;
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.new-product-dropzone:hover {
  border-color: rgba(6, 70, 255, 0.48);
  box-shadow: 0 18px 40px rgba(6, 70, 255, 0.075);
  transform: translateY(-2px);
}

.new-product-drop-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
}

.new-product-drop-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.new-product-dropzone strong {
  color: #050927;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.new-product-dropzone span {
  color: #6e7aa1;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.new-product-dropzone em {
  height: 36px;
  min-width: 112px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  box-shadow: 0 14px 28px rgba(6, 70, 255, 0.22);
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.new-product-dropzone small,
.new-product-cover small {
  color: #8b96b5;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.new-product-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
}

.new-product-fields label,
.new-product-description {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #050927;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.new-product-fields input,
.new-product-side select {
  width: 100%;
  height: 44px;
  border: 1px solid #dce4f6;
  border-radius: 9px;
  background: #ffffff;
  color: #050927;
  outline: none;
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.new-product-fields input {
  padding: 0 14px;
}

.new-product-fields input::placeholder,
.new-product-editor textarea::placeholder {
  color: #a8b2ce;
}

.new-product-price {
  position: relative;
  display: block;
}

.new-product-price b {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #050927;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-50%);
}

.new-product-price input {
  padding-left: 36px;
}

.new-product-description {
  margin-top: 18px;
}

.new-product-editor {
  display: block;
  overflow: hidden;
  border: 1px solid #dce4f6;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.new-product-editor-toolbar {
  height: 43px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e6ecfa;
  color: #6e7aa1;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.new-product-editor-toolbar i {
  font-style: normal;
}

.new-product-editor textarea {
  width: 100%;
  min-height: 132px;
  padding: 17px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: #050927;
  outline: none;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  box-sizing: border-box;
}

.new-product-fields input:focus,
.new-product-side select:focus,
.new-product-editor:focus-within {
  border-color: rgba(6, 70, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(6, 70, 255, 0.08);
}

.new-product-cover-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 150px auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.new-product-cover-preview {
  width: 126px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5f7ff;
}

.new-product-cover-preview svg {
  width: 28px;
  height: 28px;
  fill: #6e7aa1;
}

.new-product-blue-soft,
.new-product-light-btn,
.new-product-preview,
.new-product-draft,
.new-product-publish,
.new-product-cancel {
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.new-product-blue-soft {
  color: #ffffff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  box-shadow: 0 14px 28px rgba(6, 70, 255, 0.2);
}

.new-product-light-btn,
.new-product-draft {
  color: #050927;
  background: #f1f5ff;
}

.new-product-side select {
  margin-top: 16px;
  padding: 0 14px;
}

.new-product-link {
  margin-top: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0646ff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
}

.new-product-radio {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  cursor: pointer;
}

.new-product-radio input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #0646ff;
}

.new-product-radio span {
  color: #6e7aa1;
  font-size: 11px;
  line-height: 1.42;
  font-weight: 700;
}

.new-product-radio strong {
  display: block;
  margin-bottom: 2px;
  color: #050927;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.new-product-preview {
  height: 38px;
  margin-top: 16px;
  gap: 8px;
  border: 1px solid #dce4f6;
  color: #050927;
  background: #ffffff;
}

.new-product-suggestions ul {
  margin: 15px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.new-product-suggestions li {
  position: relative;
  padding-left: 22px;
  color: #53618d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.new-product-suggestions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(6, 70, 255, 0.15), rgba(6, 70, 255, 0.04));
  border: 1px solid rgba(6, 70, 255, 0.18);
}

.new-product-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  height: 76px;
  padding: 0 max(54px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e6ecfa;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.new-product-actions > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.new-product-cancel {
  min-width: 142px;
  border: 1px solid #dce4f6;
  color: #050927;
  background: #ffffff;
}

.new-product-draft {
  min-width: 146px;
}

.new-product-publish {
  min-width: 196px;
  gap: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #0646ff 0%, #02033d 88%);
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.24);
}

.new-product-blue-soft:hover,
.new-product-light-btn:hover,
.new-product-preview:hover,
.new-product-cancel:hover,
.new-product-draft:hover,
.new-product-publish:hover,
.new-product-back:hover {
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .new-product-shell {
    width: min(100% - 44px, 820px);
  }

  .new-product-grid {
    grid-template-columns: 1fr;
  }

  .new-product-actions {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 760px) {
  .new-product-topbar {
    height: auto;
    min-height: 62px;
    padding: 10px 16px;
    gap: 10px;
  }

  .new-product-back {
    width: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .new-product-back span {
    font-size: 17px;
  }

  .new-product-user strong {
    display: none;
  }

  .new-product-shell {
    width: calc(100% - 28px);
    margin-top: 22px;
    padding-bottom: 160px;
  }

  .new-product-heading {
    align-items: flex-start;
    gap: 14px;
  }

  .new-product-heading h1 {
    font-size: 23px;
  }

  .new-product-fields,
  .new-product-cover-row {
    grid-template-columns: 1fr;
  }

  .new-product-card {
    padding: 18px;
  }

  .new-product-actions {
    height: auto;
    padding: 14px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .new-product-actions > div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .new-product-cancel,
  .new-product-draft,
  .new-product-publish {
    width: 100%;
  }
}

html.is-night-mode body.new-product-page,
body.new-product-page.is-night-mode {
  background: #05091a !important;
  color: #f7f9ff !important;
}

html.is-night-mode .new-product-topbar,
html.is-night-mode .new-product-actions,
body.is-night-mode .new-product-topbar,
body.is-night-mode .new-product-actions {
  border-color: rgba(132, 157, 255, 0.22) !important;
  background: rgba(5, 9, 26, 0.92) !important;
}

html.is-night-mode .new-product-card,
body.is-night-mode .new-product-card {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(10, 16, 38, 0.82) !important;
  box-shadow: none !important;
}

html.is-night-mode .new-product-heading h1,
html.is-night-mode .new-product-card h2,
html.is-night-mode .new-product-fields label,
html.is-night-mode .new-product-description,
html.is-night-mode .new-product-radio strong,
html.is-night-mode .new-product-dropzone strong,
html.is-night-mode .new-product-price b,
body.is-night-mode .new-product-heading h1,
body.is-night-mode .new-product-card h2,
body.is-night-mode .new-product-fields label,
body.is-night-mode .new-product-description,
body.is-night-mode .new-product-radio strong,
body.is-night-mode .new-product-dropzone strong,
body.is-night-mode .new-product-price b {
  color: #f7f9ff !important;
}

html.is-night-mode .new-product-heading p,
html.is-night-mode .new-product-card p,
html.is-night-mode .new-product-radio span,
html.is-night-mode .new-product-suggestions li,
html.is-night-mode .new-product-dropzone span,
html.is-night-mode .new-product-dropzone small,
html.is-night-mode .new-product-cover small,
body.is-night-mode .new-product-heading p,
body.is-night-mode .new-product-card p,
body.is-night-mode .new-product-radio span,
body.is-night-mode .new-product-suggestions li,
body.is-night-mode .new-product-dropzone span,
body.is-night-mode .new-product-dropzone small,
body.is-night-mode .new-product-cover small {
  color: #c6d2ff !important;
}

html.is-night-mode .new-product-dropzone,
html.is-night-mode .new-product-editor,
html.is-night-mode .new-product-fields input,
html.is-night-mode .new-product-side select,
html.is-night-mode .new-product-back,
html.is-night-mode .new-product-user,
html.is-night-mode .new-product-cancel,
html.is-night-mode .new-product-draft,
html.is-night-mode .new-product-light-btn,
html.is-night-mode .new-product-preview,
body.is-night-mode .new-product-dropzone,
body.is-night-mode .new-product-editor,
body.is-night-mode .new-product-fields input,
body.is-night-mode .new-product-side select,
body.is-night-mode .new-product-back,
body.is-night-mode .new-product-user,
body.is-night-mode .new-product-cancel,
body.is-night-mode .new-product-draft,
body.is-night-mode .new-product-light-btn,
body.is-night-mode .new-product-preview {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(8, 13, 31, 0.78) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .new-product-editor-toolbar,
body.is-night-mode .new-product-editor-toolbar {
  border-color: rgba(132, 157, 255, 0.22) !important;
  color: #c6d2ff !important;
}

html.is-night-mode .new-product-heading-icon,
html.is-night-mode .new-product-drop-icon,
html.is-night-mode .new-product-cover-preview,
body.is-night-mode .new-product-heading-icon,
body.is-night-mode .new-product-drop-icon,
body.is-night-mode .new-product-cover-preview {
  border-color: rgba(132, 157, 255, 0.26) !important;
  background: rgba(238, 244, 255, 0.11) !important;
}

/* === NUOVO PRODOTTO: DESIGN DEFINITIVO COME REFERENCE === */

body.product-studio-page {
  --studio-blue: #0646ff;
  --studio-night: #02033d;
  --studio-text: #090d2b;
  --studio-muted: #7280a8;
  --studio-line: #dfe7f8;
  --studio-soft: #f5f7ff;
  min-height: 100vh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  color: var(--studio-text) !important;
  background: #ffffff !important;
  font-family: "Manrope", "Inter", Arial, sans-serif !important;
  scrollbar-width: thin;
  scrollbar-color: #b9c8ee transparent;
}

body.product-studio-page::before,
body.product-studio-page::after {
  content: none !important;
  display: none !important;
}

body.product-studio-page::-webkit-scrollbar {
  width: 8px;
}

body.product-studio-page::-webkit-scrollbar-track {
  background: transparent;
}

body.product-studio-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b9c8ee;
}

.product-studio-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  padding: 0 max(42px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7edfb;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.product-studio-topbar-space {
  width: 120px;
  height: 1px;
}

.product-studio-account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-studio-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #17255f;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.product-studio-icon-btn:hover {
  color: var(--studio-blue);
  background: #f1f5ff;
  transform: translateY(-1px);
}

.product-studio-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.product-studio-user {
  height: 38px;
  padding: 0 11px 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  color: var(--studio-text);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-studio-user:hover {
  border-color: var(--studio-line);
  box-shadow: 0 12px 28px rgba(10, 22, 80, 0.08);
  transform: translateY(-1px);
}

.product-studio-user span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-night) 88%);
  font-size: 11px;
}

.product-studio-user strong {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.product-studio-user svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.72;
}

.product-studio-shell {
  width: min(100% - 72px, 1120px);
  margin: 28px auto 0;
  padding-bottom: 104px;
}

.product-studio-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  animation: productStudioFadeUp 0.5s ease both;
}

.product-studio-heading-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e8fb;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), transparent 42%),
    #f2f5ff;
  box-shadow: 0 14px 32px rgba(6, 70, 255, 0.08);
}

.product-studio-heading-icon svg {
  width: 27px;
  height: 27px;
  fill: var(--studio-blue);
}

.product-studio-heading h1 {
  margin: 0;
  color: var(--studio-text);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.product-studio-heading p {
  margin: 8px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.product-studio-form {
  display: grid;
  gap: 18px;
}

.product-studio-card {
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(9, 20, 70, 0.04);
  box-sizing: border-box;
  animation: productStudioFadeUp 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-studio-card:nth-of-type(2) { animation-delay: 0.04s; }
.product-studio-card:nth-of-type(3) { animation-delay: 0.08s; }
.product-studio-card:nth-of-type(4) { animation-delay: 0.12s; }
.product-studio-bottom-grid { animation: productStudioFadeUp 0.5s ease 0.16s both; }

.product-studio-card:hover {
  border-color: #cad8f7;
  box-shadow: 0 22px 58px rgba(9, 20, 70, 0.065);
  transform: translateY(-1px);
}

.product-studio-card header,
.product-studio-advanced summary {
  margin: 0;
}

.product-studio-card h2,
.product-studio-advanced summary strong {
  margin: 0;
  color: var(--studio-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.product-studio-card p,
.product-studio-advanced summary small {
  display: block;
  margin: 7px 0 0;
  color: var(--studio-muted);
  font-size: 10.5px;
  line-height: 1.42;
  font-weight: 800;
}

.product-studio-upload-card,
.product-studio-visibility-card,
.product-studio-details-card,
.product-studio-advanced {
  padding: 20px;
}

.product-studio-dropzone {
  margin-top: 14px;
  min-height: 174px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #b9c9ef;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(6, 70, 255, 0.035), transparent 56%),
    #ffffff;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-studio-dropzone:hover {
  border-color: rgba(6, 70, 255, 0.55);
  box-shadow: 0 18px 44px rgba(6, 70, 255, 0.08);
  transform: translateY(-2px);
}

.product-studio-drop-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(6, 70, 255, 0.08);
}

.product-studio-drop-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.product-studio-dropzone strong {
  color: var(--studio-text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.product-studio-dropzone span {
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.product-studio-dropzone em {
  height: 34px;
  min-width: 108px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-night) 88%);
  box-shadow: 0 14px 28px rgba(6, 70, 255, 0.22);
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-studio-dropzone:hover em {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.26);
}

.product-studio-dropzone small,
.product-studio-cover small {
  color: #8b97b7;
  font-size: 9.5px;
  line-height: 1.35;
  font-weight: 800;
}

.product-studio-radio-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.product-studio-radio {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.product-studio-radio input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--studio-blue);
}

.product-studio-radio span {
  color: var(--studio-muted);
  font-size: 10.5px;
  line-height: 1.42;
  font-weight: 800;
}

.product-studio-radio strong {
  display: block;
  margin-bottom: 2px;
  color: var(--studio-text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.product-studio-note {
  margin-top: 15px !important;
  padding: 12px 14px;
  border-radius: 10px;
  color: #17255f !important;
  background: #f5f7ff;
}

.product-studio-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
}

.product-studio-fields label,
.product-studio-description,
.product-studio-select-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--studio-text);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.product-studio-fields input,
.product-studio-select-label select {
  width: 100%;
  height: 42px;
  border: 1px solid #dce4f6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--studio-text);
  outline: none;
  font-size: 12px;
  font-weight: 850;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-studio-fields input {
  padding: 0 13px;
}

.product-studio-fields input::placeholder,
.product-studio-editor textarea::placeholder {
  color: #a7b2cf;
}

.product-studio-price {
  position: relative;
  display: block;
}

.product-studio-price b {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--studio-text);
  font-size: 12px;
  line-height: 1;
  transform: translateY(-50%);
}

.product-studio-price input {
  padding-left: 36px;
}

.product-studio-description {
  margin-top: 18px;
}

.product-studio-editor {
  display: block;
  overflow: hidden;
  border: 1px solid #dce4f6;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-studio-toolbar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e7edfb;
  color: #6d789f;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-studio-toolbar::-webkit-scrollbar {
  display: none;
}

.product-studio-toolbar i {
  font-style: normal;
  white-space: nowrap;
}

.product-studio-editor textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--studio-text);
  outline: none;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 750;
  box-sizing: border-box;
}

.product-studio-fields input:focus,
.product-studio-select-label select:focus,
.product-studio-editor:focus-within {
  border-color: rgba(6, 70, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(6, 70, 255, 0.08);
}

.product-studio-advanced {
  display: block;
}

.product-studio-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.product-studio-advanced summary::-webkit-details-marker {
  display: none;
}

.product-studio-advanced summary svg {
  width: 18px;
  height: 18px;
  fill: #7180a8;
  transition: transform 0.22s ease;
}

.product-studio-advanced[open] summary svg {
  transform: rotate(180deg);
}

.product-studio-checks {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.product-studio-checks label {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: start;
  gap: 10px;
  color: #53618d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.product-studio-checks input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--studio-blue);
}

.product-studio-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.product-studio-cover,
.product-studio-preview-card {
  padding: 20px;
}

.product-studio-cover-content {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 132px auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.product-studio-cover-preview {
  width: 112px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5f7ff;
}

.product-studio-cover-preview svg {
  width: 27px;
  height: 27px;
  fill: #6d789f;
}

.product-studio-primary-soft,
.product-studio-light-btn,
.product-studio-preview-grid button,
.product-studio-cancel,
.product-studio-draft,
.product-studio-publish {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-studio-primary-soft {
  color: #ffffff;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-night) 88%);
  box-shadow: 0 14px 28px rgba(6, 70, 255, 0.2);
}

.product-studio-light-btn,
.product-studio-draft {
  color: var(--studio-text);
  background: #f1f5ff;
}

.product-studio-preview-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-studio-preview-grid button {
  height: 66px;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #dfe7f8;
  color: #52618b;
  background: #ffffff;
}

.product-studio-preview-grid button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--studio-blue);
  background: #eef4ff;
  font-size: 15px;
}

.product-studio-link {
  margin-top: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--studio-blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
}

.product-studio-select-label {
  margin-top: 16px;
}

.product-studio-select-label select {
  margin-top: 2px;
  padding: 0 12px;
}

.product-studio-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  height: 74px;
  padding: 0 max(42px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e7edfb;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.product-studio-actions > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-studio-cancel {
  min-width: 138px;
  border: 1px solid #dce4f6;
  color: var(--studio-text);
  background: #ffffff;
}

.product-studio-draft {
  min-width: 138px;
}

.product-studio-publish {
  min-width: 190px;
  gap: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-night) 88%);
  box-shadow: 0 16px 34px rgba(6, 70, 255, 0.24);
}

.product-studio-publish svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-studio-primary-soft:hover,
.product-studio-light-btn:hover,
.product-studio-preview-grid button:hover,
.product-studio-cancel:hover,
.product-studio-draft:hover,
.product-studio-publish:hover {
  transform: translateY(-2px);
}

.product-studio-publish:hover,
.product-studio-primary-soft:hover {
  box-shadow: 0 20px 38px rgba(6, 70, 255, 0.28);
}

@keyframes productStudioFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-studio-shell {
    width: min(100% - 40px, 760px);
  }

  .product-studio-bottom-grid {
    grid-template-columns: 1fr;
  }

  .product-studio-fields,
  .product-studio-cover-content {
    grid-template-columns: 1fr;
  }

  .product-studio-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .product-studio-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-studio-topbar-space {
    width: 1px;
  }

  .product-studio-user strong {
    display: none;
  }

  .product-studio-shell {
    width: calc(100% - 28px);
    margin-top: 20px;
    padding-bottom: 168px;
  }

  .product-studio-heading {
    align-items: flex-start;
  }

  .product-studio-heading h1 {
    font-size: 23px;
  }

  .product-studio-upload-card,
  .product-studio-visibility-card,
  .product-studio-details-card,
  .product-studio-advanced,
  .product-studio-cover,
  .product-studio-preview-card {
    padding: 17px;
  }

  .product-studio-actions {
    height: auto;
    padding: 13px 14px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .product-studio-actions > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-studio-cancel,
  .product-studio-draft,
  .product-studio-publish {
    width: 100%;
  }
}

html.is-night-mode body.product-studio-page,
body.product-studio-page.is-night-mode {
  --studio-text: #f7f9ff;
  --studio-muted: #c6d2ff;
  --studio-line: rgba(132, 157, 255, 0.28);
  background: #05091a !important;
  color: #f7f9ff !important;
}

html.is-night-mode .product-studio-topbar,
html.is-night-mode .product-studio-actions,
body.is-night-mode .product-studio-topbar,
body.is-night-mode .product-studio-actions {
  border-color: rgba(132, 157, 255, 0.22) !important;
  background: rgba(5, 9, 26, 0.94) !important;
}

html.is-night-mode .product-studio-card,
body.is-night-mode .product-studio-card {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(10, 16, 38, 0.82) !important;
  box-shadow: none !important;
}

html.is-night-mode .product-studio-dropzone,
html.is-night-mode .product-studio-editor,
html.is-night-mode .product-studio-fields input,
html.is-night-mode .product-studio-select-label select,
html.is-night-mode .product-studio-user,
html.is-night-mode .product-studio-cancel,
html.is-night-mode .product-studio-draft,
html.is-night-mode .product-studio-light-btn,
html.is-night-mode .product-studio-preview-grid button,
body.is-night-mode .product-studio-dropzone,
body.is-night-mode .product-studio-editor,
body.is-night-mode .product-studio-fields input,
body.is-night-mode .product-studio-select-label select,
body.is-night-mode .product-studio-user,
body.is-night-mode .product-studio-cancel,
body.is-night-mode .product-studio-draft,
body.is-night-mode .product-studio-light-btn,
body.is-night-mode .product-studio-preview-grid button {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(8, 13, 31, 0.78) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .product-studio-heading-icon,
html.is-night-mode .product-studio-drop-icon,
html.is-night-mode .product-studio-cover-preview,
html.is-night-mode .product-studio-preview-grid button span,
html.is-night-mode .product-studio-note,
body.is-night-mode .product-studio-heading-icon,
body.is-night-mode .product-studio-drop-icon,
body.is-night-mode .product-studio-cover-preview,
body.is-night-mode .product-studio-preview-grid button span,
body.is-night-mode .product-studio-note {
  border-color: rgba(132, 157, 255, 0.24) !important;
  background: rgba(238, 244, 255, 0.1) !important;
}

html.is-night-mode .product-studio-toolbar,
body.is-night-mode .product-studio-toolbar {
  border-color: rgba(132, 157, 255, 0.22) !important;
  color: #c6d2ff !important;
}

/* === NUOVO PRODOTTO: MATCH FINALE REFERENCE PULITA === */
body.product-reference-page {
  --product-blue: #0546ff;
  --product-night: #05094d;
  --product-text: #060b27;
  --product-muted: #6f7ca5;
  --product-soft: #f5f8ff;
  --product-line: #dfe7f8;
  margin: 0;
  min-height: 100vh;
  padding: 0 0 88px;
  overflow-x: hidden;
  background: #ffffff !important;
  color: var(--product-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.product-reference-page::before,
body.product-reference-page::after {
  display: none !important;
  content: none !important;
}

.product-reference-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 50px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid #edf1f8;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.product-reference-account {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.product-reference-bell,
.product-reference-user,
.product-reference-back,
.product-reference-actions a,
.product-reference-actions button,
.product-reference-cover-box button,
.product-reference-preview-actions button,
.product-reference-preview-banner button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.product-reference-bell {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1c2855;
  background: transparent;
}

.product-reference-bell svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.product-reference-user {
  min-width: 126px;
  height: 36px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 18px;
  color: #1b2856;
  background: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-reference-user:hover {
  transform: translateY(-1px);
  background: #f7f9ff;
  box-shadow: 0 12px 24px rgba(4, 19, 64, 0.08);
}

.product-reference-user span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--product-blue), var(--product-night));
  font-size: 10px;
  font-weight: 900;
}

.product-reference-user strong {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.product-reference-user svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.product-reference-shell {
  width: min(100% - 52px, 720px);
  margin: 34px auto 0;
}

.product-reference-title {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 36px 44px 1fr;
  align-items: center;
  gap: 14px;
}

.product-reference-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #20305d;
  background: #f5f8ff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-reference-back:hover {
  transform: translateX(-2px);
  background: #eef4ff;
}

.product-reference-back svg,
.product-reference-title-icon svg,
.product-reference-preview-banner button svg,
.product-reference-actions button svg {
  fill: currentColor;
}

.product-reference-back svg {
  width: 16px;
  height: 16px;
}

.product-reference-title-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--product-blue);
  background: #eef4ff;
}

.product-reference-title-icon svg {
  width: 24px;
  height: 24px;
}

.product-reference-title h1,
.product-reference-card h2,
.product-reference-advanced summary strong,
.product-reference-preview-banner h2 {
  margin: 0;
  color: var(--product-text);
  letter-spacing: 0;
}

.product-reference-title h1 {
  font-size: 23px;
  line-height: 1.12;
  font-weight: 900;
}

.product-reference-title p {
  margin: 5px 0 0;
  color: #6b78a1;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.product-reference-form {
  display: grid;
  gap: 18px;
}

.product-reference-card {
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-reference-card:hover {
  transform: translateY(-2px);
  border-color: #cbd9ff;
  box-shadow: 0 14px 34px rgba(12, 26, 80, 0.055);
}

.product-reference-card header {
  margin: 0 0 12px;
}

.product-reference-card h2,
.product-reference-advanced summary strong,
.product-reference-preview-banner h2 {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.product-reference-card p,
.product-reference-card small,
.product-reference-cover-box span,
.product-reference-preview-actions span {
  color: var(--product-muted);
  font-size: 9px;
  line-height: 1.35;
  font-weight: 800;
}

.product-reference-card p {
  margin: 4px 0 0;
}

.product-reference-upload-card,
.product-reference-card,
.product-reference-advanced {
  padding: 18px;
}

.product-reference-dropzone {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #bcd0ff;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.product-reference-dropzone.is-dragging {
  border-color: var(--product-blue);
  background: #f3f7ff;
  box-shadow: 0 0 0 4px rgba(20, 75, 255, 0.08);
}

.product-reference-dropzone.has-file {
  padding: 12px;
  border-style: solid;
  background: #f9fbff;
}

.product-reference-dropzone-empty {
  width: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  cursor: pointer;
}

.product-reference-dropzone-empty[hidden],
.product-reference-file-preview[hidden],
.product-reference-file-visual [hidden] {
  display: none !important;
}

.product-reference-dropzone:hover {
  transform: translateY(-1px);
  border-color: var(--product-blue);
  background: #fbfdff;
}

.product-reference-cloud {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
}

.product-reference-cloud img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.product-reference-dropzone-empty strong {
  color: var(--product-text);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
}

.product-reference-dropzone-empty > span:not(.product-reference-cloud) {
  color: #7a86aa;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}

.product-reference-dropzone-empty em {
  height: 28px;
  min-width: 86px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--product-blue), var(--product-night) 88%);
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.16);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}

.product-reference-radio-list {
  display: grid;
  gap: 12px;
}

.product-reference-radio {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer !important;
}

.product-reference-radio input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--product-blue);
  cursor: pointer !important;
}

.product-reference-radio * {
  cursor: pointer !important;
}

.product-reference-radio span {
  display: grid;
  gap: 3px;
}

.product-reference-radio strong {
  color: var(--product-text);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.product-reference-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  gap: 16px;
}

.product-reference-fields label,
.product-reference-description,
.product-reference-category-card label {
  display: grid;
  gap: 7px;
  color: var(--product-text);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}

.product-reference-fields input,
.product-reference-price,
.product-reference-category-card select {
  width: 100%;
  height: 38px;
  border: 1px solid #dce4f6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--product-text);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  box-sizing: border-box;
  outline: none;
}

.product-reference-fields input {
  padding: 0 14px;
}

.product-reference-fields input::placeholder,
.product-reference-editor textarea::placeholder {
  color: #a5b0cb;
}

.product-reference-price {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  overflow: hidden;
}

.product-reference-price b {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--product-text);
}

.product-reference-price input {
  height: 100%;
  padding-left: 0;
  border: 0;
}

.product-reference-description {
  margin-top: 16px;
}

.product-reference-description > span {
  display: block;
}

.product-reference-editor {
  min-height: 116px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 36px 1fr;
  border: 1px solid #dce4f6;
  border-radius: 7px;
  background: #ffffff;
}

.product-reference-editor.product-reference-quill-shell {
  overflow: visible;
}

.product-reference-toolbar {
  min-width: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #edf1f8;
  color: #69769f;
}

.product-reference-toolbar i {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.product-reference-toolbar.ql-toolbar.ql-snow {
  border: 0;
}

.product-reference-toolbar .ql-formats {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product-reference-toolbar .ql-picker {
  color: #060b27;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.product-reference-file-preview {
  width: 100%;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.product-reference-file-visual {
  width: 82px;
  height: 68px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfddff;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef3ff, #ffffff);
  box-shadow: 0 10px 24px rgba(24, 63, 153, 0.1);
}

.product-reference-file-visual.is-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-reference-file-visual.is-pdf::after {
  content: "";
  width: 13px;
  height: 13px;
  position: absolute;
  top: 13px;
  right: 17px;
  border-left: 1px solid #b5c9ff;
  border-bottom: 1px solid #b5c9ff;
  background: #ffffff;
  transform: rotate(45deg);
}

.product-reference-file-visual.is-pdf span {
  width: 43px;
  height: 52px;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  border: 1px solid #aec3ff;
  border-radius: 5px;
  color: #ffffff;
  background: linear-gradient(145deg, #315dff, #07105d);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.product-reference-file-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-reference-file-info .product-reference-file-ready {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #087955;
  background: #e5faf2;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
}

.product-reference-file-info strong {
  overflow: hidden;
  color: var(--product-text);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-reference-file-info small {
  color: #7180a8;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
}

.product-reference-file-actions {
  display: grid;
  gap: 7px;
}

.product-reference-file-actions label,
.product-reference-file-actions button {
  min-width: 88px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d7fa;
  border-radius: 7px;
  color: #0b2a83;
  background: #ffffff;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-reference-file-actions button {
  color: #d52b45;
}

.product-reference-file-actions label:hover,
.product-reference-file-actions button:hover {
  transform: translateY(-1px);
  border-color: #7397ff;
  box-shadow: 0 8px 18px rgba(24, 63, 153, 0.1);
}

.product-reference-toolbar .ql-picker-label {
  border: 0;
  padding: 0 18px 0 0;
  color: #060b27;
}

.product-reference-toolbar .ql-header .ql-picker-label::before {
  content: "Paragrafo";
}

.product-reference-toolbar .ql-picker-label svg {
  right: 0;
}

.product-reference-toolbar .ql-picker-options {
  border: 1px solid #dce4f6;
  border-radius: 8px;
  padding: 6px;
  min-width: 138px;
  background: #ffffff;
  z-index: 60;
  box-shadow: 0 14px 34px rgba(5, 70, 255, 0.12);
}

.product-reference-toolbar .ql-header .ql-picker-item[data-value="1"]::before {
  content: "Titolo 1";
}

.product-reference-toolbar .ql-header .ql-picker-item[data-value="2"]::before {
  content: "Titolo 2";
}

.product-reference-toolbar .ql-header .ql-picker-item:not([data-value])::before {
  content: "Paragrafo";
}

.product-reference-toolbar .ql-color-picker {
  width: 30px;
  position: relative;
}

.product-reference-toolbar .ql-color-picker .ql-picker-label {
  width: 30px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.product-reference-toolbar .ql-color-picker .ql-picker-label::before {
  content: none;
}

.product-reference-toolbar .ql-color-picker .ql-picker-options {
  width: 290px;
  padding: 10px;
  display: none;
  grid-template-columns: repeat(10, 22px);
  gap: 6px;
  top: 34px;
  left: 0;
}

.product-reference-toolbar .ql-color-picker.is-active-color-picker.ql-expanded {
  z-index: 120;
}

.product-reference-toolbar .ql-color-picker.is-active-color-picker.ql-expanded .ql-picker-options {
  display: grid;
}

.product-reference-toolbar .ql-color-picker .ql-picker-item {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(5, 9, 77, 0.12);
  border-radius: 6px;
  cursor: pointer;
}

.new-product-page input[type="radio"],
.new-product-page input[type="checkbox"],
.new-product-page label:has(input[type="radio"]),
.new-product-page label:has(input[type="checkbox"]),
.product-reference-radio,
.product-reference-checks label,
.product-reference-toolbar button,
.product-reference-toolbar .ql-picker-label,
.product-reference-toolbar .ql-picker-item {
  cursor: pointer;
}

.product-reference-toolbar button {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #05094d;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.product-reference-toolbar button svg,
.product-reference-toolbar .ql-picker-label svg {
  color: currentColor;
  stroke: currentColor;
}

.product-reference-toolbar button:hover {
  color: #0546ff;
  background: rgba(5, 70, 255, 0.06);
}

.product-reference-toolbar button:focus,
.product-reference-toolbar button:focus-visible,
.product-reference-toolbar .ql-picker-label:focus,
.product-reference-toolbar .ql-picker-label:focus-visible {
  outline: none;
}

.product-reference-toolbar button.ql-active {
  color: #ffffff;
  background: #05094d;
  border-color: #05094d;
  box-shadow: 0 8px 18px rgba(5, 9, 77, 0.16);
}

.product-reference-quill-editor.ql-container.ql-snow {
  border: 0;
  font: inherit;
}

.product-reference-quill-editor .ql-editor {
  min-height: 170px;
  padding: 20px;
  color: #060b27;
  font: inherit;
  font-size: 17px;
  font-weight: 380;
  line-height: 1.55;
}

.product-reference-quill-editor .ql-editor.ql-blank::before {
  left: 20px;
  right: 20px;
  color: #a5b0cb;
  font-size: 17px;
  font-weight: 380;
  line-height: 1.42;
  font-style: normal;
}

.product-reference-quill-editor .ql-editor,
.product-reference-quill-editor .ql-editor p,
.product-reference-quill-editor .ql-editor em,
.product-reference-quill-editor .ql-editor u,
.product-reference-quill-editor .ql-editor s,
.product-reference-quill-editor .ql-editor ol,
.product-reference-quill-editor .ql-editor ul,
.product-reference-quill-editor .ql-editor li {
  color: #060b27;
  font-size: 17px;
  font-weight: 380;
  line-height: 1.42;
}

.product-reference-quill-editor .ql-editor span {
  font-size: 17px;
  font-weight: 380;
  line-height: 1.42;
}

.product-reference-quill-editor .ql-editor strong,
.product-reference-quill-editor .ql-editor b {
  font-size: 1.05em;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.product-reference-editor textarea {
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  resize: vertical;
  border: 0;
  outline: none;
  color: var(--product-text);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  box-sizing: border-box;
}

.product-reference-fields input:focus,
.product-reference-category-card select:focus,
.product-reference-editor:focus-within {
  border-color: #9cb7ff;
  box-shadow: 0 0 0 3px rgba(5, 70, 255, 0.08);
}

.product-reference-advanced {
  display: block;
}

.product-reference-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}

.product-reference-advanced summary::-webkit-details-marker {
  display: none;
}

.product-reference-advanced summary svg {
  width: 15px;
  height: 15px;
  fill: #1d2852;
  transition: transform 0.2s ease;
}

.product-reference-advanced[open] summary svg {
  transform: rotate(180deg);
}

.product-reference-checks {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.product-reference-checks label {
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: start;
  gap: 8px;
  color: #59668f;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 800;
}

.product-reference-checks input {
  width: 12px;
  height: 12px;
  margin: 1px 0 0;
  accent-color: var(--product-blue);
}

.product-reference-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.product-reference-cover-card,
.product-reference-extra-preview,
.product-reference-category-card {
  padding: 18px;
}

.product-reference-cover-box {
  min-height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid #dfe7f8;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-reference-cover-box.has-cover {
  padding: 8px;
  place-items: stretch;
  align-content: stretch;
  gap: 9px;
}

.product-reference-cover-box.is-dragover {
  border-color: #0c5cff;
  background: #f7faff;
  box-shadow: 0 14px 32px rgba(6, 76, 255, 0.12);
}

.product-reference-cover-box svg,
.product-reference-preview-slots svg {
  width: 22px;
  height: 22px;
  fill: #66759f;
}

.product-reference-cover-box img {
  width: 100%;
  height: 134px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  background: #f4f7ff;
}

.product-reference-cover-actions {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
}

.product-reference-cover-box button,
.product-reference-preview-actions button {
  height: 30px;
  padding: 0 18px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--product-blue), var(--product-night) 88%);
  font-size: 9px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-reference-cover-box button[hidden] {
  display: none !important;
}

.product-reference-cover-box button + button {
  color: #0b1642;
  border: 1px solid #dfe7f8;
  background: #ffffff;
}

.product-reference-cover-box button:hover,
.product-reference-preview-actions button:hover,
.product-reference-preview-banner button:hover,
.product-reference-actions button:hover,
.product-reference-actions a:hover {
  transform: translateY(-2px);
}

.product-reference-side-stack {
  display: grid;
  gap: 18px;
}

.product-reference-extra-preview header h2 span,
.product-reference-category-card label span {
  color: #8b96b6;
  font-size: 10px;
  font-weight: 800;
}

.product-reference-preview-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-reference-preview-slots button {
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe7f8;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-reference-preview-slots button:hover {
  transform: translateY(-2px);
  border-color: #bcd0ff;
}

.product-reference-preview-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-reference-category-card select {
  margin-top: 2px;
  padding: 0 12px;
  color: #7d88a9;
}

.product-reference-category-card button {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--product-blue);
  background: transparent;
  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.product-reference-preview-banner {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #f7f9ff;
}

.product-reference-preview-banner > span {
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(90deg, #eaf0ff, #ffffff);
}

.product-reference-preview-banner > span svg {
  width: 74px;
  height: 46px;
  fill: #d8e2ff;
}

.product-reference-preview-banner p {
  margin: 4px 0 0;
}

.product-reference-preview-banner button {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  color: #1d2852;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(12, 26, 80, 0.06);
  font-size: 10px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-reference-preview-banner button svg {
  width: 14px;
  height: 14px;
}

.product-reference-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  height: 66px;
  padding: 0 max(34px, calc((100vw - 720px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e7edfb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.product-reference-actions > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-reference-actions a,
.product-reference-actions button {
  height: 38px;
  min-width: 112px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-reference-actions a {
  border: 1px solid #dfe7f8;
  color: var(--product-text);
  background: #ffffff;
}

.product-reference-actions .product-reference-draft-btn {
  color: var(--product-text);
  background: #f2f6ff;
}

.product-reference-actions .product-reference-publish-btn {
  min-width: 172px;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--product-blue), var(--product-night) 88%);
  box-shadow: 0 14px 28px rgba(6, 70, 255, 0.2);
}

.product-reference-actions .product-reference-publish-btn svg {
  width: 13px;
  height: 13px;
}

.product-reference-actions .product-reference-publish-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.product-upload-status {
  max-width: 320px;
  margin: 0 4px 0 0;
  color: #62709b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  text-align: right;
}

.product-upload-status:empty {
  display: none;
}

.product-upload-status.is-error {
  color: #e52e45;
}

.product-upload-status.is-success {
  color: #0b9f68;
}

@media (max-width: 760px) {
  .product-reference-shell {
    width: calc(100% - 28px);
    margin-top: 24px;
  }

  .product-reference-title {
    grid-template-columns: 34px 42px 1fr;
    gap: 11px;
  }

  .product-reference-fields,
  .product-reference-media-grid,
  .product-reference-preview-banner {
    grid-template-columns: 1fr;
  }

  .product-reference-preview-banner button {
    width: 100%;
  }

  .product-reference-actions {
    height: auto;
    padding: 12px 14px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .product-reference-actions > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-reference-actions a,
  .product-reference-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .product-reference-user strong {
    display: none;
  }

  .product-reference-preview-slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

html.is-night-mode body.product-reference-page,
body.product-reference-page.is-night-mode {
  --product-text: #f7f9ff;
  --product-muted: #c8d2ff;
  --product-soft: rgba(132, 157, 255, 0.1);
  --product-line: rgba(132, 157, 255, 0.28);
  background: #05091a !important;
  color: #f7f9ff !important;
}

html.is-night-mode .product-reference-topbar,
html.is-night-mode .product-reference-actions,
body.is-night-mode .product-reference-topbar,
body.is-night-mode .product-reference-actions {
  border-color: rgba(132, 157, 255, 0.22) !important;
  background: rgba(5, 9, 26, 0.96) !important;
}

html.is-night-mode .product-reference-card,
html.is-night-mode .product-reference-user,
html.is-night-mode .product-reference-dropzone,
html.is-night-mode .product-reference-editor,
html.is-night-mode .product-reference-fields input,
html.is-night-mode .product-reference-price,
html.is-night-mode .product-reference-category-card select,
html.is-night-mode .product-reference-cover-box,
html.is-night-mode .product-reference-preview-slots button,
html.is-night-mode .product-reference-preview-banner button,
html.is-night-mode .product-reference-actions a,
html.is-night-mode .product-reference-actions .product-reference-draft-btn,
body.is-night-mode .product-reference-card,
body.is-night-mode .product-reference-user,
body.is-night-mode .product-reference-dropzone,
body.is-night-mode .product-reference-editor,
body.is-night-mode .product-reference-fields input,
body.is-night-mode .product-reference-price,
body.is-night-mode .product-reference-category-card select,
body.is-night-mode .product-reference-cover-box,
body.is-night-mode .product-reference-preview-slots button,
body.is-night-mode .product-reference-preview-banner button,
body.is-night-mode .product-reference-actions a,
body.is-night-mode .product-reference-actions .product-reference-draft-btn {
  border-color: rgba(132, 157, 255, 0.3) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
  box-shadow: none !important;
}

html.is-night-mode .product-reference-title-icon,
html.is-night-mode .product-reference-back,
html.is-night-mode .product-reference-cloud,
body.is-night-mode .product-reference-title-icon,
body.is-night-mode .product-reference-back,
body.is-night-mode .product-reference-cloud {
  background: rgba(132, 157, 255, 0.12) !important;
  color: #7ea0ff !important;
}

/* === NUOVO PRODOTTO: VERSIONE DESKTOP ORIZZONTALE E LEGGIBILE === */
@media (min-width: 901px) {
  .product-reference-shell {
    width: min(100% - 32px, 1440px);
    margin-top: 34px;
  }

  .product-reference-title {
    margin-bottom: 28px;
    grid-template-columns: 46px 56px 1fr;
    gap: 18px;
  }

  .product-reference-back {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .product-reference-back svg {
    width: 19px;
    height: 19px;
  }

  .product-reference-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .product-reference-title-icon svg {
    width: 31px;
    height: 31px;
  }

  .product-reference-title h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .product-reference-title p {
    margin-top: 8px;
    font-size: 14px;
  }

  .product-reference-form {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.95fr);
    gap: 22px;
    align-items: start;
  }

  .product-reference-upload-card,
  .product-reference-details-card,
  .product-reference-media-grid,
  .product-reference-preview-banner {
    grid-column: 1;
  }

  .product-reference-visibility-card,
  .product-reference-advanced {
    grid-column: 2;
  }

  .product-reference-upload-card {
    grid-row: 1;
  }

  .product-reference-visibility-card {
    grid-row: 1;
  }

  .product-reference-details-card {
    grid-row: 2;
  }

  .product-reference-advanced {
    grid-row: 2;
  }

  .product-reference-media-grid {
    grid-row: 3;
  }

  .product-reference-preview-banner {
    grid-row: 4;
    grid-column: 1 / -1;
  }

  .product-reference-card,
  .product-reference-upload-card,
  .product-reference-advanced,
  .product-reference-cover-card,
  .product-reference-extra-preview,
  .product-reference-category-card {
    padding: 24px;
  }

  .product-reference-card header {
    margin-bottom: 16px;
  }

  .product-reference-card h2,
  .product-reference-advanced summary strong,
  .product-reference-preview-banner h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .product-reference-card p,
  .product-reference-card small,
  .product-reference-cover-box span,
  .product-reference-preview-actions span {
    font-size: 12px;
    line-height: 1.45;
  }

  .product-reference-dropzone {
    min-height: 210px;
    gap: 9px;
  }

  .product-reference-cloud {
    width: 48px;
    height: 48px;
  }

  .product-reference-cloud img {
    width: 24px;
    height: 24px;
  }

  .product-reference-dropzone-empty strong {
    font-size: 15px;
  }

  .product-reference-dropzone-empty > span:not(.product-reference-cloud) {
    font-size: 13px;
  }

  .product-reference-dropzone-empty em {
    height: 42px;
    min-width: 126px;
    border-radius: 9px;
    font-size: 13px;
  }

  .product-reference-dropzone.has-file {
    padding: 18px;
  }

  .product-reference-file-preview {
    grid-template-columns: 118px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .product-reference-file-visual {
    width: 118px;
    height: 96px;
    border-radius: 10px;
  }

  .product-reference-file-visual.is-pdf span {
    width: 57px;
    height: 68px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .product-reference-file-info .product-reference-file-ready {
    padding: 5px 9px;
    font-size: 10px;
  }

  .product-reference-file-info strong {
    font-size: 15px;
  }

  .product-reference-file-info small {
    font-size: 12px;
  }

  .product-reference-file-actions label,
  .product-reference-file-actions button {
    min-width: 116px;
    height: 38px;
    border-radius: 8px;
    font-size: 11px;
  }

  .product-reference-radio-list {
    gap: 18px;
  }

  .product-reference-radio {
    grid-template-columns: 22px 1fr;
    gap: 13px;
  }

  .product-reference-radio input {
    width: 18px;
    height: 18px;
  }

  .product-reference-radio strong {
    font-size: 15px;
  }

  .product-reference-fields {
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.85fr);
    gap: 22px;
  }

  .product-reference-fields label,
  .product-reference-description,
  .product-reference-category-card label {
    gap: 10px;
    font-size: 14px;
  }

  .product-reference-fields input,
  .product-reference-price,
  .product-reference-category-card select {
    height: 52px;
    border-radius: 10px;
    font-size: 15px;
  }

  .product-reference-fields input {
    padding: 0 18px;
  }

  .product-reference-price {
    grid-template-columns: 46px 1fr;
  }

  .product-reference-description {
    margin-top: 22px;
  }

  .product-reference-editor {
    min-height: 178px;
    grid-template-rows: 48px 1fr;
    border-radius: 10px;
  }

  .product-reference-toolbar {
    padding: 0 16px;
    gap: 20px;
  }

  .product-reference-toolbar i {
    font-size: 13px;
  }

  .product-reference-editor textarea {
    min-height: 124px;
    padding: 17px 18px;
    font-size: 14px;
  }

  .product-reference-checks {
    margin-top: 18px;
    gap: 12px;
  }

  .product-reference-checks label {
    grid-template-columns: 18px 1fr;
    gap: 11px;
    font-size: 13px;
  }

  .product-reference-checks input {
    width: 16px;
    height: 16px;
  }

  .product-reference-media-grid {
    grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
    gap: 22px;
  }

  .product-reference-cover-box {
    min-height: 184px;
    gap: 12px;
    border-radius: 10px;
  }

  .product-reference-cover-box svg,
  .product-reference-preview-slots svg {
    width: 32px;
    height: 32px;
  }

  .product-reference-cover-box button,
  .product-reference-preview-actions button {
    height: 42px;
    padding: 0 24px;
    border-radius: 9px;
    font-size: 13px;
  }

  .product-reference-preview-slots {
    gap: 14px;
  }

  .product-reference-preview-slots button {
    height: 94px;
    border-radius: 10px;
  }

  .product-reference-category-card button {
    margin-top: 14px;
    font-size: 13px;
  }

  .product-reference-preview-banner {
    padding: 22px 24px;
    grid-template-columns: 130px 1fr auto;
    gap: 26px;
  }

  .product-reference-preview-banner > span {
    height: 82px;
    border-radius: 12px;
  }

  .product-reference-preview-banner > span svg {
    width: 104px;
    height: 64px;
  }

  .product-reference-preview-banner button {
    height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 13px;
  }

  .product-reference-preview-banner button svg {
    width: 17px;
    height: 17px;
  }

  .product-reference-actions {
    height: 78px;
    padding: 0 max(16px, calc((100vw - 1440px) / 2));
  }

  .product-reference-actions a,
  .product-reference-actions button {
    height: 48px;
    min-width: 154px;
    border-radius: 10px;
    font-size: 13px;
  }

  .product-reference-actions .product-reference-publish-btn {
    min-width: 224px;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .product-reference-shell {
    width: calc(100% - 36px);
  }

  .product-reference-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-reference-upload-card,
  .product-reference-details-card,
  .product-reference-media-grid,
  .product-reference-preview-banner,
  .product-reference-visibility-card,
  .product-reference-advanced {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Spazio finale: evita che il footer fisso tagli l'ultima card */
body.product-reference-page {
  padding-bottom: -60px !important;
}

.product-reference-shell {
  padding-bottom: 138px !important;
}

.product-reference-preview-banner {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  body.product-reference-page {
    padding-bottom: 220px !important;
  }

  .product-reference-shell {
    padding-bottom: 190px !important;
  }
}

/* Cornici premium per la schermata nuovo prodotto */
body.product-reference-page {
  --product-glow-border: rgba(23, 74, 196, 0.34);
  --product-glow-soft: rgba(5, 70, 255, 0.085);
  --product-glow-inner: rgba(5, 70, 255, 0.045);
}

.product-reference-card,
.product-reference-dropzone,
.product-reference-editor,
.product-reference-fields input,
.product-reference-price,
.product-reference-category-card select,
.product-reference-cover-box,
.product-reference-preview-slots button,
.product-reference-preview-banner > span {
  border-color: var(--product-glow-border) !important;
  box-shadow:
    0 0 0 1px rgba(5, 70, 255, 0.018),
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner) !important;
}

.product-reference-card:hover,
.product-reference-dropzone:hover,
.product-reference-preview-slots button:hover {
  border-color: rgba(5, 70, 255, 0.46) !important;
  box-shadow:
    0 0 0 1px rgba(5, 70, 255, 0.035),
    0 18px 44px rgba(5, 70, 255, 0.12),
    inset 0 1px 0 rgba(5, 70, 255, 0.06) !important;
}

html.is-night-mode body.product-reference-page,
body.product-reference-page.is-night-mode {
  --product-glow-border: rgba(126, 160, 255, 0.4);
  --product-glow-soft: rgba(126, 160, 255, 0.105);
  --product-glow-inner: rgba(255, 255, 255, 0.045);
}

/* Nuovo prodotto: prezzo dedicato ed editor descrizione piu grande */
.product-reference-details-card .product-reference-fields {
  grid-template-columns: 1fr !important;
}

.product-reference-price-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--product-glow-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(5, 70, 255, 0.018),
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner);
  box-sizing: border-box;
}

.product-reference-price-box label {
  display: grid;
  gap: 12px;
  color: var(--product-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.product-reference-price-box .product-reference-price {
  width: min(100%, 390px);
  height: 56px;
  grid-template-columns: 52px 1fr;
}

.product-reference-price-box .product-reference-price b {
  font-size: 17px;
}

.product-reference-price-box .product-reference-price input {
  font-size: 16px;
}

.product-reference-price-hint {
  color: #66749b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.product-reference-price-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-reference-price-summary[hidden] {
  display: none !important;
}

.product-reference-price-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--product-glow-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(5, 70, 255, 0.018),
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner);
  box-sizing: border-box;
}

.product-reference-price-card.is-seller-net {
  border-color: var(--product-glow-border);
  background: #ffffff;
}

.product-reference-price-card h3 {
  margin: 0;
  color: #050927;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.product-reference-price-card > small {
  color: #6b789d;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.product-reference-price-output {
  width: min(100%, 390px);
  height: 56px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--product-glow-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(5, 70, 255, 0.018),
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner);
  box-sizing: border-box;
}

.product-reference-price-output b {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid #dfe6f7;
  color: #465579;
  font-size: 17px;
  font-weight: 900;
}

.product-reference-price-output strong {
  min-width: 0;
  padding: 0 16px;
  color: #050927;
  font-size: 16px;
  font-weight: 800;
}

.product-reference-price,
.product-reference-price input,
.product-reference-price input:focus,
.product-reference-price input:focus-visible {
  outline: none !important;
}

.product-reference-price input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  caret-color: var(--product-blue);
  -webkit-appearance: none;
  appearance: none;
}

.product-reference-price:focus-within {
  border-color: rgba(5, 70, 255, 0.58) !important;
  box-shadow:
    0 0 0 3px rgba(5, 70, 255, 0.08),
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner) !important;
}

.product-reference-editor {
  min-height: 235px !important;
  grid-template-rows: 58px 1fr !important;
}

.product-reference-editor.product-reference-quill-shell {
  overflow: visible !important;
}

.product-reference-toolbar {
  gap: 22px !important;
  padding: 0 18px !important;
  color: #060b27 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 20 !important;
}

.product-reference-toolbar i {
  color: #060b27 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.product-reference-editor textarea {
  min-height: 170px !important;
  padding: 20px 20px !important;
  font-size: 15px !important;
}

.product-reference-toolbar.ql-toolbar.ql-snow {
  border: 0 !important;
  gap: 22px !important;
  padding: 0 18px !important;
  color: #060b27 !important;
  overflow: visible !important;
}

.product-reference-toolbar .ql-formats {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.product-reference-toolbar .ql-picker {
  height: 30px !important;
  color: #060b27 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  overflow: visible !important;
  z-index: 50 !important;
}

.product-reference-toolbar .ql-picker-label {
  height: 30px !important;
  padding: 6px 18px 6px 0 !important;
  border: 0 !important;
  color: #060b27 !important;
  line-height: 18px !important;
}

.product-reference-toolbar .ql-header .ql-picker-label::before {
  content: "Paragrafo" !important;
}

.product-reference-toolbar .ql-picker-options {
  border-color: var(--product-glow-border) !important;
  border-radius: 8px !important;
  padding: 6px !important;
  min-width: 138px !important;
  background: #ffffff !important;
  z-index: 80 !important;
  box-shadow: 0 14px 34px rgba(5, 70, 255, 0.12) !important;
}

.product-reference-toolbar .ql-header .ql-picker-item[data-value="1"]::before {
  content: "Titolo 1" !important;
}

.product-reference-toolbar .ql-header .ql-picker-item[data-value="2"]::before {
  content: "Titolo 2" !important;
}

.product-reference-toolbar .ql-header .ql-picker-item:not([data-value])::before {
  content: "Paragrafo" !important;
}

.product-reference-toolbar .ql-color-picker {
  width: 30px !important;
  position: relative !important;
}

.product-reference-toolbar .ql-color-picker .ql-picker-label {
  width: 30px !important;
  padding: 5px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
}

.product-reference-toolbar .ql-color-picker .ql-picker-label::before {
  content: none !important;
}

.product-reference-toolbar .ql-color-picker .ql-picker-options {
  width: 290px !important;
  padding: 10px !important;
  display: none !important;
  grid-template-columns: repeat(10, 22px) !important;
  gap: 6px !important;
  top: 34px !important;
  left: 0 !important;
}

.product-reference-toolbar .ql-color-picker.is-active-color-picker.ql-expanded {
  z-index: 120 !important;
}

.product-reference-toolbar .ql-color-picker.is-active-color-picker.ql-expanded .ql-picker-options {
  display: grid !important;
}

.product-reference-toolbar .ql-color-picker .ql-picker-item {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border: 1px solid rgba(5, 9, 77, 0.12) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}

.new-product-page input[type="radio"],
.new-product-page input[type="checkbox"],
.new-product-page label:has(input[type="radio"]),
.new-product-page label:has(input[type="checkbox"]),
.product-reference-radio,
.product-reference-checks label,
.product-reference-toolbar button,
.product-reference-toolbar .ql-picker-label,
.product-reference-toolbar .ql-picker-item {
  cursor: pointer !important;
}

.product-reference-toolbar button {
  width: 30px !important;
  height: 30px !important;
  padding: 5px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #05094d !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-reference-toolbar button:hover {
  color: #0546ff !important;
  background: rgba(5, 70, 255, 0.06) !important;
}

.product-reference-toolbar button.ql-active {
  color: #ffffff !important;
  background: #05094d !important;
  border-color: #05094d !important;
  box-shadow: 0 8px 18px rgba(5, 9, 77, 0.16) !important;
}

.product-reference-toolbar button svg,
.product-reference-toolbar .ql-picker-label svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.product-reference-quill-editor.ql-container.ql-snow {
  border: 0 !important;
  font: inherit !important;
}

.product-reference-quill-editor .ql-editor {
  min-height: 170px !important;
  padding: 20px !important;
  color: #060b27 !important;
  font: inherit !important;
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.55 !important;
}

.product-reference-quill-editor .ql-editor.ql-blank::before {
  left: 20px !important;
  right: 20px !important;
  color: #a5b0cb !important;
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
  font-style: normal !important;
}

.product-reference-quill-editor .ql-editor,
.product-reference-quill-editor .ql-editor p,
.product-reference-quill-editor .ql-editor em,
.product-reference-quill-editor .ql-editor u,
.product-reference-quill-editor .ql-editor s,
.product-reference-quill-editor .ql-editor ol,
.product-reference-quill-editor .ql-editor ul,
.product-reference-quill-editor .ql-editor li {
  color: #060b27 !important;
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
}

.product-reference-quill-editor .ql-editor span {
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
}

.product-reference-quill-editor .ql-editor strong,
.product-reference-quill-editor .ql-editor b {
  font-size: 1.05em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

.product-reference-details-card .product-reference-fields input {
  font-size: 20px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.product-reference-details-card .product-reference-fields input::placeholder {
  font-size: 20px !important;
  font-weight: 650 !important;
}

.product-reference-editor:focus-within {
  border-color: #dce4f6 !important;
  box-shadow:
    0 12px 34px var(--product-glow-soft),
    inset 0 1px 0 var(--product-glow-inner) !important;
}

html.is-night-mode .product-reference-editor:focus-within,
body.is-night-mode .product-reference-editor:focus-within {
  border-color: rgba(132, 157, 255, 0.3) !important;
  box-shadow: none !important;
}

html.is-night-mode .product-reference-toolbar.ql-toolbar.ql-snow,
body.is-night-mode .product-reference-toolbar.ql-toolbar.ql-snow,
html.is-night-mode .product-reference-toolbar .ql-picker,
body.is-night-mode .product-reference-toolbar .ql-picker,
html.is-night-mode .product-reference-toolbar .ql-picker-label,
body.is-night-mode .product-reference-toolbar .ql-picker-label {
  color: rgba(247, 249, 255, 0.78) !important;
}

html.is-night-mode .product-reference-toolbar button,
body.is-night-mode .product-reference-toolbar button {
  color: #f7f9ff !important;
}

html.is-night-mode .product-reference-toolbar button:hover,
body.is-night-mode .product-reference-toolbar button:hover {
  background: rgba(126, 160, 255, 0.08) !important;
}

html.is-night-mode .product-reference-toolbar button.ql-active,
body.is-night-mode .product-reference-toolbar button.ql-active {
  color: #05094d !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

html.is-night-mode .product-reference-quill-editor .ql-editor.ql-blank::before,
body.is-night-mode .product-reference-quill-editor .ql-editor.ql-blank::before {
  color: rgba(224, 232, 255, 0.62) !important;
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
}

html.is-night-mode .product-reference-quill-editor .ql-editor,
html.is-night-mode .product-reference-quill-editor .ql-editor p,
html.is-night-mode .product-reference-quill-editor .ql-editor em,
html.is-night-mode .product-reference-quill-editor .ql-editor u,
html.is-night-mode .product-reference-quill-editor .ql-editor s,
html.is-night-mode .product-reference-quill-editor .ql-editor ol,
html.is-night-mode .product-reference-quill-editor .ql-editor ul,
html.is-night-mode .product-reference-quill-editor .ql-editor li,
body.is-night-mode .product-reference-quill-editor .ql-editor,
body.is-night-mode .product-reference-quill-editor .ql-editor p,
body.is-night-mode .product-reference-quill-editor .ql-editor em,
body.is-night-mode .product-reference-quill-editor .ql-editor u,
body.is-night-mode .product-reference-quill-editor .ql-editor s,
body.is-night-mode .product-reference-quill-editor .ql-editor ol,
body.is-night-mode .product-reference-quill-editor .ql-editor ul,
body.is-night-mode .product-reference-quill-editor .ql-editor li {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
}

html.is-night-mode .product-reference-quill-editor .ql-editor span,
body.is-night-mode .product-reference-quill-editor .ql-editor span {
  font-size: 17px !important;
  font-weight: 380 !important;
  line-height: 1.42 !important;
}

html.is-night-mode .product-reference-quill-editor .ql-editor strong,
html.is-night-mode .product-reference-quill-editor .ql-editor b,
body.is-night-mode .product-reference-quill-editor .ql-editor strong,
body.is-night-mode .product-reference-quill-editor .ql-editor b {
  font-size: 1.05em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

/* Keep long, unbroken product descriptions inside the fixed editor box. */
.product-reference-details-card,
.product-reference-description,
.product-reference-editor.product-reference-quill-shell,
.product-reference-quill-editor.ql-container.ql-snow {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.product-reference-quill-editor.ql-container.ql-snow {
  overflow: hidden !important;
}

.product-reference-quill-editor .ql-editor,
.product-reference-quill-editor .ql-editor p,
.product-reference-quill-editor .ql-editor span,
.product-reference-quill-editor .ql-editor strong,
.product-reference-quill-editor .ql-editor em,
.product-reference-quill-editor .ql-editor u,
.product-reference-quill-editor .ql-editor li {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
}

/* Preserve bold when Quill nests italic and underline inside strong/b. */
.product-reference-quill-editor .ql-editor strong,
.product-reference-quill-editor .ql-editor b {
  font-size: 1.05em !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.product-reference-quill-editor .ql-editor strong *,
.product-reference-quill-editor .ql-editor b * {
  font-size: inherit !important;
  font-weight: inherit !important;
  text-shadow: none !important;
}

html.is-night-mode .product-reference-price-box,
body.is-night-mode .product-reference-price-box {
  border-color: rgba(126, 160, 255, 0.4) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(126, 160, 255, 0.035),
    0 14px 34px rgba(126, 160, 255, 0.095),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

html.is-night-mode .product-reference-price-card,
body.is-night-mode .product-reference-price-card {
  border-color: rgba(126, 160, 255, 0.3);
  background: rgba(16, 24, 52, 0.9);
}

html.is-night-mode .product-reference-price-card h3,
html.is-night-mode .product-reference-price-output strong,
body.is-night-mode .product-reference-price-card h3,
body.is-night-mode .product-reference-price-output strong {
  color: #ffffff;
}

html.is-night-mode .product-reference-price-output,
body.is-night-mode .product-reference-price-output {
  border-color: rgba(126, 160, 255, 0.35);
  background: rgba(8, 13, 31, 0.78);
}

/* === DASHBOARD COMPLETA SEPARATA === */
body.seller-dashboard-page {
  --merchant-blue: #0546ff;
  --merchant-night: #05094d;
  --merchant-text: #070b2a;
  --merchant-muted: #6c789f;
  --merchant-soft: #f5f7ff;
  --merchant-line: #e4eaf7;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--merchant-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.seller-dashboard-page::before,
body.seller-dashboard-page::after {
  display: none !important;
  content: none !important;
}

.merchant-dashboard-shell {
  width: min(100% - 44px, 1260px);
  min-height: 760px;
  margin: 22px auto 34px;
  display: grid;
  grid-template-columns: 216px 1fr;
  border: 1px solid var(--merchant-line);
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.merchant-sidebar {
  padding: 22px 16px;
  border-right: 1px solid var(--merchant-line);
  background: #ffffff;
}

.merchant-nav {
  display: grid;
  gap: 13px;
}

.merchant-nav a {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 8px;
  color: #0c1336;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.merchant-nav a:hover,
.merchant-nav a.is-active {
  color: var(--merchant-blue);
  background: #eef3ff;
  transform: translateX(2px);
}

.merchant-nav img,
.merchant-nav > a > svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  fill: currentColor;
  flex: 0 0 auto;
}

.merchant-dashboard-main {
  padding: 28px 28px 22px;
  background: #ffffff;
}

.merchant-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.merchant-dashboard-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
}

.merchant-dashboard-head p {
  margin: 7px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.merchant-range {
  height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: #121a43;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(9, 21, 66, 0.035);
}

.merchant-range svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.merchant-card {
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 15px 34px rgba(9, 21, 66, 0.035);
  box-sizing: border-box;
}

.merchant-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: 0;
}

.merchant-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 112px;
  padding: 20px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 15px;
}

.metric-icon,
.empty-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eff3ff;
}

.metric-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 950;
}

.metric-icon svg,
.metric-icon img {
  width: 18px;
  height: 18px;
  fill: currentColor;
  object-fit: contain;
}

.metric-card small,
.metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin: 10px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.merchant-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.78fr) minmax(220px, 0.78fr);
  gap: 18px;
  margin-bottom: 22px;
}

.sales-chart-card,
.product-sales-card,
.traffic-card {
  min-height: 280px;
  padding: 22px;
}

.sales-chart-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-chart-card h2 span {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border: 1px solid #cfd8ee;
  border-radius: 50%;
  color: #7c88aa;
  font-size: 10px;
}

.sales-chart-card header button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: #1b2452;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.empty-chart {
  position: relative;
  height: 216px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 38px 1fr;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a0abc8;
  font-size: 10px;
  font-weight: 850;
}

.chart-lines {
  position: relative;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.chart-lines span {
  border-top: 1px solid #edf1f8;
}

.chart-empty-message {
  position: absolute;
  inset: 0 0 0 38px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.empty-icon {
  width: 58px;
  height: 58px;
}

.empty-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.empty-center {
  min-height: 212px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
}

.empty-center strong,
.chart-empty-message strong {
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 950;
}

.empty-center p,
.chart-empty-message p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 780;
}

.empty-center a,
.traffic-card > a {
  min-height: 34px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-blue);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.traffic-card {
  display: grid;
  align-content: start;
}

.traffic-donut {
  width: 112px;
  height: 112px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 48%, transparent 49%),
    conic-gradient(#dbe4ff 0 35%, #ede6ff 35% 58%, #e9eefc 58% 78%, #f2f5ff 78% 100%);
}

.traffic-donut span {
  color: #8d98b8;
  font-size: 10px;
  font-weight: 900;
}

.traffic-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.traffic-card li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #19214a;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

.traffic-card li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--merchant-blue);
}

.traffic-card li:nth-child(2) span {
  background: #b949ff;
}

.traffic-card li:nth-child(3) span {
  background: #151a37;
}

.traffic-card li:nth-child(4) span {
  background: #c4cee5;
}

.traffic-card li em {
  color: #8c97b7;
  font-style: normal;
}

.traffic-card > a {
  margin: 17px auto 0;
  border: 0;
}

.merchant-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(230px, 0.74fr);
  gap: 18px;
  margin-bottom: 22px;
}

.empty-list-card,
.quick-actions-card {
  min-height: 178px;
  padding: 22px;
}

.empty-list-card .empty-center {
  min-height: 120px;
}

.empty-list-card .empty-icon {
  width: 48px;
  height: 48px;
}

.quick-actions-card {
  display: grid;
  gap: 11px;
}

.quick-actions-card a {
  min-height: 30px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #17204b;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.quick-actions-card a span {
  display: grid;
  place-items: center;
  color: var(--merchant-blue);
  font-size: 14px;
}

.quick-actions-card a b {
  color: #11183b;
  font-size: 18px;
  line-height: 1;
}

.merchant-start-banner {
  min-height: 74px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid #e5ebfb;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f5ff 0%, #ffffff 44%, #ffffff 100%);
}

.banner-preview {
  height: 56px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6ecff, #f7f9ff);
}

.banner-preview img {
  width: 50px;
  height: 38px;
  object-fit: contain;
}

.banner-preview span {
  position: absolute;
  right: 9px;
  bottom: 7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--merchant-blue);
  font-size: 16px;
  font-weight: 950;
}

.merchant-start-banner h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}

.merchant-start-banner p {
  margin: 4px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 780;
}

.merchant-start-banner > a {
  height: 44px;
  min-width: 224px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.18);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.merchant-nav a,
.merchant-card,
.merchant-start-banner,
.merchant-range,
.empty-center a,
.merchant-start-banner > a,
.quick-actions-card a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.merchant-card:hover,
.merchant-start-banner:hover,
.merchant-range:hover,
.empty-center a:hover,
.merchant-start-banner > a:hover {
  transform: translateY(-2px);
}

.merchant-card:hover {
  border-color: #cfdcff;
  box-shadow: 0 20px 44px rgba(9, 21, 66, 0.06);
}

@media (max-width: 1120px) {
  .merchant-dashboard-shell {
    grid-template-columns: 190px 1fr;
  }

  .merchant-metrics,
  .merchant-grid-top,
  .merchant-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-chart-card,
  .quick-actions-card,
  .merchant-start-banner {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell {
    width: calc(100% - 22px);
    grid-template-columns: 1fr;
  }

  .merchant-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--merchant-line);
    overflow-x: auto;
  }

  .merchant-nav {
    display: flex;
    min-width: max-content;
  }

  .merchant-dashboard-main {
    padding: 20px 16px;
  }

  .merchant-dashboard-head,
  .merchant-start-banner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .merchant-metrics,
  .merchant-grid-top,
  .merchant-grid-bottom {
    grid-template-columns: 1fr;
  }
}

html.is-night-mode body.seller-dashboard-page,
body.seller-dashboard-page.is-night-mode {
  --merchant-text: #f7f9ff;
  --merchant-muted: #c9d3ff;
  --merchant-line: rgba(132, 157, 255, 0.28);
  background: #05091a !important;
  color: #f7f9ff !important;
}

html.is-night-mode .merchant-dashboard-shell,
html.is-night-mode .merchant-sidebar,
html.is-night-mode .merchant-dashboard-main,
html.is-night-mode .merchant-card,
html.is-night-mode .merchant-range,
html.is-night-mode .empty-center a,
html.is-night-mode .merchant-start-banner,
body.is-night-mode .merchant-dashboard-shell,
body.is-night-mode .merchant-sidebar,
body.is-night-mode .merchant-dashboard-main,
body.is-night-mode .merchant-card,
body.is-night-mode .merchant-range,
body.is-night-mode .empty-center a,
body.is-night-mode .merchant-start-banner {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  box-shadow: none !important;
}

html.is-night-mode .merchant-nav a,
html.is-night-mode .traffic-card li,
html.is-night-mode .quick-actions-card a,
body.is-night-mode .merchant-nav a,
body.is-night-mode .traffic-card li,
body.is-night-mode .quick-actions-card a {
  color: #f7f9ff !important;
}

html.is-night-mode .merchant-nav a:hover,
html.is-night-mode .merchant-nav a.is-active,
body.is-night-mode .merchant-nav a:hover,
body.is-night-mode .merchant-nav a.is-active {
  color: #9bb2ff !important;
  background: rgba(132, 157, 255, 0.14) !important;
}

/* Dashboard completa: il layout deve toccare i bordi del dispositivo */
body.seller-dashboard-page {
  width: 100%;
  overflow-x: hidden !important;
}

body.seller-dashboard-page .merchant-dashboard-shell {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  min-height: calc(100vh - 104px);
}

body.seller-dashboard-page .merchant-dashboard-main {
  min-width: 0;
}

body.seller-dashboard-page .merchant-metrics,
body.seller-dashboard-page .merchant-grid-top,
body.seller-dashboard-page .merchant-grid-bottom {
  width: 100%;
}

@media (min-width: 1280px) {
  body.seller-dashboard-page .merchant-dashboard-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.seller-dashboard-page .merchant-dashboard-main {
    padding-left: 34px;
    padding-right: 34px;
  }
}

/* Dashboard completa: stesso mix font della schermata principale */
body.seller-dashboard-page,
body.seller-dashboard-page .header,
body.seller-dashboard-page .nav,
body.seller-dashboard-page .header-actions,
body.seller-dashboard-page .language-link,
body.seller-dashboard-page .merchant-dashboard-shell,
body.seller-dashboard-page .merchant-sidebar,
body.seller-dashboard-page .merchant-nav,
body.seller-dashboard-page .merchant-dashboard-main,
body.seller-dashboard-page .merchant-card,
body.seller-dashboard-page .merchant-range,
body.seller-dashboard-page .metric-card,
body.seller-dashboard-page .empty-center,
body.seller-dashboard-page .quick-actions-card,
body.seller-dashboard-page .merchant-start-banner {
  font-family: "Manrope", Arial, sans-serif !important;
}

body.seller-dashboard-page h1,
body.seller-dashboard-page h2,
body.seller-dashboard-page h3,
body.seller-dashboard-page strong,
body.seller-dashboard-page small,
body.seller-dashboard-page p,
body.seller-dashboard-page a,
body.seller-dashboard-page button,
body.seller-dashboard-page span,
body.seller-dashboard-page em,
body.seller-dashboard-page li {
  font-family: "Manrope", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

body.seller-dashboard-page .merchant-dashboard-head h1 {
  font-weight: 900 !important;
}

/* Dashboard completa: vista Ordini */
.merchant-sidebar {
  display: flex;
  flex-direction: column;
}

.merchant-support-card {
  display: none;
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--merchant-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(9, 21, 66, 0.04);
}

.merchant-dashboard-shell.orders-active .merchant-support-card,
.merchant-dashboard-shell.payments-active .merchant-support-card,
.merchant-dashboard-shell.customers-active .merchant-support-card,
.merchant-dashboard-shell.analytics-active .merchant-support-card,
.merchant-dashboard-shell.products-active .merchant-support-card,
.merchant-dashboard-shell.settings-active .merchant-support-card {
  display: grid;
  gap: 10px;
}

.merchant-support-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff3ff;
}

.merchant-support-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.merchant-support-card strong {
  margin-top: 8px;
  color: var(--merchant-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.merchant-support-card p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.merchant-support-card a {
  min-height: 34px;
  margin-top: 6px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-blue);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.merchant-dashboard-main.is-orders-active > :not(.merchant-orders-view) {
  display: none !important;
}

.merchant-dashboard-main.is-products-active > :not(.merchant-products-view) {
  display: none !important;
}

.merchant-dashboard-main.is-payments-active > :not(.merchant-payments-view) {
  display: none !important;
}

.merchant-dashboard-main.is-customers-active > :not(.merchant-customers-view) {
  display: none !important;
}

.merchant-dashboard-main.is-analytics-active > :not(.merchant-analytics-view) {
  display: none !important;
}

.merchant-dashboard-main.is-domain-active > :not(.merchant-domain-view) {
  display: none !important;
}

.merchant-dashboard-main.is-settings-active > :not(.merchant-settings-view) {
  display: none !important;
}

.merchant-orders-view,
.merchant-products-view,
.merchant-payments-view,
.merchant-customers-view,
.merchant-analytics-view,
.merchant-domain-view,
.merchant-settings-view {
  display: none;
  animation: merchantViewIn 0.28s ease both;
}

.merchant-dashboard-main.is-orders-active .merchant-orders-view {
  display: block;
}

.merchant-dashboard-main.is-products-active .merchant-products-view {
  display: block;
}

.merchant-dashboard-main.is-payments-active .merchant-payments-view {
  display: block;
}

.merchant-dashboard-main.is-customers-active .merchant-customers-view {
  display: block;
}

.merchant-dashboard-main.is-analytics-active .merchant-analytics-view {
  display: block;
}

.merchant-dashboard-main.is-domain-active .merchant-domain-view {
  display: block;
}

.merchant-dashboard-main.is-settings-active .merchant-settings-view {
  display: block;
}

@keyframes merchantViewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.merchant-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.merchant-orders-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-orders-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.merchant-export-btn {
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.18);
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.merchant-export-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.merchant-orders-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.order-metric-card {
  min-height: 112px;
  padding: 20px;
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 14px;
}

.order-metric-card .metric-icon {
  width: 42px;
  height: 42px;
}

.order-metric-card small,
.order-metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.order-metric-card strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.order-metric-card b {
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 6px;
  color: #8c98bd;
  background: #f0f3ff;
  font-size: 15px;
  font-weight: 950;
}

.merchant-orders-panel {
  min-height: 518px;
  padding: 22px;
  margin-bottom: 20px;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(170px, auto);
  align-items: center;
  gap: 48px;
  margin-bottom: 22px;
}

.orders-search {
  height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(9, 21, 66, 0.025);
}

.orders-search svg {
  width: 18px;
  height: 18px;
  fill: #3d4f89;
}

.orders-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 760;
}

.orders-search input::placeholder {
  color: #7d89aa;
}

.orders-tabs {
  height: 46px;
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(9, 21, 66, 0.025);
}

.orders-tabs button {
  min-width: 92px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--merchant-line);
  color: #11183b;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.orders-tabs button:last-child {
  border-right: 0;
}

.orders-tabs button.is-active {
  color: var(--merchant-blue);
  background: #f2f5ff;
  box-shadow: inset 0 0 24px rgba(6, 70, 255, 0.04);
}

.orders-range {
  height: 46px;
  justify-self: end;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.orders-list[hidden] {
  display: none !important;
}

.orders-list-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(190px, 1fr) minmax(110px, .55fr) minmax(110px, .55fr) minmax(130px, .6fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #edf1fb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 21, 66, 0.025);
}

.orders-list-row:hover {
  border-color: #cfdbff;
  box-shadow: 0 16px 34px rgba(9, 21, 66, 0.07);
}

.orders-row-main,
.orders-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.orders-row-main strong,
.orders-row-copy strong,
.orders-row-value {
  min-width: 0;
  overflow: hidden;
  color: var(--merchant-text);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-row-main small,
.orders-row-copy small {
  min-width: 0;
  overflow: hidden;
  color: var(--merchant-muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-row-status {
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.orders-row-status.is-sent {
  color: #04734a;
  background: #dcf8ea;
}

.orders-row-status.is-pending {
  color: #9a6500;
  background: #fff0c8;
}

.orders-empty-state {
  min-height: 395px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  border: 1px solid #eef2fb;
  border-radius: 8px;
  text-align: center;
}

.orders-empty-illustration {
  position: relative;
  width: 190px;
  height: 145px;
  margin-bottom: 4px;
  filter: drop-shadow(0 20px 30px rgba(54, 82, 255, 0.12));
}

.orders-empty-illustration::before {
  content: "";
  position: absolute;
  left: 43px;
  bottom: 14px;
  width: 102px;
  height: 24px;
  border-radius: 50%;
  background: rgba(35, 70, 255, 0.07);
}

.orders-box {
  position: absolute;
  left: 54px;
  bottom: 24px;
  width: 82px;
  height: 58px;
  background: linear-gradient(135deg, #8fa5ff, #dce5ff);
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
}

.orders-box::before,
.orders-box::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 50%;
  height: 32px;
  background: rgba(255, 255, 255, 0.45);
}

.orders-box::before {
  left: 0;
  transform: skewY(22deg);
}

.orders-box::after {
  right: 0;
  transform: skewY(-22deg);
}

.orders-plane {
  position: absolute;
  right: 27px;
  top: 20px;
  width: 54px;
  height: 46px;
  background: linear-gradient(135deg, #6a86ff, #c9d6ff);
  clip-path: polygon(0 48%, 100% 0, 68% 92%, 48% 58%);
  transform: rotate(-9deg);
}

.orders-trail {
  position: absolute;
  left: 75px;
  top: 39px;
  width: 74px;
  height: 44px;
  border-top: 2px dashed rgba(75, 101, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.orders-empty-state h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.orders-empty-state p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 760;
}

.orders-empty-state a {
  min-height: 46px;
  min-width: 284px;
  margin-top: 12px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.18);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.orders-empty-state a span {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.merchant-orders-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.order-info-card {
  min-height: 112px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
}

.order-info-card h2 {
  margin: 0 0 8px;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.order-info-card p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.merchant-export-btn,
.orders-tabs button,
.orders-empty-state a,
.merchant-support-card a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.merchant-export-btn:hover,
.orders-empty-state a:hover,
.merchant-support-card a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1120px) {
  .merchant-orders-metrics,
  .merchant-orders-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .orders-tabs,
  .orders-range {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.orders-active .merchant-support-card {
    display: none;
  }

  .merchant-orders-head,
  .merchant-orders-metrics,
  .merchant-orders-info {
    grid-template-columns: 1fr;
    display: grid;
  }

  .merchant-export-btn {
    width: 100%;
  }

  .orders-tabs {
    overflow-x: auto;
  }
}

html.is-night-mode .merchant-support-card,
html.is-night-mode .orders-search,
html.is-night-mode .orders-tabs,
html.is-night-mode .orders-tabs button,
html.is-night-mode .orders-empty-state,
body.is-night-mode .merchant-support-card,
body.is-night-mode .orders-search,
body.is-night-mode .orders-tabs,
body.is-night-mode .orders-tabs button,
body.is-night-mode .orders-empty-state {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .orders-tabs button.is-active,
body.is-night-mode .orders-tabs button.is-active {
  color: #9bb2ff !important;
  background: rgba(132, 157, 255, 0.14) !important;
}

html.is-night-mode .order-metric-card b,
body.is-night-mode .order-metric-card b {
  color: #c9d3ff !important;
  background: rgba(132, 157, 255, 0.12) !important;
}

/* Dashboard completa: vista Pagamenti */
.merchant-payments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.merchant-payments-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-payments-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.merchant-withdraw-btn {
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.18);
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.merchant-withdraw-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.merchant-payments-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.payment-metric-card {
  min-height: 112px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
}

.payment-metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
  font-size: 22px;
  font-weight: 950;
}

.payment-metric-icon.is-green {
  color: #10af72;
  background: #dcfaed;
}

.payment-metric-icon.is-yellow {
  color: #f2a700;
  background: #fff3d8;
}

.payment-metric-icon img,
.payment-metric-icon svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  fill: currentColor;
}

.payment-metric-card small,
.payment-metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.payment-metric-card strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.payments-history-card {
  min-height: 454px;
  padding: 18px 18px 20px;
  margin-bottom: 20px;
}

.payments-history-card > h2,
.payment-methods-card > h2,
.next-payout-card > h2,
.latest-movements-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.payments-history-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto 46px;
  align-items: center;
  gap: 18px;
  margin: 16px 0 14px;
}

.payments-search {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
}

.payments-search svg {
  width: 16px;
  height: 16px;
  fill: #53628d;
}

.payments-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
}

.payments-search input::placeholder {
  color: #7d89aa;
}

.payments-period-tabs {
  height: 42px;
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.payments-period-tabs button {
  min-width: 118px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--merchant-line);
  color: #11183b;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.payments-period-tabs button:last-child {
  border-right: 0;
}

.payments-period-tabs button.is-active {
  color: var(--merchant-blue);
  background: #f2f5ff;
}

.payments-calendar-btn {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: #243463;
  background: #ffffff;
  cursor: pointer;
}

.payments-calendar-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.payments-table-shell {
  min-height: 330px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  overflow: hidden;
}

.payments-table-head {
  min-height: 44px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.25fr 0.9fr 1.45fr 1.25fr 0.85fr 0.85fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--merchant-line);
  background: #fbfcff;
  color: var(--merchant-text);
  font-size: 11px;
  font-weight: 950;
}

.payments-empty-state {
  min-height: 285px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.payments-empty-icon {
  position: relative;
  width: 118px;
  height: 84px;
  margin-bottom: 2px;
}

.payments-empty-icon::before {
  content: "";
  position: absolute;
  left: 21px;
  bottom: 6px;
  width: 76px;
  height: 18px;
  border-radius: 50%;
  background: rgba(35, 70, 255, 0.07);
}

.payments-empty-icon span {
  position: absolute;
  left: 32px;
  top: 8px;
  width: 56px;
  height: 66px;
  border-radius: 11px;
  background: linear-gradient(180deg, #dce5ff, #f4f7ff);
  border: 1px solid #cfdcff;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.42);
}

.payments-empty-icon span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #93a8ff;
  box-shadow: 0 13px 0 #c4d0ff;
}

.payments-empty-icon span::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8aa1ff, #cfdcff);
}

.payments-empty-state h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.payments-empty-state p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.payments-empty-state a {
  min-height: 42px;
  min-width: 224px;
  margin-top: 4px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 16px 30px rgba(6, 70, 255, 0.17);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.payments-empty-state a span {
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.merchant-payments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 18px;
  margin-bottom: 20px;
}

.payment-methods-card {
  min-height: 184px;
  padding: 18px;
}

.payment-provider-row {
  min-height: 58px;
  padding: 0 18px 0 6px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto 132px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--merchant-line);
  border-bottom: 0;
  background: #ffffff;
}

.payment-provider-row:first-of-type {
  margin-top: 14px;
  border-radius: 8px 8px 0 0;
}

.payment-provider-row:nth-of-type(2) {
  border-bottom: 1px solid var(--merchant-line);
  border-radius: 0 0 8px 8px;
}

.payment-provider-row > img {
  width: 58px;
  max-height: 30px;
  object-fit: contain;
}

.payment-provider-row strong {
  display: block;
  color: var(--merchant-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.payment-provider-row p {
  margin: 5px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.payment-provider-row > span {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0a9b67;
  background: #daf8eb;
  font-size: 11px;
  font-weight: 950;
}

.payment-provider-row > span::after {
  content: "✓";
  margin-left: 5px;
  font-size: 11px;
}

.payment-provider-row > span.is-pending {
  color: #795600;
  background: #fff1d1;
}

.payment-provider-row > span.is-not-connected {
  color: #5f6b8c;
  background: #edf2ff;
}

.payment-provider-row > span.is-error {
  color: #a62d2d;
  background: #ffe2e2;
}

.payment-provider-row > span.is-connected {
  color: #0a9b67;
  background: #daf8eb;
}

.payment-provider-row > span:not(.is-connected)::after {
  content: "";
  margin-left: 0;
}

.payment-provider-row button {
  height: 36px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-blue);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.payment-provider-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.payment-methods-notice {
  margin: 12px 0 0;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.payment-methods-notice.is-error {
  color: #a62d2d;
}

.payment-methods-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8294ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 820;
}

.payment-side-stack {
  display: grid;
  gap: 16px;
}

.next-payout-card {
  min-height: 124px;
  padding: 18px 20px;
}

.next-payout-card > div {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
}

.payment-side-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.payment-side-icon.small {
  width: 38px;
  height: 38px;
}

.payment-side-icon svg,
.payment-side-icon img {
  width: 24px;
  height: 24px;
  fill: currentColor;
  object-fit: contain;
}

.payment-side-icon.small svg,
.payment-side-icon.small img {
  width: 18px;
  height: 18px;
}

.next-payout-card strong,
.payments-help-card strong {
  color: var(--merchant-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.next-payout-card p,
.payments-help-card p {
  margin: 6px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 760;
}

.payments-help-card {
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
}

.payments-help-card > a {
  color: var(--merchant-blue);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.latest-movements-card {
  min-height: 134px;
  padding: 18px;
}

.latest-movements-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.latest-movements-card header a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--merchant-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.latest-movements-table {
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  overflow: hidden;
}

.latest-movements-head {
  min-height: 38px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--merchant-line);
  background: #fbfcff;
  color: var(--merchant-text);
  font-size: 11px;
  font-weight: 950;
}

.latest-movements-empty {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px auto;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.latest-movements-empty strong {
  display: block;
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 950;
}

.latest-movements-empty p {
  margin: 4px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.merchant-withdraw-btn,
.payments-period-tabs button,
.payments-calendar-btn,
.payments-empty-state a,
.payment-provider-row button,
.payment-methods-link,
.payments-help-card > a,
.latest-movements-card header a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.merchant-withdraw-btn:hover,
.payments-empty-state a:hover,
.payment-provider-row button:hover {
  transform: translateY(-2px);
}

@media (max-width: 1120px) {
  .merchant-payments-metrics,
  .merchant-payments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payments-history-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payments-period-tabs {
    width: 100%;
  }

  .payments-period-tabs button {
    min-width: 0;
  }

  .payment-side-stack {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.payments-active .merchant-support-card {
    display: none;
  }

  .merchant-payments-head,
  .merchant-payments-metrics,
  .merchant-payments-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .merchant-withdraw-btn {
    width: 100%;
  }

  .payments-period-tabs,
  .payments-table-shell,
  .latest-movements-table {
    overflow-x: auto;
  }

  .payments-table-head {
    min-width: 940px;
  }

  .latest-movements-head {
    min-width: 720px;
  }

  .payment-provider-row {
    grid-template-columns: 64px 1fr;
    padding: 14px;
  }
}

html.is-night-mode .payments-search,
html.is-night-mode .payments-period-tabs,
html.is-night-mode .payments-period-tabs button,
html.is-night-mode .payments-calendar-btn,
html.is-night-mode .payments-table-shell,
html.is-night-mode .payments-table-head,
html.is-night-mode .payment-provider-row,
html.is-night-mode .payment-provider-row button,
html.is-night-mode .latest-movements-table,
html.is-night-mode .latest-movements-head,
body.is-night-mode .payments-search,
body.is-night-mode .payments-period-tabs,
body.is-night-mode .payments-period-tabs button,
body.is-night-mode .payments-calendar-btn,
body.is-night-mode .payments-table-shell,
body.is-night-mode .payments-table-head,
body.is-night-mode .payment-provider-row,
body.is-night-mode .payment-provider-row button,
body.is-night-mode .latest-movements-table,
body.is-night-mode .latest-movements-head {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .payments-period-tabs button.is-active,
body.is-night-mode .payments-period-tabs button.is-active {
  color: #9bb2ff !important;
  background: rgba(132, 157, 255, 0.14) !important;
}

/* Dashboard completa: blocco scroll delle finestre oscuranti */
html:has(body.product-modal-open),
html:has(body.delete-modal-open),
html:has(body.password-modal-open),
html:has(body.customize-modal-open),
html:has(body.store-editor-open),
html:has(body.has-product-link-dialog) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Dashboard completa: dominio personalizzato */
.merchant-domain-head { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.merchant-domain-head h1 { margin: 0; color: var(--merchant-text); font-size: 25px; line-height: 1.15; font-weight: 950; }
.merchant-domain-head p { margin: 9px 0 0; color: var(--merchant-muted); font-size: 13px; font-weight: 760; }
.domain-head-badge { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #bde9d3; border-radius: 999px; color: #087752; background: #effbf6; font-size: 11px; font-weight: 950; }
.domain-hero-card { margin-bottom: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 17px; border: 1px solid #cfdcff; border-radius: 10px; color: #111a42; background: linear-gradient(135deg, #f5f8ff 0%, #eef3ff 100%); }
.domain-hero-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #0b5cff; background: #fff; box-shadow: 0 8px 24px rgba(7,70,190,.12); }
.domain-hero-icon svg { width: 23px; height: 23px; fill: currentColor; }
.domain-hero-card strong { display: block; font-size: 15px; font-weight: 950; }
.domain-hero-card p { margin: 6px 0 0; color: #65749b; font-size: 12px; line-height: 1.55; font-weight: 720; }
.domain-hero-card p b { color: #24345e; font-weight: 900; }
.domain-setup-card { padding: 0; overflow: hidden; }
.domain-setup-card > header { padding: 24px 26px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--merchant-line); }
.domain-step-label { display: block; margin-bottom: 7px; color: var(--merchant-blue); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.domain-setup-card h2,.domain-setup-card h3 { margin: 0; color: var(--merchant-text); font-weight: 950; }
.domain-setup-card h2 { font-size: 19px; }
.domain-setup-card header p,.domain-instructions-head p,.domain-instructions-check p { margin: 7px 0 0; color: var(--merchant-muted); font-size: 11px; line-height: 1.5; font-weight: 720; }
.custom-domain-status { min-height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dbe3f5; border-radius: 999px; color: #687696; background: #f8faff; white-space: nowrap; font-size: 10px; font-weight: 950; }
.custom-domain-status i { width: 7px; height: 7px; border-radius: 50%; background: #97a3bc; }
.custom-domain-status.is-pending { color: #8b6200; border-color: #f2d99b; background: #fff9e8; }
.custom-domain-status.is-pending i { background: #e7a900; box-shadow: 0 0 0 3px rgba(231,169,0,.13); }
.custom-domain-status.is-active { color: #087752; border-color: #bde9d3; background: #effbf6; }
.custom-domain-status.is-active i { background: #11a872; box-shadow: 0 0 0 3px rgba(17,168,114,.13); }
.custom-domain-form { padding: 24px 26px 26px; }
.custom-domain-form[hidden],.custom-domain-instructions[hidden],.custom-domain-connected[hidden] { display: none !important; }
.custom-domain-form > label { display: block; margin-bottom: 8px; color: #253052; font-size: 11px; font-weight: 900; }
.custom-domain-input-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; border: 1px solid #c8d3eb; border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .2s ease,box-shadow .2s ease; }
.custom-domain-input-row:focus-within { border-color: #075cff; box-shadow: 0 0 0 3px rgba(7,92,255,.11); }
.custom-domain-input-icon { height: 46px; display: grid; place-items: center; color: #7180a1; background: #f7f9fe; border-right: 1px solid #e3e9f6; }
.custom-domain-input-icon svg { width: 18px; height: 18px; fill: currentColor; }
.custom-domain-input-row input { min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; color: #111a3d; background: transparent; font: 850 13px/1 inherit; }
.custom-domain-input-row input::placeholder { color: #9aa6bd; }
.custom-domain-input-row > button,.domain-instructions-check > button { height: 36px; margin-right: 5px; padding: 0 17px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(135deg,#075cff,#263bdb); box-shadow: 0 8px 20px rgba(7,92,255,.2); font: 900 11px/1 inherit; cursor: pointer; }
.custom-domain-input-row > button:disabled,.domain-instructions-check > button:disabled,.custom-domain-connected > button:disabled { opacity: .58; cursor: wait; }
.custom-domain-form > small { display: block; margin-top: 9px; color: #7c89a5; font-size: 10px; font-weight: 720; }
.custom-domain-notice { margin: 0 26px 22px; padding: 11px 13px; border: 1px solid #f0d49a; border-radius: 7px; color: #805a00; background: #fff9e8; font-size: 11px; line-height: 1.45; font-weight: 800; }
.custom-domain-notice.is-error { color: #9d3038; border-color: #f1c6ca; background: #fff5f6; }
.custom-domain-notice.is-success { color: #087752; border-color: #bde9d3; background: #effbf6; }
.custom-domain-notice.is-info { color: #2452a3; border-color: #cbdcff; background: #f2f6ff; }
.custom-domain-instructions { margin: 24px 26px 26px; padding: 20px; border: 1px solid #dbe4f6; border-radius: 9px; background: #fbfcff; }
.domain-instructions-head,.domain-instructions-check { display: flex; align-items: flex-start; gap: 13px; }
.domain-step-number { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #075cff; font-size: 11px; font-weight: 950; }
.domain-instructions-head h3 { font-size: 14px; }
.domain-dns-grid { margin: 18px 0; display: grid; grid-template-columns: .55fr .7fr minmax(190px,1.7fr) .75fr; border: 1px solid #dbe3f2; border-radius: 8px; background: #fff; overflow: hidden; }
.domain-dns-grid > div { min-width: 0; padding: 12px 14px; display: grid; gap: 6px; position: relative; border-right: 1px solid #e4e9f4; }
.domain-dns-grid > div:last-child { border-right: 0; }
.domain-dns-grid small { color: #7a87a3; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.domain-dns-grid strong { min-width: 0; color: #111a3d; font-size: 11px; font-weight: 900; overflow-wrap: anywhere; }
.domain-dns-value { padding-right: 43px !important; }
.domain-dns-value button { position: absolute; top: 50%; right: 9px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d6e0f3; border-radius: 5px; color: #526384; background: #f7f9fe; cursor: pointer; transform: translateY(-50%); }
.domain-dns-value svg { width: 14px; height: 14px; fill: currentColor; }
.domain-instructions-check { align-items: center; padding-top: 17px; border-top: 1px solid #e4e9f4; }
.domain-instructions-check > div { min-width: 0; flex: 1; }
.domain-instructions-check strong { color: #1c274a; font-size: 12px; font-weight: 950; }
.domain-instructions-check > button { margin: 0; color: #075cff; border: 1px solid #bfd1ff; background: #edf3ff; box-shadow: none; }
.custom-domain-connected { margin: 24px 26px 26px; padding: 19px 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #bde9d3; border-radius: 9px; background: linear-gradient(135deg,#f4fdf9,#ecfaf4); }
.domain-connected-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: #079464; background: #d8f5e8; }
.domain-connected-icon svg { width: 22px; height: 22px; fill: currentColor; }
.custom-domain-connected > div { min-width: 0; flex: 1; }
.custom-domain-connected small { display: block; margin-bottom: 4px; color: #238467; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.custom-domain-connected a { color: #075cff; text-decoration: none; font-size: 15px; font-weight: 950; }
.custom-domain-connected p { margin: 5px 0 0; color: #648477; font-size: 10px; font-weight: 720; }
.custom-domain-connected > button { height: 34px; padding: 0 13px; border: 1px solid #d7e0ed; border-radius: 6px; color: #6a758d; background: #fff; font: 900 10px/1 inherit; cursor: pointer; }
.domain-benefits-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.domain-benefits-grid article { min-height: 112px; padding: 20px; display: flex; align-items: flex-start; gap: 13px; }
.domain-benefits-grid article > span { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #075cff; background: #edf3ff; }
.domain-benefits-grid svg { width: 18px; height: 18px; fill: currentColor; }
.domain-benefits-grid strong { display: block; color: var(--merchant-text); font-size: 12px; font-weight: 950; }
.domain-benefits-grid p { margin: 6px 0 0; color: var(--merchant-muted); font-size: 10px; line-height: 1.5; font-weight: 720; }
html.is-night-mode .domain-hero-card,body.is-night-mode .domain-hero-card,html.is-night-mode .custom-domain-instructions,body.is-night-mode .custom-domain-instructions,html.is-night-mode .custom-domain-input-row,body.is-night-mode .custom-domain-input-row,html.is-night-mode .domain-dns-grid,body.is-night-mode .domain-dns-grid { color: #f7f9ff; border-color: rgba(132,157,255,.25); background: #0c142b; }
html.is-night-mode .domain-hero-card p,body.is-night-mode .domain-hero-card p,html.is-night-mode .domain-hero-card p b,body.is-night-mode .domain-hero-card p b,html.is-night-mode .domain-dns-grid strong,body.is-night-mode .domain-dns-grid strong,html.is-night-mode .custom-domain-input-row input,body.is-night-mode .custom-domain-input-row input { color: #f7f9ff; }
@media (max-width:820px) { .domain-benefits-grid { grid-template-columns:1fr; } .domain-dns-grid { grid-template-columns:.7fr .8fr 1.5fr; } .domain-dns-grid > div:last-child { display:none; } }
@media (max-width:600px) { .merchant-domain-head,.domain-setup-card > header,.domain-instructions-check,.custom-domain-connected { align-items:stretch; flex-direction:column; } .domain-head-badge,.custom-domain-status { align-self:flex-start; } .custom-domain-input-row { grid-template-columns:42px minmax(0,1fr); } .custom-domain-input-row > button { height:42px; margin:0 5px 5px; grid-column:1/-1; } .domain-dns-grid { grid-template-columns:1fr 1fr; } .domain-dns-grid > div { border-bottom:1px solid #e4e9f4; } .domain-dns-value { grid-column:1/-1; } }

/* Dashboard completa: vista Clienti */
.merchant-customers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.merchant-customers-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-customers-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.customers-export-btn {
  min-width: 152px;
}

.merchant-customers-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.customer-metric-card {
  min-height: 112px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
}

.customer-metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.customer-metric-icon.is-purple {
  color: #4c59ff;
  background: #f0edff;
}

.customer-metric-icon.is-green {
  color: #14b76d;
  background: #dff8eb;
}

.customer-metric-icon.is-blue {
  color: var(--merchant-blue);
  background: #eaf2ff;
}

.customer-metric-icon.is-orange {
  color: #ff7b22;
  background: #fff0df;
}

.customer-metric-icon img,
.customer-metric-icon svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  fill: currentColor;
}

.customer-metric-card small,
.customer-metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.customer-metric-card strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.customers-table-card {
  min-height: 344px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.customers-toolbar {
  padding: 20px 18px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--merchant-line);
}

.customers-search {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.customers-search input {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
}

.customers-search input::placeholder {
  color: #7d89aa;
}

.customers-search svg {
  width: 100%;
  height: 100%;
  padding: 13px;
  border-left: 1px solid var(--merchant-line);
  fill: #53628d;
}

.customers-filter-btn,
.customers-small-range {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customers-filter-btn span,
.customers-small-range span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.customers-range {
  width: 168px;
  height: 42px;
  margin-left: auto;
}

.customers-table-head {
  min-height: 44px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.2fr 1.45fr 0.8fr 1fr 1fr 1fr 0.85fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--merchant-line);
  background: #fbfcff;
  color: var(--merchant-text);
  font-size: 11px;
  font-weight: 950;
}

.customers-empty-state {
  min-height: 222px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.customers-empty-icon {
  position: relative;
  width: 96px;
  height: 70px;
}

.customers-empty-icon::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 6px;
  width: 68px;
  height: 15px;
  border-radius: 50%;
  background: rgba(35, 70, 255, 0.08);
}

.customers-empty-icon span {
  position: absolute;
  left: 30px;
  top: 24px;
  width: 36px;
  height: 27px;
  border-radius: 16px 16px 9px 9px;
  background: linear-gradient(180deg, #8f9fff, #bec8ff);
}

.customers-empty-icon span::before,
.customers-empty-icon span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.customers-empty-icon span::before {
  left: 8px;
  top: -22px;
  width: 20px;
  height: 20px;
}

.customers-empty-icon span::after {
  left: -22px;
  top: 3px;
  width: 24px;
  height: 18px;
  opacity: 0.52;
  box-shadow: 56px 0 0 rgba(143, 159, 255, 0.52), 4px -19px 0 -4px rgba(190, 200, 255, 0.72), 52px -19px 0 -4px rgba(190, 200, 255, 0.72);
}

.customers-empty-state h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.customers-empty-state p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.customers-empty-state a {
  min-height: 42px;
  min-width: 194px;
  margin-top: 8px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 16px 30px rgba(6, 70, 255, 0.17);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.customers-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.customers-chart-card,
.customers-source-card {
  min-height: 254px;
  padding: 20px;
}

.customers-chart-card header,
.customers-source-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.customers-chart-card h2,
.customers-source-card h2,
.customers-community-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.customers-chart-card h2 span,
.customers-source-card h2 span {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b8c5ec;
  border-radius: 50%;
  color: #8a98bc;
  font-size: 9px;
  font-style: normal;
}

.customers-small-range {
  height: 34px;
  padding: 0 14px;
  color: var(--merchant-muted);
  font-size: 12px;
}

.customers-line-chart {
  position: relative;
  min-height: 156px;
  padding: 6px 12px 10px 34px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  color: #9ba8c8;
  font-size: 11px;
  font-weight: 850;
  background:
    linear-gradient(to bottom, transparent 0 24%, rgba(207, 216, 238, 0.72) 24% calc(24% + 1px), transparent calc(24% + 1px) 49%, rgba(207, 216, 238, 0.72) 49% calc(49% + 1px), transparent calc(49% + 1px) 74%, rgba(207, 216, 238, 0.72) 74% calc(74% + 1px), transparent calc(74% + 1px)),
    linear-gradient(to top, rgba(0, 77, 255, 0.88) 0 2px, transparent 2px);
  background-position: 34px 0, 34px calc(100% - 13px);
  background-size: calc(100% - 46px) 100%, calc(100% - 46px) 100%;
  background-repeat: no-repeat;
}

.customers-line-chart span {
  align-self: center;
}

.customers-line-chart i {
  position: absolute;
  left: calc(34px + var(--x));
  bottom: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--merchant-blue);
  border-radius: 50%;
  background: #ffffff;
}

.customers-chart-dates {
  padding-left: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  color: var(--merchant-muted);
  font-size: 11px;
  font-weight: 760;
}

.customers-source-content {
  display: grid;
  grid-template-columns: 206px 1fr;
  align-items: center;
  gap: 30px;
}

.customers-donut {
  width: 136px;
  height: 136px;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(#eef2ff 0 72deg, #f2e8ff 72deg 148deg, #e9f6ff 148deg 220deg, #ffe9ee 220deg 290deg, #eef2ff 290deg 360deg);
  position: relative;
}

.customers-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #ffffff;
}

.customers-donut strong,
.customers-donut span {
  position: relative;
  z-index: 1;
}

.customers-donut strong {
  color: var(--merchant-text);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.customers-donut span {
  margin-top: 5px;
  color: var(--merchant-muted);
  font-size: 12px;
  font-weight: 850;
}

.customers-source-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.customers-source-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--merchant-muted);
  font-size: 12px;
  font-weight: 850;
}

.customers-source-list li > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.customers-source-list b {
  color: var(--merchant-text);
  font-weight: 950;
}

.customers-source-list .is-blue {
  background: #0b6cff;
}

.customers-source-list .is-orange {
  background: #ff8700;
}

.customers-source-list .is-teal {
  background: #297b8e;
}

.customers-source-list .is-red {
  background: #ff3f48;
}

.customers-source-list .is-pink {
  background: #ff4c9d;
}

.customers-community-card {
  min-height: 68px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f7f9ff, #ffffff);
}

.customers-community-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.customers-community-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.customers-community-card p {
  margin: 5px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 760;
}

.customers-community-card a {
  min-height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-blue);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.customers-export-btn,
.customers-filter-btn,
.customers-small-range,
.customers-empty-state a,
.customers-community-card a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.customers-export-btn:hover,
.customers-empty-state a:hover,
.customers-community-card a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .merchant-customers-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customers-toolbar {
    grid-template-columns: minmax(260px, 1fr) repeat(3, auto);
  }

  .customers-range {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .customers-toolbar,
  .customers-insights-grid,
  .customers-community-card {
    grid-template-columns: 1fr;
  }

  .customers-range,
  .customers-filter-btn,
  .customers-community-card a {
    width: 100%;
  }

  .customers-table-card {
    overflow-x: auto;
  }

  .customers-table-head,
  .customers-empty-state {
    min-width: 860px;
  }

  .customers-source-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.customers-active .merchant-support-card {
    display: none;
  }

  .merchant-customers-head,
  .merchant-customers-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customers-export-btn {
    width: 100%;
  }
}

html.is-night-mode .customers-search,
html.is-night-mode .customers-filter-btn,
html.is-night-mode .customers-small-range,
html.is-night-mode .customers-table-head,
html.is-night-mode .customers-community-card,
html.is-night-mode .customers-community-card a,
body.is-night-mode .customers-search,
body.is-night-mode .customers-filter-btn,
body.is-night-mode .customers-small-range,
body.is-night-mode .customers-table-head,
body.is-night-mode .customers-community-card,
body.is-night-mode .customers-community-card a {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .customers-search input,
body.is-night-mode .customers-search input {
  color: #f7f9ff !important;
}

html.is-night-mode .customers-line-chart i,
body.is-night-mode .customers-line-chart i {
  background: #081025 !important;
}

html.is-night-mode .customers-donut::after,
body.is-night-mode .customers-donut::after {
  background: #081025 !important;
}

/* Dashboard completa: vista Analitiche */
.merchant-analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.merchant-analytics-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-analytics-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.analytics-range {
  width: 168px;
  height: 42px;
}

.merchant-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.analytics-metric-card {
  min-height: 112px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
}

.analytics-metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.analytics-metric-icon.is-purple {
  color: #5b58ff;
  background: #f0edff;
}

.analytics-metric-icon.is-blue {
  color: var(--merchant-blue);
  background: #edf4ff;
}

.analytics-metric-icon.is-green {
  color: #15b972;
  background: #dff8eb;
}

.analytics-metric-icon.is-orange {
  color: #ff7c22;
  background: #fff0df;
}

.analytics-metric-icon img,
.analytics-metric-icon svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  fill: currentColor;
}

.analytics-metric-card small,
.analytics-metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.analytics-metric-card strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.analytics-metric-card b {
  align-self: center;
  min-width: 48px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06975f;
  background: #dff8eb;
  font-size: 12px;
  font-weight: 950;
}

.analytics-sales-card {
  min-height: 328px;
  padding: 22px;
  margin-bottom: 20px;
}

.analytics-sales-card > header,
.analytics-products-card > header,
.analytics-traffic-card > header,
.analytics-countries-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-sales-card h2,
.analytics-products-card h2,
.analytics-traffic-card h2,
.analytics-countries-card h2,
.analytics-advice-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.analytics-sales-card h2 span,
.analytics-products-card h2 span,
.analytics-traffic-card h2 span,
.analytics-countries-card h2 span {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b8c5ec;
  border-radius: 50%;
  color: #8a98bc;
  font-size: 9px;
  font-style: normal;
}

.analytics-chart-subtitle {
  margin: 6px 0 0;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 760;
}

.analytics-chart-controls {
  min-height: 38px;
  padding: 4px;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #f5f7fc;
}

.analytics-chart-controls button {
  min-width: 96px;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--merchant-muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.analytics-chart-controls button:hover {
  color: var(--merchant-blue);
}

.analytics-chart-controls button.is-active {
  color: var(--merchant-blue);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(39, 66, 145, 0.12);
}

.analytics-small-range {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-muted);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.analytics-small-range span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.analytics-sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 30px;
  align-items: stretch;
}

.analytics-sales-chart {
  position: relative;
  min-height: 270px;
  padding: 4px 0 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.72), rgba(255, 255, 255, 0));
}

.analytics-sales-chart svg {
  width: 100%;
  height: auto;
  min-height: 270px;
  display: block;
  overflow: visible;
}

.analytics-svg-grid {
  stroke: #dce4f5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.analytics-svg-y-label,
.analytics-svg-x-label {
  fill: #7b88aa;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.analytics-svg-area {
  fill: url(#merchantSalesAreaGradient);
  pointer-events: none;
}

.analytics-svg-line {
  fill: none;
  stroke: #1457ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.analytics-svg-point {
  fill: #ffffff;
  stroke: #1457ff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
  pointer-events: none;
}

.analytics-svg-point.has-sales {
  opacity: 1;
  filter: drop-shadow(0 3px 5px rgba(20, 87, 255, 0.28));
}

.analytics-svg-hit-point {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.analytics-svg-hit-point:focus {
  outline: none;
  stroke: rgba(20, 87, 255, 0.28);
  stroke-width: 7;
}

.analytics-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 164px;
  padding: 11px 13px;
  display: grid;
  gap: 5px;
  border: 1px solid #d4def4;
  border-radius: 8px;
  color: var(--merchant-text);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(19, 39, 93, 0.16);
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
}

.analytics-chart-tooltip[hidden] {
  display: none !important;
}

.analytics-chart-tooltip strong {
  font-size: 11px;
  line-height: 1.25;
}

.analytics-chart-tooltip span {
  color: var(--merchant-blue);
  font-size: 12px;
  font-weight: 950;
}

.analytics-chart-tooltip small {
  color: var(--merchant-muted);
  font-size: 10px;
  font-weight: 800;
}

.analytics-chart-footer {
  min-height: 34px;
  margin-top: 4px;
  padding: 0 14px 0 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analytics-chart-footer .analytics-chart-legend {
  margin: 0;
  justify-content: flex-start;
  font-size: 11px;
}

.analytics-active-days {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 11px;
  font-weight: 800;
}

.customers-line-chart i {
  bottom: calc(7px + var(--y, 0%));
}

.payments-table-rows,
.latest-movements-rows,
.customers-table-rows {
  display: grid;
}

.payment-history-row,
.latest-movement-row,
.customer-data-row {
  min-height: 66px;
  padding: 0 16px;
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--merchant-line);
  color: var(--merchant-text);
  background: #ffffff;
  font-size: 12px;
  font-weight: 760;
  transition: background 0.18s ease;
}

.payment-history-row {
  min-height: 72px;
  grid-template-columns: 0.82fr 1.55fr 1.08fr 0.78fr 1.35fr 1.08fr 0.72fr 0.7fr;
  column-gap: 16px;
}

.latest-movement-row {
  min-height: 62px;
  grid-template-columns: 1fr 1.2fr 1.4fr 1fr 1fr 1fr;
}

.customer-data-row {
  min-height: 66px;
  padding: 0 22px;
  grid-template-columns: 1.2fr 1.45fr 0.8fr 1fr 1fr 1fr 0.85fr;
}

.payment-history-row:hover,
.latest-movement-row:hover,
.customer-data-row:hover {
  background: #f8faff;
}

.payment-history-row:last-child,
.latest-movement-row:last-child,
.customer-data-row:last-child {
  border-bottom: 0;
}

.payment-history-row > *,
.latest-movement-row > *,
.customer-data-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-date-time-cell,
.merchant-customer-identity-cell {
  display: grid;
  align-content: center;
  gap: 5px;
}

.merchant-date-time-cell strong,
.merchant-customer-identity-cell strong {
  min-width: 0;
  overflow: hidden;
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-date-time-cell small,
.merchant-customer-identity-cell small {
  min-width: 0;
  overflow: hidden;
  color: var(--merchant-muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-customer-identity-cell {
  min-width: 0;
  overflow: visible !important;
}

.merchant-customer-identity-cell small {
  overflow: visible;
  font-size: 9.5px;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.payments-table-head {
  grid-template-columns: 0.82fr 1.55fr 1.08fr 0.78fr 1.35fr 1.08fr 0.72fr 0.7fr;
  column-gap: 16px;
}

.payments-table-rows[hidden],
.latest-movements-rows[hidden],
.customers-table-rows[hidden],
.payments-empty-state[hidden],
.latest-movements-empty[hidden],
.customers-empty-state[hidden],
.analytics-top-products[hidden],
.analytics-empty-product[hidden] {
  display: none !important;
}

.merchant-payment-status,
.customer-status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.merchant-payment-status.is-paid,
.customer-status.is-returning {
  color: #078254;
  background: #dff8eb;
}

.customer-status.is-new {
  color: #174ee8;
  background: #e8efff;
}

.analytics-metric-card b.is-negative {
  color: #bd2943;
  background: #ffe7ec;
}

.analytics-top-products {
  display: grid;
  gap: 8px;
}

.analytics-top-product {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--merchant-line);
  color: var(--merchant-text);
  font-size: 11px;
}

.analytics-top-product:last-child {
  border-bottom: 0;
}

.analytics-top-product strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.analytics-top-product > span:not(.analytics-top-rank) {
  color: var(--merchant-muted);
  font-weight: 800;
}

.analytics-top-product b {
  color: var(--merchant-blue);
  font-weight: 950;
}

.analytics-top-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eaf0ff;
  font-weight: 950;
}

@media (max-width: 900px) {
  .payments-table-shell,
  .latest-movements-table,
  .customers-table-card {
    overflow-x: auto;
  }

  .payments-table-head,
  .payment-history-row {
    min-width: 940px;
  }

  .latest-movements-head,
  .latest-movement-row {
    min-width: 720px;
  }

  .customers-table-head,
  .customer-data-row {
    min-width: 850px;
  }
}

.analytics-sales-dates {
  padding-left: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  color: var(--merchant-muted);
  font-size: 11px;
  font-weight: 760;
}

.analytics-chart-legend {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--merchant-muted);
  font-size: 12px;
  font-weight: 850;
}

.analytics-chart-legend span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--merchant-blue);
}

.analytics-summary-card {
  align-self: stretch;
  padding: 20px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-summary-card h3 {
  margin: 0 0 18px;
  color: var(--merchant-text);
  font-size: 13px;
  font-weight: 950;
}

.analytics-summary-card dl {
  margin: 0;
  display: grid;
  gap: 19px;
}

.analytics-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.analytics-summary-card dt,
.analytics-summary-card dd {
  margin: 0;
  color: var(--merchant-text);
  font-size: 12px;
  font-weight: 900;
}

.analytics-summary-card dd {
  font-weight: 950;
}

.analytics-bottom-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.06fr 1.03fr;
  gap: 20px;
  margin-bottom: 20px;
}

.analytics-products-card,
.analytics-traffic-card,
.analytics-countries-card {
  min-height: 246px;
  padding: 20px;
}

.analytics-products-card header a {
  color: var(--merchant-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.analytics-empty-product,
.analytics-country-empty {
  min-height: 172px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
}

.analytics-box-illustration {
  position: relative;
  width: 96px;
  height: 70px;
}

.analytics-box-illustration::before {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 7px;
  width: 64px;
  height: 15px;
  border-radius: 50%;
  background: rgba(35, 70, 255, 0.08);
}

.analytics-box-illustration span {
  position: absolute;
  left: 28px;
  bottom: 14px;
  width: 42px;
  height: 32px;
  background: linear-gradient(145deg, #aab8ff, #dee6ff);
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 82% 100%, 18% 100%);
}

.analytics-box-illustration i {
  position: absolute;
  right: 9px;
  top: 4px;
  width: 34px;
  height: 20px;
  transform: rotate(-28deg);
  background: linear-gradient(135deg, #879cff, #dce4ff);
  clip-path: polygon(0 42%, 100% 0, 75% 100%);
}

.analytics-empty-product h3,
.analytics-country-empty h3 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 14px;
  font-weight: 950;
}

.analytics-empty-product p,
.analytics-country-empty p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.analytics-traffic-content {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 30px;
}

.analytics-traffic-donut {
  width: 132px;
  height: 132px;
  margin: 8px auto 0;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(#eef2ff 0 72deg, #f2e8ff 72deg 148deg, #e9f6ff 148deg 220deg, #ffe9ee 220deg 290deg, #eef2ff 290deg 360deg);
  position: relative;
}

.analytics-traffic-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #ffffff;
}

.analytics-traffic-donut strong,
.analytics-traffic-donut span {
  position: relative;
  z-index: 1;
}

.analytics-traffic-donut strong {
  color: var(--merchant-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.analytics-traffic-donut span {
  margin-top: 5px;
  color: var(--merchant-muted);
  font-size: 12px;
  font-weight: 850;
}

.analytics-source-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.analytics-source-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--merchant-muted);
  font-size: 12px;
  font-weight: 850;
}

.analytics-source-list li > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.analytics-source-list b {
  color: var(--merchant-text);
  font-weight: 950;
}

.analytics-source-list .is-blue {
  background: #0b6cff;
}

.analytics-source-list .is-orange {
  background: #ff8700;
}

.analytics-source-list .is-teal {
  background: #297b8e;
}

.analytics-source-list .is-red {
  background: #ff3f48;
}

.analytics-source-list .is-pink {
  background: #ff4c9d;
}

.analytics-globe {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffffff 0 10%, transparent 11%), linear-gradient(135deg, #b5c0ff, #edf2ff);
  box-shadow: inset 0 0 0 15px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.analytics-globe span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.82) 0 11%, transparent 12%),
    radial-gradient(circle at 61% 58%, rgba(255, 255, 255, 0.82) 0 16%, transparent 17%),
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.58) 48% 51%, transparent 52%),
    linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, 0.58) 48% 51%, transparent 52%);
}

.analytics-advice-card {
  min-height: 70px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f7f9ff, #ffffff);
}

.analytics-advice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.analytics-advice-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.analytics-advice-card p {
  margin: 5px 0 0;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 760;
}

.analytics-advice-card a {
  min-height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-blue);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.analytics-range,
.analytics-small-range,
.analytics-products-card header a,
.analytics-advice-card a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.analytics-advice-card a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1380px) {
  .merchant-analytics-metrics,
  .analytics-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-countries-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1120px) {
  .analytics-sales-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .merchant-analytics-head,
  .merchant-analytics-metrics,
  .analytics-bottom-grid,
  .analytics-advice-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analytics-range,
  .analytics-advice-card a {
    width: 100%;
  }

  .analytics-sales-card {
    overflow-x: auto;
  }

  .analytics-sales-layout {
    min-width: 860px;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.analytics-active .merchant-support-card {
    display: none;
  }

  .analytics-traffic-content {
    grid-template-columns: 1fr;
  }
}

html.is-night-mode .analytics-small-range,
html.is-night-mode .analytics-summary-card,
html.is-night-mode .analytics-advice-card,
html.is-night-mode .analytics-advice-card a,
body.is-night-mode .analytics-small-range,
body.is-night-mode .analytics-summary-card,
body.is-night-mode .analytics-advice-card,
body.is-night-mode .analytics-advice-card a {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .analytics-sales-chart i,
body.is-night-mode .analytics-sales-chart i {
  background: #081025 !important;
}

html.is-night-mode .analytics-traffic-donut::after,
body.is-night-mode .analytics-traffic-donut::after {
  background: #081025 !important;
}

/* Dashboard completa: vista Prodotti */
.merchant-products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.merchant-products-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-products-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.products-add-btn {
  min-height: 44px;
  min-width: 174px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 18px 34px rgba(6, 70, 255, 0.18);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.products-add-btn span {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.merchant-products-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.product-metric-card {
  min-height: 112px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
}

.product-metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
  font-size: 22px;
  font-weight: 950;
}

.product-metric-icon.is-blue {
  color: var(--merchant-blue);
  background: #e9f2ff;
}

.product-metric-icon.is-green {
  color: #16be72;
  background: #e3f8ed;
}

.product-metric-icon.is-orange {
  color: #f7a018;
  background: #fff0d7;
}

.product-metric-icon.is-purple {
  color: #5a58ff;
  background: #f0edff;
}

.product-metric-icon img,
.product-metric-icon svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  fill: currentColor;
}

.product-metric-icon i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.product-metric-card small,
.product-metric-card em {
  display: block;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  font-style: normal;
}

.product-metric-card strong {
  display: block;
  margin: 8px 0 9px;
  color: var(--merchant-text);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.products-table-card {
  min-height: 466px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.products-table-card.has-products {
  min-height: 0;
}

.products-toolbar {
  padding: 20px 20px;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--merchant-line);
}

.products-search {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
}

.products-search svg {
  width: 16px;
  height: 16px;
  fill: #63739f;
}

.products-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
}

.products-search input::placeholder {
  color: #7d89aa;
}

.products-filter-btn {
  height: 42px;
  min-width: 138px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.products-filter-btn span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.products-filter-select {
  position: relative;
  min-width: 158px;
  height: 42px;
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.products-filter-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(-35%);
  pointer-events: none;
}

.products-filter-select select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 16px;
  appearance: none;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  outline: 0;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.products-filter-select select:focus-visible {
  border-color: rgba(5, 70, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(5, 70, 255, 0.11);
}

.products-view-toggle {
  height: 42px;
  display: inline-grid;
  grid-template-columns: 44px 44px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.products-view-toggle button {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--merchant-line);
  color: #25356d;
  background: #ffffff;
  cursor: pointer;
}

.products-view-toggle button:last-child {
  border-right: 0;
}

.products-view-toggle button.is-active {
  color: var(--merchant-blue);
  background: #f2f5ff;
}

.products-view-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.products-table-head {
  min-height: 48px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 0.75fr 0.75fr 0.75fr 0.75fr 0.65fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--merchant-line);
  background: #fbfcff;
  color: var(--merchant-text);
  font-size: 11px;
  font-weight: 950;
}

.products-empty-state {
  min-height: 338px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.products-empty-illustration {
  position: relative;
  width: 112px;
  height: 88px;
  margin-bottom: 2px;
}

.products-empty-illustration::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 76px;
  height: 18px;
  border-radius: 50%;
  background: rgba(35, 70, 255, 0.08);
}

.products-empty-illustration span {
  position: absolute;
  left: 30px;
  bottom: 18px;
  width: 52px;
  height: 42px;
  background: linear-gradient(145deg, #91a5ff, #e4eaff);
  clip-path: polygon(0 20%, 50% 0, 100% 20%, 82% 100%, 18% 100%);
}

.products-empty-illustration span::before,
.products-empty-illustration span::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 48%;
  height: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.products-empty-illustration span::before {
  left: 0;
  transform: skewY(-26deg);
}

.products-empty-illustration span::after {
  right: 0;
  transform: skewY(26deg);
}

.products-empty-illustration i {
  position: absolute;
  right: 16px;
  top: 6px;
  width: 36px;
  height: 23px;
  transform: rotate(-28deg);
  background: linear-gradient(135deg, #869cff, #dce4ff);
  clip-path: polygon(0 44%, 100% 0, 75% 100%);
}

.products-empty-state h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.products-empty-state p {
  margin: 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}

.products-empty-state a {
  min-height: 44px;
  min-width: 264px;
  margin-top: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 16px 30px rgba(6, 70, 255, 0.17);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.products-empty-state a span {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.products-table-rows {
  display: grid;
}

.products-table-rows[hidden],
.products-empty-state[hidden],
.products-filter-empty[hidden] {
  display: none !important;
}

.products-filter-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--merchant-muted);
  text-align: center;
}

.products-filter-empty strong {
  color: var(--merchant-text);
  font-size: 14px;
  font-weight: 950;
}

.products-filter-empty span {
  font-size: 12px;
  font-weight: 760;
}

.products-table-head,
.products-table-row {
  grid-template-columns:
    minmax(280px, 1.4fr)
    repeat(4, minmax(100px, 0.6fr))
    minmax(240px, 0.9fr);
  justify-items: center;
}

.products-table-head > span:not(:first-child) {
  text-align: center;
}

.products-table-head > span:first-child,
.products-table-row > .products-row-identity {
  width: 100%;
  justify-self: stretch;
}

.products-table-row > .products-row-value,
.products-table-row > .products-row-state,
.products-table-row > .products-row-actions {
  justify-self: center;
}

.products-table-row {
  min-height: 82px;
  padding: 12px 30px;
  display: grid;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--merchant-line);
  background: #ffffff;
  transition: background-color 180ms ease, transform 180ms ease;
}

.products-table-row:hover {
  position: relative;
  z-index: 1;
  background: #fbfcff;
}

.products-row-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.products-row-cover {
  width: 82px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce4fa;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(145deg, #07133d, #1538a9);
  box-shadow: 0 8px 18px rgba(12, 29, 85, 0.12);
}

.products-row-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.products-row-cover span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.products-row-copy {
  min-width: 0;
}

.products-row-copy strong,
.products-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-row-copy strong {
  color: var(--merchant-blue);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.products-row-copy small {
  margin-top: 6px;
  color: var(--merchant-muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 760;
}

.products-row-value {
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.products-row-state {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.products-row-status,
.products-row-visibility {
  justify-self: center;
  width: max-content;
  min-height: 25px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.products-row-status::before,
.products-row-visibility::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.products-row-status.is-active {
  color: #0a9f5c;
  background: #e5f8ee;
}

.products-row-status.is-draft {
  color: #8a6410;
  background: #fff3d5;
}

.products-row-visibility.is-store-visible {
  color: #1357c5;
  background: #e9f1ff;
}

.products-row-visibility.is-unlisted {
  color: #7a4b12;
  background: #fff0d9;
}

.products-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.products-row-actions button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--merchant-line);
  border-radius: 5px;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.products-row-actions button:hover {
  border-color: rgba(5, 70, 255, 0.35);
  color: var(--merchant-blue);
  background: #f4f7ff;
}

.products-row-actions button.is-icon {
  width: 35px;
  padding: 0;
}

html.is-night-mode .products-table-row,
body.is-night-mode .products-table-row,
html.is-night-mode .products-row-actions button,
body.is-night-mode .products-row-actions button {
  color: #f7f9ff;
  background: #081025;
}

html.is-night-mode .products-table-row:hover,
body.is-night-mode .products-table-row:hover,
html.is-night-mode .products-row-actions button:hover,
body.is-night-mode .products-row-actions button:hover {
  background: #0d1732;
}

@media (max-width: 1180px) {
  .products-table-card {
    overflow-x: auto;
  }

  .products-table-head,
  .products-table-row {
    min-width: 1140px;
  }
}

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

.product-guidance-card {
  min-height: 126px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 20px;
}

.product-guidance-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.product-guidance-icon img,
.product-guidance-icon svg {
  width: 25px;
  height: 25px;
  object-fit: contain;
  fill: currentColor;
}

.product-guidance-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.product-guidance-card p {
  margin: 8px 0 14px;
  color: var(--merchant-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.product-guidance-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--merchant-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.products-add-btn,
.products-filter-btn,
.products-filter-select select,
.products-view-toggle button,
.products-empty-state a,
.product-guidance-card a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.products-add-btn:hover,
.products-empty-state a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .merchant-products-metrics,
  .products-guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-toolbar {
    grid-template-columns: minmax(260px, 1fr) repeat(2, auto);
  }

  .products-filter-btn:last-of-type,
  .products-view-toggle {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .merchant-products-head,
  .merchant-products-metrics,
  .products-toolbar,
  .products-guidance-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .products-add-btn,
  .products-filter-btn,
  .products-filter-select,
  .products-view-toggle {
    width: 100%;
  }

  .products-view-toggle {
    grid-template-columns: 1fr 1fr;
  }

  .products-table-card {
    overflow-x: auto;
  }

  .products-table-head,
  .products-empty-state {
    min-width: 860px;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.products-active .merchant-support-card {
    display: none;
  }
}

html.is-night-mode .products-search,
html.is-night-mode .products-filter-btn,
html.is-night-mode .products-filter-select select,
html.is-night-mode .products-view-toggle,
html.is-night-mode .products-view-toggle button,
html.is-night-mode .products-table-head,
body.is-night-mode .products-search,
body.is-night-mode .products-filter-btn,
body.is-night-mode .products-filter-select select,
body.is-night-mode .products-view-toggle,
body.is-night-mode .products-view-toggle button,
body.is-night-mode .products-table-head {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .products-search input,
body.is-night-mode .products-search input {
  color: #f7f9ff !important;
}

html.is-night-mode .products-view-toggle button.is-active,
body.is-night-mode .products-view-toggle button.is-active {
  color: #9bb2ff !important;
  background: rgba(132, 157, 255, 0.14) !important;
}

/* Dashboard completa: vista Impostazioni */
.merchant-settings-head {
  margin-bottom: 24px;
}

.merchant-settings-head h1 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.merchant-settings-head p {
  margin: 9px 0 0;
  color: var(--merchant-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.settings-tabs {
  min-height: 56px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.settings-tab {
  min-width: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid rgba(208, 219, 245, 0.62);
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.settings-tab:last-child {
  border-right: 0;
}

.settings-tab.is-active {
  color: var(--merchant-blue);
  background: linear-gradient(135deg, #f4f7ff, #ffffff);
}

.settings-tab:hover {
  transform: translateY(-1px);
  color: var(--merchant-blue);
  background: #f7f9ff;
}

.settings-tab-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: currentColor;
  flex: 0 0 auto;
}

.settings-tab-icon img,
.settings-tab-icon svg {
  width: 17px;
  height: 17px;
  object-fit: contain;
  fill: currentColor;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.88fr);
  gap: 14px;
  margin-bottom: 14px;
}

.settings-info-card,
.settings-cover-card,
.settings-appearance-card,
.settings-store-edit-card,
.settings-select-card,
.settings-action-card,
.settings-security-card,
.settings-session-card {
  padding: 18px;
}

.settings-info-card,
.settings-cover-card {
  min-height: 306px;
}

.settings-card-head h2,
.settings-select-card h2,
.settings-action-card h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.settings-card-head p,
.settings-select-card p,
.settings-action-card p {
  margin: 7px 0 0;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.settings-info-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  align-items: start;
}

.settings-store-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  box-shadow: 0 14px 34px rgba(6, 70, 255, 0.08);
}

.settings-store-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.settings-fields {
  display: grid;
  gap: 12px;
}

.settings-field {
  display: grid;
  gap: 7px;
}

.settings-field span {
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.settings-field input,
.settings-field select,
.settings-textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--merchant-line);
  border-radius: 6px;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  outline: 0;
}

.settings-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--merchant-muted) 50%) right 14px center / 6px 6px no-repeat,
    linear-gradient(135deg, #ffffff, #fbfcff);
  cursor: pointer;
}

.settings-copy-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--merchant-line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.settings-copy-field.settings-slug-field {
  grid-template-columns: minmax(220px, auto) minmax(120px, 1fr) 38px;
  gap: 6px;
  padding-right: 6px;
}

.settings-url-base {
  min-height: 38px;
  padding: 0 0 0 12px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: var(--merchant-text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.settings-copy-field input {
  border: 0;
  border-radius: 0;
}

.settings-copy-field #settingsStoreSlug {
  min-width: 0;
  padding-left: 0;
  color: var(--merchant-blue);
  font-weight: 950;
}

.settings-copy-field #settingsStoreSlug:focus {
  box-shadow: none;
}

.settings-copy-field button,
.settings-cover-actions button,
.settings-row button,
.settings-sessions-btn {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--merchant-line);
  border-radius: 6px;
  color: var(--merchant-blue);
  background: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-copy-field button {
  margin-right: 0;
}

.settings-copy-icon-btn {
  width: 34px;
  min-width: 34px;
  padding: 0 !important;
  display: grid;
  place-items: center;
}

.settings-copy-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.settings-copy-icon-btn.is-copied {
  color: #ffffff;
  border-color: var(--merchant-blue);
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
}

.settings-copy-icon-btn.has-error {
  color: #ff1f32;
  border-color: rgba(255, 31, 50, 0.42);
  background: #fff1f3;
}

.settings-textarea {
  min-height: 52px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.settings-textarea p {
  margin: 0;
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.settings-textarea small {
  color: var(--merchant-muted);
  font-size: 10px;
  font-weight: 850;
}

.settings-description-field {
  position: relative;
  min-height: 68px;
  padding: 0;
  display: block;
  cursor: text;
}

.settings-description-field textarea {
  width: 100%;
  min-height: 68px;
  padding: 12px 58px 12px 12px;
  border: 0;
  border-radius: 6px;
  resize: none;
  color: var(--merchant-text);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
  outline: 0;
  display: block;
  cursor: text;
  pointer-events: auto;
  user-select: text;
  caret-color: var(--merchant-blue);
}

.settings-description-field small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  pointer-events: none;
}

.settings-save-btn {
  min-height: 34px;
  margin-top: 12px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.16);
  font-family: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-store-edit-card {
  grid-column: 1 / -1;
  min-height: 112px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.settings-store-edit-copy h2 {
  margin: 0;
  color: var(--merchant-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.settings-store-edit-copy p {
  margin: 7px 0 0;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.settings-store-edit-button {
  width: 128px;
  min-width: 128px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--merchant-blue), var(--merchant-night));
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.16);
  font-family: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-store-edit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(6, 70, 255, 0.22);
}

.settings-store-edit-button:active {
  transform: translateY(0);
}

.settings-appearance-card {
  grid-column: 1 / -1;
}

.settings-appearance-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 18px;
  align-items: stretch;
}

.settings-appearance-controls {
  display: grid;
  gap: 16px;
}

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

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

.settings-theme-picker {
  display: grid;
  gap: 10px;
}

.settings-theme-picker > span {
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.settings-theme-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.settings-theme-option {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--merchant-line);
  border-radius: 8px;
  color: var(--merchant-text);
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-theme-option span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  box-shadow: 0 8px 16px rgba(6, 70, 255, 0.16);
}

.settings-theme-option:has(input:checked) {
  border-color: rgba(6, 70, 255, 0.45);
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.1);
  transform: translateY(-1px);
}

.settings-store-preview {
  min-height: 236px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(207, 220, 255, 0.9);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.settings-preview-header {
  height: 36px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(220, 229, 251, 0.9);
}

.settings-preview-header span {
  color: var(--merchant-text);
  font-size: 12px;
  font-weight: 950;
}

.settings-preview-header small {
  overflow: hidden;
  color: var(--merchant-text);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.settings-preview-header strong {
  min-height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #0646ff, #05006b);
  font-size: 9px;
  font-weight: 950;
}

.settings-preview-hero {
  margin-top: 12px;
  min-height: 128px;
  padding: 18px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 10px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #070b1c, #111939);
}

.settings-preview-hero > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  font-size: 32px;
  font-weight: 950;
}

.settings-preview-hero h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.settings-preview-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.settings-preview-hero small {
  margin-top: 7px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.settings-preview-products {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-preview-products span {
  height: 42px;
  border: 1px solid rgba(220, 229, 251, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 70, 255, 0.16) 0 38%, transparent 38%),
    #ffffff;
}

.settings-store-preview[data-theme="violet"] .settings-preview-header strong {
  background: linear-gradient(135deg, #6d5dfc, #24135f);
}

.settings-store-preview[data-theme="violet"] .settings-preview-hero {
  background: radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.16), transparent 34%), linear-gradient(135deg, #130f2f, #32217f);
}

.settings-store-preview[data-theme="emerald"] .settings-preview-header strong {
  background: linear-gradient(135deg, #0f9f72, #063d35);
}

.settings-store-preview[data-theme="emerald"] .settings-preview-hero {
  background: radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.16), transparent 34%), linear-gradient(135deg, #041c1a, #0f4f42);
}

.settings-store-preview[data-theme="sunset"] .settings-preview-header strong {
  background: linear-gradient(135deg, #f06b2f, #4b1609);
}

.settings-store-preview[data-theme="sunset"] .settings-preview-hero {
  background: radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.15), transparent 34%), linear-gradient(135deg, #241006, #68260d);
}

.settings-store-preview[data-theme="graphite"] .settings-preview-header strong {
  background: linear-gradient(135deg, #111827, #020617);
}

.settings-store-preview[data-theme="graphite"] .settings-preview-hero {
  background: radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.12), transparent 34%), linear-gradient(135deg, #020617, #111827);
}

.settings-store-preview[data-font="inter"] {
  font-family: "Inter", "Poppins", Arial, sans-serif;
}

.settings-store-preview[data-font="manrope"] {
  font-family: "Manrope", "Inter", Arial, sans-serif;
}

.settings-store-preview[data-font="poppins"] {
  font-family: "Poppins", "Inter", Arial, sans-serif;
}

.settings-store-preview[data-font="sora"] {
  font-family: "Sora", "Inter", Arial, sans-serif;
}

.settings-store-preview[data-font="nunito"] {
  font-family: "Nunito Sans", "Inter", Arial, sans-serif;
}

.settings-store-preview[data-font="space"] {
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
}

.settings-store-preview[data-header="glass"] .settings-preview-header {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(5, 8, 41, 0.08);
  backdrop-filter: blur(12px);
}

.settings-store-preview[data-header="compact"] .settings-preview-header {
  height: 30px;
  grid-template-columns: auto 0.9fr 0.9fr auto;
  gap: 7px;
}

.settings-store-preview[data-hero="soft"] .settings-preview-hero {
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.18), transparent 36%),
    radial-gradient(circle at 12% 100%, rgba(6, 70, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #071026, #101c4c);
}

.settings-store-preview[data-hero="minimal"] .settings-preview-hero {
  background: linear-gradient(135deg, #070b1c, #0b1229);
}

.settings-store-preview[data-card="minimal"] .settings-preview-products span {
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(6, 70, 255, 0.1) 0 34%, transparent 34%),
    #ffffff;
}

.settings-store-preview[data-card="sharp"] .settings-preview-products span {
  border-radius: 4px;
}

.settings-store-preview[data-card="soft"] .settings-preview-products span {
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(5, 8, 41, 0.07);
}

.settings-cover-preview {
  position: relative;
  height: 102px;
  margin-top: 20px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(7, 34, 135, 0.96), rgba(9, 12, 76, 0.98)),
    var(--merchant-night);
  overflow: visible;
}

.settings-cover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-24deg);
}

.settings-cover-line.left {
  left: 20%;
}

.settings-cover-line.right {
  right: -8%;
}

.settings-logo-badge {
  position: absolute;
  left: 50%;
  bottom: -43px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(5, 21, 62, 0.14);
}

.settings-logo-badge img {
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.settings-edit-badge {
  position: absolute;
  left: calc(50% + 42px);
  bottom: -42px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--merchant-blue);
  box-shadow: 0 10px 20px rgba(6, 70, 255, 0.25);
}

.settings-edit-badge img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.settings-cover-format {
  margin: 74px 0 18px;
  color: var(--merchant-muted);
  font-size: 11px;
  font-weight: 760;
}

.settings-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.settings-cover-actions button:first-child {
  min-width: 174px;
}

.settings-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.settings-select-card {
  min-height: 110px;
}

.settings-select-card button {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--merchant-line);
  border-radius: 6px;
  color: var(--merchant-text);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.settings-select-card button span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #63739f;
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.settings-action-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
}

.settings-action-icon,
.settings-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--merchant-blue);
  background: #eef3ff;
}

.settings-action-icon img,
.settings-action-icon svg,
.settings-row-icon img,
.settings-row-icon svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  fill: currentColor;
}

.settings-action-card a {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--merchant-blue);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.settings-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.settings-security-card,
.settings-session-card {
  min-height: 178px;
}

.settings-row-list {
  margin-top: 16px;
  display: grid;
}

.settings-row {
  min-height: 54px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--merchant-line);
}

.settings-row strong,
.settings-session-row em {
  display: block;
  color: var(--merchant-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 950;
  font-style: normal;
}

.settings-row small {
  display: block;
  margin-top: 3px;
  color: var(--merchant-muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 760;
}

.settings-row-icon.is-green {
  color: #18b96f;
  background: #e7f8ef;
}

.settings-session-row {
  margin-top: 16px;
}

.settings-session-row em {
  min-height: 22px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #13a95f;
  background: #ddf7e9;
  font-size: 10px;
}

.settings-sessions-btn {
  margin-top: 14px;
}

.settings-save-btn:hover,
.settings-copy-field button:hover,
.settings-cover-actions button:hover,
.settings-row button:hover,
.settings-sessions-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(6, 70, 255, 0.1);
  border-color: rgba(6, 70, 255, 0.26);
}

@media (max-width: 1180px) {
  .settings-tabs {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .settings-main-grid,
  .settings-bottom-grid {
    grid-template-columns: 1fr;
  }

  .settings-appearance-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .settings-tabs {
    grid-template-columns: repeat(9, minmax(150px, 1fr));
  }

  .settings-select-grid,
  .settings-action-grid {
    grid-template-columns: 1fr;
  }

  .settings-appearance-grid,
  .settings-appearance-text-grid,
  .settings-theme-options {
    grid-template-columns: 1fr;
  }

  .settings-info-layout,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-store-icon,
  .settings-action-icon,
  .settings-row-icon {
    justify-self: start;
  }

  .settings-row button,
  .settings-sessions-btn {
    width: 100%;
  }

  .settings-store-edit-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .settings-store-edit-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .merchant-dashboard-shell.settings-active .merchant-support-card {
    display: none;
  }

  .settings-copy-field.settings-slug-field {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .settings-url-base {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 9px 12px 0;
  }
}

html.is-night-mode .settings-tabs,
html.is-night-mode .settings-tab,
html.is-night-mode .settings-field input,
html.is-night-mode .settings-field select,
html.is-night-mode .settings-copy-field,
html.is-night-mode .settings-textarea,
html.is-night-mode .settings-theme-option,
html.is-night-mode .settings-store-preview,
html.is-night-mode .settings-preview-header,
html.is-night-mode .settings-preview-products span,
html.is-night-mode .settings-copy-field button,
html.is-night-mode .settings-cover-actions button,
html.is-night-mode .settings-select-card button,
html.is-night-mode .settings-row button,
html.is-night-mode .settings-sessions-btn,
body.is-night-mode .settings-tabs,
body.is-night-mode .settings-tab,
body.is-night-mode .settings-field input,
body.is-night-mode .settings-field select,
body.is-night-mode .settings-copy-field,
body.is-night-mode .settings-textarea,
body.is-night-mode .settings-theme-option,
body.is-night-mode .settings-store-preview,
body.is-night-mode .settings-preview-header,
body.is-night-mode .settings-preview-products span,
body.is-night-mode .settings-copy-field button,
body.is-night-mode .settings-cover-actions button,
body.is-night-mode .settings-select-card button,
body.is-night-mode .settings-row button,
body.is-night-mode .settings-sessions-btn {
  border-color: rgba(132, 157, 255, 0.28) !important;
  background: rgba(8, 13, 31, 0.82) !important;
  color: #f7f9ff !important;
}

html.is-night-mode .settings-description-field textarea,
body.is-night-mode .settings-description-field textarea {
  color: #f7f9ff !important;
}

html.is-night-mode .settings-tab.is-active,
html.is-night-mode .settings-tab:hover,
body.is-night-mode .settings-tab.is-active,
body.is-night-mode .settings-tab:hover {
  color: #9bb2ff !important;
  background: rgba(132, 157, 255, 0.14) !important;
}

html.is-night-mode .settings-store-icon,
html.is-night-mode .settings-action-icon,
html.is-night-mode .settings-row-icon,
body.is-night-mode .settings-store-icon,
body.is-night-mode .settings-action-icon,
body.is-night-mode .settings-row-icon {
  background: rgba(132, 157, 255, 0.14) !important;
}

html.is-night-mode .settings-logo-badge,
body.is-night-mode .settings-logo-badge {
  background: #eef3ff !important;
}

html.is-night-mode .settings-row,
body.is-night-mode .settings-row {
  border-color: rgba(132, 157, 255, 0.22) !important;
}

html.is-night-mode .settings-copy-icon-btn.is-copied,
body.is-night-mode .settings-copy-icon-btn.is-copied {
  color: #ffffff !important;
  border-color: rgba(132, 157, 255, 0.55) !important;
  background: linear-gradient(135deg, #245cff, #05006b) !important;
}

/* Upload nuovo prodotto: contenuto centrato */
.product-reference-dropzone {
  justify-items: center !important;
  align-content: center !important;
  text-align: center !important;
}
