:root {
  --nexp-bg: #040712;
  --nexp-panel: rgba(9, 14, 34, .84);
  --nexp-panel-strong: rgba(7, 11, 28, .96);
  --nexp-line: rgba(255, 255, 255, .13);
  --nexp-text: #f7f8fc;
  --nexp-muted: #9aa5bd;
  --nexp-cyan: #41c8ff;
  --nexp-blue: #5368ff;
  --nexp-violet: #914cff;
  --nexp-pink: #f44cbe;
  --nexp-font: "Lorem Ipsum", "Century Gothic", "Trebuchet MS", sans-serif;
}

html { min-height: 100%; }
body {
  position: relative;
  min-height: 100vh;
  padding: 104px 22px 44px !important;
  overflow-x: hidden;
  color: var(--nexp-text) !important;
  font-family: var(--nexp-font) !important;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 12% 5%, rgba(83,104,255,.18), transparent 28rem),
    radial-gradient(circle at 88% 68%, rgba(244,76,190,.1), transparent 32rem),
    var(--nexp-bg) !important;
  background-size: 56px 56px, 56px 56px, auto, auto, auto !important;
}

.portal-mark {
  position: fixed;
  z-index: 0;
  width: min(55vw, 700px);
  aspect-ratio: 1;
  right: -12vw;
  top: 19vh;
  opacity: .05;
  pointer-events: none;
  background: url("assets/icona-nexp-wh.png") center / contain no-repeat;
}

.portal-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 15px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--nexp-line);
  background: rgba(4,7,18,.88);
  backdrop-filter: blur(20px);
}
.portal-logo { display: block; width: 128px; }
.portal-logo img { display: block; width: 100%; }
.portal-context { justify-self: center; display: flex; align-items: center; gap: 14px; text-transform: uppercase; }
.portal-context span { color: var(--nexp-cyan); font-size: .58rem; letter-spacing: .18em; }
.portal-context strong { font-size: .68rem; letter-spacing: .14em; }
.portal-context strong::before { content: ""; display: inline-block; width: 1px; height: 17px; margin-right: 14px; vertical-align: middle; background: var(--nexp-line); }
.portal-site-link { padding: 10px 14px; border: 1px solid rgba(65,200,255,.38); border-radius: 100px; color: #dff7ff; font-size: .61rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.portal-header-actions { display: flex; align-items: center; gap: 10px; }
.portal-language-picker { position: relative; }
.portal-language-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.055) !important;
}
.portal-language-toggle img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.portal-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 172px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--nexp-line);
  border-radius: 15px;
  background: rgba(6,10,26,.98);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.portal-language-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.portal-language-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #e9eefb !important;
  background: transparent !important;
  font: inherit;
  font-size: .72rem;
  text-align: left;
}
.portal-language-menu button:hover,
.portal-language-menu button.is-active { border-color: rgba(65,200,255,.3) !important; background: rgba(65,200,255,.09) !important; }
.portal-language-menu img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.wrap { position: relative; z-index: 1; max-width: 1380px !important; }
.card {
  border: 1px solid var(--nexp-line) !important;
  border-radius: 24px !important;
  color: var(--nexp-text) !important;
  background: linear-gradient(145deg, rgba(16,22,50,.9), var(--nexp-panel-strong)) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(18px);
}

