:root {
  --bg-deep: #0a0a0a;
  --bg: #111111;
  --bg-elevated: #171717;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --inverse: #0a0a0a;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% -10%, black 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container.narrow {
  max-width: 720px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo--with-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  letter-spacing: -0.03em;
}

.brand-cat {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-right: -0.15rem;
  transform: scaleX(-1);
  mix-blend-mode: lighten;
}

.logo-wordmark {
  line-height: 1.05;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--inverse) !important;
  box-shadow: 0 1px 2px var(--shadow);
}

.nav-cta:hover {
  background: #e5e5e5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.6rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.25rem;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.gradient-text {
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text);
  color: var(--inverse);
  box-shadow: 0 2px 8px var(--shadow);
}

.btn-primary:hover {
  background: #e5e5e5;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.feature-list .icon {
  flex-shrink: 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.muted a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.small {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards-bot {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cards-two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-logos {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px var(--shadow);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card-featured {
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--text);
  color: var(--inverse);
}

.price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--text);
}

.price-zero {
  color: var(--text-muted);
}

.currency {
  font-size: 0.9em;
  opacity: 0.85;
  margin-right: 0.05em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}

.checklist li {
  padding-left: 1.35rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "✅";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.15em;
}

.checklist li.no::before {
  content: "❌";
}

.checklist.flat li::before {
  content: "✅";
}

.subsection {
  margin-top: 2.5rem;
}

.subsection h3,
.subsection-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:last-child {
  color: var(--text-muted);
}

.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.callout-hosting {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.callout-hosting h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.callout-warn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  margin: 0;
}

.callout-warn p {
  margin: 0;
}

.callout-promo {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.callout-promo h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.callout-promo p {
  margin: 0;
  color: var(--text-muted);
}

.callout-promo strong {
  color: var(--text);
}

.legal-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-code code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bullet-list li {
  margin-bottom: 0.4rem;
}

.cta-section {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-inner .lead {
  max-width: 42ch;
  margin-inline: auto;
}

.cta-inner h2 {
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner .footer-copyright {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.footer-sep {
  margin: 0 0.35rem;
  color: var(--text-subtle);
}

.footer-reg-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-reg-btn:hover {
  color: var(--text-muted);
}

/* Regolamento — finestra secondaria */
.modal[hidden] {
  display: none !important;
}

#auth-modal.modal {
  z-index: 210;
  cursor: default;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  margin-block: auto;
  display: flex;
  flex-direction: column;
  cursor: default;
  background: #0f0f0f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border);
}

.modal-body {
  padding: 1rem 1.25rem 1.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.reg-block {
  margin-bottom: 1.15rem;
}

.reg-block:last-of-type {
  margin-bottom: 0;
}

.reg-block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.reg-block h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.reg-block p {
  margin: 0 0 0.5rem;
}

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

.reg-block ul {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
}

.reg-block li {
  margin-bottom: 0.25rem;
}

.reg-block code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.reg-footer {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

/* Nav — account (hidden deve vincere: mai sovrascrivere display senza [hidden]) */
.nav-auth-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-auth-open[hidden],
.nav-user[hidden] {
  display: none !important;
}

.nav-auth-open {
  font: inherit;
  padding: 0.42rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-auth-open:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
}

.nav-user:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(240px, 46vw);
  padding: 0.25rem 0.3rem 0.25rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-user-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.nav-auth-logout {
  font: inherit;
  flex-shrink: 0;
  padding: 0.38rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--inverse);
  background: var(--text);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-auth-logout:hover {
  background: #e5e5e5;
  color: var(--inverse);
}

/* Auth modal */
.auth-banner {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text);
}

.auth-banner-global {
  position: relative;
  z-index: 1;
}

.auth-banner.is-success,
.auth-message.is-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #bbf7d0;
}

.auth-banner.is-error,
.auth-message.is-error {
  border-color: rgba(252, 165, 165, 0.35);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.auth-banner.is-info,
.auth-message.is-info {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(30, 64, 175, 0.18);
  color: #bfdbfe;
}

.auth-dialog {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  gap: 0.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.auth-panels {
  padding: 0 1.25rem 1.25rem;
}

.auth-intro {
  margin: 1rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.auth-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--border-strong);
}

.auth-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-message {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: #fca5a5;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.auth-modal .modal-title {
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-auth-wrap {
    width: 100%;
    justify-content: flex-start;
    padding: 0.35rem 0;
  }

  .nav-user:not([hidden]) {
    max-width: 100%;
  }

  .nav-user-label {
    max-width: min(9rem, 50vw);
  }
}

/* === Status bar === */
.status-bar-wrap { margin-top: 0.75rem; }
.status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.status-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.status-dot[data-state="warn"] { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.status-dot[data-state="err"] { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.status-label { color: var(--text); font-weight: 600; }
.status-detail { color: var(--text-muted); }

/* === Bottone Admin in nav === */
.nav-admin-open {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.nav-admin-open:hover { background: rgba(255,255,255,0.12); }

/* === Pannello admin === */
.admin-modal .modal-dialog.admin-dialog {
  max-width: 980px;
  width: min(96vw, 980px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.admin-tabs-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding: 1rem 0.5rem;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
}
.admin-tab {
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.admin-tab.is-active { color: var(--text); background: rgba(255,255,255,0.1); font-weight: 600; }
.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.admin-tab-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.admin-feedback { margin: 0; font-size: 0.85rem; }
.admin-feedback.is-error { color: #ef4444; }
.admin-feedback.is-success { color: #22c55e; }
.admin-feedback.is-info { color: var(--text-muted); }

.admin-field {
  display: block;
  margin-bottom: 0.85rem;
}
.admin-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.3rem;
}
.admin-field input[type="text"],
.admin-field textarea,
.admin-field select,
.admin-row input[type="text"],
.admin-row textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.admin-field textarea { resize: vertical; min-height: 80px; }
.admin-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.admin-row > input[type="text"] { flex: 1; }
.admin-inline { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.admin-sublist {
  margin: 0.85rem 0;
  padding: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.admin-sublist h4, .admin-sublist h5 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.admin-card-wrap {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.admin-card-wrap h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}
.admin-btn-add {
  font: inherit;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.admin-btn-add:hover { background: rgba(255,255,255,0.14); }
.admin-btn-remove {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.admin-btn-remove:hover { color: #ef4444; border-color: #ef4444; }
.admin-btn-remove-card {
  margin-top: 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  color: #ef4444;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.admin-btn-remove-card:hover { background: rgba(239,68,68,0.1); }

@media (max-width: 720px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
  }
  .admin-tab { white-space: nowrap; }
}

/* === Bottone ticket in nav === */
.nav-report-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav-report-btn:hover { background: rgba(255,255,255,0.16); }

/* === Modale ticket === */
.report-modal .modal-dialog.report-dialog {
  max-width: 620px;
  width: min(94vw, 620px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.report-body { overflow-y: auto; padding: 1rem 1.5rem 1.5rem; }
.report-login-needed { padding: 1rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); margin-bottom: 1rem; color: var(--text-muted); }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--text); text-decoration: underline; cursor: pointer; font: inherit;
}
.auth-hint { display: block; margin-top: 0.25rem; font-size: 0.72rem; color: var(--text-subtle); text-align: right; }
.auth-message-error { color: #ef4444; }
.auth-message-success { color: #22c55e; }
.report-list-section { margin-top: 1.5rem; }
.report-list-section h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.report-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.report-empty { color: var(--text-muted); font-size: 0.88rem; padding: 0.6rem 0; }
.report-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.report-item-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.4rem; }
.report-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--text);
}
.report-pill-pending { background: rgba(245,158,11,0.18); color: #fbbf24; }
.report-pill-approved { background: rgba(34,197,94,0.18); color: #4ade80; }
.report-pill-declined { background: rgba(239,68,68,0.18); color: #f87171; }
.report-pill-replied { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.report-pill-in_chat { background: rgba(56,189,248,0.18); color: #7dd3fc; }
.report-pill-closed { background: rgba(115,115,115,0.2); color: var(--text-muted); }

.report-date { font-size: 0.78rem; color: var(--text-subtle); }
.report-msg { white-space: pre-wrap; margin: 0.25rem 0; font-size: 0.9rem; color: var(--text-muted); }
.report-reply { margin: 0.5rem 0 0; padding: 0.55rem 0.7rem; background: rgba(99,102,241,0.08); border-left: 3px solid #6366f1; border-radius: var(--radius-sm); font-size: 0.88rem; }
.report-chat-btn { margin-top: 0.6rem; }

/* === Tab Ticket nell'admin === */
.admin-tickets-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-ticket {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
.admin-ticket-pending { border-left-color: #f59e0b; }
.admin-ticket-approved { border-left-color: #22c55e; }
.admin-ticket-declined { border-left-color: #ef4444; }
.admin-ticket-replied { border-left-color: #6366f1; }
.admin-ticket-in_chat { border-left-color: #38bdf8; }
.admin-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.admin-ticket-meta { font-size: 0.78rem; color: var(--text-subtle); }
.admin-ticket-msg { white-space: pre-wrap; margin: 0.4rem 0 0.6rem; font-size: 0.92rem; }
.admin-ticket-reply { margin: 0 0 0.6rem; padding: 0.5rem 0.7rem; background: rgba(99,102,241,0.08); border-left: 3px solid #6366f1; border-radius: var(--radius-sm); font-size: 0.85rem; }
.admin-ticket-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-ticket-actions .btn { font-size: 0.82rem; padding: 0.4rem 0.85rem; }
.admin-btn-danger { color: #f87171; border-color: rgba(239,68,68,0.5); }
.admin-btn-danger:hover { background: rgba(239,68,68,0.1); }

/* === Widget chat === */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 2rem);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transition: width 0.18s ease, height 0.18s ease, right 0.18s ease, bottom 0.18s ease;
}
.chat-widget[data-state="minimized"] {
  height: 44px;
}
.chat-widget[data-state="minimized"] .chat-body { display: none; }
.chat-widget[data-state="fullscreen"] {
  width: calc(100vw - 2rem);
  height: calc(100vh - 2rem);
  right: 1rem;
  bottom: 1rem;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.chat-title { font-weight: 600; font-size: 0.92rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-status-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}
.chat-status-pill[data-status="paused"] { background: rgba(245,158,11,0.18); color: #fbbf24; }
.chat-status-pill[data-status="suspended"] { background: rgba(239,68,68,0.18); color: #f87171; }
.chat-status-pill[data-status="closed"] { background: rgba(115,115,115,0.2); color: var(--text-muted); }
.chat-header-actions { display: inline-flex; gap: 0.25rem; }
.chat-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.chat-btn:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.05); }
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
}
.chat-control { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; color: var(--text-muted); }
.chat-control select {
  font: inherit; font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.4rem;
}
.chat-control-inline { flex-direction: row; align-items: center; gap: 0.35rem; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(0,0,0,0.18);
}
.chat-msg { display: flex; flex-direction: column; max-width: 80%; }
.chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.is-mine .chat-bubble {
  background: var(--text);
  color: var(--inverse);
  border-color: transparent;
}
.chat-msg-admin .chat-bubble:not(.is-mine) { border-color: rgba(99,102,241,0.4); }
.chat-time { font-size: 0.68rem; color: var(--text-subtle); margin-top: 0.15rem; }
.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
}
.chat-send { padding: 0.5rem 1rem; font-size: 0.85rem; }
.chat-disabled-msg {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.chat-error { color: #f87171; padding: 1rem; text-align: center; font-size: 0.88rem; }

/* === Fix [hidden] sui widget custom: deve sempre vincere su display:flex === */
.chat-widget[hidden],
.chat-admin-controls[hidden],
.chat-disabled-msg[hidden],
.report-list-section[hidden],
.report-login-needed[hidden],
.staff-presence[hidden] { display: none !important; }

/* === Staff online banner nel modale ticket === */
.staff-presence {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  background: rgba(115,115,115,0.18);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.staff-presence[data-online="true"] {
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  border-color: rgba(34,197,94,0.35);
}
.staff-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--text-subtle);
  box-shadow: 0 0 0 3px rgba(115,115,115,0.18);
}
.staff-presence[data-online="true"] .staff-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

/* === Bottone "💬 Chat" nel nav per utente con chat aperta === */
.nav-chat-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(56,189,248,0.18);
  border: 1px solid rgba(56,189,248,0.45);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav-chat-btn:hover { background: rgba(56,189,248,0.28); }
.nav-chat-btn[hidden] { display: none !important; }
.nav-report-btn[hidden] { display: none !important; }

/* === Addizioni Synapse: siti web, recensioni, servizi dinamici e admin live === */
.cards-websites,
.cards-custom-services,
.cards-script-products {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-website,
.card-custom-service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-tagline {
  color: var(--text-muted);
  margin: 0;
}

.card-script-product {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-icon-badge {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 0 0.25rem;
  filter: drop-shadow(0 8px 18px rgba(255,255,255,0.08));
}

.product-icon-badge.product-icon-badge--roblox {
  width: 74px;
  height: 74px;
}

.callout-script-copy p + p {
  margin-top: 0.6rem;
}

.custom-service-price {
  font-family: var(--font-mono);
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  width: fit-content;
  margin: 0;
}

.reviews-section {
  overflow: hidden;
}

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.review-stars-static,
.review-stars {
  letter-spacing: 0.1em;
  color: var(--text);
}

.reviews-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.reviews-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: reviews-scroll-right 28s linear infinite;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

.review-card {
  width: min(320px, 78vw);
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.review-stars,
.review-name,
.review-text {
  margin: 0;
}

.review-text {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.review-name {
  color: var(--text);
  font-weight: 600;
  margin-top: 0.85rem;
}

@keyframes reviews-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.nav a {
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav a:not(.nav-cta):hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-closure-banner {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-close-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chat-close-actions .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.admin-presence-list,
.admin-users-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-presence-row,
.admin-user-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
}

.admin-presence-row span,
.admin-user-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track,
  .reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Moderazione admin: tracking IP, multi-account e ban/sospensioni */
.admin-warning-text {
  color: #f2b8b5;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-moderation-actions {
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.admin-presence-row span,
.admin-user-row span {
  overflow-wrap: anywhere;
}

/* === Correzione header: niente più nav che scende dopo il login === */
.header-inner { gap: 1rem; }
.logo--with-cat { flex: 0 0 auto; }
.nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 0.35rem 0.85rem;
}
.nav a,
.nav-report-btn,
.nav-auth-open,
.nav-admin-open,
.nav-auth-logout,
.nav-cta {
  white-space: nowrap;
}
.nav-user:not([hidden]) {
  max-width: 210px;
  flex: 0 1 auto;
}
.nav-user-label { max-width: 5.75rem; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.6rem 0; }
  .nav-cta { text-align: center; margin-top: 0.25rem; }
  .nav-auth-wrap { width: 100%; justify-content: flex-start; padding: 0.35rem 0; }
  .nav-user:not([hidden]) { max-width: 100%; }
  .nav-user-label { max-width: min(10rem, 52vw); }
}

/* === Schermata bannato/sospeso lato client === */
.blocked-page-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(239,68,68,0.22), transparent 32rem),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,0.08), transparent 28rem),
    #050505;
  color: var(--text, #f5f5f5);
  font-family: Outfit, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.blocked-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.blocked-page-card {
  width: min(680px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18,18,18,0.96), rgba(7,7,7,0.96));
  box-shadow: 0 30px 100px rgba(0,0,0,0.55);
  text-align: center;
}
.blocked-page-icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.15rem;
  border-radius: 1.6rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  font-size: 2.4rem;
}
.blocked-page-kicker {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #f2b8b5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blocked-page-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.blocked-page-message {
  margin: 0 auto;
  max-width: 52ch;
  color: rgba(245,245,245,0.82);
  line-height: 1.7;
  font-size: 1.05rem;
}
.blocked-page-note {
  margin: 1.4rem auto 0;
  max-width: 52ch;
  color: rgba(245,245,245,0.52);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* === Admin NUI: leggibilità, struttura, moderazione === */
.admin-modal .modal-dialog.admin-dialog {
  max-width: 1220px;
  width: min(98vw, 1220px);
  border-radius: 24px;
  overflow: hidden;
}
.admin-layout {
  grid-template-columns: 235px minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.22));
}
.admin-tabs-nav {
  gap: 0.28rem;
  background: rgba(0,0,0,0.35);
}
.admin-tab {
  border: 1px solid transparent;
  padding: 0.68rem 0.8rem;
  line-height: 1.1;
}
.admin-tab.is-active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 3px 0 0 rgba(255,255,255,0.72);
}
.admin-tab-body {
  padding: 1.35rem;
  background: rgba(255,255,255,0.015);
}
.admin-actions {
  justify-content: space-between;
  gap: 0.75rem;
}
.admin-dashboard {
  display: grid;
  gap: 1rem;
}
.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}
.admin-page-head h3,
.admin-section-card h3 {
  margin: 0;
}
.admin-page-head p {
  margin: 0.35rem 0 0;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.admin-stat-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}
.admin-stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.admin-stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.admin-section-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.028);
}
.admin-presence-row,
.admin-user-row {
  gap: 0.42rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}
.admin-presence-row.has-warning,
.admin-user-row-banned,
.admin-ip-ban-row {
  border-color: rgba(239,68,68,0.42);
  background: linear-gradient(180deg, rgba(239,68,68,0.08), rgba(255,255,255,0.025));
}
.admin-user-row-suspended {
  border-color: rgba(245,158,11,0.42);
  background: linear-gradient(180deg, rgba(245,158,11,0.075), rgba(255,255,255,0.025));
}
.admin-presence-row strong,
.admin-user-row strong {
  color: var(--text);
  font-size: 1rem;
}
.admin-presence-row span,
.admin-user-row span {
  color: rgba(245,245,245,0.72);
  line-height: 1.45;
}
.admin-warning-text {
  color: #fca5a5 !important;
  font-weight: 650;
}
.admin-moderation-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.admin-moderation-actions .btn {
  padding: 0.42rem 0.72rem;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .admin-modal .modal-dialog.admin-dialog { width: min(98vw, 98vw); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-page-head { flex-direction: column; }
}

/* === Synapse Revolution patch: UI professionale ticket/chat/admin === */
.nav {
  gap: 0.45rem;
}
.nav a:not(.nav-cta),
.nav-auth-open,
.nav-admin-open,
.nav-auth-logout,
.nav-report-btn,
.nav-chat-btn {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.nav a:not(.nav-cta):hover,
.nav-auth-open:hover,
.nav-admin-open:hover,
.nav-auth-logout:hover,
.nav-report-btn:hover,
.nav-chat-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}
.nav-report-btn,
.nav-chat-btn {
  color: var(--text);
}
.nav-chat-btn {
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.status-bar-wrap {
  margin-top: .95rem;
}
.status-bar {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  gap: .55rem;
  padding: .62rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 50px rgba(0,0,0,.32);
}
.status-label {
  font-weight: 800;
  letter-spacing: -.01em;
}
.status-detail {
  color: var(--text-muted);
  font-size: .86rem;
}
.status-dot {
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12), 0 0 24px rgba(34,197,94,.55);
}
.status-dot[data-state="ok"] { background: #22c55e; }
.status-dot[data-state="warn"] { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.14), 0 0 24px rgba(245,158,11,.48); }
.status-dot[data-state="err"] { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.14), 0 0 24px rgba(239,68,68,.48); }

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.badge,
.badge.badge-flow {
  position: static;
  align-self: flex-start;
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 .75rem;
  padding: .28rem .62rem;
  border-radius: 999px;
  white-space: normal;
  line-height: 1.15;
  background: rgba(255,255,255,.92);
  color: #0a0a0a;
}
.badge-top {
  background: linear-gradient(135deg, #ffffff, #d8d8d8);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 12px 28px rgba(255,255,255,.08);
}
.recommended-strip {
  margin: -.35rem 0 .9rem;
  padding: .62rem .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  color: var(--text-muted);
  font-size: .88rem;
}
.product-ticket-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  font-weight: 800;
}
.data-table .product-ticket-btn {
  width: auto;
  padding: .42rem .72rem;
  white-space: nowrap;
  font-size: .82rem;
}
.review-card-live {
  border-color: rgba(34,197,94,.26);
  background: linear-gradient(180deg, rgba(34,197,94,.07), rgba(255,255,255,.035));
}

.report-modal .modal-dialog.report-dialog {
  max-width: 720px;
}
.report-subject {
  display: block;
  margin: .2rem 0 .35rem;
  color: var(--text);
  font-size: .94rem;
}
.staff-presence {
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.chat-widget {
  width: 390px;
  height: 560px;
  border-radius: 24px;
  background: #0b141a;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 26px 90px rgba(0,0,0,.68);
}
.chat-header {
  min-height: 58px;
  padding: .72rem .9rem;
  background: linear-gradient(135deg, rgba(32,44,51,.98), rgba(17,27,33,.98));
}
.chat-title {
  font-size: 1rem;
  font-weight: 800;
}
.chat-status-pill {
  border: 1px solid rgba(34,197,94,.28);
}
.chat-messages {
  padding: 1rem .85rem;
  gap: .52rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,211,102,.08), transparent 28%),
    linear-gradient(180deg, rgba(11,20,26,.98), rgba(5,10,14,.98));
}
.chat-day-separator {
  align-self: center;
  padding: .24rem .65rem;
  border-radius: 999px;
  color: #d1d7db;
  background: rgba(32,44,51,.9);
  font-size: .72rem;
  margin: .2rem 0;
}
.chat-msg {
  max-width: 82%;
}
.chat-bubble {
  border: none;
  background: #202c33;
  color: #e9edef;
  border-radius: 15px 15px 15px 4px;
  padding: .56rem .72rem;
  box-shadow: 0 1px 1px rgba(0,0,0,.22);
}
.chat-msg.is-mine .chat-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 15px 15px 4px 15px;
}
.chat-time {
  color: rgba(233,237,239,.55);
  padding: 0 .2rem;
}
.chat-form {
  background: #202c33;
  padding: .65rem .75rem;
  align-items: flex-end;
}
.chat-form textarea {
  min-height: 42px;
  max-height: 110px;
  border-radius: 18px;
  border: none;
  background: #2a3942;
  color: #e9edef;
  padding: .65rem .85rem;
}
.chat-send {
  border-radius: 999px;
  min-width: 70px;
}
.chat-admin-controls {
  background: rgba(17,27,33,.96);
}
.chat-loading {
  margin: auto;
  color: rgba(233,237,239,.65);
  font-size: .9rem;
}
.chat-typing-indicator {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: .24rem;
  padding: .5rem .65rem;
  border-radius: 14px;
  background: #202c33;
  color: rgba(233,237,239,.7);
  font-size: .76rem;
  max-width: 76%;
}
.chat-typing-indicator[data-typing="true"] {
  display: inline-flex;
}
.chat-typing-indicator span {
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: typingBlink 1.05s infinite ease-in-out;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: .16s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: .32s; }
.chat-typing-indicator em {
  font-style: normal;
  margin-left: .25rem;
}
@keyframes typingBlink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: .9; transform: translateY(-2px); }
}

.admin-page-head,
.admin-tickets-head {
  gap: .75rem;
}
.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
}
.admin-chat-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.admin-chat-row {
  border-left-color: #25d366;
}
.admin-chat-paused { border-left-color: #f59e0b; }
.admin-chat-suspended { border-left-color: #ef4444; }
.admin-chat-closed { border-left-color: #737373; opacity: .78; }
.privacy-modal .regolamento-dialog {
  max-width: 860px;
}

@media (max-width: 860px) {
  .nav a:not(.nav-cta),
  .nav-auth-open,
  .nav-admin-open,
  .nav-auth-logout,
  .nav-report-btn,
  .nav-chat-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .status-bar {
    align-items: flex-start;
    border-radius: 22px;
    flex-wrap: wrap;
  }
  .chat-widget {
    width: calc(100vw - 1rem);
    height: min(620px, calc(100vh - 1rem));
    right: .5rem;
    bottom: .5rem;
  }
}

/* === Fix header: il bottone ticket non deve mai finire sotto al logo === */
.header-inner {
  gap: 1rem;
}
.logo--with-cat {
  flex: 0 0 184px;
  min-width: 184px;
  position: relative;
  z-index: 2;
}
.nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-left: .35rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav > * { flex: 0 0 auto; }
@media (max-width: 1160px) and (min-width: 861px) {
  .logo--with-cat { flex-basis: 168px; min-width: 168px; }
  .nav { gap: .35rem; }
  .nav a:not(.nav-cta),
  .nav-report-btn,
  .nav-chat-btn,
  .nav-auth-open,
  .nav-admin-open,
  .nav-auth-logout {
    font-size: .84rem;
    padding-inline: .72rem;
  }
}
@media (max-width: 860px) {
  .logo--with-cat { flex-basis: auto; min-width: 0; }
  .nav { overflow: visible; flex-wrap: nowrap; padding-left: 1rem; }
}

/* === Chat Synapse: stile messaggistica abbinato al tema nero/bianco del sito === */
.chat-widget {
  background: linear-gradient(180deg, rgba(17,17,17,.99), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 100px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.chat-header {
  background: linear-gradient(135deg, rgba(38,38,38,.98), rgba(10,10,10,.98));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.chat-status-pill {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #f5f5f5;
}
.chat-status-pill[data-status="open"] { border-color: rgba(255,255,255,.28); }
.chat-status-pill[data-status="paused"] { border-color: rgba(245,158,11,.5); color: #fde68a; }
.chat-status-pill[data-status="suspended"],
.chat-status-pill[data-status="closed"] { border-color: rgba(239,68,68,.48); color: #fecaca; }
.chat-messages {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.08), transparent 30%),
    radial-gradient(circle at 95% 100%, rgba(255,255,255,.05), transparent 26%),
    linear-gradient(180deg, rgba(12,12,12,.98), rgba(3,3,3,.98));
}
.chat-day-separator,
.chat-typing-indicator {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.08);
}
.chat-bubble {
  background: rgba(255,255,255,.09);
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,.08);
}
.chat-msg.is-mine .chat-bubble {
  background: #f5f5f5;
  color: #090909;
  border-color: rgba(255,255,255,.65);
}
.chat-time { color: rgba(255,255,255,.48); }
.chat-msg.is-mine .chat-time { color: rgba(255,255,255,.62); }
.chat-form {
  background: rgba(16,16,16,.98);
  border-top: 1px solid rgba(255,255,255,.1);
}
.chat-form textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #f5f5f5;
}
.chat-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.36);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.chat-admin-controls {
  background: rgba(10,10,10,.97);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-chat-row { border-left-color: rgba(255,255,255,.75); }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.product-actions .btn {
  flex: 1 1 auto;
}

.checkout-dialog {
  width: min(540px, 100%);
}

.checkout-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.05rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checkout-summary-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.checkout-summary-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.checkout-summary-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-payment {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.checkout-pay-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.checkout-pay-option[data-selected="true"] {
  border-color: #4f6bff;
  box-shadow: 0 0 0 1px rgba(79, 107, 255, 0.4);
}

.checkout-pay-logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: #0666eb;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.checkout-pay-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkout-pay-check {
  color: #4f6bff;
  font-weight: 800;
}

.checkout-paid-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius);
}

.checkout-paid-banner p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.checkout-paid-icon,
.checkout-done-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  font-weight: 800;
}

.checkout-contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}

.checkout-done {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 0.5rem;
}

.checkout-done-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.4rem;
}

.checkout-done h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.checkout-done p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-ticket-product,
.admin-ticket-payment {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-ticket-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text);
}

.admin-ticket-phone {
  font-weight: 700;
  color: #4f6bff;
}

.admin-ticket-service {
  margin: 0.5rem 0;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-ticket-service strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 0.3rem;
}

.admin-ticket-service p {
  margin: 0;
  font-size: 0.82rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .product-actions .btn {
    flex: 1 1 100%;
  }
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: 100%;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1 1 140px;
  min-height: 2.8rem;
  justify-content: center;
}

.product-info-ticket-btn {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.035);
}

.data-table .product-actions {
  width: auto;
  margin-top: 0;
  justify-content: flex-end;
}

.data-table .product-actions .btn {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: .42rem .72rem;
  white-space: nowrap;
  font-size: .82rem;
}

.checkout-modal .modal-dialog.checkout-dialog {
  width: min(680px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}

.checkout-modal .modal-header {
  padding: 1.15rem 1.25rem;
}

.checkout-body {
  gap: 1rem;
  padding: 1rem 1.2rem 1.25rem;
  overflow-y: auto;
}

.checkout-form {
  gap: .85rem;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem .8rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.checkout-kicker {
  grid-column: 1 / -1;
  color: var(--text-subtle);
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.checkout-product-title,
.checkout-summary > strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.checkout-price {
  align-self: start;
  justify-self: end;
  padding: .36rem .7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-payment-card {
  display: flex;
  flex-direction: column;
  gap: .48rem;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
}

.checkout-payment-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.checkout-payment-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.checkout-payment-card-active {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
}

.checkout-official-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .42rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

.checkout-payment-flow {
  display: grid;
  gap: .55rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(0,0,0,.18);
  color: var(--text-muted);
  font-size: .86rem;
}

.checkout-lead,
.checkout-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .92rem;
}

.checkout-wide {
  width: 100%;
  justify-content: center;
  min-height: 3rem;
  font-weight: 850;
}

.checkout-revolut-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: .78;
}

.checkout-paid-banner {
  border-radius: 18px;
}

.checkout-success {
  border: 1px solid rgba(34,197,94,.3);
  background: rgba(34,197,94,.08);
  border-radius: 18px;
}

.admin-orders-list {
  display: grid;
  gap: .85rem;
}

.admin-order-card {
  margin-bottom: 0;
}

.admin-order-awaiting_payment {
  border-left-color: #f59e0b;
}

.admin-order-payment_pending_details,
.admin-order-payment_confirmed {
  border-left-color: #38bdf8;
}

.admin-order-details_received {
  border-left-color: #22c55e;
}

.admin-order-completed {
  border-left-color: #a3a3a3;
}

.report-pill-awaiting_payment {
  background: rgba(245,158,11,.18);
  color: #fbbf24;
}

.report-pill-payment_pending_details,
.report-pill-payment_confirmed {
  background: rgba(56,189,248,.16);
  color: #7dd3fc;
}

.report-pill-details_received {
  background: rgba(34,197,94,.18);
  color: #4ade80;
}

.report-pill-completed {
  background: rgba(163,163,163,.18);
  color: #d4d4d4;
}

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

  .checkout-price {
    justify-self: start;
  }
}

.product-actions .product-ticket-btn {
  width: auto;
  margin-top: 0;
}


/* === Listino prodotti unificato + hover dinamico neon === */
.product-pricing-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.product-pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-eyebrow {
  margin-bottom: .45rem;
}

.product-category-picker {
  display: grid;
  gap: .4rem;
  min-width: min(320px, 100%);
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-category-picker select {
  appearance: none;
  width: 100%;
  color: var(--text);
  color-scheme: dark;
  font: inherit;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .82rem 3rem .82rem 1rem;
  background-color: var(--bg-elevated);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  background-position:
    calc(100% - 1.15rem) 50%,
    0 0;
  background-size:
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
}

.product-category-picker select option {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
}

.product-category-picker select option:checked,
.product-category-picker select option:hover {
  background: #242424;
  color: #ffffff;
}

.product-category-picker select option:disabled {
  background: var(--bg);
  color: var(--text-subtle);
}

.product-category-picker select:focus {
  outline: none;
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 26px rgba(255,255,255,.16);
}

.product-category-panels {
  min-height: 240px;
}

.product-category-panel {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  animation: product-panel-in .22s ease both;
}

.product-category-panel[hidden] {
  display: none !important;
}

.product-panel-head {
  margin-bottom: 1.35rem;
}

.product-panel-head h3,
.product-notes-card h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin: 0 0 .45rem;
  letter-spacing: -.02em;
}

.product-category-panel h4 {
  margin: 0 0 .85rem;
  font-size: 1.06rem;
}

.product-notes-card {
  margin-top: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 1rem 1.15rem;
}

.product-notes-card p {
  margin: 0;
  color: var(--text-muted);
}

@keyframes product-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Icone vere per la sezione Chi siamo */
.feature-list li {
  align-items: center;
  padding: .35rem .45rem;
  border: 1px solid transparent;
  border-radius: 14px;
}

.feature-list .icon {
  display: none;
}

.about-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 22px rgba(255,255,255,.08);
}

.about-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text);
}

.feature-text {
  color: var(--text);
  font-weight: 700;
}

/* Effetto hover: leggero zoom, inseguimento mouse e bordo neon */
.interactive-hover {
  --hover-x: 0px;
  --hover-y: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
  will-change: transform, box-shadow, border-color;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.interactive-hover > * {
  position: relative;
  z-index: 1;
}

.interactive-hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.92), rgba(255,255,255,.28) 22%, transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,.54), rgba(255,255,255,.08), rgba(255,255,255,.38));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity .18s ease;
}

.interactive-hover.is-hovered {
  transform: translate3d(var(--hover-x), var(--hover-y), 0) scale(1.025);
  border-color: rgba(255,255,255,.44);
  box-shadow:
    0 18px 52px rgba(0,0,0,.48),
    0 0 22px rgba(255,255,255,.16),
    0 0 46px rgba(255,255,255,.08);
}

.interactive-hover.is-hovered::after {
  opacity: 1;
}

.card.interactive-hover,
.callout.interactive-hover,
.table-wrap.interactive-hover,
.review-card.interactive-hover,
.reviews-summary.interactive-hover,
.product-notes-card.interactive-hover {
  overflow: hidden;
}

.card.interactive-hover.is-hovered {
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.075), transparent 34%),
    var(--bg-elevated);
}

.table-wrap.interactive-hover.is-hovered,
.callout.interactive-hover.is-hovered,
.product-notes-card.interactive-hover.is-hovered {
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.07), transparent 38%),
    rgba(255,255,255,.04);
}

.feature-list li.interactive-hover.is-hovered,
.reviews-summary.interactive-hover.is-hovered {
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.08), transparent 44%),
    rgba(255,255,255,.045);
}

/* Le recensioni non devono fermarsi al passaggio del cursore */
.reviews-marquee:hover .reviews-track {
  animation-play-state: running !important;
}

@media (max-width: 760px) {
  .product-pricing-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-category-picker {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .reviews-section {
    overflow: visible;
  }

  .reviews-summary {
    display: flex;
    align-items: flex-start;
    border-radius: 18px;
    flex-direction: column;
    gap: .35rem;
  }

  .reviews-marquee {
    overflow-x: auto;
    overflow-y: visible;
    mask-image: none;
    -webkit-mask-image: none;
    margin-inline: -1rem;
    padding: .25rem 1rem .65rem;
    border-radius: 0;
    scrollbar-width: none;
  }

  .reviews-marquee::-webkit-scrollbar {
    display: none;
  }

  .reviews-track {
    width: max-content;
    animation: none !important;
    transform: none !important;
    padding-right: 1rem;
  }

  .review-card {
    width: min(292px, calc(100vw - 3rem));
  }

  .interactive-hover.is-hovered {
    transform: translate3d(0, 0, 0) scale(1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-category-panel,
  .reviews-track {
    animation: none !important;
  }

  .interactive-hover,
  .interactive-hover.is-hovered {
    transform: none !important;
    transition: border-color .12s ease, box-shadow .12s ease;
  }
}

/* === Patch gradi staff, status animato e listino uniforme === */
.nav-user:not([hidden]) {
  max-width: min(360px, 52vw);
}

.nav-user-label {
  max-width: 12.5rem;
}

@media (max-width: 1180px) {
  .nav-user-label {
    max-width: min(16rem, 62vw);
  }
}

.status-dot {
  position: relative;
  flex: 0 0 auto;
  animation: synapse-status-pulse 1.8s ease-in-out infinite;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -0.42rem;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: .32;
  animation: synapse-status-ring 1.8s ease-out infinite;
}

@keyframes synapse-status-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.22); filter: brightness(1.2); }
}

@keyframes synapse-status-ring {
  0% { transform: scale(.65); opacity: .42; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.cards-hosting,
.cards-emoji {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card-simple-product .price {
  margin-bottom: 1rem;
}

.admin-role-control {
  display: grid;
  gap: .35rem;
  margin-top: .4rem;
  max-width: 280px;
}

.admin-role-control select {
  width: 100%;
  color: var(--text);
  color-scheme: dark;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: .65rem .75rem;
  font: inherit;
  font-weight: 700;
}

.admin-role-control select option {
  color: #fff;
  background: #141414;
}
.status-dot[data-state="ok"] { color: #22c55e; }
.status-dot[data-state="warn"] { color: #f59e0b; }
.status-dot[data-state="err"] { color: #ef4444; }

/* === SynapseHub Security public lookup page === */
.nav-security-link {
  position: relative;
  padding: 0.48rem 0.86rem !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 10px 30px rgba(0,0,0,0.22);
}

.nav-security-link::after {
  display: none !important;
}

.nav-security-link:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.11);
}

.security-page-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(148,163,184,0.12), transparent 32%),
    var(--bg-deep);
}

.security-main {
  overflow: hidden;
}

.security-site-header {
  border-bottom-color: rgba(255,255,255,0.16);
}

.security-hero {
  padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(2.4rem, 6vw, 4.6rem);
  position: relative;
}

.security-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255,255,255,0.04) 16% 16.2%, transparent 16.2% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
  opacity: 0.85;
  pointer-events: none;
}

.security-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.security-hero-copy h1 {
  margin: 0.25rem 0 1rem;
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.security-eyebrow,
.security-terminal-card,
.security-result-grid,
.security-search-label input,
.security-result-kicker,
.story-step {
  font-family: var(--font-mono);
}

.security-lead {
  max-width: 720px;
  color: #d6d6d6;
}

.security-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.security-terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.12), transparent 33%),
    linear-gradient(180deg, rgba(20,20,20,0.96), rgba(5,5,5,0.98));
  box-shadow: 0 40px 120px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08);
}

