    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
    }
    button,
    input,
    textarea,
    select {
      font-family: inherit;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
    }
    body {
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #0f172a;
      color: #e5e7eb;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100dvh;
      margin: 0;
      background-image: url('/img/background-app.png');
      background-repeat: no-repeat;
      background-size: cover;
    }
    #globalAppLoader {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background:
        radial-gradient(circle at top, rgba(34, 197, 94, 0.1), transparent 40%),
        radial-gradient(circle at bottom, rgba(14, 165, 233, 0.1), transparent 45%),
        rgba(2, 6, 23, 1);
      backdrop-filter: blur(14px);
      transition: opacity 0.28s ease, visibility 0s linear 0.28s;
    }
    #globalAppLoader.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .global-loader-card {
      width: min(100%, 320px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 26px 24px;
      border-radius: 22px;
      text-align: center;
    }
    .global-loader-logo {
      width: min(120px, 12vw);
      height: auto;
      display: block;
      animation: global-loader-logo-bounce 2.2s ease-in-out infinite;
      transform-origin: center bottom;
    }
    .global-loader-spinner,
    .inline-loader-spinner {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 3px solid rgba(148, 163, 184, 0.2);
      border-top-color: #22c55e;
      border-right-color: #38bdf8;
      animation: spin 0.9s linear infinite;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .inline-loader-spinner {
      width: 28px;
      height: 28px;
      border-width: 2px;
    }
    .global-loader-text {
      font-size: 0.92rem;
      font-weight: 600;
      color: #cbd5e1;
      line-height: 1.5;
    }
    /* Nasconde la scrollbar di default e definisce la larghezza */
    body::-webkit-scrollbar {
      width: 5px; /* Rendi la barra verticale sottilissima (5px di larghezza) */
      height: 5px; /* Rendi la barra orizzontale sottilissima */
    }
    /* Stilizza il "pollice" (la parte che si muove) */
    body::-webkit-scrollbar-thumb {
      background-color: #888; /* Colore del pollice (es. grigio) */
      border-radius: 20px; /* Rendi i bordi arrotondati */
    }
    /* Stilizza il "binario" (lo sfondo della barra) */
    body::-webkit-scrollbar-track {
      background-color: #f1f1f1; /* Colore del binario (es. grigio chiaro) */
    }
    /* Cambia il colore del pollice quando ci si passa sopra con il mouse */
    body::-webkit-scrollbar-thumb:hover {
      background-color: #555;
    }
    .hide-scrollbar {
      overflow-y: auto;

      /* Firefox */
      scrollbar-width: none;

      /* IE / Edge legacy */
      -ms-overflow-style: none;
    }

    /* Chrome, Safari */
    .hide-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .app {
      --app-pad-top: 15px;
      --app-pad-right: 15px;
      --app-pad-bottom: 5px;
      --app-pad-left: 15px;
      --swipe-feedback-opacity: 0;
      --swipe-feedback-bottom: 0px;
      background: #051023;
      background-image: linear-gradient(to bottom, #0E2642, #020617);
      border-radius: 16px;
      padding: var(--app-pad-top) var(--app-pad-right) var(--app-pad-bottom) var(--app-pad-left);
      width: 100%;
      max-width: 420px;
      height: 100dvh;
      max-height: 85dvh;
      box-shadow: 0 25px 50px rgba(0,0,0,0.5);
      border: 0px solid #374151;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      user-select: none;
      position: relative;
      isolation: isolate;
    }
    .app::after {
      content: "";
      position: absolute;
      inset: 0 0 var(--swipe-feedback-bottom) 0;
      background: transparent;
      opacity: var(--swipe-feedback-opacity);
      pointer-events: none;
      transition: opacity 0.18s ease-out;
      will-change: opacity;
      z-index: 3;
    }
    .app.swipe-feedback-like::after {
      background: linear-gradient(90deg, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 0) 58%, rgba(34, 197, 94, 0.8) 100%);
    }
    .app.swipe-feedback-dislike::after {
      background: linear-gradient(90deg, rgba(193, 68, 68, 0.8) 0%, rgba(193, 68, 68, 0) 42%, rgba(193, 68, 68, 0) 100%);
    }
    .app.swipe-feedback-instant::after {
      transition: none;
    }
    .auth-logo {
      width: 100%;
      display: flex;
      justify-content: center;
      margin: 0;
      flex-shrink: 0;
    }

    .auth-logo img {
      width: 65%;
      max-width: 170px;
      height: auto;
      display: block;
      margin: 0 0 1.75rem;
    }
    .auth-logo-home img {
      margin-bottom: 1.75rem;
    }
    .welcome-section {
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    .welcome-panel,
    #loginCodeForm {
      width: min(100%, 340px);
      margin: 0 auto;
    }
    #loginForm {
      width: min(100%, 380px);
      margin: 0 auto;
    }
    #loginForm > button.primary,
    #loginForm > button.secondary {
      width: min(100%, 340px);
      margin-left: auto;
      margin-right: auto;
    }
    .welcome-panel {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    .welcome-actions {
      width: 100%;
    }
    .welcome-actions .subtitle {
      margin: 0 0 1.5rem;
      line-height: 1.55;
      font-size: 0.67rem;
      font-weight: 700;
      color: #dbeafe;
    }
    .welcome-actions .subtitle a {
      color: #dbeafe;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .welcome-actions .subtitle a:hover,
    .welcome-actions .subtitle a:focus-visible {
      color: #ffffff;
    }

    h1 {
      font-size: 1.4rem;
      margin: 0 0 4px;
      text-align: center;
    }
    .subtitle {
      font-size: 0.85rem;
      color: #9ca3af;
      text-align: center;
      margin-bottom: 16px;
    }
    .auth-section {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    @media (prefers-reduced-motion: no-preference) {
      #welcomeSection,
      #loginSection,
      #loginCodeSection,
      #emailPendingSection,
      #registerSuccessSection,
      .auth-overlay-screen,
      .register-flow-copy,
      .register-step-panel {
        transition: opacity 0.2s ease;
      }
      .auth-section.is-auth-fade-entering,
      .register-flow-copy.is-register-step-fade-entering,
      .register-step-panel.is-register-step-fade-entering {
        opacity: 0;
      }
    }
    .auth-bottom-cta-host {
      position: relative;
      flex: 1;
      min-height: 0;
      justify-content: center;
    }
    .auth-logo-baseline-section {
      justify-content: flex-start;
      padding-top: var(--auth-logo-baseline-offset, 0px);
      box-sizing: border-box;
    }
    .auth-register-bottom-cta-host {
      position: relative;
    }
    .has-auth-bottom-cta-reserve {
      padding-bottom: var(--auth-bottom-cta-reserve, 0px);
      box-sizing: border-box;
    }
    .auth-bottom-cta-stack {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    .auth-bottom-cta-dock {
      position: absolute;
      left: 0;
      right: 0;
      bottom: calc(
        var(--auth-bottom-cta-gap, 0px) + var(--auth-keyboard-offset, 0px)
      );
      display: flex;
      justify-content: center;
      pointer-events: none;
      z-index: 4;
    }
    .auth-bottom-cta-dock[hidden] {
      display: none;
    }
    .auth-bottom-cta-dock-inner {
      width: min(100%, var(--auth-bottom-cta-width, 100%));
      display: flex;
      flex-direction: column;
      align-items: stretch;
      pointer-events: auto;
    }
    .auth-bottom-cta-dock-inner > .auth-bottom-cta-stack,
    .auth-bottom-cta-dock-inner > .welcome-actions,
    .auth-bottom-cta-dock-inner > .register-step-actions,
    .auth-bottom-cta-dock-inner > .primary,
    .auth-bottom-cta-dock-inner > .auth-bottom-cta-feedback {
      width: 100%;
    }
    .auth-bottom-cta-dock-inner > .auth-bottom-cta-feedback.form-error,
    .auth-bottom-cta-dock-inner > .auth-bottom-cta-feedback.email-change-info {
      margin: 0 0 8px;
    }
    .auth-bottom-cta-dock-inner > .auth-bottom-cta-feedback:empty {
      display: none;
    }
    .verify-wait {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: min(100%, 380px);
      margin: 0 auto;
      box-sizing: border-box;
      text-align: center;
      padding: 10px 16px 0;
    }
    .verify-wait .icon {
      width: 78px;
      height: 78px;
      border-radius: 18px;
      background: rgba(34,197,94,0.1);
      border: 1px solid #14532d;
      display: grid;
      place-items: center;
      color: #22c55e;
      font-size: 2rem;
      box-shadow: 0 12px 30px rgba(34,197,94,0.15);
    }
    .verify-wait h1 {
      margin: 8px 0 4px 0;
    }
    .verify-wait .desc {
      color: #cbd5e1;
      font-size: 0.92rem;
      margin: 0 0 6px 0;
    }
    .verify-wait .cta {
      width: 100%;
      max-width: 280px;
    }
    .register-success-copy {
      max-width: 300px;
    }
    #viewAuth {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 10px;
      position: relative;
      overflow: hidden;
    }
    .login-app-loader {
      position: absolute;
      top: var(--app-pad-top);
      right: var(--app-pad-right);
      bottom: var(--app-pad-bottom);
      left: var(--app-pad-left);
      z-index: 40;
      padding: 5px 10px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background-image: linear-gradient(to bottom, #0E2642, #020617);
      transition: opacity 0.12s ease, visibility 0s linear 0.12s;
    }
    .login-app-loader.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.18s ease, visibility 0s;
    }
    .login-app-loader[hidden] {
      display: none;
    }
    /* Mirror the empty Turnstile row so both auth spinners sit at the same height. */
    .login-app-loader .auth-bot-verification-card::after {
      content: '';
      display: block;
      align-self: stretch;
      height: 0;
      margin-top: 2px;
      margin-bottom: 10px;
      flex-shrink: 0;
    }
    .register-flow-loader {
      position: absolute;
      inset: 0;
      z-index: 32;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background: linear-gradient(to bottom, rgba(14, 38, 66, 1), rgba(2, 6, 23, 1));
      transition: none;
    }
    .register-flow-loader.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: none;
    }
    .register-flow-loader[hidden] {
      display: none;
    }
    .register-flow-loader-card {
      width: min(100%, 270px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 5px;
      border-radius: 24px;
      text-align: center;
    }
    .register-flow-loader-text {
      color: #e2e8f0;
      font-size: 0.92rem;
      font-weight: 600;
      line-height: 1.45;
    }
    .auth-overlay-screen {
      position: absolute;
      inset: 0;
      padding: 5px 10px;
      opacity: 0;
      pointer-events: none;
      z-index: 20;
      background-image: linear-gradient(to bottom, #0E2642, #020617);
    }
    .auth-overlay-screen.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .auth-bot-verification-stage {
      min-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
    }
    .auth-bot-verification-card {
      width: min(100%, 340px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 28px 24px;
      text-align: center;
    }
    .auth-bot-verification-card h1 {
      margin: 0;
      font-size: 1.2rem;
      line-height: 1.2;
    }
    .auth-bot-verification-message {
      max-width: 28ch;
      margin: 0;
    }
    .auth-bot-verification-turnstile {
      width: 100%;
      margin: 0;
    }
    #registerTypeSection[aria-busy="true"],
    #registerSection[aria-busy="true"] #registerSectionContent {
      pointer-events: none;
      user-select: none;
    }
    .register-section-content {
      display: flex;
      flex-direction: column;
      min-height: 0;
      height: 100%;
      position: relative;
    }
    .register-section-content.is-busy {
      filter: saturate(0.84);
    }
    .auth-switch {
      width: 100%;
      margin-top: 6px;
    }
    .field {
      margin-bottom: 10px;
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .turnstile-field {
      width: 100%;
      justify-content: center;
      margin-top: 2px;
    }
    .turnstile-slot {
      width: 100%;
      min-height: 0;
    }
    label {
      font-size: 0.8rem;
      color: #9ca3af;
      min-width: 110px;
    }
    input, select {
      flex: 1;
      margin: 3px;
      padding: 8px 44px 8px 12px;
      border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: #172941;
      color: #e5e7eb;
      font-size: 0.85rem;
      user-select: text;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
    }
    input:focus-visible,
    select:focus-visible {
      outline: 3px solid #5D82B3;
    }
    select option {
      background-color: #051023;
    }
    .select-field {
      position: relative;
    }
    .register-field {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      margin-bottom: 16px;
      position: relative;
    }
    .register-field-line input,
    .register-field-line select,
    .register-field-textarea textarea {
      width: 100%;
      margin: 0;
      padding: 10px 0 12px;
      border: 0;
      border-bottom: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: #f8fafc;
      font-size: 1rem;
      line-height: 1.35;
    }
    .register-field-line input::placeholder,
    .register-field-line select,
    .register-field-textarea textarea::placeholder {
      color: rgba(148, 163, 184, 0.95);
    }
    .register-field-line input:focus,
    .register-field-line select:focus,
    .register-field-textarea textarea:focus {
      outline: none;
      border-bottom-color: #38bdf8;
      box-shadow: inset 0 -1px 0 #38bdf8;
    }
    .register-field-line input.input-invalid,
    .register-field-line select.input-invalid,
    .register-field-textarea textarea.input-invalid {
      border-bottom-color: #f87171;
      box-shadow: inset 0 -1px 0 #f87171;
    }
    .register-field-textarea textarea {
      min-height: 144px;
      resize: vertical;
    }
    #registerStepBio .register-field-textarea textarea {
      min-height: 35px;
      height: 25px;
      padding: 0 0 2px;
      line-height: 1.35;
      resize: none;
      overflow: hidden;
      box-sizing: border-box;
    }
    .register-select-field {
      position: relative;
    }
    .register-select-field .app-icon {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      color: #7dd3fc;
      pointer-events: none;
    }
    .register-switch-field {
      margin-bottom: 16px;
      padding: 4px 0 10px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }
    .register-switch-field label:first-child {
      min-width: 0;
      color: #e2e8f0;
      font-size: 0.9rem;
    }
    .register-step-panel > .primary,
    .register-step-actions > button {
      width: 100%;
    }
    .register-step-panel .primary:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }
    .register-date-row {
      align-items: stretch;
      gap: 10px;
    }
    .register-date-label {
      font-size: 0.8rem;
      color: #9ca3af;
      letter-spacing: 0.03em;
    }
    .register-date-input {
      position: relative;
      display: block;
      width: 100%;
      border-bottom: 0px solid rgba(148, 163, 184, 0.35);
      padding: 2px 0 14px;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .register-date-input.is-focused {
      border: 0;
      /* border-bottom-color: #38bdf8;
      box-shadow: inset 0 -1px 0 #38bdf8; */
    }
    .register-date-input.input-invalid {
      border-bottom-color: #f87171;
      box-shadow: inset 0 -1px 0 #f87171;
    }
    .register-date-capture {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0.01;
      border: 0;
      background: transparent;
      color: transparent;
      caret-color: transparent;
      cursor: text;
      z-index: 2;
      box-shadow: none;
    }
    .register-date-capture:focus {
      outline: none;
    }
    .register-date-slots {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-height: 54px;
      pointer-events: none;
    }
    .register-date-slot {
      width: 100%;
      min-width: 0;
      height: 40px;
      display: grid;
      place-items: center;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(15, 23, 42, 0.28);
      color: #f8fafc;
      font-size: 1.15rem;
      font-weight: 700;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }
    .register-date-slot:empty::after {
      /* content: '•'; */
      color: rgba(148, 163, 184, 0.28);
      font-size: 1rem;
      font-weight: 700;
    }
    .register-date-slot.is-active {
      border-color: #38bdf8;
      /* background: rgba(14, 165, 233, 0.14); */
      transform: translateY(-1px);
    }
    .register-date-input.input-invalid .register-date-slot {
      border-color: rgba(248, 113, 113, 0.3);
    }
    .register-date-separator {
      color: rgba(148, 163, 184, 0.5);
      font-size: 2.2rem;
      font-weight: 100;
      flex: 0 0 auto;
    }
    .register-code-field {
      margin-bottom: 18px;
    }
    .register-code-input {
      position: relative;
      display: block;
      width: 100%;
      padding: 2px 0 14px;
      cursor: text;
    }
    .register-code-capture {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0.01;
      border: 0;
      background: transparent;
      color: transparent;
      caret-color: transparent;
      cursor: text;
      z-index: 2;
      box-shadow: none;
    }
    .register-code-capture:focus {
      outline: none;
    }
    .register-code-slots {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 54px;
      pointer-events: none;
    }
    .register-code-slot {
      width: 100%;
      min-width: 0;
      height: 50px;
      display: grid;
      place-items: center;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(15, 23, 42, 0.28);
      color: #f8fafc;
      font-size: 1.15rem;
      font-weight: 700;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }
    .register-code-slot.is-active {
      border-color: #38bdf8;
      transform: translateY(-1px);
    }
    .register-code-capture.input-invalid ~ .register-code-slots .register-code-slot {
      border-color: rgba(248, 113, 113, 0.3);
    }
    .register-location-field {
      gap: 0;
    }
    .register-location-results {
      position: relative;
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      width: auto;
      max-height: 220px;
      padding-right: 0;
      border-radius: 0 0 14px 14px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .register-location-results[hidden] {
      display: none;
    }
    .register-location-option {
      width: 100%;
      margin: 0;
      padding: 10px 12px;
      /* border: 1px solid rgba(148, 163, 184, 0.14); */
      border-radius: 0;
      background: transparent;
      color: #e2e8f0;
      text-align: left;
      font-size: 0.92rem;
      line-height: 1.35;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }
    .register-location-option strong {
      color: #f8fafc;
      font-weight: 700;
    }
    .register-location-option:hover,
    .register-location-option:focus-visible,
    .register-location-option.is-active {
      outline: none;
      border-color: rgba(56, 189, 248, 0.45);
      background: rgba(14, 165, 233, 0.14);
      transform: translateY(-1px);
    }
    .register-location-empty {
      padding: 10px 0 2px;
      color: #94a3b8;
      font-size: 0.82rem;
      line-height: 1.45;
    }
    .app-icon {
      width: 1.2em;
      height: 1.2em;
      display: inline-block;
      flex-shrink: 0;
      vertical-align: middle;
    }
    .select-field .app-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: #64748b;
      font-size: 18px;
    }
    button {
      border-radius: 999px;
      padding: 10px 14px;
      border: none;
      font-size: 0.9rem;
      cursor: pointer;
    }
    button.primary {
      background: #22c55e;
      color: #052e16;
      font-weight: 700;
      font-size: 12px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      border-radius: 10px;
      place-items: center;
      border: none;
      text-transform: uppercase;
      letter-spacing: .05em;
      outline: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
      box-shadow: 0 5px #1f8946, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
      margin: 0 0 15px;
    }
    button.primary:active {
      background: #22c55e;
      box-shadow: none;
      text-shadow: none;
      transform: translateY(3px);
      box-shadow: 0 2px #1f8946, 0 2px 1px hsla(0, 0%, 0%, .1), 0 2px 1px hsla(0, 0%, 0%, .1);
    }
    button.secondary {
      background: #243f5d;
      color: #d1d1d1;
      font-weight: 600;
      font-size: 12px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      border-radius: 10px;
      place-items: center;
      border: none;
      text-transform: uppercase;
      letter-spacing: .08em;
      outline: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
      box-shadow: 0 5px #172941, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
      margin: 0 auto 15px auto;
    }
    button.secondary:active {
      background: #243f5d;
      box-shadow: none;
      text-shadow: none;
      transform: translateY(3px);
      box-shadow: 0 2px #172941, 0 2px 1px hsla(0, 0%, 0%, .1), 0 2px 1px hsla(0, 0%, 0%, .1);
    }
    button.danger {
      color: #fee2e2;
      font-weight: 600;
      font-size: 12px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      border-radius: 10px;
      place-items: center;
      border: none;
      text-transform: uppercase;
      letter-spacing: .05em;
      outline: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
      margin: 0 auto 15px auto;
      background: #f87171;
      box-shadow: 0 4px #c14444, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
    }
    button.danger:active {
      background: #b91c1c;
      box-shadow: none;
      text-shadow: none;
      transform: translateY(3px);
      box-shadow: 0 2px #7f1d1d, 0 2px 1px hsla(0, 0%, 0%, .1), 0 2px 1px hsla(0, 0%, 0%, .1);
    }
    .btn-back {
      width: 38px;
      height: 38px;
      color: #e5e7eb;
      padding: 0;
      display: grid;
      place-items: center;
      cursor: pointer;
      text-align: center;
      border-radius: 999px;
      font-size: 1em !important;
      border: none;
      outline: none;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
      background: rgba(15, 23, 42, 0.45) !important;
    }
    .btn-back:active {
      box-shadow: none;
      text-shadow: none;
      transform: translateY(3px);
    }
    .large-type-btn {
     width: 10rem;
      height: 10rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
      border-radius: 24px;
      background: #1b3047;
      background-image: linear-gradient(to bottom, #132e4b, #243f5d);
      place-items: center;
      color: white;
      border: none;
      font-size: 1.2em;
      text-transform: uppercase;
      letter-spacing: .15em;
      outline: none;
      font-weight: 900;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
      font-family: 'Bangers', sans-serif;
      text-shadow: 0 1px rgba(15, 15, 15, 1), 0 2px rgba(15, 15, 15, 1), 0 3px rgba(15, 15, 15, 1), 0 3px 5px hsl(0, 0%, 0%, .4), 0 4px 5px rgba(15, 15, 15, 0);
      box-shadow: 0 10px #122135, 0 20px 8px hsla(0, 0%, 0%, .4), 0 14px 35px hsla(0, 0%, 0%, .2);
    }

    .large-type-btn::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
      transform: translateX(-160%) skewX(-20deg);
      opacity: 0;
      pointer-events: none;
    }

    .large-type-btn:hover::after {
      animation: large-type-btn-shine .32s ease;
    }

    @keyframes large-type-btn-shine {
      0% {
        opacity: 0;
        transform: translateX(-160%) skewX(-20deg);
      }
      20% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translateX(160%) skewX(-20deg);
      }
    }

    .large-type-btn:active {
      box-shadow: none;
      text-shadow: none;
      transform: translateY(8px);
      text-shadow: 0 1px rgba(15, 15, 15, 1), 0 1px rgba(15, 15, 15, 1), 0 1px rgba(15, 15, 15, 1), 0 1px 2px hsl(0, 0%, 0%, .4), 0 4px 5px rgba(15, 15, 15, 0);
      box-shadow: 0 2px #122135, 0 7px 2px hsla(0, 0%, 0%, .2), 0 7px 15px hsla(0, 0%, 0%, .1);
    }

    .large-type-btn:focus-visible {
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45), 0 12px #0b1224, 0 23px 10px hsla(0, 0%, 0%, .4), 0 25px 50px hsla(0, 0%, 0%, .2);
    }

    .large-type-btn img {
      width: 5rem;
      height: auto;
      object-fit: contain;
    }
    .register-h1 {
      font-size: 1.2em;
      font-weight: normal;
    }
    .register-type-stage {
      flex: 1;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 12px;
    }
    .register-type {
      display: flex; 
      flex-direction: column; 
      gap: 50px; 
      align-items: center;
      width: min(100%, 380px);
      margin: 0 auto 4em;
    }
    .register-flow-header {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin-bottom: 6px;
      flex-shrink: 0;
    }
    .register-flow-stage {
      flex: 1;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 12px;
    }
    .register-flow-body {
      width: min(100%, 380px);
      max-width: 100%;
      max-height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }
    .register-flow-progress {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 0;
    }
    .register-flow-copy {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      margin-bottom: 0;
    }
    .register-step-counter {
      font-size: 0.72rem;
      letter-spacing: 0.22em;
      color: #7dd3fc;
      text-align: center;
      font-weight: 800;
    }
    .register-flow-copy h1 {
      margin-bottom: 0;
    }
    .register-step-indicator {
      display: flex;
      gap: 8px;
      justify-content: center;
      align-items: center;
    }
    .register-step-dot {
      width: 11px;
      height: 11px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.25);
      border: 1px solid rgba(148, 163, 184, 0.3);
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }
    .register-step-dot.is-active {
      background: #22c55e;
      border-color: #22c55e;
      transform: scale(1.05);
    }
    .register-step-dot.is-complete {
      background: rgba(34, 197, 94, 0.28);
      border-color: rgba(34, 197, 94, 0.5);
    }
    .register-step-description {
      margin-bottom: 0;
    }
    .register-step-description[hidden] {
      display: none;
    }
    .register-step-panel {
      display: flex;
      flex-direction: column;
      gap: 2px;
      width: 100%;
      margin-bottom: 2em;
    }
    .register-step-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 4px;
    }
    .register-link-button {
      width: auto;
      align-self: center;
      padding: 0;
      margin: 0;
      border: 0;
      background: none;
      box-shadow: none;
      color: #7dd3fc;
      font-size: 0.84rem;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: none;
      cursor: pointer;
    }
    .register-link-button:hover,
    .register-link-button:focus-visible {
      text-decoration: underline;
      outline: none;
    }
    .register-link-button:active {
      transform: none;
    }
    .register-otp-copy {
      margin: 0;
      color: #cbd5e1;
      font-size: 0.85rem;
      line-height: 1.5;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    #registerOtpEmailLabel {
      color: #f8fafc;
      font-weight: 700;
    }
    .register-inline-note {
      margin: -2px 0 10px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.14);
      color: #cbd5e1;
      font-size: 0.78rem;
      line-height: 1.45;
    }
    .card-stack {
      position: relative;
      margin-top: 5px;
      flex: 0 0 auto;
      min-height: 0;
      height: calc(86dvh - 190px);
    }
    .card-stack.is-empty .card {
      visibility: hidden;
      pointer-events: none;
    }
    .card-stack.is-empty {
      overflow: hidden;
      border-radius: 18px;
      background-image: url('/img/soccer-field.svg');
      background-position: center center, center center;
      background-repeat: no-repeat, no-repeat;
      background-size: cover, cover;
    }
    .swipe-empty-state {
      position: absolute;
      inset: 0;
      z-index: 4;
      padding: 16px;
      pointer-events: none;
    }
    .swipe-empty-state[hidden] {
      display: none;
    }
    .swipe-empty-copy {
      position: absolute;
      left: 0;
      top: calc(50% + 78px);
      width: 100%;
      text-align: center;
      font-size: 0.8rem;
      line-height: 1.45;
      color: #d1d5db;
      pointer-events: none;
      z-index: 2;
      animation: svinco-fade-in 0.24s ease-out;
    }
    .swipe-empty-copy[hidden] {
      display: none;
    }
    .skeleton-shimmer {
      background:
        linear-gradient(
          110deg,
          rgba(30, 41, 59, 0.92) 10%,
          rgba(71, 85, 105, 0.78) 38%,
          rgba(30, 41, 59, 0.92) 66%
        );
      background-size: 220% 100%;
      animation: svinco-shimmer 1.2s linear infinite;
    }
    .skeleton-line {
      height: 11px;
      border-radius: 999px;
      width: 100%;
    }
    .skeleton-line.short {
      width: 38%;
    }
    .skeleton-line.medium {
      width: 64%;
    }
    .skeleton-line.long {
      width: 100%;
    }
    .skeleton-card {
      border-radius: 14px;
      border: 1px solid rgba(55, 65, 81, 0.8);
      background: rgba(2, 6, 23, 0.82);
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-sizing: border-box;
    }
    .skeleton-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .skeleton-avatar {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      flex: 0 0 auto;
    }
    .skeleton-circle {
      border-radius: 999px;
    }
    .chat-skeleton-stack {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .chat-skeleton-bubble {
      max-width: 78%;
      padding: 10px 12px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      background: rgba(17, 24, 39, 0.96);
      border: 1px solid rgba(55, 65, 81, 0.6);
    }
    .chat-skeleton-bubble.me {
      align-self: flex-end;
      background: rgba(34, 197, 94, 0.12);
      border-color: rgba(34, 197, 94, 0.18);
    }
    .chat-skeleton-bubble.them {
      align-self: flex-start;
    }
    .news-item.news-item-skeleton {
      pointer-events: none;
      gap: 10px;
    }
    @keyframes svinco-shimmer {
      0% {
        background-position: 200% 0;
      }
      100% {
        background-position: -20% 0;
      }
    }
    @keyframes svinco-fade-in {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  .swipe-empty-icon-btn {
      position: absolute;
      top: 49.8%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.35), rgba(5, 18, 35, 0.95));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      box-shadow: 0 10px 28px rgba(34, 197, 94, 0.28);
      pointer-events: auto;
      animation: svinco-breathing 1.8s ease-in-out infinite;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      z-index: 2;
      overflow: visible;
      isolation: isolate;
    }
    .swipe-empty-icon-btn::after {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: inherit;
      border: 1px solid rgba(134, 239, 172, 1);
      opacity: 0;
      transform: scale(0.92);
      pointer-events: none;
    }
    .swipe-empty-icon-btn.is-rippled::after {
      animation: svinco-empty-ripple 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .swipe-empty-icon-btn.is-rippled img {
      animation: svinco-empty-bounce 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .swipe-empty-icon-btn img {
      width: 58px;
      height: 58px;
      object-fit: contain;
    }
    .swipe-empty-icon-btn:focus-visible {
      outline: 3px solid #5D82B3;
      outline-offset: 2px;
    }
    .swipe-empty-icon-btn:disabled {
      cursor: progress;
    }
    .swipe-empty-filters-btn {
      position: absolute !important;
      left: 50%;
      top: calc(50% + 126px);
      transform: translateX(-50%);
      pointer-events: auto;
      border-radius: 999px;
      padding: 10px 18px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #e5e7eb;
      font-weight: 600;
      white-space: nowrap;
    }
    .swipe-empty-filters-btn:focus-visible {
      outline: 3px solid #5D82B3;
      outline-offset: 2px;
    }
    @keyframes svinco-breathing {
      0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 10px 28px rgba(34, 197, 94, 0.24);
      }
      50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 16px 36px rgba(34, 197, 94, 0.38);
      }
    }
    @keyframes svinco-empty-ripple {
      0% {
        opacity: 0.55;
        transform: scale(0.76);
      }
      100% {
        opacity: 0;
        transform: scale(2);
      }
    }
    @keyframes svinco-empty-bounce {
      0%, 100% {
        transform: scale(1);
      }
      38% {
        transform: scale(1.12);
      }
      64% {
        transform: scale(0.96);
      }
    }
    .card {
      padding: 5px;
      padding-bottom: 10px;
      background: transparent;
      border: none;
      min-height: 0;
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .card.top {
      z-index: 2;
      cursor: grab;
      touch-action: pan-y;
      transition: transform 0.25s ease-out;
    }
    .card.top.grabbing {
      cursor: grabbing;
      transition: none;
    }
    .card.back {
      z-index: 1;
      transform: translateY(10px) scale(0.96);
      opacity: 0.7;
      pointer-events: none;
      transition: none;
    }
    .card h2 {
      margin: 0;
      font-size: 1.1rem;
    }
    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.7rem;
      background: #111827;
      border: 1px solid #4b5563;
      color: #e5e7eb;
      margin-right: 6px;
    }
    .muted {
      font-size: 0.8rem;
      color: #9ca3af;
    }
    .text-muted-chat {
      text-align: center;
      margin-top: 1em;
    }
    .loading-spinner {
      animation: spin 1s linear infinite;
      font-size: 1rem;
      color: #9ca3af;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    @keyframes global-loader-logo-bounce {
      0%, 100% { transform: translateY(0) scale(1); }
      28% { transform: translateY(-4px) scale(1.012); }
      44% { transform: translateY(0) scale(0.995); }
      58% { transform: translateY(-2px) scale(1.004); }
      72% { transform: translateY(0) scale(1); }
    }
    .actions {
      display: flex;
      justify-content: center;
      gap: 15px;
      position: relative;
      z-index: 2;
      align-items: center;
    }
    .actions.is-disabled .circle-btn {
      opacity: 0.55;
      cursor: not-allowed;
    }
    .circle-btn {
      width: 64px;
      height: 64px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      border: none;
      cursor: pointer;
      box-shadow: 0 5px 10px rgba(0,0,0,0.4);
      transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    .circle-btn:active {
      transform: translateY(2px) scale(1);
      box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }
    .circle-btn.nope {
      background: #f87171;
      color: #f87171;
      color: #fff;
      box-shadow: 0 3px #c14444, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
    }
    .circle-btn.nope:active {
      box-shadow: 0 1px #c14444, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
      transform: translateY(2px);
    }
    .circle-btn.like {
      background: #22c55e;
      /*color: #052e16;*/
      box-shadow: 0 3px #0c933e, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
      color: #fff;
    }
    .circle-btn.like:active {
      box-shadow: 0 1px #0c933e, 0 5px 3px hsla(0, 0%, 0%, .1), 0 5px 3px hsla(0, 0%, 0%, .1);
      transform: translateY(2px);
    }
    .circle-btn.rewind {
      width: 50px;
      height: 50px;
      background: #111827;
      color: #F5C542;
      font-size: 1.2rem;
      padding: 0;
      border: 1px solid rgba(148, 163, 184, 0.18) !important;
    }
    .circle-btn.rewind .app-icon {
      width: 1.05em;
      height: 1.05em;
    }
    .status {
      margin-top: 10px;
      font-size: 0.8rem;
      text-align: center;
      min-height: 1.2em;
      color: #9ca3af;
    }
    .section {
      margin-top: 0;
      border-top: none;
      padding-top: 0;
    }
    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      color: #9ca3af;
      margin-top: 6px;
      gap: 8px;
      margin: 0;
    }
    .padding-chat {
      padding: 0 5px;
    }
    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-top: 0;
      margin-bottom: 5px;
      color: #e5e7eb;
      text-align: center;
    }
    .second-text {
      bottom: 8.5rem !important;
    }
    .matches-list {
      margin-top: 4px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.8rem;
    }
    .match-item {
      padding: 8px 10px;
      border-radius: 10px;
      background: #020617;
      border: 1px solid #374151;
    }
    .match-item .muted {
      color: #9ca3af;
    }
    .match-overlay {
      position: absolute;
      inset: 0;
      background-color: #22C55E;
      background-image: linear-gradient(to bottom, #22C55E, #013220);
      color: #052e16;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 22px 18px;
      z-index: 999;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .match-overlay.show {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.25s ease, visibility 0s;
    }
    .match-overlay-card {
      width: min(560px, 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      text-align: center;
    }
    .match-animation {
      width: 100%;
      max-width: 540px;
      background-color: transparent;
    }
    .match-animation svg {
      font-family: "Bangers", sans-serif;
      width: 100%;
      height: 100%;
      min-height: 270px;
      position: absolute;
      left: -0.3rem;
      bottom: 9rem;
      z-index: 0
    }
    .match-animation svg text {
      animation: none;
      stroke-width: 2;
      stroke: #26713D;
      font-size: 240px;
      transform: rotate(-6deg);
       /* Safari */
      -webkit-transform: rotate(-6deg);
      /* Firefox */
      -moz-transform: rotate(-6deg);
      /* IE */
      -ms-transform: rotate(-6deg);
       /* Opera */
      -o-transform: rotate(-6deg);
      /* Internet Explorer */
      filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    }
    /* Stato "normale" del testo, quello che vuoi vedere SEMPRE
      sia dopo l'animazione che durante il fade-out */
    .match-animation svg:not(.second-text) text {
      fill: rgba(45,255,121,1);
      stroke: rgba(38,113,61,0);
      stroke-width: 0;
    }

    /* Quando compare l'overlay faccio partire l'animazione */
    .match-overlay.show .match-animation svg:not(.second-text) text {
      animation: stroke 2s forwards;
    }

    @keyframes stroke {
      0%   {
        fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1);
        stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
      }
      70%  {fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1); }
      80%  {fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1); stroke-width: 3; }
      100% {
        fill: rgba(45,255,121,1); stroke: rgba(38,113,61,0);
        stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
      }
    }
    @keyframes strok {
      0%   {
        fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1);
        stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
      }
      70%  {fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1); }
      80%  {fill: rgba(45,255,121,0); stroke: rgba(38,113,61,1); stroke-width: 3; }
      100% {
        fill: rgba(15,15,15,1); stroke: rgba(38,113,61,0);
        stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
      }
    }

    .match-animation svg.second-text text {
      fill: #222;
      stroke: transparent;
    }

    .match-overlay.show .match-animation svg.second-text text {
      animation: strokeShadow 2s forwards;
    }

    @keyframes strokeShadow {
      0%   {
        fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1);
        stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
      }
      70%  {fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1); }
      80%  {fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1); stroke-width: 3; }
      100% {
        fill: rgba(15,15,15,1); stroke: rgba(15,15,15,0);
        stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
      }
    }
    @keyframes strok {
      0%   {
        fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1);
        stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
      }
      70%  {fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1); }
      80%  {fill: rgba(15,15,15,0); stroke: rgba(15,15,15,1); stroke-width: 3; }
      100% {
        fill: rgba(15,15,15,1); stroke: rgba(15,15,15,0);
        stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
      }
  }

    .match-subtitle {
      margin: 0;
      color: #064e3b;
      font-weight: 700;
      font-size: 1rem;
      line-height: 1.4;
    }
    .match-avatars {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      margin-top: 3rem;
      margin-bottom: 6rem;
      flex-wrap: wrap;
    }
    .match-avatar {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
    }
    .match-avatar-circle {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 4px solid rgba(255,255,255,0.6);
      background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
      box-shadow: 0 10px 30px rgba(0,0,0,0.22);
      overflow: hidden;
      position: relative;
      display: grid;
      place-items: center;
      color: #052e16;
      font-weight: 800;
      font-size: 1.2rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .match-avatar-circle.has-photo {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: transparent;
    }
    .match-avatar-label {
      font-weight: 800;
      font-size: 0.7rem;
      color: #fff;
    }
    .match-actions {
      display: flex;
      gap: 10px;
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
      z-index: 1;
    }
    .match-btn {
      border: none;
      padding: 14px 16px;
      border-radius: 50px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
      min-width: 180px;
    }
    .match-btn:active {
      transform: translateY(1px) scale(0.98);
    }
    .match-btn.match-chat {
      background-color: rgba(255, 255, 255, 0.2);
      border: 3px solid rgba(255, 255, 255, 0.6);
      color: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .match-btn.match-continue {
      background: transparent;
      color: #222;
      position: relative;
      bottom: 13rem;
      right: 10rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-size: 20px;
      min-width: 2rem;
      opacity: 0.9;
    }
    .match-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 6px 12px;
      background: rgba(5,46,22,0.12);
      color: #052e16;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.85rem;
      border: 1px solid rgba(5,46,22,0.25);
     }
    .profile-box {
      border-radius: 12px;
      padding: 10px 12px;
      backdrop-filter: blur(8px);
      background: transparent;
      margin-bottom: 2em;
      border: 1px solid rgba(148, 163, 184, 0.18);
    }
    .profile-avatar {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin: 6px 0 12px 0;
    }
    .profile-avatar-circle {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      border: 2px solid #22c55e;
      background: radial-gradient(circle at 25% 25%, rgba(34,197,94,0.18), rgba(14,165,233,0.1)), #0b1224;
      box-shadow: 0 5px 10px rgba(0,0,0,0.2);
      display: grid;
      place-items: center;
      overflow: hidden;
      position: relative;
      transition: border-color 0.2s ease;
    }
    .profile-avatar-circle.is-uploading {
      cursor: progress;
    }
    .profile-avatar-circle.is-photo-loading::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      z-index: 0;
      pointer-events: none;
    }
    .profile-avatar-circle.has-photo {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-color: #38bdf8;
    }
    .profile-avatar-initial {
      font-size: 2.2rem;
      font-weight: 700;
      color: #e5e7eb;
      letter-spacing: 0.03em;
      position: relative;
      z-index: 1;
      transition: opacity 0.2s ease;
    }
    .profile-avatar-circle.is-uploading .profile-avatar-initial {
      opacity: 0.25;
    }
    .profile-avatar-loader {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: inherit;
      background: rgba(11, 18, 36, 0.68);
      backdrop-filter: blur(2px);
      z-index: 2;
      pointer-events: none;
    }
    .profile-avatar-loader[hidden] {
      display: none;
    }
    .profile-avatar-loader .inline-loader-spinner {
      width: 34px;
      height: 34px;
      border-width: 3px;
    }
    .profile-avatar-change {
      background: none;
      border: none;
      color: #93c5fd;
      font-size: 12px;
      cursor: pointer;
      font-weight: 500;
      padding: 2px 6px;
    }
    .profile-avatar-change:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    .register-photo-trigger {
      width: 100%;
    }
    .register-photo-preview {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 10px 5px;
      padding: 5px;
      border: 1px solid rgba(56, 189, 248, 0.1);
      border-radius: 10px;
    }
    .register-photo-preview-frame {
      width: 68px;
      aspect-ratio: 4 / 5;
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0;
      border: 1px solid rgba(56, 189, 248, 0.35);
      background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.85));
      border-radius: 7px;
    }
    #registerStepPhoto .register-photo-preview {
      width: 100%;
      margin-inline: 0;
    }
    #registerStepPhoto .register-photo-preview-frame,
    #registerStepPhoto .register-photo-preview-frame-button {
      width: 100%;
      flex: 1 1 auto;
    }
    .register-photo-preview-frame-button {
      position: relative;
      display: block;
      padding: 0;
      color: inherit;
      cursor: pointer;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }
    .register-photo-preview-frame-button:hover {
      border-color: rgba(56, 189, 248, 0.55);
    }
    .register-photo-preview-frame-button:focus-visible {
      outline: none;
      border-color: rgba(56, 189, 248, 0.75);
      box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
    }
    .register-photo-preview-frame-button:active {
      transform: translateY(1px);
    }
    .register-photo-preview-frame-button.is-empty {
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 17, 36, 1));
    }
    .register-photo-preview-frame-button.is-empty::before {
      content: "+";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(219, 234, 254, 0.38);
      font-size: 2.5rem;
      font-weight: 200;
      line-height: 1;
      pointer-events: none;
      transition: color 0.18s ease, transform 0.18s ease;
    }
    .register-photo-preview-frame-button.is-empty:hover::before,
    .register-photo-preview-frame-button.is-empty:focus-visible::before {
      color: rgba(219, 234, 254, 0.56);
      transform: scale(1.04);
    }
    .register-photo-preview-frame img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .register-photo-preview-frame img[hidden] {
      display: none;
    }
    .register-photo-preview-copy {
      color: #dbeafe;
      font-size: 0.82rem;
      line-height: 1.4;
    }
    .register-photo-trigger.input-invalid,
    .register-photo-preview.input-invalid {
      border-color: #f87171;
      box-shadow: 0 0 0 1px rgba(248,113,113,0.3);
    }
    body.photo-cropper-open {
      overflow: hidden;
    }
    .photo-cropper-modal {
      position: fixed;
      inset: 0;
      z-index: 1400;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }
    .photo-cropper-modal[hidden] {
      display: none;
    }
    .photo-cropper-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(2, 6, 23, 0.78);
      backdrop-filter: blur(6px);
    }
    .photo-cropper-dialog {
      position: relative;
      z-index: 1;
      width: min(520px, 100%);
      border-radius: 24px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(5, 16, 35, 0.98));
      box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .photo-cropper-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
    }
    .photo-cropper-head h3 {
      margin: 0;
      text-align: left;
      font-size: 1.05rem;
    }
    .photo-cropper-description {
      margin: 4px 0 0;
      text-align: left;
      color: #cbd5e1;
      font-size: 0.84rem;
    }
    .photo-cropper-close {
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.12);
      color: #e2e8f0;
      font-size: 1em;
      line-height: 1;
      cursor: pointer;
      flex-shrink: 0;
      padding: 0;
      display: grid;
      place-items: center;
      justify-self: end;
      margin-bottom: 10px;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
    }
    .photo-cropper-close:active {
      box-shadow: none;
      text-shadow: none;
      transform: translateY(3px);
    }
    .photo-cropper-stage-shell {
      position: relative;
      width: 100%;
      border-radius: 22px;
      overflow: hidden;
      background: radial-gradient(circle at top, rgba(14, 165, 233, 0.22), rgba(5, 16, 35, 0.96));
      border: 1px solid rgba(56, 189, 248, 0.18);
      min-height: 420px;
    }
    .photo-cropper-canvas {
      width: 100%;
      height: 420px;
      display: block;
      touch-action: none;
      cursor: grab;
    }
    .photo-cropper-canvas.is-dragging {
      cursor: grabbing;
    }
    .photo-cropper-toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .photo-cropper-zoom-btn {
      width: 44px;
      min-width: 44px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }
    button.photo-cropper-zoom-btn {
      width: 44px;
      min-width: 44px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      margin: 0;
    }
    button.photo-cropper-btn {
      flex: 1 1 140px;
    }
    .photo-cropper-zoom-range {
      flex: 1;
      accent-color: #38bdf8;
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 24px;
      margin: 0;
      padding: 0;
      border: 0;
      outline: none;
      background: transparent;
      box-shadow: none;
      cursor: pointer !important;
      caret-color: transparent;
      user-select: none;
      -webkit-user-select: none;
    }
    .photo-cropper-zoom-range::-webkit-slider-runnable-track {
      height: 4px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.38);
      box-shadow: none;
    }
    .photo-cropper-zoom-range::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      margin-top: -6px;
      border: 0;
      border-radius: 50%;
      background: #60a5fa;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
      cursor: pointer;
    }
    .photo-cropper-zoom-range::-moz-range-track {
      height: 4px;
      border: 0;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.38);
      box-shadow: none;
    }
    .photo-cropper-zoom-range::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border: 0;
      border-radius: 50%;
      background: #60a5fa;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
      cursor: pointer;
    }
    .photo-cropper-zoom-range::-moz-range-progress {
      height: 4px;
      border-radius: 999px;
      background: rgba(96, 165, 250, 0.42);
    }
    .photo-cropper-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    #sectionProfile {
      display: flex;
      flex-direction: column;
    }
    /* contenuto scrollabile del profilo */
    .profile-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-right: 4px;  /* un filo di spazio per non tagliare la scrollbar */
      max-height: calc(97dvh - 210px);
      padding: 5px 5px 0px 5px;
    }
    .news-scroll {
      max-height: calc(85dvh - 190px);
    }
    .register-scroll {
      max-height: calc(95dvh - 189px);
      padding: 0;
    }
    .register-flow-body > .register-scroll {
      width: 100%;
      max-width: 100%;
      flex: 0 1 auto;
      margin: 0 auto;
    }
    #registerForm {
      width: 100%;
    }
    .user-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-right: 4px;  /* un filo di spazio per non tagliare la scrollbar */
      max-height: calc(96dvh - 187px);
    }
    .profile-meta {
      font-size: 0.9rem;
      color: #9ca3af;
      margin-bottom: 8px;
      line-height: 1.3;
      text-align: center;
    }
    .profile-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 15px;
    }
    .profile-row label {
      min-width: 80px;
      font-size: 0.78rem;
      color: #9ca3af;
    }
    .profile-row input,
    .profile-row select {
      flex: 1;
      border-radius: 8px;
      background: rgba(23, 41, 65, 0.6);
      color: #e5e7eb;
      font-size: 0.8rem;
    }
    .profile-row textarea {
      flex: 1;
      border-radius: 8px;
      border: 1px solid #374151;
      background: rgba(15, 23, 42, 0.45);
      color: #e5e7eb;
      font-size: 0.8rem;
      padding: 10px 12px;
      line-height: 1.4;
      resize: vertical;
      min-height: 110px;
    }
    .profile-actions {
      margin-top: 8px;
      text-align: center;
      padding: 15px 0;
      margin-top:10px; 
      display:flex; 
      flex-direction:column; 
      gap:6px;
    }
    .profile-bio-text {
      width: 100%;
      font-size: 0.85rem;
      line-height: 1.45;
      color: #e5e7eb;
      word-break: break-word;
      padding: 15px 20px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-radius: 8px;
      min-height: 5em;
      background: #172941b5;
    }
    .profile-bio-text.is-placeholder {
      color: #9ca3af;
      font-style: italic;
    }
    .profile-bio-counter {
      margin-top: -8px;
      margin-bottom: 6px;
      text-align: right;
      color: #9ca3af;
      font-size: 0.75rem;
    }
    #profileBioBox {
      margin-top: 10px;
    }
    #emailChangeBox {
      margin-top: 10px;
    }
    .email-change-info {
      text-align: center;
      color: #22c55e;
      font-size: 0.82rem;
      min-height: 1.2em;
      margin-top: 4px;
    }
    .email-change-disabled {
      opacity: 0.6;
      pointer-events: none;
    }
    .profile-checkbox {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 6px;
    }
    .profile-checkbox input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    .register-consent-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 6px;
    }
    .register-consent-options {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .register-consent-field {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      padding: 10px 0;
      margin-top: 5px;
      margin-bottom: 0;
    }
    .register-consent-field.is-invalid {
      border-color: #f87171;
      box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
    }
    .register-consent-label {
      min-width: 0;
      width: 100%;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      cursor: pointer;
      color: #cbd5e1;
      line-height: 1.45;
    }
    .register-consent-toggle {
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .register-consent-copy {
      flex: 1;
      min-width: 0;
      font-size: 0.82rem;
    }
    .register-consent-switch {
      flex: 0 0 auto;
      display: inline-flex;
      justify-content: flex-end;
      align-items: center;
    }
    .register-consent-copy a {
      color: #86efac;
      font-weight: 600;
      text-decoration: none;
    }
    .register-consent-copy a:hover,
    .register-consent-copy a:focus-visible {
      text-decoration: underline;
    }
    .register-consent-error {
      min-height: 0;
      margin-left: 0;
      font-size: 0.74rem;
      color: #fca5a5;
      text-align: left;
    }
    #registerInfo {
      margin-top: 4px;
    }
    .auth-bottom-cta-dock-inner > #registerInfo.auth-bottom-cta-feedback {
      margin: 0 0 8px;
    }
    .ios-toggle {
      position: relative;
      width: 54px;
      height: 30px;
      cursor: pointer;
    }
    .ios-toggle input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    .ios-toggle .ios-toggle-track {
      position: relative;
      inset: 0;
      background: #1f2937;
      border-radius: 999px;
      transition: background 0.18s ease, box-shadow 0.18s ease;
      width: 54px;
      height: 30px;
    }
    .ios-toggle .ios-toggle-track::after {
      content: "";
      position: absolute;
      width: 24px;
      height: 24px;
      left: 3px;
      top: 3px;
      background: #e5e7eb;
      border-radius: 50%;
      box-shadow: 0 3px 8px rgba(0,0,0,0.35);
      transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }
    .ios-toggle input:checked + .ios-toggle-track {
      background: #22c55e;
    }
    .ios-toggle input:checked + .ios-toggle-track::after {
      transform: translateX(24px);
      background: #f8fafc;
      box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    }
    .ios-toggle input:focus-visible + .ios-toggle-track {
      box-shadow: 0 0 0 3px rgba(34,197,94,0.4);
    }
    .ios-toggle input:disabled + .ios-toggle-track {
      opacity: 0.6;
      cursor: not-allowed;
    }
    .ios-toggle input:disabled + .ios-toggle-track::after {
      background: #cbd5e1;
    }
    .chat-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      height: auto;
      min-height: calc(30dvh - 190px);
    }
    .chat-carousel {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 5px;
      scroll-behavior: smooth;
      scrollbar-width: none;      /* Firefox */
      -ms-overflow-style: none;   /* Internet Explorer / Edge */
      flex: 1;
      min-width: 0;
      align-items: flex-start;
    }
    .chat-carousel::-webkit-scrollbar {
      display: none;              /* Chrome, Safari, Opera */
    }
    .chat-arrow {
      display: none;
      width: 14px;
      height: 112px;
      border-radius: 0;
      background: transparent;
      color: #e5e7eb;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      padding: 0;
    }
    .chat-arrow:active {
      transform: translateY(1px);
    }
    .chat-card-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      width: 60px;
      flex-shrink: 0;
      cursor: pointer;
    }
    .chat-card {
      width: 100%;
      aspect-ratio: 3 / 4;
      padding: 0;
      border-radius: 12px;
      background: #0b1224;
      /*border: 1px solid rgba(148, 163, 184, 0.18);*/
      position: relative;
      overflow: visible;
      height: 10dvh;
    }
    .chat-badge-count {
      position: absolute;
      top: -5px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      padding: 0px 1.5px 1.5px 0.5px;
      border-radius: 100%;
      background: #c14444;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 400;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0px 2px 1px rgba(0, 0, 0, 0.35);
      z-index: 2;
    }
    .chat-badge-count-bottom {
      right: -14px;
      min-width: 16px;
      height: 16px;
      border-radius: 50px;
      z-index: 2;
    }
    .chat-badges {
      position: absolute;
      top: 6px;
      right: 6px;
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .chat-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-size: 0.7rem;
      padding: 2px 6px;
      font-weight: 600;
      border: 1px solid rgba(255,255,255,0.1);
    }
    .chat-badge.unread-dot {
      width: 10px;
      height: 10px;
      padding: 0;
      border-radius: 50%;
      background: #f87171;
      border: 1px solid #fecaca;
    }
    .chat-badge.match {
      background: #22c55e;
      color: #052e16;
      border-color: #16a34a;
    }
    .chat-card-photo {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 25% 30%, rgba(34,197,94,0.08), rgba(14,165,233,0.12)), #0f172a;
      border-radius: inherit;
      overflow: hidden;
      position: relative;
      z-index: 0;
    }
    .chat-card-photo.is-loading::after,
    .profile-avatar-circle.is-photo-loading::before,
    .match-avatar-circle.is-photo-loading::before,
    .card-hero.is-photo-loading::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }
    .chat-card-photo.is-loading::after,
    .profile-avatar-circle.is-photo-loading::before,
    .match-avatar-circle.is-photo-loading::before,
    .card-hero.is-photo-loading::before {
      background:
        linear-gradient(
          110deg,
          rgba(15, 23, 42, 0.9) 12%,
          rgba(51, 65, 85, 0.62) 38%,
          rgba(15, 23, 42, 0.9) 66%
        );
      background-size: 220% 100%;
      animation: svinco-shimmer 1.2s linear infinite;
    }
    .chat-media-image {
      position: relative;
      z-index: 1;
      opacity: 1;
      transition: opacity 0.22s ease;
    }
    .chat-media-image.is-loading {
      opacity: 0;
    }
    .chat-card-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .chat-photo-fallback {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e5e7eb;
      font-weight: 700;
      letter-spacing: 0.02em;
      background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    }
    .chat-card-name {
      font-size: 0.65rem;
      color: #9ca3af;
      text-align: center;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 600;
    }
    .chat-card-name-row {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      max-width: 100%;
    }
    .chat-card-name-text {
      min-width: 0;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .chat-card-system-badge {
      width: 0.8rem;
      height: 0.8rem;
      flex: 0 0 auto;
      color: #5d82b3;
    }
    .chat-card-wrap.active .chat-card {
      /*border-color: #22c55e;*/
      box-shadow: 0px 0px 0px 2px rgb(12, 34, 60), 0px 0px 0px 4px #1f8946;
    }
    .chat-card-wrap.active .chat-card-name {
      color: #22c55e;
      font-weight: 600;
    }
    .chat-window {
      border-radius: 12px;
      padding: 10px;
      background: rgba(2, 6, 23, 0.1);
      border: 1px solid rgba(148, 163, 184, 0.18);
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 260px;
      height: calc(79dvh - 210px);
      position: relative;
    }
    .chat-window-loader {
      position: absolute;
      inset: 0px 0px 58px;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: linear-gradient(180deg, rgb(11, 30, 55), rgb(4, 11, 30));
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.16s ease, visibility 0s linear 0.16s;
    }
    .chat-window-loader.is-visible {
      opacity: 1;
      visibility: visible;
      transition: opacity 0.18s ease, visibility 0s;
    }
    .chat-window-loader[hidden] {
      display: none;
    }
    .chat-window-loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      text-align: center;
    }
    .chat-window-loader-text {
      font-size: 0.78rem;
      font-weight: 600;
      color: #cbd5e1;
      letter-spacing: 0.02em;
    }
    .chat-messages {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .chat-msg {
      max-width: 85%;
      padding: 8px 10px;
      border-radius: 12px;
      font-size: 0.85rem;
      line-height: 1.4;
    }
    .chat-msg.me {
      align-self: flex-end;
      background: #22c55e;
      color: #052e16;
    }
    .chat-msg.them {
      align-self: flex-start;
      background: #243f5d;
      color: #e5e7eb;
    }
    .chat-meta {
      font-size: 0.7rem;
      color: #9ca3af;
      margin-top: 2px;
    }
    .chat-meta-me {
      color: #0f5132;
    }
    .chat-input {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .chat-input input {
      flex: 1;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: #0b1224;
      color: #e5e7eb;
      font-size: 0.9rem;
      margin: 0;
    }
    @media (min-width: 720px) {
      .chat-arrow {
        display: flex;
      }
      .chat-row {
        gap: 8px;
      }
    }
    .chat-input button {
      padding: 5px 7px 10px 10px;
      font-size: 1.1rem;
      max-width: 2.5em;
    }
    .chat-arrow .app-icon {
      width: 1.7em;
      height: 1.7em;
    }
    .news-container {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 0 5px 60px;
    }
    .news-filters {
      width: 100%;
      padding: 10px 5px 10px 5px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 5px;
      }
    .news-filters-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .news-filter {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .news-filter label {
      font-size: 0.75rem;
      color: #9ca3af;
    }
    .news-filter select {
      width: 100%;
      font-size: 0.8rem;
      padding: 8px 30px 8px 10px;
    }
    .news-item {
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      cursor: pointer;
      overflow: hidden;
      transition: background 0.2s, transform 0.2s;
      background: linear-gradient(160deg, rgba(34, 197, 94, 0.14), rgba(8, 13, 18, 0.1));
      box-shadow: var(--shadow);
      backdrop-filter: saturate(130%) blur(8px);
    }
    .news-item:hover {
      background: #0b1224;
      transform: translateY(-1px);
    }
    .news-thumb {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: rgba(15, 23, 42, 0.45);
    }
    .news-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .news-copy {
      padding: 0 14px 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .news-item.no-image .news-copy {
      padding-top: 14px;
    }
    .news-meta {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .news-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .news-badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 0.7rem;
      line-height: 1;
      color: #d1fae5;
      background: rgba(34, 197, 94, 0.14);
      border: 1px solid rgba(34, 197, 94, 0.2);
    }
    .news-title {
      font-size: 1rem;
      font-weight: 600;
      color: #e5e7eb;
      line-height: 1.3;
    }
    .news-date {
      font-size: 0.8rem;
      color: #9ca3af;
      white-space: nowrap;
    }
    .news-snippet {
      font-size: 0.9rem;
      color: #cbd5e1;
      line-height: 1.4;
    }
    .app-sections {
      margin-top: 0;
      flex: 1;
      overflow-y: unset;
      padding-bottom: 0;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .app-section {
      display: none;
      flex: 1;
      flex-direction: column;
      min-height: 0;
      position: relative;
    }
    .app-section.active {
      display: flex;
    }
    .section-loading-overlay {
      position: absolute;
      inset: 0;
      z-index: 24;
      display: flex;
      align-items: center;
      justify-content: center;
      background-image: linear-gradient(to bottom, rgb(12, 36, 64), rgb(2, 9, 26));
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.12s ease, visibility 0s linear 0.12s;
    }
    .section-loading-overlay.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.18s ease, visibility 0s;
    }
    .section-loading-overlay[hidden] {
      display: none;
    }
    #sectionChat {
      justify-content: flex-end;
    }
    #sectionUserDetail {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      justify-content: stretch;
      padding: 0;
      background: transparent;
      visibility: hidden;
      pointer-events: none;
      transition: visibility 0s linear 0.34s;
      z-index: 55;
    }
    #sectionUserDetail.open {
      visibility: visible;
      pointer-events: auto;
      transition-delay: 0s;
    }
    .user-detail-panel {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      min-width: 0;
      padding: 15px;
      box-sizing: border-box;
      background: #051023;
      background-image: linear-gradient(to bottom, #0E2642, #020617);
      overflow: hidden;
      transform: translateY(105%);
      transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    #sectionUserDetail.open .user-detail-panel {
      transform: translateY(0);
    }
    .user-detail-panel .user-scroll {
      max-height: none;
      padding-right: 0;
      padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .user-detail-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }
    .user-detail-content {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      overflow-y: auto;
      overflow-x: hidden;
      min-width: 0;
      padding: 0 5px;
    }
    .card-hero.user-detail-hero {
      height: clamp(280px, 60vh, 540px);
      min-height: 280px;
      max-height: 540px;
      width: 100%;
      flex: 0 0 auto;
      border-radius: 14px 14 0 0;
    }
    .user-detail-box {
      border-radius: 12px;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      box-sizing: border-box;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(2, 6, 23, 0.3);
    }
    .user-detail-bio-text {
      font-size: 0.9rem;
      line-height: 1.45;
      color: #e5e7eb;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .user-detail-actions {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      align-items: center;
      margin: 0.2rem 0 5rem 0;
    }
    .user-detail-actions button {
      width: 100%;
    }
    .user-info-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.92rem;
      color: #e5e7eb;
    }
    .user-info-row .label {
      color: #9ca3af;
      min-width: 120px;
      font-size: 0.85rem;
      flex: 0 0 120px;
    }
    .user-info-row .value {
      font-weight: 600;
      text-align: right;
      flex: 1;
      word-break: break-word;
    }
    .bottom-nav {
      position: absolute;
      bottom: 0;
      left: 0;
      transform: none;
      width: 100%;
      margin-top: 0;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      padding: 5px 0 10px 0;
      border-radius: 0;
      border: none;
      box-sizing: border-box;
      background: #051023;
      background-image: linear-gradient(to bottom, #03091B, #020617);
      z-index: 6;
    }
    .bottom-nav button {
      flex: 1;
      padding: 6px 0;
      border-radius: 0;
      border: none;
      background: transparent;
      color: #ffffff;
      font-size: 0.6rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      cursor: pointer;
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .bottom-nav button.active {
      font-weight: 600;
    }
    .bottom-nav .icon {
      font-size: 1.1rem;
      line-height: 1;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .bottom-nav .icon .app-icon {
      width: 1.2em;
      height: 1.2em;
      transition: opacity 160ms ease;
    }
    .bottom-nav .label {
      transition: opacity 160ms ease;
    }
    .bottom-nav button:not(.active) .icon .app-icon,
    .bottom-nav button:not(.active) .label {
      opacity: 0.72;
    }
    .bottom-nav .icon .filled { display: none; }
    .bottom-nav button.active .icon .filled { display: inline-block; }
    .bottom-nav button.active .icon .outline { display: none; }

    .card-hero {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 14px;
      overflow: hidden;
      background: linear-gradient(180deg, #111827 0%, #0b1224 100%);
      border: 1px solid #0e2135;
      flex-shrink: 0;
    }
    .card-hero.is-photo-loading::before {
      border-radius: inherit;
    }
    .card-hero.photo {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .card-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(13, 36, 63, 0) 10%, rgba(5, 12, 31, 1) 100%);
      mix-blend-mode: multiply;
      pointer-events: none;
      width: 100%;
      height: 100%;
    }
    .card-info-btn {
      position: absolute;
      bottom: 0px;
      right: 2px;
      background: rgba(15, 23, 42, 0.45) !important;
      color: #e5e7eb;
      display: grid;
      place-items: center;
      cursor: pointer;
      z-index: 3;
      backdrop-filter: blur(6px);
      transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease;
      font-size: 25px;
      padding: 0px;
      margin: 15px;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
    }
    .card-info-btn:active {
      transform: translateY(2px);
    }
    .chat-info-btn {
      top: 4px;
      right: 4px;
      bottom: auto;
      display: none;
      font-size: 20px;
      padding: 5px;
      margin: 5px;
    }
    .card-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 20px;
      color: #f9fafb;
      text-shadow: 0 1px 10px rgba(0,0,0,0.4);
      z-index: 1;
      gap: 5px;
    }
    .fade-in-ready {
      animation: svinco-fade-in 0.22s ease;
    }
    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin: 0;
    }
    .card-subtitle {
      font-size: 0.7rem;
      color: rgb(255, 255, 255, 0.7);
      margin: 0;
    }
    .card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 4px;
    }
    .pill {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      font-size: 0.75rem;
      color: #f3f4f6;
    }
    .card-body {
      display: none;
    }
    .icon-btn {
      background: transparent;
      border: none;
      color: #e5e7eb;
      font-size: 1.2rem;
      cursor: pointer;
      padding: 0px 5px 0 5px;
    }
    .icon-btn-info {
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
    }
    .icon-btn-info:active {
      transform: translateY(2px);
    }
    .text-center {
      text-align: center;
    }
    .text-link {
      background: none;
      border: none;
      color: #fca5a5;
      padding: 0;
      font-size: 0.9rem;
      text-align: left;
      cursor: pointer;
      padding: .5em 0 3em 0;
      text-align: center;
    }
    .filter-icon {
      vertical-align: bottom;
      font-size: 1.1em;
      transition: transform .18s ease, box-shadow .18s ease, text-shadow .18s ease;
    }
    .filter-icon:active {
      transform: translateY(2px);
    }
    .filters-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.7);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      backdrop-filter: blur(8px);
      z-index: 40;
    }
    .filters-overlay.visible {
      opacity: 1;
      pointer-events: auto;
    }
    .filters {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      max-width: 320px;
      border-left: 0;
      box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
      padding: 15px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 18px;
      transform: translateX(-105%);
      transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 50;
      overflow-y: auto;
      border-radius: 0rem 1em 1em 0rem;
      background: #051023;
      background-image: linear-gradient(to bottom, #0E2642, #051023);
    }
    .filters.open {
      transform: translateX(0);
    }
    .filters-topbar {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      min-height: 44px;
    }
    .filters-topbar-spacer {
      display: block;
      width: 40px;
      height: 1px;
    }
    .filters-topbar-title {
      font-size: 1rem;
      font-weight: 700;
      color: #f8fafc;
      letter-spacing: 0.01em;
      justify-self: center;
    }
    .filters-close-btn {
      padding: 0;
      display: grid;
      place-items: center;
      justify-self: end;
      margin-bottom: 10px;
    }
    .filter-row {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .filter-row > input,
    .filter-row > select {
      flex: 1;
      width: 100%;
      padding: 8px 12px;
      border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      color: #e5e7eb;
      font-size: 0.8rem;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e5e7eb' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: calc(100% - 12px) center;
      padding-right: 34px;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .filter-row select:focus {
      border-color: #22c55e;
      box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
      outline: none;
    }
    .filter-age-field {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      padding: 14px 14px 12px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(15, 23, 42, 0.55);
      box-sizing: border-box;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
      caret-color: transparent;
    }
    .filter-age-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .filter-age-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: #e2e8f0;
      letter-spacing: 0.02em;
    }
    .filter-age-value {
      font-size: 0.82rem;
      font-weight: 700;
      color: #dcfce7;
      letter-spacing: 0.02em;
      text-align: right;
      white-space: nowrap;
    }
    .filter-age-slider {
      position: relative;
      height: 32px;
      width: 100%;
      min-width: 0;
      user-select: none;
      -webkit-user-select: none;
      caret-color: transparent;
    }
    .filter-age-slider-inner {
      position: absolute;
      inset: 0 9px;
      cursor: pointer;
      min-width: 0;
      user-select: none;
      -webkit-user-select: none;
      caret-color: transparent;
    }
    .filter-age-rail,
    .filter-age-track {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      height: 6px;
      border-radius: 999px;
      pointer-events: none;
    }
    .filter-age-rail {
      left: 0;
      right: 0;
      background: rgba(148, 163, 184, 0.2);
    }
    .filter-age-track {
      left: 0;
      width: 0;
      background: linear-gradient(90deg, rgba(34, 197, 94, 0.65), rgba(74, 222, 128, 0.92));
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.16);
    }
    .filter-age-range-input {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      width: auto;
      height: 18px;
      transform: translateY(-50%);
      margin: 0;
      padding: 0;
      min-width: 0;
      box-sizing: border-box;
      pointer-events: none;
      background: none;
      border: 0;
      outline: none;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      caret-color: transparent;
      z-index: 2;
      appearance: none;
      -webkit-appearance: none;
    }
    .filter-age-range-input.is-max-thumb {
      z-index: 3;
    }
    .filter-age-range-input.is-active {
      z-index: 4;
    }
    .filter-age-range-input::-webkit-slider-runnable-track {
      height: 6px;
      border: 0;
      border-radius: 999px;
      background: transparent;
    }
    .filter-age-range-input::-moz-range-track {
      height: 6px;
      background: transparent;
      border: none;
      border-radius: 999px;
    }
    .filter-age-range-input::-moz-range-progress {
      background: transparent;
    }
    .filter-age-range-input::-webkit-slider-thumb {
      width: 18px;
      height: 18px;
      margin-top: -6px;
      border-radius: 999px;
      border: 2px solid #22c55e;
      background: #f8fafc;
      box-shadow: 0 4px 12px rgba(2, 6, 23, 0.35);
      cursor: pointer;
      pointer-events: auto;
      appearance: none;
      -webkit-appearance: none;
    }
    .filter-age-range-input::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 2px solid #22c55e;
      background: #f8fafc;
      box-shadow: 0 4px 12px rgba(2, 6, 23, 0.35);
      cursor: pointer;
      pointer-events: auto;
    }
    .filter-age-range-input:focus-visible {
      outline: none;
    }
    .filter-age-range-input:focus-visible::-webkit-slider-thumb {
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
    }
    .filter-age-range-input:focus-visible::-moz-range-thumb {
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
    }
    .filter-pill-field {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
    .filter-pill-label {
      font-size: 0.78rem;
      font-weight: 600;
      color: #cbd5e1;
      letter-spacing: 0.02em;
    }
    .filter-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .filter-pill {
      background: rgba(15, 23, 42, 0.55);
      border: 1px solid rgba(148, 163, 184, 0.18);
      color: #cbd5e1;
      border-radius: 999px;
      padding: 8px 15px;
      font-size: 0.8rem;
      line-height: 1.2;
      cursor: pointer;
      transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .filter-pill:hover {
      border-color: #475569;
      transform: translateY(-1px);
    }
    .filter-pill.is-selected {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.18);
      color: #dcfce7;
      box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
    }
    .filter-pill:focus-visible,
    .filters-close-btn:focus-visible {
      outline: none;
      border-color: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    }

    #sectionHome.app-section {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }
    .form-error {
      margin: 6px;
      font-size: 0.78rem;
      color: #fca5a5;
      text-align: center;
      height: auto;
    }
    .input-invalid {
      border-color: #f87171;
      box-shadow: 0 0 0 1px rgba(248,113,113,0.3);
    }
    @media (max-width: 540px) {
    html, body {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;   /* blocco lo scroll della pagina */
      }
      body {
        align-items: flex-start;
        justify-content: flex-start;
        background: #0f172a;
        background-image: none;
      }
      .app {
        /*--app-pad-top: 10px;
        --app-pad-right: 10px;
        --app-pad-bottom: 0px;
        --app-pad-left: 10px;*/
        padding: 0;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        /*padding: var(--app-pad-top) var(--app-pad-right) var(--app-pad-bottom) var(--app-pad-left);*/
        overflow: hidden;
      }
      .app-sections {
        flex: 1;
        overflow-y: unset;
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
      }
      .app-section {
        min-height: 0;                      /* niente 45rem su mobile */
        overflow-y: auto;                   /* abilita lo scroll interno */
        -webkit-overflow-scrolling: touch;  /* scroll fluido su iOS */
        padding-bottom: calc(90px + env(safe-area-inset-bottom)); 
        /* spazio per non far finire il form sotto la bottom-nav */
      }
      .topbar {
        padding: 10px 10px 0 10px;
      }
      .padding-chat {
        padding: 0 15px;
      }
      .section-title {
        margin-top: 10px;
      }
      #sectionProfile {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
      }
      .profile-scroll {
          flex: 1;
          min-height: 0;
          overflow-y: auto;
          box-sizing: border-box;
          padding-bottom: calc(35px + env(safe-area-inset-bottom));
          max-height: calc(108dvh - 170px);
      }
      .global-loader-logo {
        width: min(130px, 22vw);
      }
      .news-scroll {
        max-height: calc(102dvh - 196px);
      }
      .register-scroll {
        max-height: calc(115dvh - 190px);
      }
      .user-scroll {
        max-height: calc(115dvh - 195px);
        padding-right: 0;
      }
      #viewAuth {
        min-height: calc(100dvh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 15px;
      }
      .auth-logo img {
        margin-bottom: 1.75rem;
      }
      .auth-overlay-screen {
        padding: 15px;
      }
      .card-stack {
        height: calc(100dvh - 175px);
      }
      .swipe-empty-icon-btn {
        width: 50px;
        height: 50px;
      }
      .swipe-empty-icon-btn img {
        width: 52px;
        height: 52px;
      }
      .swipe-empty-copy {
        top: calc(50% + 70px);
        width: 100%;
      }
      .swipe-empty-filters-btn {
        top: calc(50% + 112px);
      }
      .card {
        min-height: calc(100dvh - 220px);
        padding: 10px 15px;
      }
      .card-hero {
        height: 100%;
      }
      .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 5px 0 8px 0;
        background: #051023;
        background-image: linear-gradient(to bottom, #030819, #020617);
      }
      .match-animation svg {
        min-height: 180px;
        bottom: 9rem;
      }
      .match-actions {
        bottom: 100px !important;
      }
      .chat-window {
        height: calc(92dvh - 180px);
      }
      .chat-row{
        margin-bottom: 5px;
        min-height: 5.5rem;
      }
      #sectionUserDetail {
        padding-bottom: 0;
      }
      .card-hero.user-detail-hero {
        height: clamp(280px, 63vh, 540px);
      }
      .match-btn.match-continue {
        bottom: 9rem;
        right: 9rem;
      }
      .match-btn.match-chat {
        margin-top: 0;
      }
      .match-avatars {
        margin-top: 3rem;
        margin-bottom: 6rem;
      }
      .photo-cropper-modal {
        padding: 10px;
      }
      .photo-cropper-dialog {
        padding: 14px;
        border-radius: 20px;
      }
      .photo-cropper-stage-shell {
        min-height: 360px;
      }
      .photo-cropper-canvas {
        height: 360px;
      }
      .photo-cropper-actions button {
        flex: unset;
      }
      /* Forza font >=16px per evitare lo zoom automatico di Safari sui form */
      input,
      select,
      textarea {
        -webkit-appearance: none; /* Rimuove lo stile di default */
        -moz-appearance: none;   /* Per Firefox */
        appearance: none;        /* Standard */
        font-size: 16px !important;
        width: 100%;
      }
    }

    @media screen and (max-height: 670px) {
      .chat-card-wrap {
          width: 50px;
      }
      .chat-window {
        height: calc(90dvh - 165px);
      }
      .profile-scroll {
        max-height: calc(120dvh - 200px);
      }
    }

    /* Stili per sectionPro */
    #sectionPro {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      padding: 0;
      background: transparent;
      visibility: hidden;
      pointer-events: none;
      transition: visibility 0s linear 0.34s;
      z-index: 60;
    }
    #sectionPro.open {
      visibility: visible;
      pointer-events: auto;
      transition-delay: 0s;
    }
    .pro-panel {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      min-height: 0;
      min-width: 0;
      padding: 15px;
      box-sizing: border-box;
      background: #051023;
      background-image: linear-gradient(to bottom, #0E2642, #020617);
      overflow: hidden;
      transform: translateX(105%);
      transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    #sectionPro.open .pro-panel {
      transform: translateX(0);
    }
    .pro-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0 15px;
      margin-top: 1rem;
    }
    .pro-item {
      margin-bottom: 20px;
      padding: 15px;
      border-radius: 8px;
      border: 1px solid #374151;
      font-size: 14px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background-image: linear-gradient(to bottom, rgba(21, 127, 186, 0.2) 0%, rgba(255, 0, 0, 0) 100%);
    }
    .pro-item h4 {
      margin: 0 0 10px 0;
      font-size: 18px;
      font-weight: 600;
    }
    .pro-badge {
      background: #22c55e;
      color: #052e16;
      padding: 5px 12px;
      border-radius: 50PX;
      font-size: 12px;
      font-weight: 800;
    }
    .pro-item ul {
      margin: 10px 0 0 0;
      padding-left: 20px;
    }
    .pro-item li {
      margin-bottom: 5px;
    }
    .pro-donation-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 2em 0 0;
    }
    .pro-donation-entry {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: left;
      margin-bottom: 1em;
    }
    .pro-donation-label {
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #cbd5e1;
      text-align: center;
    }
    .pro-donation-copy {
      width: 100%;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(56, 189, 248, 0.22);
      background: rgba(15, 23, 42, 0.82);
      color: #e2e8f0;
      cursor: pointer;
      text-align: left;
      transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }
    .pro-donation-copy:hover,
    .pro-donation-copy:focus-visible {
      border-color: rgba(56, 189, 248, 0.5);
      box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
      outline: none;
    }
    .pro-donation-copy:active {
      transform: translateY(1px);
    }
    .pro-donation-code {
      display: block;
      font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", monospace;
      font-size: 0.72rem;
      line-height: 1.45;
      word-break: break-all;
      text-align: center;
    }
    .pro-donation-hint {
      display: block;
      margin-top: 8px;
      font-size: 0.74rem;
      font-weight: 700;
      color: #93c5fd;
      text-align: center;
    }
    .pro-links {
      list-style: none;
      padding: 0;
    }
    .pro-links li {
      margin-bottom: 10px;
    }
    .pro-links a {
      color: #60a5fa;
      text-decoration: none;
    }
    .pro-links a:hover {
      text-decoration: underline;
    }
    .pro-footer {
      text-align: center;
      margin-top: 3em;
      margin-bottom: 3em;
      font-size: 12px;
      color: #9ca3af;
    }
    .pro-app-meta {
      margin-bottom: 16px;
    }
    .profile-app-meta {
      margin: 1em 0 .4em;;
    }
    .pro-app-icon {
      display: block;
      width: 42px;
      height: 42px;
      margin: 0 auto 10px;
    }
    .pro-app-version {
      font-size: 14px;
      color: #e5e7eb;
    }
    .pro-background {
      background-image: linear-gradient(to bottom, rgba(21, 127, 186, 0.2) 0%, rgba(255, 0, 0, 0) 100%);
      border: 1px solid rgba(148, 163, 184, 0.18);
    }
    .pro-topbar {
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      margin-bottom: 2rem;
    }