.login-box, #authView {
  max-width: 560px !important;
  margin: clamp(42px, 8vh, 100px) auto 0 !important;
  padding: clamp(25px, 4vw, 42px) !important;
}
.login-box::before, .restricted-label {
  content: "Area riservata";
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(65,200,255,.3);
  border-radius: 100px;
  color: var(--nexp-cyan);
  background: rgba(65,200,255,.06);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.restricted-label { content: none; }
.login-box h2, #authView h1 {
  margin-bottom: 8px !important;
  font-size: clamp(2.15rem, 5vw, 3.7rem) !important;
  line-height: .95 !important;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
#authView > p { margin: 0 0 28px; color: var(--nexp-muted) !important; }

h1, h2, h3 { color: var(--nexp-text) !important; letter-spacing: -.035em; }
.hero { margin: 22px 0 28px !important; padding: 6px 0 24px; border-bottom: 1px solid var(--nexp-line); }
.hero h1, .topbar h1 { font-size: clamp(2rem, 4vw, 4.6rem) !important; line-height: .95 !important; letter-spacing: -.06em; text-transform: uppercase; }
.hero p, p, small { color: var(--nexp-muted) !important; }

label {
  color: #b9c3d8 !important;
  font-size: .62rem !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}
input, textarea {
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 12px !important;
  color: white !important;
  background: rgba(255,255,255,.045) !important;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
input:focus, textarea:focus { border-color: var(--nexp-cyan) !important; background: rgba(65,200,255,.055) !important; }
button {
  border-radius: 12px !important;
  color: #030711 !important;
  background: linear-gradient(90deg, var(--nexp-cyan), #8de4ff) !important;
  font-weight: 900 !important;
  letter-spacing: .045em;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.07); }
button.secondary, .tabs .inactive {
  border: 1px solid var(--nexp-line) !important;
  color: white !important;
  background: rgba(255,255,255,.055) !important;
}
button.danger { color: white !important; background: linear-gradient(135deg,#ef4444,#c52557) !important; }
.tabs { padding: 5px; border: 1px solid var(--nexp-line); border-radius: 15px; background: rgba(0,0,0,.18); }
.tabs button { border-radius: 10px !important; }
.tabs .active { color: #030711 !important; background: linear-gradient(90deg,var(--nexp-cyan),#8de4ff) !important; }

.grid { gap: 18px !important; }
.info, .info-box, .user-item, .edit-panel {
  border-color: var(--nexp-line) !important;
  background: rgba(255,255,255,.035) !important;
}
.info strong, .info-box strong, th { color: #8f9bb6 !important; letter-spacing: .1em !important; }
.info span, .info-box span { color: white; }
.user-item:hover, .user-item.active { border-color: rgba(65,200,255,.55) !important; background: rgba(65,200,255,.07) !important; }
.status {
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #cbd7ee !important;
  background: rgba(255,255,255,.035) !important;
}
.status.ok { border-color: rgba(34,197,94,.4) !important; }
.status.error { border-color: rgba(239,68,68,.45) !important; }
.top-bar, .topbar { padding: 18px 20px; border: 1px solid var(--nexp-line); border-radius: 18px; background: rgba(10,15,35,.68); }
table { border-radius: 14px; overflow: hidden; }
th { background: rgba(65,200,255,.035); }
td { border-color: rgba(255,255,255,.07) !important; }

#clientView > .card { padding: 18px !important; }
.client-dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 570px;
}
.client-sidebar {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--nexp-line);
  border-radius: 18px;
  background: rgba(3, 8, 24, .68);
}
.client-sidebar-title {
  margin: 1px 4px 8px;
  color: #8794b1;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .19em;
}
button.client-module-button {
  width: 100%;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px 13px !important;
  border: 1px solid transparent !important;
  color: #dfe7f8 !important;
  background: transparent !important;
  text-align: left;
  letter-spacing: .01em;
}
button.client-module-button > span:first-child { font-size: 1.08rem; text-align: center; }
button.client-module-button.hidden { display: none; }
button.client-module-button:hover,
button.client-module-button.is-active {
  border-color: rgba(65, 200, 255, .38) !important;
  background: linear-gradient(100deg, rgba(65,200,255,.13), rgba(83,104,255,.09)) !important;
}
.client-module-stage {
  min-width: 0;
  padding: clamp(17px, 2.6vw, 30px);
  border: 1px solid var(--nexp-line);
  border-radius: 18px;
  background: rgba(4, 8, 22, .58);
}
.client-module-empty {
  min-height: 500px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}
.client-module-empty.hidden,
.client-module-panel.hidden { display: none; }
.client-module-empty-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid rgba(65,200,255,.3);
  border-radius: 22px;
  color: var(--nexp-cyan);
  background: rgba(65,200,255,.075);
  font-size: 2rem;
}
.client-module-empty h2 { margin: 0 0 7px; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.client-module-empty p { max-width: 450px; margin: 0; }
.client-module-panel { min-width: 0; }
.client-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--nexp-line);
}
.client-panel-heading h2 { margin: 4px 0 0; font-size: clamp(1.55rem, 3vw, 2.55rem); }
.client-panel-heading button { width: auto; }
.eyebrow {
  color: var(--nexp-cyan);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .17em;
}
.client-panel-intro { max-width: 720px; margin: 0 0 17px; }
.client-games-wrap { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.client-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(65,200,255,.25);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(65,200,255,.065);
  font-size: .76rem;
  font-weight: 800;
}
.client-game-chip::before { content: "🎮"; }
.client-download-list { display: grid; gap: 14px; margin-top: 18px; }
.client-download-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(17px, 2.4vw, 24px);
  border: 1px solid rgba(65,200,255,.24);
  border-radius: 19px;
  background: linear-gradient(125deg, rgba(65,200,255,.075), rgba(83,104,255,.045) 48%, rgba(255,255,255,.025));
}
.client-download-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  box-shadow: none;
}
.client-download-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.client-download-content { min-width: 0; }
.client-download-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.client-download-title-row h3 { margin: 5px 0 0; font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.client-download-content > p { margin: 12px 0; color: #cbd7ee; }
.client-download-version {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(65,200,255,.32);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(65,200,255,.09);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}
.client-download-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.client-download-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #aebbd4;
  background: rgba(255,255,255,.045);
  font-size: .66rem;
  font-weight: 800;
}
.client-download-content .status { margin-top: 12px; }
.client-download-action {
  width: auto;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 1px solid rgba(65,200,255,.52);
  border-radius: 13px;
  color: #03101d;
  background: linear-gradient(135deg, #67dcff, #42b4ff);
  font-size: .74rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.client-download-action:hover { transform: translateY(-1px); filter: brightness(1.07); }
.recharge-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
button.recharge-package {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 17px !important;
  border: 1px solid var(--nexp-line) !important;
  color: white !important;
  background: rgba(255,255,255,.035) !important;
  text-align: left;
}
button.recharge-package strong { color: var(--nexp-cyan); font-size: 1.35rem; }
button.recharge-package span { color: #cbd7ee; font-size: .76rem; }
button.recharge-package.is-selected { border-color: var(--nexp-cyan) !important; box-shadow: 0 0 0 2px rgba(65,200,255,.13); }
button.recharge-package:disabled { opacity: .42; cursor: not-allowed; }
.recharge-checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 25px;
  padding: 15px;
  border: 1px solid var(--nexp-line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.recharge-checkout-bar > div { display: grid; gap: 5px; }
.recharge-checkout-bar > div strong { color: #8794b1; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.recharge-checkout-bar > div span { font-weight: 800; }
button.paypal-button { width: auto; min-width: 190px; display: flex; justify-content: center; gap: 9px; }
button.paypal-button:disabled { opacity: .45; cursor: not-allowed; }
.client-collaborator-form {
  display: block;
  margin: 17px 0;
  padding: 16px;
  border: 1px solid rgba(65,200,255,.25);
  border-radius: 16px;
  background: rgba(65,200,255,.045);
}
.client-collaborator-form.hidden { display: none; }
.collaborator-status-field { display: grid; gap: 7px; }
select { border: 1px solid rgba(255,255,255,.14) !important; color: #f8fbff !important; background: rgba(255,255,255,.045) !important; color-scheme: dark; }
select option,
select optgroup { color: #081326 !important; background: #f7f9ff !important; }
.collaborators-list { display: grid; gap: 10px; margin-top: 18px; }
.collaborator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--nexp-line);
  border-radius: 15px;
  background: rgba(255,255,255,.032);
}
.collaborator-card-main { display: grid; gap: 4px; }
.collaborator-card-main small,
.collaborator-card-meta { color: var(--nexp-muted); font-size: .74rem; }
.collaborator-card-meta { display: grid; gap: 4px; }
.collaborator-card-actions { display: flex; gap: 7px; }
.collaborator-card-actions button { width: auto; min-width: 90px; }
.collaborator-badge { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: .59rem; font-weight: 900; text-transform: uppercase; }
.collaborator-badge.active { color: #86efac; background: rgba(34,197,94,.12); }
.collaborator-badge.inactive { color: #fca5a5; background: rgba(239,68,68,.12); }
.client-module-panel.support-panel { margin-top: 0; }
.venue-form {
  display: block;
  margin: 18px 0 24px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid rgba(65,200,255,.26);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(65,200,255,.055), rgba(83,104,255,.03));
}
.venue-form.hidden { display: none; }
.venue-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--nexp-line); }
.venue-form-heading h3 { margin: 5px 0 0; font-size: clamp(1.25rem, 2.5vw, 2rem); }
.venue-required-note { color: var(--nexp-muted); font-size: .62rem; }
.venue-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.venue-form-grid > label { display: grid; align-content: start; gap: 7px; min-width: 0; }
.venue-form-grid > label.hidden { display: none; }
.venue-form-grid .full { grid-column: 1 / -1; }
.venue-form-grid input,
.venue-form-grid select,
.venue-form-grid textarea { width: 100%; min-width: 0; }
.venue-form-grid textarea { resize: vertical; }
.venue-location-field { position: relative; z-index: 1; }
.venue-location-field:focus-within { z-index: 20; }
.venue-location-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 260px;
  display: grid;
  gap: 2px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(65,200,255,.38);
  border-radius: 13px;
  background: #f7f9ff;
  box-shadow: 0 18px 45px rgba(0,0,0,.38);
}
.venue-location-suggestions.hidden { display: none; }
button.venue-location-option {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0 !important;
  border-radius: 9px;
  color: #081326 !important;
  background: #f7f9ff !important;
  text-align: left;
}
button.venue-location-option:hover,
button.venue-location-option.is-active { color: #03101d !important; background: #bcecff !important; }
button.venue-location-option strong { font-size: .77rem; }
button.venue-location-option small { color: #40506c !important; font-size: .64rem; }
.venue-location-empty { padding: 10px; color: #53617a; font-size: .69rem; text-align: center; }
.venue-file-field { padding: 13px; border: 1px dashed rgba(65,200,255,.25); border-radius: 15px; background: rgba(0,0,0,.13); }
.venue-file-field input[type="file"] { padding: 9px; font-size: .72rem; }
.venue-file-field small,
.venue-map-tools small { color: var(--nexp-muted); font-size: .67rem; line-height: 1.5; }
.venue-logo-preview { min-height: 72px; display: flex; align-items: center; }
.venue-logo-preview img { width: 72px; height: 72px; display: block; object-fit: cover; border: 1px solid var(--nexp-line); border-radius: 15px; }
.venue-fieldset { margin: 0; padding: 13px; border: 1px solid var(--nexp-line); border-radius: 15px; }
.venue-fieldset legend { padding: 0 7px; color: #b9c3d8; font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.venue-checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.venue-checkbox-grid label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); cursor: pointer; }
.venue-checkbox-grid input { width: auto; margin: 0; accent-color: var(--nexp-cyan); }
.venue-checkbox-grid span { color: #dbe5f8; font-size: .7rem; font-weight: 800; }
.venue-map-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid rgba(65,200,255,.2); border-radius: 15px; background: rgba(65,200,255,.045); }
.venue-map-tools > div { display: grid; gap: 4px; }
.venue-map-button { width: auto; flex: 0 0 auto; padding: 11px 14px; border: 1px solid var(--nexp-line); border-radius: 12px; color: #fff; background: rgba(255,255,255,.055); font-size: .69rem; font-weight: 900; text-decoration: none; }
.venue-form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.venue-form-actions button { width: auto; min-width: 160px; }
.venue-gallery-counter { color: #aebbd4; font-size: .68rem; font-weight: 800; }
.venue-gallery-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.venue-gallery-item { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--nexp-line); border-radius: 13px; background: rgba(0,0,0,.2); }
.venue-gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.venue-gallery-item button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0 !important; border-radius: 50% !important; color: white !important; background: rgba(239,68,68,.88) !important; }
.venues-management-list { display: grid; gap: 11px; margin-top: 18px; }
.venue-management-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 15px; overflow: hidden; padding: 14px; border: 1px solid var(--nexp-line); border-radius: 17px; background: rgba(255,255,255,.032); }
.venue-management-card::before { content: "X"; position: absolute; z-index: -1; right: 8%; top: 50%; transform: translateY(-52%); color: rgba(255,255,255,.025); font-size: 10rem; font-weight: 950; line-height: 1; }
.venue-management-card-logo { width: 76px; height: 76px; display: block; object-fit: cover; border: 1px solid rgba(65,200,255,.28); border-radius: 16px; }
.venue-management-card-main { display: grid; gap: 5px; min-width: 0; }
.venue-management-card-main h3 { margin: 0; font-size: 1.08rem; }
.venue-management-card-main p { margin: 0; font-size: .75rem; }
.venue-management-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.venue-management-card-tags span { padding: 5px 7px; border-radius: 999px; color: #bfcae1; background: rgba(255,255,255,.05); font-size: .6rem; font-weight: 800; }
.venue-management-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.venue-management-card-actions button { width: auto; min-width: 88px; }
.venue-status-badge { width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: .59rem; font-weight: 900; text-transform: uppercase; }
.venue-status-badge.active { color: #86efac; background: rgba(34,197,94,.12); }
.venue-status-badge.draft { color: #fde68a; background: rgba(245,158,11,.12); }
.venue-status-badge.inactive { color: #fca5a5; background: rgba(239,68,68,.12); }

/* Accesso e registrazione */
#authView.nexp-auth-shell {
  position: relative;
  width: min(1120px, 100%);
  max-width: 1120px !important;
  height: 620px;
  margin: clamp(24px, 5vh, 64px) auto 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 12%, rgba(65,200,255,.11), transparent 22rem),
    linear-gradient(145deg, rgba(15,21,47,.96), rgba(5,9,24,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.46);
  isolation: isolate;
}
#authView.nexp-auth-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 58%);
}
.nexp-auth-form-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 52px 86px;
  opacity: 1;
  transition: transform .72s cubic-bezier(.22,.8,.2,1), opacity .36s ease;
}
.nexp-auth-register-panel {
  z-index: 1;
  opacity: 0;
}
#authView.is-register .nexp-auth-login-panel {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}
#authView.is-register .nexp-auth-register-panel {
  z-index: 3;
  opacity: 1;
  transform: translateX(100%);
  pointer-events: auto;
}
.nexp-auth-form-panel form {
  width: 100%;
  max-width: 410px;
  gap: 12px;
  margin: 0;
}
.nexp-auth-form-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.nexp-auth-form-heading .restricted-label {
  width: fit-content;
  margin: 0 0 5px;
}
#authView .nexp-auth-form-heading h1 {
  max-width: 390px;
  margin: 0 !important;
  font-size: clamp(2.4rem, 4.1vw, 4rem) !important;
}
.nexp-auth-form-heading p {
  max-width: 390px;
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
}
.nexp-auth-field {
  display: grid;
  gap: 7px;
}
.nexp-auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
}
.nexp-auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
button.nexp-auth-primary {
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 18px;
  text-transform: uppercase;
}
.nexp-auth-overlay {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform .72s cubic-bezier(.22,.8,.2,1);
}
#authView.is-register .nexp-auth-overlay { transform: translateX(-100%); }
.nexp-auth-overlay-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.2), transparent 17rem),
    linear-gradient(145deg, #2dbcf6 0%, #5068ff 48%, #974aff 76%, #dc46bf 115%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path .72s cubic-bezier(.22,.8,.2,1);
}
#authView.is-register .nexp-auth-overlay-surface {
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}
.nexp-auth-overlay-surface::before {
  content: "";
  position: absolute;
  width: min(39vw, 480px);
  aspect-ratio: 1;
  right: -15%;
  bottom: -18%;
  opacity: .11;
  background: url("assets/icona-nexp-wh.png") center / contain no-repeat;
  transform: rotate(-8deg);
}
.nexp-auth-overlay-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.12), transparent 64%);
}
.nexp-auth-overlay-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 66px;
  text-align: center;
  transition: opacity .3s ease, transform .58s cubic-bezier(.22,.8,.2,1);
}
.nexp-auth-login-invite {
  opacity: 0;
  transform: translateX(34%);
  pointer-events: none;
}
#authView.is-register .nexp-auth-register-invite {
  opacity: 0;
  transform: translateX(-34%);
  pointer-events: none;
}
#authView.is-register .nexp-auth-login-invite {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nexp-auth-overlay-logo {
  width: min(180px, 52%);
  display: block;
  margin-bottom: 28px;
}
.nexp-auth-kicker {
  margin-bottom: 10px;
  color: rgba(255,255,255,.82);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nexp-auth-overlay-content h2 {
  margin: 0 0 14px;
  color: #fff !important;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.nexp-auth-overlay-content p {
  max-width: 380px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.82) !important;
  font-size: .82rem;
  line-height: 1.65;
}
button.nexp-auth-switch {
  width: auto;
  min-width: 168px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(4,7,18,.12) !important;
  box-shadow: 0 12px 30px rgba(4,7,18,.14);
  text-transform: uppercase;
}
button.nexp-auth-switch:hover {
  border-color: #fff !important;
  background: rgba(4,7,18,.23) !important;
}
.nexp-auth-status {
  position: absolute;
  z-index: 20;
  left: 32px;
  bottom: 20px;
  width: calc(50% - 64px);
  margin: 0 !important;
  transition: left .72s cubic-bezier(.22,.8,.2,1);
}
#authView.is-register .nexp-auth-status { left: calc(50% + 32px); }