.security-terminal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  pointer-events: none;
}

.terminal-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #f5f5f5;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.terminal-lines {
  position: relative;
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  color: #d8d8d8;
  font-size: 0.86rem;
}

.terminal-lines span {
  display: block;
  padding: 0.58rem 0.74rem;
  border-left: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border-radius: 0 12px 12px 0;
}

.security-terminal-logo {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.security-lookup-section {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.security-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(24,24,24,0.96), rgba(10,10,10,0.98));
  box-shadow: 0 30px 100px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.07);
  padding: clamp(1.25rem, 4vw, 2.2rem);
}

.security-panel-head {
  align-items: center;
  gap: 1.5rem;
}

.security-panel-mark {
  width: min(130px, 30vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
}

.security-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-top: 1.2rem;
}

.security-search-label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

.security-search-label span {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.security-search-label input {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.055);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.security-search-label input:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}

.security-search-button {
  min-height: 3.35rem;
  white-space: nowrap;
}

.security-search-help {
  margin: 0.7rem 0 0;
}

.security-result {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
}

.security-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(255,255,255,0.62);
}

.security-result h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.security-result p {
  color: var(--text-muted);
  margin: 0;
  max-width: 860px;
}

.security-result code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.08rem 0.28rem;
}

.security-result-kicker {
  color: #efefef;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.security-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.security-result-grid span {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(0,0,0,0.24);
}