@media (max-width: 1100px) {
  .recharge-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nexp-auth-form-panel { padding-inline: 36px; }
  .nexp-auth-overlay-content { padding-inline: 50px; }
}

@media (max-width: 760px) {
  body { padding: 86px 12px 28px !important; }
  .portal-header { min-height: 68px; grid-template-columns: 105px 1fr auto; gap: 10px; padding: 12px 14px; }
  .portal-logo { width: 100px; }
  .portal-context { justify-self: start; }
  .portal-context span, .portal-context strong::before { display: none; }
  .portal-context strong { font-size: .56rem; }
  .portal-site-link { padding: 8px 10px; font-size: .5rem; }
  .portal-header-actions { gap: 7px; }
  .portal-language-toggle { width: 36px; height: 36px; }
  .portal-language-menu { right: 0; }
  .portal-mark { width: 115vw; right: -58vw; }
  .login-box { margin-top: 30px !important; }
  #authView.nexp-auth-shell {
    height: auto;
    min-height: 690px;
    margin-top: 24px !important;
    padding: 194px 0 76px !important;
    border-radius: 24px;
  }
  #authView.nexp-auth-shell::before { mask-image: none; }
  .nexp-auth-form-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 420px;
    display: none;
    padding: 28px 24px;
    opacity: 1;
    transform: none !important;
  }
  .nexp-auth-login-panel { display: flex; }
  #authView.is-register .nexp-auth-login-panel { display: none; }
  #authView.is-register .nexp-auth-register-panel { display: flex; }
  .nexp-auth-form-panel form { max-width: 470px; }
  .nexp-auth-overlay,
  #authView.is-register .nexp-auth-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 194px;
    transform: none;
  }
  .nexp-auth-overlay-surface,
  #authView.is-register .nexp-auth-overlay-surface {
    clip-path: none;
  }
  .nexp-auth-overlay-content {
    justify-content: center;
    padding: 24px 28px;
  }
  .nexp-auth-overlay-logo {
    width: 112px;
    margin-bottom: 10px;
  }
  .nexp-auth-kicker { margin-bottom: 5px; }
  .nexp-auth-overlay-content h2 {
    margin-bottom: 6px;
    font-size: 1.62rem;
  }
  .nexp-auth-overlay-content p {
    max-width: 440px;
    margin-bottom: 12px;
    font-size: .7rem;
    line-height: 1.4;
  }
  button.nexp-auth-switch {
    min-width: 142px;
    padding: 9px 20px;
  }
  .nexp-auth-status,
  #authView.is-register .nexp-auth-status {
    left: 18px;
    bottom: 16px;
    width: calc(100% - 36px);
  }
  .top-bar, .topbar { padding: 14px; }
  #clientView > .card { padding: 12px !important; }
  .client-dashboard-layout { grid-template-columns: 1fr; min-height: 0; }
  .client-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-sidebar-title { grid-column: 1 / -1; }
  .client-module-stage { padding: 15px; }
  .client-module-empty { min-height: 300px; }
  .client-panel-heading { align-items: flex-start; }
  .client-download-card { grid-template-columns: 72px minmax(0, 1fr); }
  .client-download-icon { width: 72px; height: 72px; }
  .client-download-action { width: 100%; grid-column: 1 / -1; }
  .collaborator-card { grid-template-columns: 1fr; }
  .collaborator-card-actions { justify-content: flex-start; }
  .venue-gallery-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .venue-management-card { grid-template-columns: 68px minmax(0, 1fr); }
  .venue-management-card-logo { width: 68px; height: 68px; }
  .venue-management-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .recharge-checkout-bar { align-items: stretch; flex-direction: column; }
  button.paypal-button { width: 100%; }
}

@media (max-width: 430px) {
  .portal-context { display: none; }
  .portal-header { grid-template-columns: 1fr auto; }
  .portal-site-link { display: none; }
  #authView.nexp-auth-shell {
    min-height: 720px;
    padding-top: 184px !important;
  }
  .nexp-auth-form-panel {
    min-height: 455px;
    padding-inline: 18px;
  }
  .nexp-auth-name-grid { grid-template-columns: 1fr; }
  #authView .nexp-auth-form-heading h1 { font-size: 2.25rem !important; }
  .nexp-auth-overlay,
  #authView.is-register .nexp-auth-overlay { height: 184px; }
  .nexp-auth-overlay-content { padding: 20px 18px; }
  .nexp-auth-overlay-content p {
    max-width: 290px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .client-sidebar { grid-template-columns: 1fr; }
  .client-sidebar-title { grid-column: auto; }
  .recharge-package-grid { grid-template-columns: 1fr; }
  .client-panel-heading { display: grid; }
  .client-download-card { grid-template-columns: 1fr; }
  .client-download-icon { width: 68px; height: 68px; }
  .client-download-title-row { display: grid; }
  .client-download-version { width: fit-content; }
  .client-download-action { grid-column: auto; }
  .venue-form-heading,
  .venue-map-tools { align-items: stretch; flex-direction: column; }
  .venue-form-grid { grid-template-columns: 1fr; }
  .venue-form-grid .full { grid-column: auto; }
  .venue-map-button { width: 100%; text-align: center; }
  .venue-gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venue-management-card { grid-template-columns: 58px minmax(0, 1fr); }
  .venue-management-card-logo { width: 58px; height: 58px; border-radius: 13px; }
}