.security-result-grid strong {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.security-result-grid em {
  color: #dcdcdc;
  font-style: normal;
  word-break: break-word;
}

.security-result-safe {
  border-color: rgba(255,255,255,0.18);
}

.security-result-danger {
  border-color: rgba(255,255,255,0.3);
  background:
    radial-gradient(circle at right top, rgba(255,255,255,0.10), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
}

.security-result-error {
  border-color: rgba(255,255,255,0.24);
}

.security-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.security-story-copy h2 {
  margin-top: 0.2rem;
}

.security-story-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  background: rgba(10,10,10,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.security-story-card h3 {
  margin: 0.15rem 0 0.25rem;
}

.security-story-card p {
  margin: 0 0 1.05rem;
  color: var(--text-muted);
}

.security-story-card p:last-child {
  margin-bottom: 0;
}

.story-step {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
}

.security-banner-section {
  padding: 1.5rem 0 4rem;
}

.security-wide-banner {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 26px 80px rgba(0,0,0,0.36);
}

@media (max-width: 860px) {
  .security-hero-inner,
  .security-story-grid,
  .security-search-form {
    grid-template-columns: 1fr;
  }

  .security-panel-head {
    flex-direction: row;
  }

  .security-search-button {
    width: 100%;
  }

  .security-result-grid {
    grid-template-columns: 1fr;
  }

  .nav-security-link {
    text-align: center;
    margin-top: 0.25rem;
  }
}

.btn-warning {
  background: linear-gradient(135deg, #ffd54a, #f4b400);
  color: #171717;
  box-shadow: 0 2px 12px rgba(244, 180, 0, 0.24);
}

.btn-warning:hover {
  filter: brightness(1.04);
}

.checkout-price-discounted {
  display: grid;
  gap: 0.16rem;
  justify-items: end;
  min-width: 8.8rem;
  background: rgba(244, 180, 0, 0.12);
  border-color: rgba(244, 180, 0, 0.35);
  color: #ffd54a;
}

.checkout-price-discounted del {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.85;
}

.checkout-price-discounted strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.checkout-discount-label {
  color: #ffd54a;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
}

.checkout-discount-applied {
  grid-column: 1 / -1;
  color: #ffd54a;
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-discount-box {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(244, 180, 0, 0.28);
  background: rgba(244, 180, 0, 0.07);
}

.checkout-discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.checkout-discount-input {
  width: 100%;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.checkout-discount-input:focus {
  border-color: rgba(244, 180, 0, 0.58);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.12);
}

.checkout-discount-btn {
  min-height: 3rem;
  white-space: nowrap;
  font-weight: 900;
}

.checkout-discount-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-discount-form {
  display: grid;
  gap: 0.85rem;
}

.admin-discount-list {
  display: grid;
  gap: 0.8rem;
}

.admin-discount-code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
}

.admin-discount-code-line strong {
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.admin-discount-code-line span {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(244, 180, 0, 0.13);
  color: #ffd54a;
  border: 1px solid rgba(244, 180, 0, 0.28);
  font-weight: 900;
  font-size: 0.78rem;
}

.report-pill-available,
.report-pill-reserved,
.report-pill-attached,
.report-pill-used {
  border-color: rgba(244, 180, 0, 0.26);
}

.report-pill-available {
  color: #9be7a8;
  background: rgba(34, 197, 94, 0.12);
}

.report-pill-reserved,
.report-pill-attached {
  color: #ffd54a;
  background: rgba(244, 180, 0, 0.12);
}

.report-pill-used {
  color: var(--text-muted);
  background: rgba(255,255,255,0.07);
}

@media (max-width: 620px) {
  .checkout-discount-row {
    grid-template-columns: 1fr;
  }

  .checkout-discount-btn {
    width: 100%;
  }
}
