:root{
    --color-primary:#ff4da6;
    --color-primary-hover:#e63f92;
    --color-primary-light:#ffe5f2;
    --color-primary-rgb:255,77,166;
    --color-dark:#24131d;
    --color-dark-soft:#301524;
    --color-dark-rgb:36,19,29;
    --color-success:#20ad73;
    --color-success-dark:#17875a;
    --color-success-rgb:32,173,115;
    --color-success-light:#effaf5;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff0f5; /* rosa sfondo */
}
html, body{
    min-height:100%;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

.main-container{
    flex:1;
}

/*navigazione gestione */
.management-header {
    margin-bottom: 24px;
    margin-top: 12px;
}

.management-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}

.management-back:hover {
    color: #222;
}

.management-back svg {
    flex-shrink: 0;
}

.management-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
}

.management-header p {
    margin: 7px 0 0;
    color: #777;
    font-size: 15px;
    line-height: 1.5;
}
/* HEADER */
.header {
    background: #ff4da6;
    padding: 8px 15px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .logo img {
        height: 44px;
        max-width: 220px;
    }
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* PARTE DESTRA */
.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* PROFILO */
.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;
}

/* NOME */
.header-username {
    color: white;
    font-weight: 600;
}

/* FOTO PROFILO */
.header-profile-img {
    width: 38px;
    height: 38px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid rgba(255,255,255,0.8);
}

/* IDENTITA ACCOUNT NEL MENU LATERALE
   Visibile solo quando il nome nell'header viene nascosto. */
.side-menu a.side-menu-account {
    display: none;
}

/* ICONE */
.header-login {
    display: flex;
    align-items: center;

    color: white;
    text-decoration: none;
}

.header-login svg {
    width: 27px;
    height: 27px;
}

/* MENU */
.menu-toggle {
    color: white;
    font-size: 27px;
    line-height: 1;

    cursor: pointer;
    user-select: none;
}

/* MOBILE */
@media (max-width: 767px) {

    .header-username {
        display: none;
    }

    .side-menu a.side-menu-account {
        display: flex;
    }

    .header-user {
        gap: 12px;
    }

    .header-profile-img {
        width: 36px;
        height: 36px;
    }

}

/* CONTAINER */
.container {
    padding: 10px;
}

/* CONTENITORE PRINCIPALE RIUTILIZZABILE */
.main-container {
    width: 95%;
    max-width: 550px;

    margin: 20px auto;
    padding: 10px;

    background: #fffafd;

    border-radius: 20px;
    border: 1px solid #ffd6e7;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* PAGINE DI GESTIONE A LARGHEZZA ESTESA
   La classe management-compact mantiene la larghezza di bacheca e canale VIP. */
@media (min-width:768px){
    .main-container.management-wide,
    .main-container:has(.management-header):not(.vip-page):not(.profile-management-page):not(.management-compact),
    .main-container:has(.dashboard-menu){
        width:92%;
        max-width:none;
        padding:24px;
    }
}

.full-width{
    max-width:none;
}

.models-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.model-card{
    display:flex;
    flex-direction:column;
    text-decoration:none;
    color:#222;
}


/* NOME */

.model-name-wrap{
    overflow-x:auto;
    overflow-y:hidden;
    margin-bottom:4px;
    scrollbar-width:none;
}

.model-name-wrap::-webkit-scrollbar{
    display:none;
}

.model-name{
    display:inline-block;
    white-space:nowrap;

    font-size:15px;
    font-weight:600;
    color:#333;
    line-height:1.2;
}


/* FOTO */

.model-image{
    position:relative;
    aspect-ratio:1/1;
    border-radius:18px;
    overflow:hidden;
    background:#eee;
}

.model-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s;
}

.model-hover{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(233,30,99,.78);

    color:#fff;
    font-weight:600;

    opacity:0;
    transition:.25s;
}

.model-card:hover img{
    transform:scale(1.08);
}

.model-card:hover .model-hover{
    opacity:1;
}


/* ACCESSO */

.model-login{

    display:flex;
    align-items:center;
    gap:6px;

    margin-top:4px;

    color:#888;
    font-size:12px;
}

.model-login svg{
    width:14px;
    height:14px;
    fill:#999;
    flex-shrink:0;
}


/* TABLET */

@media(min-width:700px){

    .models-grid{
        grid-template-columns:repeat(3,1fr);
        gap:22px;
    }

}


/* DESKTOP */

@media(min-width:1100px){

    .models-grid{
        grid-template-columns:repeat(5,1fr);
        gap:24px;
    }

}

/* CARD */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.2s;
}

.card:hover {
    transform: scale(1.02);
}


/* IMMAGINE QUADRATA */
.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STATUS */
.status {
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.online {
    color: green;
    font-weight: bold;
}

.offline {
    color: #777;
}

/* DESKTOP */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .logo {
        font-size: 26px;
    }
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* PROFILO */
.profile-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;

    background: #fffafd; /* leggermente diverso dal bianco */

    border-radius: 20px;

    /* bordo leggero */
    border: 1px solid #ffd6e7;

    /* ombra morbida */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
    .profile-container {
        margin: 40px auto;
        padding: 30px;
    }
}
@media (min-width: 768px) {
    .profile-container:hover {
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        transition: 0.3s;
    }
}

/* HERO */
.profile-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* DESCRIZIONE */
.profile-description {
    margin: 15px auto;
    font-size: 15px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* CONTATTI */
.profile-contacts {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-btn {
    background: #ff4da6;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* SEZIONI */
.section {
    margin: 20px 0;
}

.section h2 {
    margin-bottom: 10px;
}

/* TABELLA */
.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* CONTENUTI (video + foto) */
.content-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* CARD CONTENUTO */
.content-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

/* PREVIEW */
.preview {
    position: relative;
    aspect-ratio: 1 / 1;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DURATA VIDEO */
.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 5px;
}

/* PREZZO */
.price {
    text-align: center;
    padding: 8px;
    font-weight: bold;
}

/* FOTO SFUOCATE */
.blurred img {
    filter: blur(8px);
}

/* DESKTOP */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* BLOCCO TOP */
.profile-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FOTO QUADRATA */
.profile-hero {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.profile-hero img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

/* DESKTOP */
@media (min-width: 768px) {

    .profile-top {
        flex-direction: row;
        align-items: center;
    }

    .profile-hero {
        margin: 0;
        flex: 0 0 300px;
    }

    .profile-description {
        text-align: left;
        margin: 0;
    }
}

/* HEADER FLEX */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HAMBURGER */
.menu-toggle {
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* OVERLAY (sfondo scuro) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MENU LATERALE */
.side-menu{
    position:fixed;
    top:0;
    right:0;
    width:75%;
    max-width:320px;
    height:100vh;
    height:100dvh;
    max-height:100dvh;

    background:#ff4da6;

    display:flex;
    flex-direction:column;

    transform:translateX(100%);
    transition:transform .3s ease;

    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;

    z-index:1000;
}

/* LINK */
.side-menu a {
    color: white;
    padding: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* STATO APERTO */
.side-menu.active {
    transform: translateX(0);
}

/* DESKTOP */
@media (min-width: 768px) {
    .side-menu {
        width: 300px; /* colonna fissa */
    }
}

/* SIDEBAR SEMPRE APERTA SU DESKTOP
   Il breakpoint a 1180px lascia margine rispetto ai 1280px CSS
   normalmente disponibili su MacBook Air 13". */
@media (min-width: 1180px) {
    body {
        padding-left: 260px;
    }

    .side-menu {
        right: auto;
        left: 0;
        width: 260px;
        max-width: none;
        transform: none !important;
        transition: none;
        box-shadow: 4px 0 18px rgba(91,24,59,0.12);
    }

    .side-menu.active {
        transform: none !important;
    }

    .menu-header {
        min-height: 68px;
        justify-content: flex-start;
    }

    .menu-toggle,
    .menu-close,
    .menu-overlay {
        display: none !important;
    }
}

.side-menu a.side-menu-balance{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.side-menu a.side-menu-balance span,
.side-menu a.side-menu-balance strong{
    margin:0;
    padding:0;
    color:white;
    font-size:inherit;
    line-height:inherit;
}

.side-menu a.side-menu-balance strong{
    flex:0 0 auto;
    font-weight:400;
}

/* HEADER MENU */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: white;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* BOTTONE CHIUSURA */
.menu-close {
    font-size: 20px;
    cursor: pointer;
}
/* SEZIONI MENU */
.menu-section {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* TITOLO SEZIONE */
.menu-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px;

    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* FRECCIA */
.menu-arrow {
    font-size: 22px;
    line-height: 1;

    transition: transform .25s ease;
}

/* SOTTOMENU */
.menu-submenu {
    display: none;
}

/* SOTTOMENU APERTO */
.menu-section.open .menu-submenu {
    display: block;
}

/* ROTAZIONE FRECCIA */
.menu-section.open .menu-arrow {
    transform: rotate(90deg);
}

/* LINK INTERNI */
.menu-submenu a {
    display: block;

    padding: 12px 15px 12px 30px;

    border-bottom: 1px solid rgba(255,255,255,0.12);

    background: rgba(0,0,0,0.08);
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    background: #231b22;
    color: white;
}

/* CONTENUTO CENTRATO */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 20px 22px;
    text-align: center;
}

.footer-brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.footer-adult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* LINK */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-bottom: 16px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff8bc5;
}

.footer-legal-data {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.65;
}

/* COPYRIGHT */
.footer-copy {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.62;
}

/* SFONDO LOGIN */
.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #fff0f5;
}

/* CONTENITORE */
.login-box {
    width: 90%;
    max-width: 600px;

    background: #fffafd;

    padding: 30px;

    border-radius: 20px;
    border: 1px solid #ffd6e7;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    text-align: center;
}

/* INPUT */
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;

    border-radius: 10px;
    border: 1px solid #ddd;

    outline: none;
}

/* CONTENITORE BOTTONI */
.role-select {
    display: flex;
    gap: 15px; /* spazio tra i due */
    margin: 20px 0;
}

/* BOTTONI RUOLO */
.role-select button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

/* UTENTE (blu forte) */
.btn-user {
    background: #007bff;
    color: white;
}

/* MODELLA (rosa chiaro) */
.btn-model {
    background: #ff99cc;
    color: #333;
}

/* HOVER */
.role-select button:hover {
    transform: scale(1.03);
}

/* SELEZIONATO */
.role-select button.active {
    outline: 3px solid rgba(0,0,0,0.15);
}

/* BOTTONE REGISTRAZIONE */
.btn-submit {
    display: block;
    margin: 15px auto 0 auto; /* centrato */
    
    padding: 10px 20px;
    font-size: 14px;

    background: #ff4da6;
    color: white;

    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* HOVER REGISTRA */
.btn-submit:hover {
    background: #e04393;
}

/* BOTTONE SECONDARIO CHIARO */
.btn-submit,
.btn-light{
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn-light {
    background: #ffffff;
    color: #ff4da6;
    border: 1px solid #ff4da6;
}

.btn-light:hover {
    background: #fff0f7;
}

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

.btn-submit {
    background: #ff4da6;
    color: #fff;
    border: 1px solid #ff4da6;
}

.btn-submit:hover {
    opacity: 0.9;
}

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

.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.form-group{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.modal-label{
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.modal-input{
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}
.modal-content input,
.modal-content select,
.modal-content textarea{
    width: 100%;
}

.form-group{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.form-group-center{
    align-items: center;
    text-align: center;
}

.modal-content-sale{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.modal-content-sale .btn-submit,
.modal-content-sale .btn-light{
    width: 100%;
    max-width: 200px;
}

.modal-input-price{
    width: 100%;
    max-width: 100px;
    height: 42px;

    text-align: center;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);

    background: #ffffff;
    color: #000;

    font-size: 16px;
}

.error-box {
    margin-top: 15px;
    padding: 15px;

    border: 1px solid #ff4d4d;
    background: #ffe6e6;

    color: #cc0000;

    border-radius: 10px;
    text-align: left;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.error-box li {
    margin-bottom: 5px;
}


.success-box {
    margin-top: 15px;
    padding: 15px;

    border: 1px solid #d4edda;
    background: #d4edda;

    color: #155724;

    border-radius: 10px;
    text-align: left;
}

.success-box ul {
    margin: 0;
    padding-left: 20px;
}

.success-box li {
    margin-bottom: 5px;
}

.warning-box{
    margin-top:12px;
    padding:12px 14px;
    border:1px solid #f1c75b;
    border-radius:10px;
    background:#fff6d8;
    color:#725300;
    font-size:14px;
    line-height:1.45;
}

.dashboard-box{
    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    margin-bottom:20px;
}

.dashboard-box h2{
    margin-top:0;
    margin-bottom:15px;
}

.dashboard-box label{
    display:block;
    margin-bottom:5px;
    font-weight:bold;
}

.dashboard-box input,.dashboard-box textarea,.dashboard-box select {
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    margin-bottom:15px;
    box-sizing:border-box;
}
.dashboard-box select {
    width:50%;
    max-width:200px;
}

.dashboard-box .btn-submit{
    margin-left:0;
    margin-right:auto;
    display:block;
}

.dashboard-box button:hover{
    opacity:0.9;
}

/* GRIGLIA GESTIONE CONTATTI */
.contacts-form-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:20px;
}

.contacts-form-grid .dashboard-box{
    min-width:0;
    margin-bottom:0;
}

@media (min-width:768px){
    .contacts-form-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

#bioForm{
    position:relative;
}

.bio-counter{
    position:absolute;
    bottom:10px;
    right:10px;
    font-size:12px;
    color:#777;
}
.bio-counter.limit{
    color:red;
    font-weight:bold;
}

/* Area Vip */
.vip-box{
    background:#f5f5f5;
    border-color:#00aff0;
}


.vip-title{
    border:2px solid #00aff0;
    color:#0077aa;
    padding:14px;
    border-radius:12px;
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
    background:white;
}


.vip-title span{
    display:block;
    font-size:13px;
    font-weight:normal;
    margin-top:5px;
    color:#555;
}


.vip-info{
    background:white;
    border:1px solid #bde8ff;
    color:#0077aa;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
    font-size:14px;
}


.vip-box .tool-btn{
    border:1px solid #00aff0;
    color:#0077aa;
    background:white;
}


.vip-box .tool-btn:hover{
    background:#e8f7ff;
}


.vip-box .btn-submit{
    background:#00aff0;
    border:1px solid #00aff0;
    color:white;
}


.vip-box .btn-submit:hover{
    background:#008dcc;
}

/* Pagina gestione profilo */

.profile_upload_box{
    width:100%;
    max-width:450px;
    margin:auto;
    padding:25px;
    border-radius:20px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.profile_upload_preview{
    width:160px;
    height:160px;
    border-radius:50%;
    overflow:hidden;
    border:3px solid rgba(255,255,255,0.15);
    background:#111;
}

.profile_upload_preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.profile_upload_button{
    padding:12px 22px;
    border-radius:12px;
    cursor:pointer;
    background:#ff2f7d;
    color:#fff;
    font-weight:600;
    transition:0.2s;
}

.profile_upload_button:hover{
    transform:scale(1.03);
}

.profile_upload_submit{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#ffffff;
    color:#000;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.2s;
}

.profile_upload_submit:hover{
    opacity:0.9;
}

.profile_upload_response{
    width:100%;
    text-align:center;
    color:#fff;
    font-size:14px;
}
.profile_upload_preview{
    position:relative;
    width:160px;
    height:160px;
    border-radius:50%;
    overflow:hidden;
    border:3px solid rgba(255,255,255,0.15);
    background:#111;
}

.profile_upload_overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
    backdrop-filter:blur(3px);

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:0.2s;
}

.profile_upload_overlay.active{
    opacity:1;
    visibility:visible;
}

#overlayPercent{
    color:#fff;
    font-size:28px;
    font-weight:bold;
}

.profile_upload_response{
    width:100%;
    text-align:center;
    color:black;
    font-size:14px;
    min-height:20px;
}

.input-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}

.cover_preview{
    width:100%;
    height:180px;
    border-radius:12px;
    overflow:hidden;
    position:relative;
    background:#eee;
}


.cover_preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}


.cover-placeholder{

    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
    linear-gradient(
        135deg,
        #e9e9e9,
        #cfcfcf
    );

    color:#999;
    font-size:40px;

}


.cover-placeholder span{

    width:55px;
    height:55px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:white;

    box-shadow:0 3px 10px rgba(0,0,0,.15);

}

.profile_upload_overlay span,
.overlayPercent {
    color: white;
    font-size: 34px;
    font-weight: 800;
    -webkit-text-stroke: 2px black;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* anteprime */

.upload-item {
    background: #f5f5f5;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.upload-name {
    margin-bottom: 5px;
    color: #333;
}

#uploadQueue .upload-name{
    display:block;
    width:100%;
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    line-height:20px;
}

.upload-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.upload-progress {
    height: 100%;
    width: 0%;
    background: #ff4da6;
    transition: width 0.2s;
}

.upload-item.success .upload-progress {
    background: #4CAF50;
}

.upload-item.error {
    background: #ffe5e5;
    color: #b00020;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

@media (min-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    border-radius: 8px;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content img,
.modal-content video {
    max-width: 95%;
    max-height: 80vh;
    border-radius: 10px;
}

#closeModal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


.dashboard-menu{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    width:100%;
    margin-top:20px;
}

.dashboard-button{
    width:calc(50% - 8px);

    min-height:140px;

    background:#fff;

    border-radius:12px;

    text-decoration:none;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    box-sizing:border-box;

    transition:0.2s;

    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    
    width:100%;
    min-width:0;
    max-width:none;
    box-sizing:border-box;
}

.dashboard-button:hover{
    transform:translateY(-2px);
}

.dashboard-icon{
    font-size:42px;
    margin-bottom:10px;
}

.dashboard-title{
    font-size:16px;
    font-weight:600;
    color:#333;
    text-align:center;
}

/* Tablet: 3 riquadri per riga */
@media (min-width:700px){
    .dashboard-menu{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
    }
}

/* Desktop con menu laterale: 4 riquadri per riga */
@media (min-width:1180px){
    .dashboard-menu{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:18px;
    }
}

.social-link-item{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0;
}

.social-link-item a{
    flex:1;

    padding:10px 12px;

    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:10px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    text-decoration:none;
    color:#333;
}

.delete-social{
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
}

.fa-whatsapp{
    color:#25D366;
}

.fa-telegram{
    color:#229ED9;
}

.fa-microsoft{
    color:#6264A7;
}

.fa-discord{
    color:#5865F2;
}

.dashboard-box label i{
    font-size:20px;
    margin-right:12px;
    vertical-align:middle;

    width:24px;
    text-align:center;
}

/* PREZZI */
.variante-row{
    display:flex;
    gap:10px;
    margin-bottom:10px;
    width:100%;
}

.descrizione-input{
    flex:3;
    min-width:0;
    box-sizing:border-box;
}

.prezzo-input{
    flex:1;
    min-width:0;
    box-sizing:border-box;
}

.descrizione-input,
.prezzo-input,
#editDescription,
#editPrice{
    height:40px;
    padding:8px 10px;
    box-sizing:border-box;
    font-size:14px;
}

.variante-labels{
    display:flex;
    gap:10px;
    margin-bottom:5px;
}
.variante-labels label{
    font-weight:600;
}

.descrizione-label{
    flex:3;
}

/*listino prezzi */
.prezzo-label{
    flex:1;
    text-align:left;
}

.price-item{
    display:flex;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.fade-out{
    opacity:0;
    transform:scale(0.8);
    transition:all .25s ease;
}

.price-item.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

.price-description{
    width:70%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.price-value{
    width:15%;
    text-align:center;
    font-weight:bold;
}

.price-edit{
    width:15%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.edit-price{
    all: unset;
    cursor: pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    height:100%;

    line-height:1;
    font-size:18px;
}

.edit-price svg{
    display:block;
    width:18px;
    height:18px;
}

/* modale listino prezzi */
.modal{
    display:none;

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.7);

    z-index:9999;

    justify-content:center;
    align-items:center;
}

.modal-box{
    position:relative;

    background:#fff;

    width:90%;
    max-width:500px;

    padding:20px;

    border-radius:15px;
}

.modal-close{
    position:absolute;
    top:10px;
    right:15px;

    font-size:30px;
    line-height:1;

    cursor:pointer;

    color:#888;
}

.modal-close:hover{
    color:#000;
}

/* PROGRESS CARICAMENTO VIDEO */
#uploadProgressWrap{
    position:relative;
    width:100%;
    height:9px;
    margin-top:12px;
    overflow:hidden;
    border-radius:10px;
    background:#e7e7e7;
    box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
}

#uploadProgressBar{
    width:0;
    height:100%;
    border-radius:inherit;
    background:var(--color-primary);
    box-shadow:0 0 8px rgba(var(--color-primary-rgb),.35);
    transition:width .2s linear;
}

#uploadProgressText{
    min-height:18px;
    margin-top:5px;
    color:#76666e;
    font-size:13px;
    font-weight:600;
    line-height:18px;
    text-align:center;
}

#videoProcessing{
    margin-top:15px;
    padding:14px;
    border:1px solid rgba(var(--color-primary-rgb),.18);
    border-radius:12px;
    background:var(--color-primary-light);
    text-align:center;
}

.processing-title{
    margin-bottom:8px;
    color:#352b30;
    font-size:16px;
    font-weight:700;
}

#processingStatus{
    margin-bottom:5px;
    color:#5f5158;
    font-size:14px;
}

#processingCounter{
    color:#806f78;
    font-size:13px;
    font-weight:600;
}

/* SELETTORE VIDEO GENERICO */
.hc-video-picker{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    margin-bottom:16px;
    padding:0 6px;
    box-sizing:border-box;
}

.hc-video-picker input[type="file"]{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.dashboard-box .hc-video-picker-button{
    flex:0 0 170px;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:170px;
    height:44px;
    min-height:44px;
    margin:0!important;
    padding:0 14px!important;
    border:1px solid rgba(var(--color-primary-rgb),.3);
    border-radius:10px;
    background:var(--color-primary-light);
    color:var(--color-primary);
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    line-height:1!important;
    box-sizing:border-box;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

.hc-video-picker-button-content{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px;
    height:20px;
    margin:0!important;
    padding:0!important;
    line-height:20px!important;
}

.hc-video-picker-button-content svg{
    position:static!important;
    flex:0 0 20px;
    display:block!important;
    width:20px!important;
    height:20px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
}

.hc-video-picker-button-content span{
    display:block!important;
    height:20px;
    margin:0!important;
    padding:0!important;
    font-size:14px;
    line-height:20px!important;
    white-space:nowrap;
}

.dashboard-box .hc-video-picker-button:hover{
    border-color:var(--color-primary);
    background:#fff1f8;
}

.dashboard-box .hc-video-picker-button:active{
    transform:scale(.98);
}

.hc-video-picker-name{
    flex:1;
    display:flex;
    align-items:center;
    min-width:0;
    height:44px;
    padding:0 12px;
    overflow:hidden;
    border:1px dashed #d9bdca;
    border-radius:10px;
    background:#f6edf2;
    color:#9c8791;
    font-size:12px;
    line-height:1;
    white-space:nowrap;
    box-sizing:border-box;
}

.hc-video-picker.has-file .hc-video-picker-button{
    border-color:var(--color-primary);
    background:var(--color-primary);
    color:#fff;
}

.hc-video-picker.has-file .hc-video-picker-name{
    border-style:solid;
    border-color:rgba(var(--color-primary-rgb),.4);
    color:#493b42;
    font-weight:600;
}

@media(max-width:600px){
    .hc-video-picker{
        gap:8px;
        padding:0 4px;
    }

    .dashboard-box .hc-video-picker-button{
        flex-basis:145px;
        width:145px;
        height:42px;
        min-height:42px;
        padding:0 10px!important;
    }

    .hc-video-picker-name{
        height:42px;
        padding:0 9px;
        font-size:11px;
    }
}

/* VIDEO IN VENDITA */
.video-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    width:100%;
}

.video-card{
    width:100%;
    padding:12px;
    overflow:hidden;
    border:1px solid #e6e6e6;
    border-radius:14px;
    background:#f7f7fa;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    box-sizing:border-box;
}

.video-title{
    width:100%;
    margin-bottom:10px;
    color:#292329;
    font-size:15px;
    font-weight:600;
    line-height:1.45;
    text-align:left;
    overflow-wrap:anywhere;
    box-sizing:border-box;
}

.video-thumb{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border-radius:10px;
    background:#000;
}

.video-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    transition:transform .25s ease;
}

.video-play-icon{
    position:absolute;
    top:50%;
    left:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    padding-left:4px;
    border-radius:50%;
    background:rgba(0,0,0,.65);
    color:#fff;
    font-size:22px;
    pointer-events:none;
    transform:translate(-50%,-50%);
    backdrop-filter:blur(4px);
}

.video-info-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    margin:10px 0 8px;
    color:#555;
    font-size:12px;
    text-align:center;
}

.video-info-row .info-item{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    padding:4px;
}

.video-price-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding-top:10px;
    border-top:1px solid #e5e5e5;
}

.video-price-left,.video-price-right{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.video-price-left{
    color:var(--color-primary);
    font-size:18px;
    font-weight:800;
}

.video-price-right a{
    display:flex;
    align-items:center;
    gap:6px;
    color:#333;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    transition:color .2s ease;
}

.video-price-right a:hover{
    color:var(--color-primary);
}

@media(max-width:600px){
    .video-grid{
        gap:14px;
    }

    .video-card{
        padding:10px;
    }

    .video-title{
        font-size:14px;
    }

    .video-play-icon{
        width:46px;
        height:46px;
        font-size:19px;
    }

    .video-info-row{
        font-size:11px;
    }
}


/*icona play */

.video-play-icon{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    width:55px;
    height:55px;
    border-radius:50%;

    background:rgba(0,0,0,0.55);
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:22px;
    padding-left:3px;

    pointer-events:none;
    transition:.2s ease;
}

.video-card:hover .video-play-icon{
    transform:translate(-50%,-50%) scale(1.08);
    background:rgba(0,0,0,0.7);
}


.video-card:hover .video-thumb img{
    transform:scale(1.03);
}

.video-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:15px;
}

.video-stat{
    text-align:center;
    padding:12px 8px;

    background:#fafafa;

    border:1px solid #e5e5e5;
    border-radius:10px;
}

.video-stat-label{
    font-size:12px;
    color:#777;
    margin-bottom:6px;
    font-weight:600;
}

.video-stat-value{
    font-size:16px;
    font-weight:700;
    color:#333;
}

.add-thumb-box{
    position:relative;
    aspect-ratio:1/1;

    border:2px dashed #ccc;
    border-radius:10px;

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;

    overflow:hidden;

    background:#fafafa;
}

.add-thumb-box span{
    font-size:42px;
    color:#999;
    pointer-events:none;
}

.add-thumb-box input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}
.thumb-select{
    cursor:pointer;
    border:2px solid transparent;
    transition:.2s ease;
    position:relative;
}

.thumb-select.selected{
    border:2px solid #ff4da6;
    transform:scale(0.98);
}

.thumb-select.selected::after{
    content:"✓";
    position:absolute;
    top:6px;
    right:8px;

    background:#ff4da6;
    color:#fff;

    font-size:12px;
    font-weight:700;

    width:20px;
    height:20px;
    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;
}

.video-preview-box{
    width:100%;
    max-width:900px;
    margin:20px auto;
    border-radius:12px;
    overflow:hidden;
    background:#000;
    box-shadow:0 2px 12px rgba(0,0,0,0.1);
}

.video-preview-box video{
    display:block;
    width:100%;
    height:auto;
}


/* offerte */
.offer-tabs{
    display:flex;
    border:1px solid #ddd;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:10px;
}
.offer-tab{
    flex:1;
    text-align:center;
    padding:10px;
    cursor:pointer;
    background:#fff;
    transition:.2s;
    border-right:1px solid #eee;
}
.offer-tab:last-child{
    border-right:0;
}
.offer-tab.active{
    background:#fff0f7;
    color:#ff4da6;
    font-weight:700;
}

.offer-type-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}
.offer-type-card{

    cursor:pointer;

    border:2px solid #ddd;
    border-radius:12px;

    padding:20px 10px;

    text-align:center;

    background:#fff;

    transition:.2s;

    user-select:none;

    display:flex;
    flex-direction:column;
    gap:8px;
}

.offer-type-card:hover{
    border-color:#ff4da6;
}

.offer-type-card.active{

    background:#fff0f7;

    border-color:#ff4da6;

    color:#ff4da6;

    font-weight:700;
}


.offer-type-option{
    display:flex;
    align-items:center;
    gap:8px;
}

.offer-summary-table{
    width:100%;
    overflow:hidden;
    border:1px solid #e8e8e8;
    border-radius:12px;
    background:#fff;
    margin-top:12px;
}

.offer-summary-columns{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

@media(max-width:640px){
    .offer-summary-columns{
        grid-template-columns:repeat(2,1fr);
    }

    .offer-summary-card:nth-child(2n){
        border-right:0;
    }

    .offer-summary-card:nth-child(n+3){
        border-top:1px solid #e8e8e8;
    }
}

.offer-summary-card{
    display:flex;
    align-items:center;
    flex-direction:column;
    gap:4px;
    min-width:0;
    padding:16px 8px;
    text-align:center;
    border-right:1px solid #e8e8e8;
}

.offer-summary-card:last-child{
    border-right:0;
}

.offer-summary-icon{
    margin-bottom:2px;
    font-size:22px;
    line-height:1;
}

.offer-summary-card strong{
    color:#222;
    font-size:14px;
}

.offer-summary-card span{
    color:#888;
    font-size:12px;
}

.offer-summary-card-price{
    margin-top:4px;
    color:var(--color-primary);
    font-size:17px;
    font-weight:800;
}

.offer-summary-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    width:100%;
    padding:15px;
    border-top:1px solid #e8e8e8;
    background:rgba(var(--color-primary-rgb),.06);
    box-sizing:border-box;
}

.offer-summary-total span{
    color:#333;
    font-size:15px;
    font-weight:700;
}

.offer-summary-total strong{
    color:var(--color-primary);
    font-size:21px;
}

.offer-item-selected{
    border:2px solid var(--primary-color,#ff4da6) !important;
    background:#fff0f7 !important;
}

.offer-list{
    display:none;
}

.offer-list.active{
    display:block;
}

.offer-item{
    border:2px solid #eee;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
    cursor:pointer;
    transition:.15s;
}

.offer-item:hover{
    border-color:#ff4da6;
    transform:scale(1.02);
}

.offer-photo-box{
    aspect-ratio:1/1;
    width:100%;
    overflow:hidden;
    background:#f7f7fa;
}

.offer-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.offer-photo-price{
    text-align:center;
    padding:6px 0;
    font-weight:800;
    color:#ff4da6;
    border-top:1px solid #eee;
}


#offerFoto.offer-list.active{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

@media(min-width:768px){
    #offerFoto.offer-list.active{
        grid-template-columns:repeat(6,1fr);
    }
}

@media(min-width:1200px){
    #offerFoto.offer-list.active{
        grid-template-columns:repeat(8,1fr);
    }
}

#offerVideo.offer-list.active,
#offerServizi.offer-list.active,
#offerVip.offer-list.active{
    display:block;
}

.offer-video-item{
    display:flex;
    gap:10px;
    align-items:center;
    padding:8px;
    border:2px solid #eee;
    border-radius:8px;
    margin-bottom:8px;
    cursor:pointer;
    transition:.15s;
    width:100%;
    box-sizing:border-box;
}

.offer-video-item:hover{
    border-color:#ff4da6;
}

.offer-video-item.active{
    border-color:#ff4da6;
    background:#fff0f7;
}

.offer-video-thumb{
    position:relative;
    width:70px;
    height:70px;
    flex-shrink:0;
    overflow:hidden;
    border-radius:8px;
}

.offer-video-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.offer-video-icon{
    position:absolute;
    top:5px;
    right:5px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:rgba(0,0,0,.65);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:9px;
    pointer-events:none;
}

.offer-video-info{
    flex:1;
    min-width:0;
}

.offer-video-title{
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.offer-video-duration{
    font-size:12px;
    color:#888;
    margin-top:2px;
}
.offer-video-price{
    font-size:13px;
    font-weight:800;
    color:#ff4da6;
}

.offer-service-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
    border:2px solid #eee;
    border-radius:8px;
    margin-bottom:8px;
    cursor:pointer;
    transition:.15s;
    background:#fff;
}

.offer-service-item:hover{
    border-color:#ff4da6;
    background:#fff0f7;
}

.offer-service-item{
    flex-wrap:wrap;
}

.offer-service-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    width:100%;
}

.offer-service-quantity{
    display:none;
    width:100%;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(var(--color-primary-rgb),.18);
}

.offer-service-item.active .offer-service-quantity{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.offer-service-quantity label{
    margin:0;
    color:#555;
    font-size:14px;
    font-weight:600;
}

.offer-service-quantity input{
    width:110px;
    min-width:0;
    margin:0;
    padding:9px 11px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:16px;
    text-align:center;
    outline:none;
}

.offer-service-quantity input:focus{
    border-color:var(--color-primary);
    box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.12);
}

@media(max-width:480px){
    .offer-service-item.active .offer-service-quantity{
        align-items:stretch;
        flex-direction:column;
        gap:7px;
    }

    .offer-service-quantity input{
        width:100%;
    }
}

.offer-service-desc{
    font-weight:600;
}

.offer-service-price{
    font-weight:800;
    color:#ff4da6;
}
.offer-item.active,
.offer-video-item.active,
.offer-service-item.active{
    border:2px solid #ff4da6 !important;
    background:#fff0f7 !important;
}

.offer-edit-notice{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 18px;
    padding:14px;
    border:1px solid rgba(var(--color-primary-rgb),.25);
    border-radius:12px;
    background:rgba(var(--color-primary-rgb),.07);
}

.offer-edit-notice-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:50%;
    background:var(--color-primary);
    color:#fff;
}

.offer-edit-notice div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.offer-edit-notice strong{
    color:#222;
    font-size:15px;
}

.offer-edit-notice div span{
    color:#666;
    font-size:13px;
    line-height:1.4;
}

.offer-section-help{
    margin:-5px 0 14px;
    color:#777;
    font-size:13px;
    line-height:1.45;
}


/*gallery offerte*/

.offer-card{
    width:100%;
    margin:25px 0;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    padding:20px;
    position:relative;
}
.offer-expired{
    background:#fff5f5;
    border-color:#e74c3c;
}

.offer-expired-label{
    width:100%;
    text-align:center;
    color:#e74c3c;
    font-weight:bold;
    font-size:14px;
    margin-bottom:10px;
    padding:5px 0;
    border-bottom:1px solid #e74c3c;
}

.offer-media-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    margin-top:10px;
}
@media(min-width:768px){
    .offer-media-grid{
        grid-template-columns:repeat(6,1fr);
    }
}

.media-thumb{
    aspect-ratio:1/1;
    background:black;
    background-size:cover;
    background-position:center;
    background-color:#000;
    position:relative;
    border-radius:6px;
}

.media-price{
    position:absolute;
    bottom:2px;
    right:2px;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:9px;
    line-height:1;
    padding:2px 4px;
    border-radius:3px;
}

.offer-services{
    margin-top:12px;
    border-top:1px solid #eee;
}

.service-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #f0f0f0;
}

.service-item:last-child{
    border-bottom:none;
}

.service-name{
    font-size:14px;
    color:#444;
}


.service-price{
    font-size:15px;
    font-weight:700;
    color:#000;
}

.btn-edit, .btn-delete{
    padding:5px 10px;
    font-size:12px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.btn-edit{
    background:#3498db;
    color:#fff;
}

.btn-delete{
    background:#e74c3c;
    color:#fff;
}
.offer-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
}

.offer-price{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    margin-bottom:10px;
}

.old-price{
    text-decoration:line-through;
    opacity:.6;
}

.strike{
    text-decoration:line-through;
}

.new-price{
    font-size:24px;
    font-weight:700;
    color:#28a745;
}

.discount{
    background:#e74c3c;
    color:#fff;
    padding:2px 6px;
    border-radius:4px;
    font-size:12px;
    font-weight:700;
}

.offer-expire{
    margin-top:8px;
    font-size:13px;
    color:#666;
}
.offer-gift{
    margin-top:10px;
    padding:10px;
    background:#eafaf1;
    border:1px solid #9adbb3;
    border-radius:6px;
}

.offer-gift strong{
    display:block;
    margin-bottom:4px;
}

.offer-content{
    border-bottom:1px solid #eee;
    padding-bottom:10px;
}

.offer-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:12px;
}

.video{
    position:relative;
}

.video-play{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:26px;
    height:26px;
    border-radius:50%;
    background:rgba(0,0,0,.6);
}

.video-play:before{
    content:'';
    position:absolute;
    top:50%;
    left:55%;
    transform:translate(-50%,-50%);
    border-top:5px solid transparent;
    border-bottom:5px solid transparent;
    border-left:8px solid #fff;
}
.video-duration{
    position:absolute;
    top:2px;
    left:2px;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:9px;
    padding:2px 4px;
    border-radius:3px;
    line-height:1;
}

.offer-top-nav{
    margin-bottom:15px;
}

.offer-bottom-nav{
    margin-top:15px;
    text-align:center;
}

.offer-link{
    display:inline-block;
    color:#3498db;
    font-weight:600;
    text-decoration:none;
    font-size:14px;
}

.offer-link:hover{
    text-decoration:underline;
}

.offer-link.secondary{
    color:#666;
    font-weight:500;
}

.offers-header{
    display:flex;
    justify-content:flex-end;
    margin-bottom:15px;
}

.btn-create-offer{
    background:#28a745;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:0.2s;
}


.offer-services{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:12px;
}

.offer-services:empty{
    display:none;
}

.service-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:11px 12px;
    border:1px solid #e8e8e8;
    border-radius:10px;
    background:#fff;
}

.service-item-info{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.service-name{
    overflow:hidden;
    color:#222;
    font-size:14px;
    font-weight:700;
    text-overflow:ellipsis;
}

.service-detail{
    color:#777;
    font-size:12px;
}

.service-price{
    flex:0 0 auto;
    color:var(--color-primary);
    font-size:16px;
    font-weight:800;
}

.service-item-missing{
    border-color:#f1c8c8;
    background:#fff6f6;
}

.service-item-missing .service-name{
    color:#b34242;
}
.offer-purchase-dialog{
    display:flex;
    flex-direction:column;
    width:min(94vw,650px);
    max-height:calc(100dvh - 24px);
    overflow:hidden;
}

.offer-purchase-dialog .hc-modal-header,
.offer-purchase-dialog .hc-modal-actions{
    flex:0 0 auto;
}

.offer-purchase-scroll{
    flex:1 1 auto;
    min-height:0;
    padding-top:18px;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}

.offer-purchase-seller{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    padding:12px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fafafa;
}

.offer-purchase-seller img{
    width:52px;
    height:52px;
    flex:0 0 52px;
    border-radius:50%;
    object-fit:cover;
}

.offer-purchase-seller div{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.offer-purchase-seller span{
    color:#777;
    font-size:12px;
}

.offer-purchase-seller strong{
    overflow:hidden;
    color:#222;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.offer-purchase-description{
    margin-bottom:14px;
    color:#333;
    line-height:1.45;
}

.offer-purchase-package h3,
.offer-purchased-contents h3{
    margin:0 0 12px;
    font-size:16px;
}

.offer-purchase-package .offer-media-grid{
    margin-bottom:12px;
}

.offer-purchased-contents{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.offer-purchased-photo{
    overflow:hidden;
    border-radius:12px;
    background:#f5f5f5;
}

.offer-purchased-photo img{
    display:block;
    width:100%;
    height:auto;
}

.offer-purchased-video{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.offer-purchased-video video{
    display:block;
    width:100%;
    max-height:70vh;
    border-radius:12px;
    background:#000;
}

.offer-purchased-services{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.offer-purchased-service{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:12px;
    border:1px solid #e8e8e8;
    border-radius:10px;
    background:#fff;
}

.offer-purchased-service div{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.offer-purchased-service span{
    color:#777;
    font-size:12px;
}

.offer-purchased-service b{
    flex:0 0 auto;
    color:var(--color-primary);
}

.offer-purchased-gift{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:13px;
    border:1px solid rgba(var(--color-primary-rgb),.22);
    border-radius:10px;
    background:rgba(var(--color-primary-rgb),.06);
}

.offer-purchased-button,
.offer-purchased-button:hover{
    background:var(--color-success)!important;
    color:#fff!important;
}

.offer-card.offer-review{
    border:2px solid #e05252;
    background:#fff5f5;
    box-shadow:0 5px 18px rgba(190,35,35,.1);
}

.offer-review-label{
    margin-bottom:14px;
    padding:9px 12px;
    border-radius:9px;
    background:#d83b3b;
    color:#fff;
    font-size:13px;
    font-weight:800;
    letter-spacing:.3px;
    text-align:center;
}

.offer-review-warning{
    margin:14px;
    padding:14px;
    border:1px solid #ef9a9a;
    border-radius:11px;
    background:#fff;
    color:#762626;
    font-size:14px;
    line-height:1.45;
}

.offer-review-warning strong{
    display:block;
    margin-bottom:5px;
    font-size:15px;
}

.offer-review-warning p{
    margin:6px 0 0;
}

.btn-review-remove{
    min-height:42px;
    padding:10px 15px;
    border:0;
    border-radius:9px;
    background:#2f9c61;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

.btn-review-remove:disabled{
    opacity:.6;
    cursor:wait;
}

@media(max-width:600px){
    .offer-card.offer-review{
        border-width:2px;
    }

    .offer-review-warning{
        margin:10px;
    }

    .offer-card.offer-review .offer-actions{
        flex-direction:column;
    }

    .offer-card.offer-review .offer-actions button{
        width:100%;
    }
}

/*bacheca*/
.btn-create-offer:hover{
    background:#218838;
}
.post-tools{
    display:flex;
    gap:15px;
    margin-top:15px;
    margin-bottom:15px;
}

.tool-btn svg{
    width:28px;
    height:28px;
    fill:#e91e63;
    margin-bottom:5px;
}

.tool-btn{
    width:70px;
    height:70px;
    border:1px solid #ddd;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    background:#fff;
    transition:.2s;
}

.tool-btn:hover{
    transform:scale(1.05);
}

.tool-btn span{
    font-size:12px;
    margin-top:5px;
}

.post-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:20px;
    border:1px solid #e5e5e5;
}

.post-header{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
}

.post-avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.post-user{
    display:flex;
    flex-direction:column;
}

.post-name{
    font-size:15px;
    font-weight:700;
}

.post-date{
    font-size:12px;
    color:#888;
}

.post-description{
    padding:0 12px 12px;
    font-size:14px;
    line-height:1.45;
    cursor:pointer;
    white-space:pre-wrap;
}

.post-gallery{
    position:relative;
    overflow:hidden;
    border-radius:12px;
}

.post-slider{
    display:flex;
    transition:transform .35s ease;
    will-change:transform;
}


.post-counter{
    position:absolute;
    top:10px;
    right:10px;
    z-index:10;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:4px 8px;
    border-radius:20px;
    font-size:12px;
}

.gallery-click{
    position:absolute;
    top:0;
    bottom:0;
    width:60px;
    z-index:20;

    display:flex;
    align-items:center;
    justify-content:center;

    user-select:none;
    cursor:pointer;
}

.gallery-prev{
    left:0;
}

.gallery-next{
    right:0;
}
.gallery-prev::before,
.gallery-next::before{
    width:42px;
    height:42px;

    border-radius:50%;

    background:rgba(0,0,0,.45);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;
    font-weight:bold;

    transition:.2s;

    opacity:.85;
}

.gallery-prev::before{
    content:"‹";
}

.gallery-next::before{
    content:"›";
}

.gallery-click:hover::before{
    opacity:1;
    transform:scale(1.08);
}
/*nascondi pulsanti su mobile*/
@media (hover:none){
    .gallery-click{
        display:none;
    }
}
@media(max-width:768px){
    .post-gallery .gallery-click{
        display:none !important;
    }
}


.post-media.active{
    display:block;
}

.post-counter{
    position:absolute;
    top:10px;
    right:10px;
    z-index:10;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
}

.post-actions{
    display:flex;
    align-items:center;
    gap:18px;
    padding:12px 5px;
    font-size:14px;
    color:#555;
}


.post-action{
    display:flex;
    align-items:center;
    gap:5px;
    cursor:pointer;
    user-select:none;
}


.post-action .icon{
    font-size:22px;
    line-height:1;
}

.profile-link{
    display:inline-flex;
    align-items:center;
    cursor:pointer;
    transition:.2s;
}

.profile-link:hover{
    opacity:.8;
}

.post-name.profile-link:hover{
    color:#00aff0;
}

.post-avatar{
    transition:.2s;
}

.profile-link:hover .post-avatar{
    transform:scale(1.05);
}


/* LIKE */

.like-action .icon{
    font-size:22px;
    transition:.2s;
}


.like-action .icon.active{
    color:#ff4d88;
}


.like-action .label{
    margin-left:5px;
    font-size:14px;
    transition:.2s;
}


.like-action .label.active{
    color:#ff4d88;
    font-weight:600;
}


/* PREFERITI */

.favorite-action{
    color:#888;
    cursor:pointer;
    transition:.2s;
}

.favorite-action .icon{
    font-size:18px;
    transition:.2s;
}

.favorite-action .label{
    font-weight:500;
    transition:.2s;
}

.favorite-action:hover{
    color:#d4af37;
}

.favorite-action .icon.active,
.favorite-action .label.active{
    color:#d4af37;
}

.favorite-action .label.active{
    font-weight:700;
}

.favorite-action .icon.active{
    animation:favoritePop .25s ease;
}

@keyframes favoritePop{
    0%{
        transform:scale(.8);
    }
    60%{
        transform:scale(1.3);
    }
    100%{
        transform:scale(1);
    }
}


/* VISUALIZZAZIONI */

.views-action{
    cursor:default;
    margin-left:auto;
}

.post-media-wrap{
    position:relative;
    width:100%;
    flex-shrink:0;
    overflow:hidden;
}

/* FOTO */
.post-media-wrap:not(.video-slide){
    aspect-ratio:1/1;
}


/* VIDEO BACHECA */
.video-slide{
    aspect-ratio:auto;
}


.post-video-wrap{
    position:relative;
    width:100%;
    background:#000;
}


.post-video{
    width:100%;
    height:auto;
    display:block;
    object-fit:contain;
}

.media-loader{
    position:absolute;
    inset:0;
    background:#ddd;
    overflow:hidden;
}

.media-loader::after{
    content:"";
    position:absolute;
    top:0;
    left:-150px;
    width:150px;
    height:100%;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.5),
        transparent
    );
    animation:skeleton 1.2s infinite;
}

@keyframes skeleton{
    from{
        left:-150px;
    }
    to{
        left:100%;
    }
}


.post-thumb{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(3px);
    transform:scale(1.05);
    pointer-events:none;
}

.post-media{
    position:relative;
    z-index:2;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity .35s ease;
    pointer-events:none;
    cursor:zoom-in;
}

/*video bacheca */
.post-video-wrap{
    position:relative;
    width:100%;
    background:#000;
}

.post-video{
    width:100%;
    height:auto;
    max-height:700px;
    display:block;
    object-fit:contain;
}

.video-controls{
    position:absolute;
    bottom:10px;
    left:10px;
    right:10px;
    z-index:50;
    display:flex;
    align-items:center;
    gap:10px;
    color:white;
}

.video-volume{
    border:0;
    background:rgba(0,0,0,.5);
    color:white;
    cursor:pointer;
    font-size:18px;
}

.video-progress{
    flex:1;
    cursor:pointer;
}

.video-time{
    font-size:12px;
    white-space:nowrap;
}

.video-slide{
    aspect-ratio:auto!important;
}


/* MENU POST */

.post-header{
    display:flex;
    align-items:center;
}

.post-user{
    flex:1;
}


.post-menu{
    position:relative;
}


.post-menu-btn{
    width:36px;
    height:36px;
    border:0;
    background:none;
    cursor:pointer;
    font-size:22px;
    color:#666;
    border-radius:50%;
    transition:.2s;
}

.post-menu-btn:hover{
    background:#f2f2f2;
}


.post-menu-dropdown{
    display:none;
    position:absolute;
    top:42px;
    right:0;
    min-width:180px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
    overflow:hidden;
    z-index:100;
}


.post-menu-dropdown.show{
    display:block;
}


.post-menu-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    cursor:pointer;
    transition:.15s;
    font-size:15px;
}


.post-menu-item:hover{
    background:#f5f5f5;
}
.post-menu-item.delete{
    color:#d32f2f;
}
.post-card{
    transition:
        opacity .35s ease,
        transform .35s ease,
        max-height .35s ease,
        margin .35s ease,
        padding .35s ease;
    overflow:hidden;
}

.post-card.removing{
    opacity:0;
    transform:scale(.95);
    max-height:0 !important;
    margin-top:0;
    margin-bottom:0;
    padding-top:0;
    padding-bottom:0;
}

.edit-description{
    width:100%;
    min-height:100px;
    resize:vertical;
    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
}


.save-edit-btn{
    margin-top:8px;
    color:white;
    border:0;
    padding:8px 18px;
    border-radius:20px;
    cursor:pointer;
}

/* modifica post */
.edit-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.edit-photo{
    position:relative;
    cursor:grab;
}

.edit-photo img{
    width:100%;
    aspect-ratio:1;
    object-fit:cover;
    border-radius:10px;
}

.delete-photo{
    position:absolute;
    top:5px;
    right:5px;
}

.add-photo{
    aspect-ratio:1;
    border:2px dashed #bbb;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    cursor:pointer;
}

/*sortable css */
.edit-photo{
    cursor:grab;
}

.edit-photo:active{
    cursor:grabbing;
}

.sortable-ghost{
    opacity:.4;
}

.sortable-chosen{
    transform:scale(1.03);
}

.sortable-drag{
    opacity:.9;
}

.save-loader{
    width:16px;
    height:16px;
    border:2px solid rgba(255,255,255,.4);
    border-top-color:white;
    border-radius:50%;
    display:inline-block;
    vertical-align:middle;
    margin-right:8px;
    animation:saveSpin .8s linear infinite;
}

@keyframes saveSpin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

#imageViewer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    z-index:99999;

    display:none;

    align-items:center;
    justify-content:center;
}


#imageViewer.active{
    display:flex;
}
@media(max-width:768px){
    #imageViewer .viewer-prev,
    #imageViewer .viewer-next{
        display:none !important;
    }
}


.viewer-backdrop{
    position:absolute;
    inset:0;
}


.viewer-content{
    position:relative;
    width:100%;
    height:100%;
    touch-action: pan-y;
    display:flex;
    align-items:center;
    justify-content:center;
}


/*popupfoto */
.viewer-image{
    max-width:95vw;
    max-height:95vh;
    object-fit:contain;
    user-select:none;
    pointer-events:none;
    animation:viewerZoom .25s ease;
}

@keyframes viewerZoom{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.viewer-close{
    position:absolute;
    top:20px;
    right:25px;
    z-index:10;
    width:45px;
    height:45px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.2);
    color:white;
    font-size:25px;
    cursor:pointer;
}

.viewer-prev,
.viewer-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    width:50px;
    height:70px;
    border:0;
    background:rgba(255,255,255,.15);
    color:white;
    font-size:50px;
    cursor:pointer;
}

.viewer-prev{
    left:20px;
}

.viewer-next{
    right:20px;
}

.viewer-counter{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(0,0,0,.6);
    color:white;
    padding:6px 14px;
    border-radius:20px;
    font-size:14px;
}

@media(max-width:768px){
    .viewer-prev,
    .viewer-next{
        display:none;
    }
    .viewer-image{
        max-width:100vw;
        max-height:100vh;
    }
}

.viewer-content{
    overflow:hidden;
    width:100%;
    height:100%;
}

.viewer-slider{
    display:flex;
    width:100%;
    height:100%;
    transition:transform .3s ease;
}

.viewer-slider img{
    min-width:100%;
    height:100%;
    object-fit:contain;
}

/*feed vuoto */
.empty-feed{
    text-align:center;
    padding:50px 20px;
    color:#888;
}

.empty-icon{
    font-size:45px;
    margin-bottom:15px;
}

.empty-title{
    font-size:20px;
    font-weight:600;
    color:#333;
    margin-bottom:8px;
}

.empty-text{
    font-size:14px;
}

/*profilo*/
.profile-cover{
    height:220px;
    background:#ddd;
    border-radius:12px 12px 0 0;
}

.profile-box{
    background:#fff;
    border-radius:0 0 12px 12px;
    padding:0 20px 25px;
    text-align:center;
    margin-bottom:20px;
    border:1px solid #e5e5e5;
    border-top:0;
    position:relative;
}

.profile-avatar{
    width:50%;
    max-width:180px;
    aspect-ratio:1;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #fff;
    margin-top:-90px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.profile-name{
    margin-top:12px;
    font-size:28px;
    font-weight:bold;
}

.profile-username{
    color:#777;
    margin-top:5px;
}

.profile-rating{
    margin-top:12px;
    color:#ffb400;
    font-size:18px;
    font-weight:bold;
}

.profile-rating span{
    color:#555;
    font-size:15px;
    margin-left:6px;
}

.profile-bio{
    margin:20px auto;
    max-width:700px;
    color:#444;
    text-align:left;
    line-height:1.5;
    white-space:pre-line;
}

.social-btn{
    width:58px;
    height:58px;
    border-radius:50%;
    border:1px solid #ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    cursor:pointer;
    transition:.2s;
    font-weight:bold;
}

.social-btn:hover{
    transform:translateY(-3px);
    border-color:#00aff0;
    color:#00aff0;
}

.contacts-management-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:12px;
}

.contacts-management{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:7px 12px;
    border-radius:8px;
    background:#f3f3f3;
    color:#555;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    transition:.2s;
}

.contacts-management:hover{
    background:#e8e8e8;
    color:#222;
}

.contacts-management-icon{
    font-size:15px;
}

.profile-management-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:8px;
}

.profile-management{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:7px 12px;
    border-radius:8px;
    background:#f3f3f3;
    color:#555;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    transition:.2s;
}

.profile-management:hover{
    background:#e8e8e8;
    color:#222;
}

.profile-management-icon{
    font-size:15px;
}


/* navigatore menu profilo */
.profile-nav{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin-bottom:15px;
}

.profile-nav-item{
    min-width:0;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:7px 2px 5px;
    text-align:center;
    cursor:pointer;
    transition:.2s;
    overflow:hidden;
}

.profile-nav-item:hover{
    border-color:#00aff0;
}

.profile-nav-item.active{
    border-color:#00aff0;
    background:#f6fcff;
}

.nav-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    font-size:10px;
    font-weight:600;
    white-space:nowrap;
}

.nav-icon{
    font-size:13px;
    line-height:1;
}

.nav-value{
    margin-top:2px;
    font-size:9px;
    line-height:12px;
    color:#666;
}

@media(min-width:768px){
    .profile-nav{
        gap:10px;
    }
    .profile-nav-item{
        padding:10px 5px 7px;
    }
    .nav-title{
        font-size:13px;
        gap:4px;
    }
    .nav-icon{
        font-size:17px;
    }
    .nav-value{
        margin-top:4px;
        font-size:11px;
    }
}




/*contenuto schede profilo */

.profile-tab-content{
    display:none;
    opacity:0;
    transform:translateX(40px);
}


.profile-tab-content.active{
    display:block;
    animation:tabSlide .35s ease forwards;
}


@keyframes tabSlide{

    from{
        opacity:0;
        transform:translateX(40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}


/* bottoni chat profilo */
.profile-social{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}

.social-btn{
    width:calc(25% - 12px);
    height:55px;
    border:2px solid currentColor;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.2s;
}

/* colori social */

.social-btn.whatsapp{
    color:#25D366;
    background:rgba(37,211,102,0.10);
}

.social-btn.telegram{
    color:#0088cc;
    background:rgba(0,136,204,0.10);
}

.social-btn.teams{
    color:#6264A7;
    background:rgba(98,100,167,0.10);
}

.social-btn.discord{
    color:#5865F2;
    background:rgba(88,101,242,0.10);
}

.social-btn.signal{
    color:#3A76F0;
    background:rgba(58,118,240,0.10);
}

.social-btn.email{
    color:#5f6368;
    background:rgba(95,99,104,0.10);
}


.social-btn.discord span{
    display:flex;
    flex-direction:column;
    line-height:14px;
    max-width:120px;
    overflow:hidden;
}


.social-btn svg{
    width:28px;
    height:28px;
    fill:currentColor;
}

.social-btn:hover{
    transform:translateY(-2px);
    filter:brightness(0.95);
}


.social-btn.discord strong{
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.social-btn.discord small{
    font-size:12px;
    font-weight:600;
}
/* upload anteprime */
/* CARICAMENTO MEDIA GENERICO */
.hc-media-upload{
    width:100%;
    margin-bottom:14px;
}

.hc-media-upload input[type="file"]{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.dashboard-box .hc-media-upload-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:44px;
    margin:0!important;
    padding:0 16px!important;
    border:1px solid rgba(var(--color-primary-rgb),.3);
    border-radius:10px;
    background:var(--color-primary-light);
    color:var(--color-primary);
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    line-height:1;
    box-sizing:border-box;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

.hc-media-upload-content{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    height:20px;
    line-height:20px;
}

.hc-media-upload-content svg{
    position:static!important;
    flex:0 0 20px;
    display:block!important;
    width:20px!important;
    height:20px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
}

.hc-media-upload-content span{
    display:block;
    margin:0;
    padding:0;
    line-height:20px;
}

.dashboard-box .hc-media-upload-button:hover{
    border-color:var(--color-primary);
    background:#fff1f8;
}

.dashboard-box .hc-media-upload-button:active{
    transform:scale(.98);
}

@media(max-width:600px){
    .dashboard-box .hc-media-upload-button{
        width:100%;
    }
}
#uploadQueue .upload-progress{
    background:var(--color-primary)!important;
}

/* griglia anteprime profilo */

.preview-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    width:100%;
}

.preview-item{
    position:relative;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:12px;
    cursor:pointer;
    background:#eee;
}

.preview-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.25s ease;
}

.preview-item:hover img{
    transform:scale(1.05);
}

/* icona video anteprime profilo*/

.preview-play{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    
    width:45px;
    height:45px;
    
    border-radius:50%;
    background:rgba(0,0,0,.55);
    color:white;
    
    display:flex;
    align-items:center;
    justify-content:center;
    
    font-size:20px;
    padding-left:3px;
}


/* effetto leggero sulle anteprime video */

.preview-item.video::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        transparent 60%,
        rgba(0,0,0,.15)
    );
    pointer-events:none;
}

/* popup anteprime profilo */
#previewViewer{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

#previewViewer.active{
    display:flex;
    align-items:center;
    justify-content:center;
}


.preview-viewer-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.85);
}


.preview-viewer-content{
    position:relative;
    width:90%;
    height:90%;
    overflow:hidden;
}


.preview-viewer-slider{
    width:100%;
    height:100%;
    display:flex;
    transition:.3s ease;
}


.preview-viewer-slider img,
.preview-viewer-slider video{
    min-width:100%;
    width:100%;
    height:100%;
    object-fit:contain;
}


.preview-viewer-close,
.preview-viewer-prev,
.preview-viewer-next{

    position:absolute;
    z-index:2;

    border:0;
    background:rgba(0,0,0,.5);
    color:white;

    width:45px;
    height:45px;

    border-radius:50%;

    font-size:30px;

    cursor:pointer;
}


.preview-viewer-close{
    top:20px;
    right:25px;
}


.preview-viewer-prev{
    left:25px;
    top:50%;
}


.preview-viewer-next{
    right:25px;
    top:50%;
}


.preview-viewer-counter{

    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);

    color:white;
    background:rgba(0,0,0,.5);

    padding:6px 14px;
    border-radius:20px;

}
@media(max-width:600px){

    .preview-viewer-prev,
    .preview-viewer-next{
        display:none;
    }

}

/* foto in vendita */
.shop-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.shop-card{
    position:relative;
    overflow:hidden;
    border-radius:12px;
}

.shop-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

/* lucchetto */
.shop-lock{
    position:absolute;
    top:8px;
    left:8px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(0,0,0,.55);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
}

/* prezzo */
.shop-price{
    position:absolute;
    bottom:8px;
    right:8px;
    background:#ff4da6;
    color:white;
    padding:4px 9px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

/* effetto desktop */
.shop-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:bold;
    opacity:0;
    transition:.2s;
}

.shop-card:hover .shop-overlay{
    opacity:1;
}


/* mobile */
@media(max-width:600px){

    .shop-lock{
        top:5px;
        left:5px;
        width:24px;
        height:24px;
        font-size:13px;
    }

    .shop-price{
        bottom:5px;
        right:5px;
        padding:3px 7px;
        font-size:11px;
    }

    .shop-overlay{
        display:none;
    }

}

#shopViewer{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

#shopViewer.active{
    display:flex;
}

.shop-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.92);
}

.shop-content{
    position:relative;
    width:min(90vw,700px);
    z-index:2;
}

.shop-slider{
    overflow:hidden;
    border-radius:12px;
    background:#000;
}

.shop-slider img,
.shop-slider video{
    display:block;
    width:100%;
    max-height:75vh;
    object-fit:contain;
}

.shop-counter{
    margin-top:12px;
    color:#fff;
    text-align:center;
}

.shop-buy{
    margin-top:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
}


.shop-close,
.shop-prev,
.shop-next{
    position:absolute;
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    z-index:3;
}

.shop-close{
    top:20px;
    right:20px;
}

.shop-prev{
    left:20px;
    top:50%;
    transform:translateY(-50%);
}

.shop-next{
    right:20px;
    top:50%;
    transform:translateY(-50%);
}

@media(hover:hover){

.shop-card:hover img{
    filter:brightness(.55);
}

.shop-card:hover .shop-overlay{
    opacity:1;
}

}

@media(max-width:768px){

    .shop-prev,
    .shop-next{
        display:none;
    }
    
    .shop-overlay{
        display:none;
    }

}

.shop-card img,
.shop-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(4px) brightness(.8);
    transform:scale(1.05);
    user-select:none;
    -webkit-user-drag:none;
    pointer-events:none;
}


/*video in vendita*/
.video-shop-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}


.video-shop-card{
    background:white;
    border:1px solid #eee;
    border-radius:15px;
    overflow:hidden;
}


.video-shop-title{
    padding:12px;
    font-size:17px;
    line-height:1.45;
    position:relative;
    overflow:hidden;
    cursor:pointer;
    box-sizing:border-box;
}

.video-shop-title.collapsed{
    max-height:calc(5.8em + 12px);
    padding-bottom:12px;
}

.video-shop-title.collapsed::after{
    content:"...";
    position:absolute;
    right:12px;
    bottom:12px;
    padding-left:25px;
    background:linear-gradient(to right,transparent,#fff 45%);
}


.video-thumb-slider{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#111;
    isolation:isolate;
}

.video-thumb-slider>img:not(.video-thumb-background){
    position:absolute;
    inset:0;
    z-index:2;
    display:none;
    width:100%;
    height:100%;
    object-fit:contain;
    filter:blur(3px);
}

.video-thumb-slider>img.active:not(.video-thumb-background){
    display:block;
}

.video-thumb-background{
    position:absolute;
    inset:-18px;
    z-index:1;
    display:none;
    width:calc(100% + 36px);
    height:calc(100% + 36px);
    object-fit:cover;
    filter:blur(18px) brightness(.65);
    transform:scale(1.08);
    pointer-events:none;
}

.video-thumb-slider.video-thumb-vertical{
    height:520px;
    max-height:68vh;
    aspect-ratio:auto;
}

.video-thumb-slider.video-thumb-vertical .video-thumb-background{
    display:block;
}

.video-thumb-slider.video-thumb-vertical>img.active:not(.video-thumb-background){
    object-fit:contain;
}

.video-thumb-slider.video-thumb-horizontal,.video-thumb-slider.video-thumb-square{
    height:auto;
    background:#111;
}

.video-thumb-slider.video-thumb-horizontal .video-thumb-background,.video-thumb-slider.video-thumb-square .video-thumb-background{
    display:none;
}

@media(max-width:600px){
    .video-thumb-slider.video-thumb-vertical{
        height:480px;
        max-height:68vh;
    }
}


.video-shop-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    text-align:center;
    padding:12px 5px;
    font-size:13px;
    color:#555;
}


.video-shop-card .btn-submit{
    margin:15px auto;
    display:block;
}

.video-shop-card .btn-submit strong{
    font-weight:800;
}

/* profilo lista prezzi */
.price-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:8px 10px;
}

.price-row{
    display:flex;
    align-items:center;
    width:100%;
    min-height:54px;
    padding:8px 10px;
    box-sizing:border-box;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:10px;
}

.price-description{
    width:75%;
    padding-right:10px;
    font-size:15px;
    line-height:1.35;
    color:#333;
}

.price-action{
    width:25%;
    display:flex;
    justify-content:flex-end;
}

.price-button{
    width:auto;
    min-width:58px;
    border:0;
    border-radius:8px;
    padding:7px 10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    background:#ff4da6;
    color:#fff;
}
.price-row{
    transition:background .2s ease,border-color .2s ease;
}

.price-row:hover{
    background:#fff;
    border-color:#d8d8d8;
}
.price-row{
    flex-wrap:wrap;
}

.service-purchase-response{
    width:100%;
    flex:0 0 100%;
    grid-column:1/-1;
    box-sizing:border-box;
}

.service-purchase-response:empty{
    display:none;
}

.service-purchase-response .success-box,
.service-purchase-response .error-box{
    width:100%;
    margin-top:10px;
    box-sizing:border-box;
}

/* pagamento libero in testa al listino del profilo */
.custom-payment-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin:8px 10px 0;
    padding:12px;
    box-sizing:border-box;
    background:#fff5fa;
    border:1px solid #f2cfe0;
    border-radius:10px;
}

.custom-payment-copy{
    display:flex;
    flex:1 1 230px;
    min-width:0;
    flex-direction:column;
    gap:2px;
}

.custom-payment-copy strong{
    font-size:15px;
    line-height:1.3;
    color:#333;
}

.custom-payment-copy span{
    font-size:13px;
    line-height:1.35;
    color:#777;
}

.custom-payment-controls{
    display:flex;
    align-items:center;
    flex:0 0 auto;
    gap:8px;
}

.custom-payment-input-wrap{
    display:flex;
    align-items:center;
    height:36px;
    overflow:hidden;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #dfb8cb;
    border-radius:8px;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.custom-payment-input-wrap:focus-within{
    border-color:#ff4da6;
    box-shadow:0 0 0 3px rgba(255,77,166,.12);
}

.custom-payment-currency{
    padding-left:10px;
    color:#777;
    font-size:14px;
    font-weight:700;
}

.custom-payment-input{
    width:92px;
    height:100%;
    padding:0 10px 0 5px;
    box-sizing:border-box;
    border:0;
    outline:0;
    background:transparent;
    color:#333;
    font:inherit;
    font-size:14px;
    text-align:right;
}

.custom-payment-response{
    margin-top:-2px;
}

@media(max-width:520px){
    .custom-payment-row{
        align-items:stretch;
    }

    .custom-payment-copy{
        flex-basis:100%;
    }

    .custom-payment-controls{
        width:100%;
    }

    .custom-payment-input-wrap{
        flex:1 1 auto;
    }

    .custom-payment-input{
        width:100%;
    }
}

/* profilo mostra offerte */
.offers-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:8px 10px;
}

.offer-card{
    width:100%;
    padding:14px;
    box-sizing:border-box;
    background:#fafafa;
    border:1px solid #ddd;
    border-radius:11px;
    transition:.2s ease;
}

.offer-card:hover{
    background:#fff;
    border-color:#ccc;
    transform:translateY(-1px);
}

.offer-description{
    font-size:16px;
    font-weight:600;
    line-height:1.4;
    color:#333;
}

.offer-items{
    margin-top:5px;
    font-size:13px;
    color:#777;
}

.offer-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:12px;
}

.offer-details{
    min-width:0;
}

.offer-badge{
    color:#ff4da6;
    font-size:14px;
    font-weight:700;
}

.offer-gift{
    margin-top:3px;
    font-size:13px;
    color:#555;
}

.offer-expire{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:14px;
    padding:10px 12px;
    border-radius:9px;
    font-size:13px;
}

.offer-expire span{
    color:#666;
}

.offer-expire strong{
    flex:0 0 auto;
    color:var(--color-primary);
}

.offer-no-expire{
    background:#f5f5f7;
    color:#666;
}

.offer-expire-active{
    border:1px solid rgba(var(--color-primary-rgb),.18);
    background:rgba(var(--color-primary-rgb),.06);
}

.offer-expire-ended{
    border:1px solid #f1c8c8;
    background:#fff3f3;
}

.offer-expire-ended strong{
    color:#c83f3f;
}

@media(max-width:480px){
    .offer-expire{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }
}

.offer-price{
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

.offer-old-price{
    color:#999;
    font-size:13px;
    text-decoration:line-through;
}

.offer-price strong{
    color:#333;
    font-size:18px;
}

.offer-button{
    width:100%;
    margin-top:12px;
    padding:9px;
    border:0;
    border-radius:8px;
    background:#ff4da6;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}
.offer-buy-price{
    border:0;
    background:#ff4da6;
    color:#fff;
    font-size:14px;
    font-weight:700;
    padding:6px 14px;
    border-radius:8px;
    cursor:pointer;
    white-space:nowrap;
    transition:background .2s ease,transform .2s ease;
}

.offer-buy-price:hover{
    background:#ff339d;
    transform:translateY(-1px);
}
.offer-expire{
    margin-top:12px;
    font-size:13px;
    color:#777;
}

.offer-no-expire{
    color:#2e9d50;
    font-weight:600;
}

.offer-countdown{
    font-weight:600;
}

.offer-countdown.expired{
    color:#d33;
}

.desideri-list{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.desiderio-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    overflow:hidden;
    transition:transform .2s ease,box-shadow .2s ease;
}

.desiderio-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.desiderio-photo{
    width:100%;
    height:100px;
    background:#f1f1f1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.desiderio-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.desiderio-text{
    padding:12px 14px 10px;
}

.desiderio-title{
    font-size:16px;
    color:#222;
    line-height:1.25;
    margin-bottom:6px;
}

.desiderio-description{
    max-height:110px;
    overflow-y:auto;
    font-size:14px;
    line-height:1.45;
    color:#555;
}

.desiderio-description::-webkit-scrollbar{
    width:5px;
}

.desiderio-description::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

.desiderio-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    border-top:1px solid #ddd;
}

.desiderio-action-info,
.desiderio-action{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.desiderio-action-info{
    flex-direction:column;
    text-align:center;
    gap:3px;
}

.desiderio-action-info span{
    font-size:11px;
    text-transform:uppercase;
    font-weight:500;
    color:#777;
    line-height:1.1;
}

.desiderio-action-info strong{
    font-size:18px;
    font-weight:700;
    color:#ff4da6;
    line-height:1.1;
}

.desiderio-action{
    border:0;
    border-left:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    font-size:14px;
    transition:background .2s ease;
}

.desiderio-action:hover{
    background:#f8f8f8;
}

.desiderio-progress-row{
    width:100%;
    padding:10px 12px 12px;
    box-sizing:border-box;
}

.desiderio-progress{
    width:100%;
    height:10px;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
}

.desiderio-progress-fill{
    height:100%;
    width:0;
    background:#28a745;
    border-radius:10px;
    transition:width .4s ease;
}

.desiderio-sort-card{
    display:none;
}


/* =========================================================
   TOOLBAR ORDINAMENTO
========================================================= */

.desideri-sort-toolbar{
    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:20px;
    margin-bottom:15px;
}


/* =========================================================
   MODALITÀ ORDINAMENTO
========================================================= */

.desiderio-sort-card{
    display:none;

    width:100%;

    min-height:80px;

    align-items:center;

    gap:12px;

    padding:8px;

    box-sizing:border-box;

    background:#fff;

    cursor:grab;

    user-select:none;
}


.desiderio-sort-card:active{
    cursor:grabbing;
}


/* quando siamo nella modalità ordinamento */

.desideri-list-sort{
    gap:8px;
}


.desideri-list-sort
.desiderio-card{
    cursor:grab;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.desideri-list-sort
.desiderio-card:active{
    cursor:grabbing;
}


/* immagine compatta */

.desiderio-sort-photo{
    width:20%;

    aspect-ratio:1/1;

    flex-shrink:0;

    border-radius:7px;

    overflow:hidden;

    background:#f2f2f2;
}


.desiderio-sort-photo img{
    width:100%;
    height:100%;

    display:block;

    object-fit:contain;

    pointer-events:none;
}


/* descrizione compatta */

.desiderio-sort-description{
    flex:1;

    min-width:0;

    font-size:14px;

    color:#444;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

    pointer-events:none;
}


/* durante drag */

.desiderio-sort-ghost{
    opacity:.35;
}


.desiderio-sort-chosen{
    box-shadow:
        0 4px 15px rgba(0,0,0,.15);
}


.desiderio-sort-drag{
    cursor:grabbing;
}


/* =========================================================
   PROGRESS UPLOAD
========================================================= */

.desiderio-upload-progress-wrap{
    width:100%;

    height:8px;

    margin-top:15px;

    background:#ddd;

    border-radius:10px;

    overflow:hidden;
}


#uploadProgressBar{
    width:0;
    height:100%;

    background:#ff4da6;

    border-radius:10px;

    transition:width .15s linear;
}


/* =========================================================
   POPUP MODIFICA DESIDERIO
========================================================= */

#desiderioModal{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.65);
}


/* contenitore */
#desiderioModal
.desiderio-modal-content{
    position:relative;
    width:100%;
    max-width:520px;
    max-height:90vh;
    overflow-y:auto;
    padding:25px;
    background:#fff;
    border-radius:16px;
    border:1px solid #ddd;
    box-shadow:
        0 15px 50px rgba(0,0,0,.30);
    box-sizing:border-box;
}

/* titolo */
#desiderioModal
.desiderio-modal-content h2{
    margin:0 0 22px 0;
    font-size:22px;
    line-height:1.2;
    color:#222;
    text-align:left;
}

/* CHIUSURA POPUP */
#closeDesiderioModal{
    position:fixed;
    top:20px;
    right:25px;
    z-index:10001;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    color:#333;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    box-shadow:
        0 3px 12px rgba(0,0,0,.25);
    transition:.2s;
}

#closeDesiderioModal:hover{
    background:#f5f5f5;
    transform:scale(1.05);
}

/* FOTO POPUP */
.desiderio-edit-photo-row{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
    padding-bottom:20px;
    border-bottom:1px solid #eee;
}

.desiderio-edit-photo{
    width:150px;
    height:150px;
    flex-shrink:0;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f3f3;
    border:1px solid #ddd;
    border-radius:12px;
}

.desiderio-edit-photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

/* cambio foto */
.desiderio-edit-photo-upload{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.desiderio-photo-add{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#ff4da6;
    color:#fff;
    font-size:32px;
    font-weight:300;
    line-height:1;
    cursor:pointer;
    box-shadow:
        0 4px 10px rgba(255,77,166,.25);
    transition:
        transform .2s,
        background .2s;
}

.desiderio-photo-add:hover{
    background:#f23895;
    transform:scale(1.06);
}

.desiderio-photo-hint{
    font-size:12px;
    color:#777;
    text-align:center;
}


/* CAMPI FORM POPUP */
#desiderioModal
.form-group{
    margin-bottom:18px;
}

#desiderioModal
.form-group label{
    display:block;
    margin-bottom:7px;
    font-size:14px;
    font-weight:600;
    color:#333;
}


#desiderioModal input[type="text"],#desiderioModal textarea,#desiderioModal input[type="number"]{
    display:block;
    width:100%;
    height:46px;
    padding:0 13px;
    box-sizing:border-box;
    border:1px solid #d5d5d5;
    border-radius:9px;
    background:#fff;
    color:#222;
    font-family:inherit;
    font-size:15px;
    outline:none;
    transition:
        border-color .2s,
        box-shadow .2s;
}
#desiderioModal textarea{
    height:auto;
    min-height:100px;
    padding:10px 13px;
    resize:vertical;
}


#desiderioModal input[type="text"]:focus, #desiderioModal input[type="number"]:focus, textarea {
    border-color:#ff4da6;
    box-shadow:
        0 0 0 3px
        rgba(255,77,166,.12);
}


/* PULSANTI POPUP */
#desiderioModal
#saveDesiderio{
    width:100%;
    min-height:46px;
    margin-top:5px;
    border:0;
    border-radius:9px;
    cursor:pointer;
    font-family:inherit;
    font-size:15px;
    font-weight:600;
    transition:.2s;
}


#desiderioModal
#deleteDesiderioModal{
    width:100%;
    min-height:44px;
    margin-top:10px;
    border-radius:9px;
    cursor:pointer;
    font-family:inherit;
    font-size:14px;
    transition:.2s;
}

/* messaggi */
#responseDesiderioModal{
    margin-bottom:15px;
}

/* MOBILE */
@media(max-width:500px){
    #desiderioModal{
        padding:12px;
    }
    #desiderioModal
    .desiderio-modal-content{
        max-height:92vh;
        padding:20px;
        border-radius:14px;
    }
    #desiderioModal
    .desiderio-modal-content h2{
        font-size:20px;
        margin-bottom:18px;
    }
    .desiderio-edit-photo-row{
        gap:15px;
    }
    .desiderio-edit-photo{
        width:120px;
        height:120px;
    }
    .desiderio-photo-add{
        width:46px;
        height:46px;
        font-size:28px;
    }
    #closeDesiderioModal{
        top:12px;
        right:15px;
        width:36px;
        height:36px;
        font-size:24px;
    }
    .desiderio-sort-card{
        min-height:70px;
        padding:6px;
        gap:10px;
    }
    .desiderio-sort-description{
        font-size:13px;
    }
}
/* DESIDERI PUBBLICI */
.pubblico-desiderio{
    width:100%;
    margin-bottom:15px;
    background:#fafafa;
    border:1px solid #ddd;
    border-radius:12px;
    overflow:hidden;
    box-sizing:border-box;
}

.wish-contribution-dialog{
    width:min(520px,calc(100% - 24px));
}

.wish-contribution-body{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.wish-contribution-model{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:12px;
    background:#fff3f9;
}

.wish-contribution-model img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
    background:#eee;
}

.wish-contribution-model div{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:3px;
}

.wish-contribution-model span{
    color:#777;
    font-size:13px;
}

.wish-contribution-model strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.wish-contribution-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.wish-contribution-item img{
    width:90px;
    height:90px;
    flex:0 0 90px;
    border-radius:12px;
    object-fit:cover;
    background:#eee;
}

.wish-contribution-item div{
    min-width:0;
}

.wish-contribution-item p{
    margin:7px 0 0;
    color:#666;
    line-height:1.45;
    white-space:pre-line;
}

.wish-contribution-values{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.wish-contribution-values div{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:12px;
    border:1px solid #eee;
    border-radius:11px;
}

.wish-contribution-values span{
    color:#777;
    font-size:13px;
}

.wish-contribution-values strong{
    font-size:18px;
}

#wishContributionModal .wish-contribution-amount{
    display:block;
    width:100%;
    box-sizing:border-box;
}

#wishContributionModal .wish-contribution-amount>label{
    display:block;
    margin:0 0 8px;
    color:#30282c;
    font-size:14px;
    font-weight:700;
}

#wishContributionModal .wish-contribution-input{
    display:flex;
    width:100%;
    height:54px;
    min-height:54px;
    align-items:center;
    overflow:hidden;
    border:1px solid #d9ccd3;
    border-radius:12px;
    background:#fff;
    box-sizing:border-box;
    transition:border-color .2s ease,box-shadow .2s ease;
}

#wishContributionModal .wish-contribution-input:focus-within{
    border-color:#ff4da6;
    box-shadow:0 0 0 3px rgba(255,77,166,.13);
}

#wishContributionModal .wish-contribution-input.has-error{
    border-color:#d93025;
    box-shadow:0 0 0 3px rgba(217,48,37,.1);
}

#wishContributionModal #wishContributionAmount{
    display:block;
    flex:1 1 auto;
    width:100%;
    min-width:0;
    height:52px;
    min-height:52px;
    margin:0;
    padding:0 16px;
    border:0;
    border-radius:0;
    background:transparent;
    color:#222;
    font-family:inherit;
    font-size:18px;
    font-weight:700;
    line-height:52px;
    outline:0;
    box-shadow:none;
    box-sizing:border-box;
    appearance:textfield;
    -moz-appearance:textfield;
}

#wishContributionModal #wishContributionAmount:focus{
    border:0;
    outline:0;
    box-shadow:none;
}

#wishContributionModal #wishContributionAmount::-webkit-inner-spin-button,
#wishContributionModal #wishContributionAmount::-webkit-outer-spin-button{
    margin:0;
    appearance:none;
    -webkit-appearance:none;
}

#wishContributionModal .wish-contribution-input>span{
    display:flex;
    width:54px;
    height:100%;
    flex:0 0 54px;
    align-items:center;
    justify-content:center;
    padding:0;
    border-left:1px solid #eee;
    background:#faf7f9;
    color:#444;
    font-size:18px;
    font-weight:700;
    box-sizing:border-box;
}

#wishContributionModal .wish-contribution-amount-error{
    display:none;
    margin-top:7px;
    color:#d93025;
    font-size:13px;
    font-weight:600;
    line-height:1.35;
}

#wishContributionModal .wish-contribution-amount-error.active{
    display:block;
}

#wishContributionModal .wish-contribution-amount>small{
    display:block;
    margin-top:7px;
    color:#777;
    font-size:12px;
    line-height:1.4;
}

@media(max-width:550px){
    .wish-contribution-item img{
        width:75px;
        height:75px;
        flex-basis:75px;
    }

    #wishContributionModal .wish-contribution-input{
        height:52px;
        min-height:52px;
    }

    #wishContributionModal #wishContributionAmount{
        height:50px;
        min-height:50px;
        font-size:17px;
        line-height:50px;
    }
}

/* FOTO */
.pubblico-desiderio-photo{
    width:100%;
    height:100px;
    background:#f1f1f1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.pubblico-desiderio-photo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

/* TITOLO */
.pubblico-desiderio-title{
    padding:12px 14px 4px;
    font-size:16px;
    line-height:1.3;
    color:#222;
}

.pubblico-desiderio-title strong{
    font-weight:700;
}

/* DESCRIZIONE */
.pubblico-desiderio-description{
    padding:4px 14px 12px;
    font-size:14px;
    line-height:1.45;
    color:#555;
    max-height:110px;
    overflow-y:auto;
}

.pubblico-desiderio-description::-webkit-scrollbar{
    width:5px;
}

.pubblico-desiderio-description::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

/* RIGA INFORMAZIONI */
.pubblico-desiderio-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    min-height:58px;
    border-top:1px solid #ddd;
    align-items:center;
}

.pubblico-desiderio-info{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-align:center;
    height:100%;
}

.pubblico-desiderio-info span{
    font-size:11px;
    text-transform:uppercase;
    font-weight:500;
    color:#777;
    line-height:1.1;
}

.pubblico-desiderio-info strong{
    font-size:18px;
    font-weight:700;
    color:#ff4da6;
    line-height:1.1;
}

/* BOTTONE REGALO */
.pubblico-desiderio-regalo{
    justify-self:center;
    align-self:center;
    width:auto;
    height:auto;
    min-width:0;
    min-height:0;
    margin:0;
    padding:6px 14px;
    border:0;
    border-radius:8px;
    background:#ff4da6;
    color:#fff;
    font-size:14px;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
    white-space:nowrap;
    box-sizing:border-box;
    appearance:none;
    -webkit-appearance:none;
    transition:background .2s ease,transform .2s ease;
}

.pubblico-desiderio-regalo:hover{
    background:#ff339d;
    transform:translateY(-1px);
}

/* PROGRESS */
.pubblico-desiderio-progress{
    width:100%;
    padding:10px 12px 12px;
    box-sizing:border-box;
}

.pubblico-desiderio-progress-bar{
    width:100%;
    height:10px;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
}

.pubblico-desiderio-progress-fill{
    width:0;
    height:100%;
    background:#28a745;
    border-radius:10px;
    transition:width .4s ease;
}

/*pulstante gestione*/
.tab-management {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.tab-management-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f3f3f3;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.tab-management-link:hover {
    background: #e8e8e8;
    color: #222;
}

.tab-management-icon {
    font-size: 15px;
}

/*gestione foto vendita */
/* GESTIONE FOTO IN VENDITA */
.sale-management-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:12px;
}

.sale-management-item{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    border:1px solid rgba(0,0,0,.05);
    border-radius:14px;
    background:#eee;
    cursor:pointer;
    box-shadow:0 3px 12px rgba(0,0,0,.1);
    transition:transform .2s ease,box-shadow .2s ease;
}

.sale-management-item:hover{
    transform:translateY(-2px);
    box-shadow:0 7px 18px rgba(0,0,0,.16);
}

.sale-management-item img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.sale-management-price{
    position:absolute;
    right:8px;
    bottom:8px;
    padding:6px 10px;
    border:1px solid rgba(255,255,255,.55);
    border-radius:20px;
    background:var(--color-primary);
    color:#fff;
    font-size:13px;
    font-weight:700;
    line-height:1;
    pointer-events:none;
    box-shadow:0 2px 8px rgba(var(--color-primary-rgb),.35);
}

.sale-management-drag{
    position:absolute;
    top:8px;
    right:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border:1px solid rgba(255,255,255,.45);
    border-radius:50%;
    background:rgba(20,20,20,.68);
    color:#fff;
    font-size:16px;
    cursor:grab;
    user-select:none;
    touch-action:none;
    backdrop-filter:blur(5px);
}

.sale-management-drag:active{
    cursor:grabbing;
}

.sortable-ghost{
    opacity:.35;
}

.fade-out{
    opacity:0;
    transform:scale(.8);
    transition:opacity .25s ease,transform .25s ease;
}


/* SELETTORE FOTO GENERICO */
.hc-photo-picker{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    margin-bottom:16px;
    padding:0 6px;
    box-sizing:border-box;
}

.hc-photo-picker input[type="file"]{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.dashboard-box .hc-photo-picker-button{
    flex:0 0 170px;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:170px;
    height:44px;
    min-height:44px;
    margin:0!important;
    padding:0 14px!important;
    border:1px solid rgba(var(--color-primary-rgb),.3);
    border-radius:10px;
    background:var(--color-primary-light);
    color:var(--color-primary);
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    line-height:1!important;
    box-sizing:border-box;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

.hc-photo-picker-button-content{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px;
    height:20px;
    margin:0!important;
    padding:0!important;
    line-height:20px!important;
}

.hc-photo-picker-button-content svg{
    position:static!important;
    flex:0 0 19px;
    display:block!important;
    width:19px!important;
    height:19px!important;
    margin:0!important;
    padding:0!important;
    vertical-align:middle!important;
    transform:none!important;
}

.hc-photo-picker-button-content span{
    display:block!important;
    height:20px;
    margin:0!important;
    padding:0!important;
    font-size:14px;
    line-height:20px!important;
    white-space:nowrap;
}

.dashboard-box .hc-photo-picker-button:hover{
    border-color:var(--color-primary);
    background:#fff1f8;
}

.dashboard-box .hc-photo-picker-button:active{
    transform:scale(.98);
}

.hc-photo-picker-preview{
    flex:0 0 64px;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:44px;
    min-height:44px;
    overflow:hidden;
    padding:3px 6px;
    border:1px dashed #d9bdca;
    border-radius:10px;
    background:#f6edf2;
    color:#9c8791;
    font-size:9px;
    line-height:1.15;
    text-align:center;
    box-sizing:border-box;
}

.hc-photo-picker-preview img{
    position:absolute;
    inset:0;
    display:none;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.4) brightness(.9) contrast(.9);
    opacity:.85;
}

.dashboard-box .hc-photo-picker.has-file .hc-photo-picker-button{
    border-color:var(--color-primary);
    background:var(--color-primary);
    color:#fff;
}

.hc-photo-picker.has-file .hc-photo-picker-preview{
    padding:0;
    border-style:solid;
    border-color:rgba(var(--color-primary-rgb),.4);
    box-shadow:0 3px 10px rgba(0,0,0,.12);
}

.hc-photo-picker.has-file .hc-photo-picker-preview img{
    display:block;
}

.hc-photo-picker.has-file .hc-photo-picker-preview span{
    display:none;
}

@media(max-width:600px){
    .hc-photo-picker{
        gap:8px;
        padding:0 4px;
    }

    .dashboard-box .hc-photo-picker-button{
        flex-basis:160px;
        width:160px;
        max-width:calc(100% - 72px);
        height:42px;
        min-height:42px;
        padding:0 12px!important;
    }

    .hc-photo-picker-preview{
        flex-basis:64px;
        width:64px;
        height:42px;
        min-height:42px;
    }
}


/* POPUP GENERICO HAREM CAM */
.hc-modal{
    position:fixed;
    inset:0;
    z-index:10000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.hc-modal.active{
    display:flex;
}

body.hc-modal-open{
    overflow:hidden;
}

.hc-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(20,8,15,.75);
    cursor:pointer;
    backdrop-filter:blur(6px);
    animation:hcModalFade .2s ease;
}

.hc-modal-dialog{
    position:relative;
    z-index:1;
    width:min(520px,100%);
    max-height:calc(100vh - 40px);
    overflow-y:auto;
    border:1px solid rgba(255,255,255,.65);
    border-radius:22px;
    background:#fff;
    box-shadow:0 25px 70px rgba(0,0,0,.4);
    animation:hcModalOpen .25s ease;
}

.hc-modal-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    padding:20px 20px 16px;
    border-bottom:1px solid #f1dce7;
}

.hc-modal-heading{
    min-width:0;
}

.hc-modal-title{
    margin:0 0 4px;
    color:#272027;
    font-size:21px;
    line-height:1.25;
}

.hc-modal-subtitle{
    margin:0;
    color:#806f78;
    font-size:14px;
    line-height:1.45;
}

.hc-modal-close{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#f8eaf1;
    color:#d62f79;
    font-size:27px;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease,transform .2s ease;
}

.hc-modal-close:hover{
    background:#f3d9e6;
    transform:rotate(5deg);
}

.hc-modal-preview{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:260px;
    max-height:55vh;
    margin:18px;
    overflow:hidden;
    border:1px solid #eedce5;
    border-radius:16px;
    background:#f8f4f6;
}

.hc-modal-preview-dark{
    background:#211a1e;
}

.hc-modal-preview img,.hc-modal-preview video{
    display:block;
    width:100%;
    max-height:55vh;
    object-fit:contain;
}

.hc-modal-body{
    padding:0 20px 18px;
}

.hc-modal-field{
    margin-bottom:16px;
}

.hc-modal-field:last-child{
    margin-bottom:0;
}

.hc-modal-field>label{
    display:block;
    margin-bottom:8px;
    color:#41363c;
    font-size:14px;
    font-weight:700;
}

.hc-modal-input-group{
    display:flex;
    align-items:center;
    overflow:hidden;
    border:1px solid #ddc9d3;
    border-radius:12px;
    background:#fff;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.hc-modal-input-group:focus-within{
    border-color:#ff4da6;
    box-shadow:0 0 0 3px rgba(255,77,166,.14);
}

.hc-modal-input-group>span{
    padding-left:14px;
    color:#d62f79;
    font-weight:700;
}

.hc-modal-input-group input,.hc-modal-input-group textarea,.hc-modal-input-group select{
    width:100%;
    padding:13px;
    border:0;
    outline:0;
    background:transparent;
    color:#292027;
    font-size:16px;
}

.hc-modal-response:not(:empty){
    margin:0 20px 18px;
}

.hc-modal-actions{
    display:flex;
    gap:10px;
    padding:0 20px 20px;
}

.hc-modal-actions>button{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    margin:0;
    padding:12px 16px;
    border-radius:10px;
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
}

.hc-modal-btn-danger{
    border:1px solid #f1b8c5;
    background:#fff3f5;
    color:#c92549;
    transition:background .2s ease,border-color .2s ease;
}

.hc-modal-btn-danger:hover{
    border-color:#e98ca1;
    background:#ffe5ea;
}

@keyframes hcModalFade{
    from{opacity:0}
    to{opacity:1}
}

@keyframes hcModalOpen{
    from{opacity:0;transform:translateY(15px) scale(.98)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

@media(max-width:600px){
    .sale-management-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:9px;
    }

    .hc-modal{
        align-items:flex-end;
        padding:0;
    }

    .hc-modal-dialog{
        width:100%;
        max-height:92vh;
        border-radius:22px 22px 0 0;
        animation:hcModalOpenMobile .25s ease;
    }

    .hc-modal-preview{
        min-height:220px;
    }

    .hc-modal-actions{
        flex-direction:column;
    }
}

@keyframes hcModalOpenMobile{
    from{opacity:0;transform:translateY(40px)}
    to{opacity:1;transform:translateY(0)}
}
/* POPUP ACQUISTO FOTO */
.shop-modal-dialog{
    width:min(94vw,620px);
}
.shop-modal-preview{
    position:relative;
    min-height:320px;
    padding:0;
}
.shop-slider{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:320px;
    overflow:hidden;
}
.shop-slider img{
    display:block;
    width:100%;
    max-width:100%;
    max-height:70vh;
    object-fit:contain;
}
.shop-slider img.shop-photo-unlocked{
    filter:none!important;
    opacity:1!important;
    transform:none!important;
    backdrop-filter:none!important;
}
.shop-prev,.shop-next{
    position:absolute;
    top:50%;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(0,0,0,.55);
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    transform:translateY(-50%);
}
.shop-prev{
    left:12px;
}
.shop-next{
    right:12px;
}
.shop-counter{
    position:absolute;
    bottom:12px;
    left:50%;
    z-index:3;
    padding:5px 10px;
    border-radius:20px;
    background:rgba(0,0,0,.65);
    color:#fff;
    font-size:13px;
    transform:translateX(-50%);
}
.shop-buy .btn-submit{
    width:100%;
    min-height:44px;
}
@media(max-width:600px){
    .shop-modal-dialog{
        width:calc(100vw - 20px);
    }
    .shop-modal-preview,.shop-slider{
        min-height:260px;
    }
    .shop-prev,.shop-next{
        width:38px;
        height:38px;
        font-size:28px;
    }
}
/* FOTO GIÀ ACQUISTATE */
.shop-card-purchased{
    position:relative;
}
.shop-card-purchased img,.shop-slider img.shop-photo-unlocked{
    filter:none!important;
    -webkit-filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    opacity:1!important;
    transform:none!important;
}
.shop-card-purchased::before,.shop-card-purchased::after{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
}
.shop-card-purchased .shop-lock,.shop-card-purchased .shop-price,.shop-card-purchased .shop-overlay{
    display:none!important;
}
.shop-purchased-badge{
    position:absolute;
    right:8px;
    bottom:8px;
    z-index:4;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    margin:0;
    padding:5px 10px;
    border:0;
    border-radius:20px;
    background:var(--color-primary);
    color:#fff;
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    line-height:1;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    pointer-events:none;
}
.shop-card-purchased img{
    filter:none!important;
    -webkit-filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    opacity:1!important;
}
.shop-card-purchased .shop-lock,.shop-card-purchased .shop-price,.shop-card-purchased .shop-overlay{
    display:none!important;
}

/* FOTO GIÀ ACQUISTATE */
.shop-card.shop-card-purchased{
    border:2px solid var(--color-success);
    background:var(--color-success-light);
    box-shadow:0 3px 12px rgba(var(--color-success-rgb),.2);
    box-sizing:border-box;
}

.shop-card.shop-card-purchased img{
    filter:none!important;
    transform:none!important;
    opacity:1!important;
}

.shop-card.shop-card-purchased:hover img{
    filter:none!important;
    transform:none!important;
    opacity:1!important;
}

.shop-purchased-badge{
    position:absolute;
    left:6px;
    top:6px;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border:2px solid rgba(255,255,255,.9);
    border-radius:50%;
    background:var(--color-success);
    color:#fff;
    box-shadow:0 3px 9px rgba(var(--color-success-rgb),.35);
    font-size:16px;
    font-weight:800;
    line-height:1;
    pointer-events:none;
    box-sizing:border-box;
}

@media(max-width:600px){
    .shop-card.shop-card-purchased{
        border-width:2px;
    }

    .shop-purchased-badge{
        left:5px;
        top:5px;
        width:25px;
        height:25px;
        font-size:14px;
    }
}



/* POPUP ACQUISTO VIDEO */
#videoPurchaseModal .video-purchase-dialog{
    width:min(92vw,620px);
    max-width:620px;
    max-height:calc(100vh - 24px);
    max-height:calc(100dvh - 24px);
    overflow-x:hidden;
    overflow-y:auto;
    box-sizing:border-box;
}

#videoPurchaseModal .hc-modal-body,#videoPurchaseModal .hc-modal-actions,#videoPurchaseModal .hc-modal-response{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}

#videoPurchaseModal .video-purchase-subtitle{
    margin:0 0 5px;
    color:var(--color-primary);
    font-size:13px;
    font-weight:700;
}

#videoPurchaseModal .video-purchase-title{
    margin:0;
    color:#333;
    font-size:15px;
    font-weight:400;
    line-height:1.45;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

/* CONTENITORE ANTEPRIME O VIDEO ORIGINALE */
#videoPurchaseModal .video-purchase-preview{
    position:relative;
    display:block;
    width:calc(100% - 40px)!important;
    height:auto;
    min-width:0;
    min-height:0;
    max-width:100%;
    max-height:none;
    margin:18px 20px 0;
    padding:0!important;
    overflow:hidden;
    border-radius:14px;
    background:#000;
    box-sizing:border-box;
}

/* SLIDER ANTEPRIME: usa la stessa logica della lista */
#videoPurchaseModal .video-purchase-preview.has-previews{
    display:block;
    height:auto;
    max-height:none;
}

#videoPurchaseModal .video-purchase-slider{
    width:100%;
    margin:0;
    border-radius:0;
}

/* VIDEO ORIGINALE DOPO L'ACQUISTO */
#videoPurchaseModal .video-purchase-preview.has-original{
    display:flex;
    align-items:center;
    justify-content:center;
    height:500px;
    max-height:56vh;
    max-height:56dvh;
}

#videoPurchaseModal .video-purchase-original{
    position:static!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    background:#000;
    box-sizing:border-box;
}

/* INFORMAZIONI VIDEO */
#videoPurchaseModal .video-purchase-details{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
    color:#666;
    font-size:12px;
    text-align:center;
}

#videoPurchaseModal .video-purchase-details span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
}

/* BOTTONE ACQUISTO */
#videoPurchaseButton{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    width:fit-content!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:10px 20px!important;
}

/* MOBILE */
@media(max-width:600px){
    #videoPurchaseModal .video-purchase-dialog{
        width:calc(100vw - 20px);
        max-width:calc(100vw - 20px);
        max-height:calc(100vh - 20px);
        max-height:calc(100dvh - 20px);
    }

    #videoPurchaseModal .video-purchase-title{
        font-size:14px;
    }

    #videoPurchaseModal .video-purchase-preview{
        width:calc(100% - 24px)!important;
        margin:12px 12px 0;
        border-radius:11px;
    }

    #videoPurchaseModal .video-purchase-preview.has-original{
        height:440px;
        max-height:52vh;
        max-height:52dvh;
    }

    #videoPurchaseModal .video-purchase-details{
        gap:4px;
        font-size:11px;
    }
}

/* VIDEO GIÀ ACQUISTATI */
.video-shop-card.video-shop-purchased{
    border-color:rgba(var(--color-success-rgb),.55);
    background:linear-gradient(180deg,#fff 0%,rgba(var(--color-success-rgb),.1) 100%);
    box-shadow:0 3px 14px rgba(var(--color-success-rgb),.12),inset 0 0 0 1px rgba(var(--color-success-rgb),.05);
}

.video-shop-card.video-shop-purchased .video-shop-title{
    color:#176846;
}

.video-shop-card.video-shop-purchased .video-shop-info{
    color:#467060;
    border-top:1px solid rgba(var(--color-success-rgb),.12);
}

.video-shop-card.video-shop-purchased>.video-shop-action{
    border:1px solid var(--color-success)!important;
    background:var(--color-success)!important;
    color:#fff!important;
    box-shadow:0 4px 12px rgba(var(--color-success-rgb),.25);
}

.video-shop-card.video-shop-purchased>.video-shop-action:hover{
    border-color:var(--color-success-dark)!important;
    background:var(--color-success-dark)!important;
    box-shadow:0 5px 15px rgba(var(--color-success-rgb),.3);
}

.video-shop-card.video-shop-purchased>.video-shop-action:active{
    transform:scale(.97);
}
.video-shop-edit{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    width:fit-content;
    min-height:44px;
    margin:0 auto;
    padding:10px 16px;
    border:0;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    line-height:1.2;
    cursor:pointer;
}


/* LISTA RICARICHE */
.recharge-list-header h2{
    margin:0 0 14px;
    font-size:18px;
}
.recharge-table-head,.recharge-item{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    width:100%;
    box-sizing:border-box;
}
.recharge-table-head{
    padding:8px 10px;
    border-bottom:1px solid #ddd;
    background:#f1f1f3;
    color:#777;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
}
.recharge-table-head div:nth-child(2){
    text-align:center;
}
.recharge-table-head div:nth-child(3){
    text-align:right;
}
.recharge-list{
    display:flex;
    flex-direction:column;
    width:100%;
}
.recharge-item{
    min-height:58px;
    padding:9px 10px;
    border-bottom:1px solid #e7e7e7;
}
.recharge-item:last-child{
    border-bottom:0;
}
.recharge-main{
    min-width:0;
    padding-right:8px;
}
.recharge-date{
    overflow:hidden;
    color:#333;
    font-size:13px;
    font-weight:700;
    line-height:1.25;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.recharge-method{
    margin-top:3px;
    overflow:hidden;
    color:#888;
    font-size:11px;
    line-height:1.2;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.recharge-status{
    justify-self:center;
    padding:5px 8px;
    border-radius:20px;
    background:#eee;
    color:#666;
    font-size:11px;
    font-weight:700;
    line-height:1;
    text-align:center;
}
.recharge-status-completata{
    background:#e4f7ea;
    color:#278044;
}
.recharge-status-in_attesa{
    background:#fff3cd;
    color:#8a6d00;
}
.recharge-status-annullata{
    background:#fde8e8;
    color:#b3261e;
}
.recharge-amount{
    justify-self:end;
    color:var(--color-primary);
    font-size:15px;
    font-weight:800;
    line-height:1;
    text-align:right;
    white-space:nowrap;
}
.recharge-empty{
    padding:18px 10px;
    color:#888;
    font-size:13px;
    text-align:center;
}
@media(max-width:500px){
    .recharge-table-head,.recharge-item{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .recharge-table-head{
        padding:8px 6px;
        font-size:10px;
    }
    .recharge-item{
        padding:9px 6px;
    }
    .recharge-date{
        font-size:11px;
    }
    .recharge-method,.recharge-status{
        font-size:10px;
    }
    .recharge-amount{
        font-size:13px;
    }
}

/* SALDO DISPONIBILE */
.recharge-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}
.recharge-heading-text{
    min-width:0;
}
.recharge-heading-text h1{
    margin-top:0;
}
.recharge-heading-balance{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    padding:10px 14px;
    border:1px solid rgba(var(--color-primary-rgb),.25);
    border-radius:12px;
    background:var(--color-primary-light);
}
.recharge-heading-balance span{
    color:#777;
    font-size:11px;
    font-weight:600;
}
.recharge-heading-balance strong{
    margin-top:3px;
    color:var(--color-primary);
    font-size:22px;
    line-height:1;
    white-space:nowrap;
}

@media(max-width:600px){
    .recharge-heading{
        align-items:stretch;
        flex-direction:column;
    }
    .recharge-heading-balance{
        align-items:flex-start;
        width:100%;
        box-sizing:border-box;
    }
}

/* POSIZIONE POPUP VIDEO */
#videoPurchaseModal{
    align-items:center;
    justify-content:center;
    padding:12px;
    box-sizing:border-box;
}

#videoPurchaseModal .video-purchase-dialog{
    width:min(92vw,620px);
    height:auto;
    max-height:calc(100vh - 24px);
    max-height:calc(100dvh - 24px);
    margin:auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:22px;
    box-sizing:border-box;
    -webkit-overflow-scrolling:touch;
}

@media(max-width:600px){
    #videoPurchaseModal{
        align-items:center;
        justify-content:center;
        padding:10px;
    }

    #videoPurchaseModal .video-purchase-dialog{
        width:calc(100vw - 20px);
        max-width:620px;
        height:auto;
        max-height:90vh;
        max-height:90dvh;
        margin:auto;
        border-radius:20px;
        overflow-x:hidden;
        overflow-y:auto;
        animation:hcModalOpen .25s ease;
    }
}

.edit-video-preview{
    margin-top:14px;
    overflow:hidden;
    border-radius:12px;
    background:#000;
}

.edit-video-preview video{
    display:block;
    width:100%;
    max-height:65vh;
    object-fit:contain;
}

.edit-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:15px;
}

/* PULSANTI MODIFICA */
.edit-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    margin-top:16px;
}

.save-edit-btn,
.cancel-edit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:105px;
    min-height:42px;
    padding:10px 18px;
    border-radius:10px;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .2s,color .2s,border-color .2s,opacity .2s;
}

.save-edit-btn{
    border:1px solid var(--color-primary);
    background:var(--color-primary);
    color:#fff;
}

.save-edit-btn:hover{
    filter:brightness(.94);
}

.save-edit-btn:disabled{
    cursor:not-allowed;
    opacity:.7;
}

.cancel-edit-btn{
    border:1px solid #ddd;
    background:#fff;
    color:#444;
}

.cancel-edit-btn:hover{
    border-color:#bbb;
    background:#f4f4f4;
}

/* LOADER SALVATAGGIO */
.save-loader{
    display:inline-block;
    width:15px;
    height:15px;
    margin-right:7px;
    border:2px solid rgba(255,255,255,.45);
    border-top-color:#fff;
    border-radius:50%;
    box-sizing:border-box;
    animation:save-loader-spin .7s linear infinite;
}

@keyframes save-loader-spin{
    to{
        transform:rotate(360deg);
    }
}

/* popup acquisto servizi */
.hc-purchase-confirm-dialog{
    width:min(92vw,480px);
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
}

.hc-purchase-confirm-body{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.hc-purchase-confirm-seller{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fafafa;
}

.hc-purchase-confirm-seller img{
    width:52px;
    height:52px;
    flex:0 0 52px;
    border-radius:50%;
    object-fit:cover;
}

.hc-purchase-confirm-seller div{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.hc-purchase-confirm-seller span{
    color:#777;
    font-size:12px;
}

.hc-purchase-confirm-seller strong{
    overflow:hidden;
    color:#222;
    font-size:15px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.hc-purchase-confirm-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:14px;
    border:1px solid rgba(var(--color-primary-rgb),.25);
    border-radius:12px;
    background:rgba(var(--color-primary-rgb),.06);
}

.hc-purchase-confirm-item span{
    min-width:0;
    line-height:1.4;
}

.hc-purchase-confirm-item strong{
    flex:0 0 auto;
    color:var(--color-primary);
    font-size:18px;
}

.hc-purchase-confirm-actions{
    display:grid;
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
    gap:10px;
}

.hc-purchase-confirm-actions button{
    width:100%;
    min-width:0;
    min-height:46px;
    margin:0;
    padding:11px 18px;
}

.hc-payment-alternative{
    width:100%;
    box-sizing:border-box;
    padding:0 22px 20px;
}

.hc-payment-alternative[hidden]{
    display:none!important;
}

.hc-payment-separator{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    margin:2px 0 10px;
    color:#8b8b96;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.hc-payment-separator::before,
.hc-payment-separator::after{
    content:"";
    flex:1 1 auto;
    height:1px;
    background:#e3e3e8;
}

.hc-payment-separator span{
    flex:0 0 auto;
}

.hc-direct-payment-link{
    display:block;
    width:100%;
    margin:0;
    padding:4px 8px;
    border:0;
    background:transparent;
    color:#666674;
    cursor:pointer;
    font:inherit;
    font-size:13px;
    line-height:1.45;
    text-align:center;
}

.hc-direct-payment-link span{
    margin-right:4px;
}

.hc-direct-payment-link strong{
    color:var(--color-primary);
    font-weight:800;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
}

.hc-direct-payment-link:hover strong,
.hc-direct-payment-link:focus-visible strong{
    text-decoration-thickness:2px;
}

.service-purchase-response{
    grid-column:1/-1;
}

.service-purchased-button{
    border-color:var(--color-success)!important;
    background:var(--color-success)!important;
    color:#fff!important;
}

@media(max-width:480px){
    .hc-purchase-confirm-actions button{
        min-width:0;
    }
}

/* css aggintivo per prezzi con unità modificabile */
/* SELETTORE MODALITÀ PREZZO */
.price-type-selector{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
    margin-top:12px;
}

.price-type-title{
    grid-column:1/-1;
    margin-bottom:0;
    color:inherit;
    font-size:inherit;
    font-weight:600;
}

/* CONTENITORE OPZIONE */
.price-type-selector label{
    position:relative;
    display:block;
    min-width:0;
    margin:0;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}

/* NASCONDE IL RADIO NATIVO */
.price-type-selector input{
    position:absolute;
    width:1px;
    height:1px;
    margin:0;
    opacity:0;
    pointer-events:none;
}

/* RIQUADRO VISIBILE */
.price-type-selector label span{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:42px;
    padding:8px 7px;
    border:1px solid var(--color-primary);
    border-radius:10px;
    background:#fff;
    color:var(--color-primary);
    font-size:13px;
    font-weight:600;
    line-height:1.2;
    text-align:center;
    box-sizing:border-box;
    transition:background .2s,color .2s,box-shadow .2s,transform .15s;
}

/* OPZIONE SELEZIONATA */
.price-type-selector input:checked + span{
    background:var(--color-primary);
    color:#fff;
    box-shadow:0 3px 10px rgba(var(--color-primary-rgb),.22);
}

/* PASSAGGIO MOUSE */
.price-type-selector label:hover span{
    background:rgba(var(--color-primary-rgb),.08);
}

.price-type-selector label:hover input:checked + span{
    background:var(--color-primary);
}

/* ACCESSIBILITÀ DA TASTIERA */
.price-type-selector input:focus-visible + span{
    outline:3px solid rgba(var(--color-primary-rgb),.22);
    outline-offset:2px;
}

/* PRESSIONE */
.price-type-selector label:active span{
    transform:scale(.98);
}

@media(max-width:420px){
    .price-type-selector{
        gap:6px;
    }

    .price-type-selector label span{
        min-height:40px;
        padding:7px 4px;
        font-size:12px;
    }
}

.hc-purchase-confirm-quantity{
    padding:14px;
    border:1px solid #eee;
    border-radius:12px;
}

.hc-purchase-confirm-quantity label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:600;
}

.hc-purchase-confirm-quantity input{
    width:100%;
    height:44px;
    padding:0 12px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    font-size:16px;
    box-sizing:border-box;
}

.hc-purchase-confirm-quantity input:focus{
    border-color:var(--color-primary);
    box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.12);
}

.hc-purchase-confirm-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #eee;
}

.hc-purchase-confirm-total strong{
    color:var(--color-primary);
    font-size:19px;
}
.hc-purchase-confirm-quantity-error:empty{
    display:none;
}

.hc-purchase-confirm-quantity-error{
    margin-top:10px;
}

.hc-purchase-confirm-quantity-error .error-box{
    width:100%;
    margin:0;
    box-sizing:border-box;
}

/*popuo x non loggati */
.purchase-login-dialog{
    max-width:420px;
}

.purchase-login-body{
    padding:25px 20px;
    text-align:center;
}

.purchase-login-body p{
    margin:0;
    font-size:17px;
    font-weight:600;
    line-height:1.5;
}

.purchase-login-actions{
    display:flex;
    gap:10px;
}

.purchase-login-actions button{
    flex:1;
    height:46px;
}

.purchase-register-btn{
    border:1px solid var(--color-primary);
    border-radius:10px;
    background:white;
    color:var(--color-primary);
    font-size:16px;
    font-weight:600;
    cursor:pointer;
}

/* prezzi canale vip */
.vip-prices-box{
    margin-bottom:20px;
}

.vip-prices-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
    margin:18px 0;
}

.vip-price-field label{
    display:flex;
    align-items:baseline;
    flex-wrap:nowrap;
    gap:4px;
    margin-bottom:6px;
    font-weight:600;
    white-space:nowrap;
}

.vip-price-optional{
    display:inline;
    margin:0;
    min-height:0;
    font-size:11px;
    font-weight:400;
    color:var(--color-text-muted);
    white-space:nowrap;
}

.vip-price-limit{
    display:block;
    min-height:18px;
    margin-top:5px;
    font-size:12px;
    color:var(--color-text-muted);
}

.vip-price-input{
    display:flex;
    align-items:center;
    overflow:hidden;
    border:1px solid var(--color-border);
    border-radius:10px;
    background:#fff;
}

.vip-price-input input{
    width:100%;
    min-width:0;
    padding:12px;
    border:0;
    outline:0;
    background:transparent;
}

.vip-price-input span{
    padding:0 12px;
    color:var(--color-text-muted);
    font-weight:600;
}


.vip-prices-box .btn-submit{
    width:fit-content;
    margin:15px auto 0;
    padding:11px 20px;
}

#vipPricesResponse{
    margin-top:12px;
}

@media(max-width:600px){
    .vip-prices-grid{
        grid-template-columns:1fr;
    }
}


/* riepilogo area vip */
.vip-public-summary{
    overflow:hidden;
    border:1px solid var(--color-border);
    border-radius:14px;
    background:#fff;
}

.vip-public-header{
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px;
    border-bottom:1px solid var(--color-border);
}

.vip-public-icon{
    display:flex;
    flex:0 0 44px;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(var(--color-primary-rgb),.1);
    font-size:21px;
}

.vip-public-title{
    font-size:18px;
    font-weight:700;
}

.vip-public-subtitle{
    margin-top:3px;
    color:var(--color-text-muted);
    font-size:13px;
}

.vip-public-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    padding:16px;
    border-bottom:1px solid var(--color-border);
}

.vip-public-stat{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    text-align:center;
}

.vip-public-stat:not(:last-child){
    border-right:1px solid #e1e1e1;
}

.vip-public-stat strong{
    color:var(--color-primary);
    font-size:22px;
}

.vip-public-stat span{
    color:var(--color-text-muted);
    font-size:12px;
}

.vip-public-plans{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:18px;
    padding:14px;
    border:1px solid rgba(var(--color-primary-rgb),.15);
    border-radius:14px;
    background:rgba(var(--color-primary-rgb),.04);
}

.vip-public-plans-title{
    margin-bottom:2px;
    font-weight:700;
}

.vip-public-plan{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:14px;
    border:1px solid var(--color-border);
    border-radius:11px;
    background:#fff;
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.vip-public-plan:hover{
    border-color:rgba(var(--color-primary-rgb),.5);
    box-shadow:0 5px 16px rgba(var(--color-primary-rgb),.12);
    transform:translateY(-2px);
}

.vip-public-plan-info{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.vip-public-discount{
    color:var(--color-success);
    font-size:12px;
    font-weight:600;
}

.vip-public-note,
.vip-public-unavailable{
    margin:0 18px 18px;
    padding:12px;
    border-radius:10px;
    background:rgba(var(--color-primary-rgb),.07);
    color:var(--color-text-muted);
    font-size:13px;
    line-height:1.4;
}

.vip-public-buy{
    flex:0 0 auto;
    width:auto!important;
    min-width:0;
    margin:0!important;
    padding:9px 15px;
    white-space:nowrap;
}
@media(max-width:480px){
    .vip-public-plans{
        margin:12px;
        padding:10px;
    }

    .vip-public-plan{
        gap:10px;
        padding:12px;
    }

    .vip-public-buy{
        padding:9px 12px;
        font-size:13px;
    }
}

.purchased-offer-dialog{
    max-width:720px;
}

.purchased-offer-body{
    max-height:75vh;
    overflow-y:auto;
}

.purchased-offer-section{
    margin-bottom:22px;
}

.purchased-offer-section:last-child{
    margin-bottom:0;
}

.purchased-offer-section h3{
    margin:0 0 10px;
    font-size:16px;
    color:var(--color-text);
}

.purchased-offer-media{
    display:flex;
    flex-direction:column;
    width:100%;
    gap:14px;
    overflow:visible;
    padding:0;
}

.purchased-offer-media>img,
.purchased-offer-video{
    display:block;
    flex:none;
    width:100%;
    max-width:100%;
}

.purchased-offer-media img,
.purchased-offer-video video{
    display:block;
    width:100%;
    height:auto;
    max-height:none;
    border-radius:10px;
    background:#000;
    object-fit:contain;
}

.purchased-offer-video strong{
    display:block;
    margin-bottom:7px;
}

.purchased-offer-services{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.purchased-offer-service{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    padding:12px;
    border:1px solid var(--color-border);
    border-radius:10px;
    background:#fff;
}

.purchased-offer-service strong{
    flex-shrink:0;
    color:var(--color-primary);
}

.purchased-offer-gift{
    padding:14px;
    border:1px solid var(--color-primary-light);
    border-radius:10px;
    background:rgba(var(--color-primary-rgb),.06);
}

.purchased-offer-gift p{
    margin:7px 0 0;
    white-space:pre-wrap;
}

.anteprime-page .media-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.anteprime-page .media-item{
    width:100%;
    min-width:0;
    aspect-ratio:1 / 1;
    overflow:hidden;
}

.anteprime-page .media-item img,
.anteprime-page .media-item video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}


/* Tablet */
@media (min-width:720px){
    .anteprime-page .media-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:12px;
    }
}

/* Notebook e finestre desktop */
@media (min-width:1000px){
    .anteprime-page .media-grid{
        grid-template-columns:repeat(5,minmax(0,1fr));
    }
}

/* Desktop con sidebar fissa */
@media (min-width:1280px){
    .anteprime-page .media-grid{
        grid-template-columns:repeat(6,minmax(0,1fr));
        gap:14px;
    }
}

/*adeguamento foto in vendita*/
.foto-vendita-page .sale-management-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.foto-vendita-page .sale-management-item{
    width:100%;
    min-width:0;
    aspect-ratio:1 / 1;
    overflow:hidden;
}

.foto-vendita-page .sale-management-item img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

@media (min-width:720px){
    .foto-vendita-page .sale-management-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:12px;
    }
}

@media (min-width:1000px){
    .foto-vendita-page .sale-management-grid{
        grid-template-columns:repeat(5,minmax(0,1fr));
    }
}

@media (min-width:1280px){
    .foto-vendita-page .sale-management-grid{
        grid-template-columns:repeat(6,minmax(0,1fr));
        gap:14px;
    }
}

.sale-upload-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}

.sale-upload-field{
    min-width:0;
}

.sale-upload-field > label{
    display:block;
}

.sale-upload-field input[type="number"],
.sale-upload-action .btn-submit{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}

.sale-upload-action-label{
    display:none !important;
}

/* Tre elementi affiancati quando c'è spazio sufficiente */
@media (min-width:900px){
    .sale-upload-layout{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px;
        align-items:start;
    }

    .sale-upload-action-label{
        display:block !important;
        visibility:hidden;
    }
}

/* FORM VIDEO IN VENDITA */
.video-vendita-page .video-upload-description{
    margin-bottom:18px;
}

.video-vendita-page .video-upload-description textarea{
    margin-bottom:0;
}

.video-vendita-page .video-upload-fields{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}

.video-vendita-page .video-upload-field{
    min-width:0;
}

.video-vendita-page .hc-video-picker{
    margin-bottom:0;
    padding:0;
}

.video-vendita-page .video-upload-price input{
    margin-bottom:0;
}

.video-vendita-page .video-upload-action-label{
    display:none!important;
}

.video-vendita-page .video-upload-action .btn-submit{
    width:100%;
    max-width:none;
    min-height:44px;
    margin:0!important;
    box-sizing:border-box;
}

/* Tablet: upload largo, prezzo e pulsante affiancati */
@media (min-width:720px){
    .video-vendita-page .video-upload-fields{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
    }

    .video-vendita-page .video-upload-file{
        grid-column:1 / -1;
    }

    .video-vendita-page .video-upload-action-label{
        display:block!important;
        visibility:hidden;
    }
}

/* Desktop con sidebar: selettore video largo, prezzo e upload affiancati */
@media (min-width:1180px){
    .video-vendita-page .video-upload-fields{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px;
    }

    .video-vendita-page .video-upload-file{
        grid-column:1 / -1;
    }
}

/* GALLERIA VIDEO IN VENDITA */
.video-vendita-page .video-grid{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}

.video-vendita-page .video-card{
    min-width:0;
}

.video-vendita-page .video-title{
    width:100%;
    height:auto!important;
    min-height:0;
    max-height:none;
    margin-bottom:10px;
    padding:0;
    overflow:visible!important;
    color:#292329;
    font-size:14px!important;
    font-weight:400!important;
    line-height:20px;
    text-align:left;
    overflow-wrap:anywhere;
    scrollbar-gutter:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(var(--color-primary-rgb),.55) transparent;
    box-sizing:border-box;
}

.video-vendita-page .video-title::-webkit-scrollbar{
    width:6px;
}

.video-vendita-page .video-title::-webkit-scrollbar-track{
    border-radius:10px;
    background:transparent;
}

.video-vendita-page .video-title::-webkit-scrollbar-thumb{
    border-radius:10px;
    background:rgba(var(--color-primary-rgb),.55);
}

.video-vendita-page .video-title::-webkit-scrollbar-thumb:hover{
    background:var(--color-primary);
}

@media (min-width:768px){
    .video-vendita-page .video-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
    }

    .video-vendita-page .video-title{
        height:60px!important;
        min-height:60px;
        max-height:60px;
        padding-right:8px;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        scrollbar-gutter:stable;
    }
}

@media (min-width:1400px){
    .video-vendita-page .video-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px;
    }
}

/* ALLINEAMENTI PAGINA OFFERTE */
.offers-header,
.offer-actions{
    justify-content:flex-start;
}

/* La vecchia regola .service-item:last-child rimuoveva questo bordo */
.offer-services .service-item:last-child{
    border-bottom:1px solid #e8e8e8;
}

/* =========================================================
   GESTIONE LISTA DESIDERI
========================================================= */
.desideri-page .desiderio-create-form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.desideri-page .desiderio-create-field,
.desideri-page .desiderio-create-photo,
.desideri-page .desiderio-create-submit{
    min-width:0;
}

.desideri-page .desiderio-create-form input,
.desideri-page .desiderio-create-form textarea{
    margin-bottom:0;
}

.desideri-page .desiderio-create-description textarea{
    min-height:110px;
    resize:vertical;
}

.desideri-page .desiderio-create-photo-controls{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.desideri-page .desiderio-create-file-select{
    min-width:0;
}

.desideri-page .desiderio-create-file-select input[type="file"]{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.desideri-page .desiderio-create-file-select .hc-photo-picker-button{
    display:flex!important;
    width:100%;
    max-width:none;
    min-height:44px;
    margin:0!important;
    box-sizing:border-box;
}

.desideri-page .desiderio-create-file-name{
    display:flex;
    align-items:center;
    width:100%;
    min-width:0;
    height:44px;
    padding:0 12px;
    overflow:hidden;
    border:1px dashed #d9bdca;
    border-radius:10px;
    background:#f6edf2;
    color:#9c8791;
    font-size:12px;
    line-height:1;
    text-overflow:ellipsis;
    white-space:nowrap;
    box-sizing:border-box;
}

.desideri-page .desiderio-create-photo.has-file .hc-photo-picker-button{
    border-color:var(--color-primary);
    background:var(--color-primary);
    color:#fff;
}

.desideri-page .desiderio-create-photo.has-file .desiderio-create-file-name{
    border-style:solid;
    border-color:rgba(var(--color-primary-rgb),.4);
    color:#493b42;
    font-weight:600;
}

.desideri-page .desiderio-create-submit .btn-submit{
    width:100%;
    max-width:none;
    min-height:44px;
    margin:0!important;
    box-sizing:border-box;
}

.desideri-page .desiderio-normal{
    display:block;
}

.desideri-page .desiderio-photo{
    position:relative;
    isolation:isolate;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:180px;
    overflow:hidden;
    background:#211d20;
}

.desideri-page .desiderio-photo-bg{
    position:absolute;
    z-index:0;
    inset:-28px;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    filter:blur(24px) saturate(.8) brightness(.7);
    opacity:.9;
    transform:scale(1.2);
    pointer-events:none;
}

.desideri-page .desiderio-photo>img{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}

.desideri-page .desiderio-content{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.desideri-page .desiderio-text{
    flex:1 1 auto;
}

@media (min-width:768px){
    .desideri-page .desiderio-create-form{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px 18px;
    }

    .desideri-page .desiderio-create-title{
        order:1;
        grid-column:1 / -1;
    }

    .desideri-page .desiderio-create-description{
        order:2;
        grid-column:1 / -1;
    }

    .desideri-page .desiderio-create-photo,
    .desideri-page .desiderio-create-photo-controls{
        display:contents;
    }

    .desideri-page .desiderio-create-photo-label{
        order:3;
        grid-column:1 / -1;
        margin-bottom:-4px;
    }

    .desideri-page .desiderio-create-file-select{
        order:4;
    }

    .desideri-page .desiderio-create-file-name{
        order:5;
    }

    .desideri-page .desiderio-create-submit{
        order:6;
    }

    .desideri-page .desiderio-create-price{
        order:7;
        grid-column:1 / -1;
    }

    .desideri-page .desiderio-normal{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,2fr);
        align-items:stretch;
    }

    .desideri-page .desiderio-photo{
        width:100%;
        height:100%;
        min-height:0;
    }

    .desideri-page .desiderio-photo>img{
        position:absolute;
        inset:0;
    }

    .desideri-page .desiderio-content{
        border-left:1px solid #ddd;
    }
}

@media (min-width:1200px){
    .desideri-page .desiderio-normal{
        grid-template-columns:minmax(0,1fr) minmax(0,3fr);
    }
}

/* recensioni */
.hc-profile-reviews-open{
    appearance:none;
    border:0;
    background:transparent;
    font:inherit;
    cursor:pointer;
}

.hc-profile-reviews-open:hover,
.hc-profile-reviews-open:focus-visible{
    opacity:.82;
}

.hc-profile-review-stars{
    position:relative;
    display:inline-block;
    color:#d7d7dd;
    letter-spacing:1px;
}

.hc-profile-review-stars::after{
    content:"★★★★★";
    position:absolute;
    inset:0 auto 0 0;
    width:calc((var(--hc-rating,0) / 5) * 100%);
    overflow:hidden;
    color:#ffb400;
    white-space:nowrap;
}



.hc-reviews-dialog{
    position:relative;
    width:min(760px,100%);
    max-height:min(90vh,900px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    background:#fff;
    color:#26222d;
    box-shadow:0 24px 70px rgba(0,0,0,.35);
}

.hc-reviews-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:22px 24px 18px;
    border-bottom:1px solid #eeeaf1;
}

.hc-reviews-header h2,
.hc-reviews-list-heading h3,
.hc-reviews-editor h3{
    margin:0;
    color:#211b27;
}

.hc-reviews-header p,
.hc-reviews-list-heading p{
    margin:5px 0 0;
    color:#716a76;
    font-size:14px;
}

.hc-reviews-close{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#f3eff5;
    color:#3a3040;
    font-size:26px;
    line-height:1;
    cursor:pointer;
}

.hc-reviews-scroll{
    overflow-y:auto;
    overscroll-behavior:contain;
}

.hc-reviews-loading,
.hc-reviews-empty{
    padding:36px 24px;
    color:#716a76;
    text-align:center;
}

.hc-reviews-summary{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:28px;
    padding:24px;
    border-bottom:1px solid #eeeaf1;
}

.hc-reviews-average-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:150px;
    border-radius:14px;
    background:#faf7fb;
}

.hc-reviews-average-box strong{
    font-size:44px;
    line-height:1;
}

.hc-reviews-average-stars,
.hc-review-stars{
    color:#ffb400;
    letter-spacing:2px;
}

.hc-reviews-average-stars{
    margin:10px 0 6px;
    font-size:22px;
}

.hc-reviews-average-box small{
    color:#716a76;
}

.hc-reviews-distribution{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:7px;
}

.hc-reviews-distribution-row{
    display:grid;
    grid-template-columns:42px 1fr 34px;
    align-items:center;
    gap:10px;
    width:100%;
    padding:5px 7px;
    border:1px solid transparent;
    border-radius:8px;
    background:transparent;
    color:#554d59;
    font:inherit;
    cursor:pointer;
}

.hc-reviews-distribution-row:not(:disabled):hover,
.hc-reviews-distribution-row.is-active{
    border-color:#ddb5df;
    background:#fcf3fc;
}

.hc-reviews-distribution-row:disabled{
    cursor:default;
    opacity:.55;
}

.hc-reviews-distribution-track{
    height:8px;
    overflow:hidden;
    border-radius:20px;
    background:#ebe7ed;
}

.hc-reviews-distribution-fill{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#ffb400,#f28d00);
}

.hc-reviews-distribution-count{
    text-align:right;
}

.hc-reviews-editor{
    margin:22px 24px 0;
    padding:20px;
    border:1px solid #e8dfe9;
    border-radius:14px;
    background:#fffafd;
}

.hc-reviews-editor h3{
    font-size:18px;
}

.hc-reviews-editor-message{
    margin:10px 0 0;
    color:#625a66;
    line-height:1.5;
}

.hc-reviews-login{
    display:inline-block;
    margin-top:14px;
    padding:9px 16px;
    border-radius:9px;
    background:#a02a9c;
    color:#fff;
    text-decoration:none;
}

.hc-reviews-form{
    margin-top:15px;
}

.hc-reviews-rating-field{
    margin:0;
    padding:0;
    border:0;
}

.hc-reviews-rating-field legend,
.hc-reviews-text-label{
    color:#504854;
    font-size:14px;
    font-weight:600;
}

.hc-reviews-star-chooser{
    display:flex;
    gap:2px;
    margin:7px 0 15px;
}

.hc-reviews-star-button{
    padding:0 3px;
    border:0;
    background:transparent;
    color:#c6c0c8;
    font-size:34px;
    line-height:1.1;
    cursor:pointer;
}

.hc-reviews-star-button.is-selected{
    color:#ffb400;
}

.hc-reviews-text-label{
    display:block;
}

.hc-reviews-textarea{
    display:block;
    width:100%;
    min-height:105px;
    margin-top:7px;
    padding:12px;
    resize:vertical;
    border:1px solid #dcd5df;
    border-radius:10px;
    background:#fff;
    color:#2d2630;
    font:inherit;
    box-sizing:border-box;
}

.hc-reviews-textarea:focus{
    outline:2px solid rgba(160,42,156,.18);
    border-color:#a02a9c;
}

.hc-reviews-form-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
}

.hc-reviews-save,
.hc-reviews-delete,
.hc-reviews-clear-filter,
.hc-reviews-load-more{
    border:0;
    border-radius:9px;
    padding:10px 16px;
    font:inherit;
    font-weight:600;
    cursor:pointer;
}

.hc-reviews-save,
.hc-reviews-load-more{
    background:#a02a9c;
    color:#fff;
}

.hc-reviews-delete,
.hc-reviews-clear-filter{
    background:#f3eff5;
    color:#6b436a;
}

.hc-reviews-save:disabled,
.hc-reviews-delete:disabled,
.hc-reviews-load-more:disabled{
    cursor:wait;
    opacity:.6;
}

.hc-reviews-editor-status{
    margin-top:12px;
    color:#716a76;
    font-size:14px;
}

.hc-reviews-editor-status.is-error{
    color:#b42318;
}

.hc-reviews-editor-status.is-success{
    color:#157347;
}

.hc-reviews-list-section{
    padding:24px;
}

.hc-reviews-list-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    margin-bottom:15px;
}

.hc-reviews-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.hc-review-card{
    padding:17px;
    border:1px solid #ece6ee;
    border-radius:13px;
    background:#fff;
}

.hc-review-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
}

.hc-review-card-identity{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}

.hc-review-author{
    color:#29212c;
}

.hc-review-verified{
    padding:3px 7px;
    border-radius:20px;
    background:#eaf8ef;
    color:#197344;
    font-size:12px;
    font-weight:700;
}

.hc-review-card-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:6px;
    color:#837b86;
    font-size:12px;
}

.hc-review-modified::before{
    content:"· ";
}

.hc-review-stars{
    margin-top:8px;
    font-size:18px;
}

.hc-review-text{
    margin:10px 0 0;
    color:#4f4852;
    line-height:1.55;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.hc-reviews-load-more{
    display:block;
    margin:18px auto 0;
}

[hidden].hc-reviews-load-more,
[hidden].hc-reviews-clear-filter{
    display:none;
}

@media (max-width:640px){
    .hc-reviews-modal{
        align-items:stretch;
        padding:0;
    }

    .hc-reviews-dialog{
        width:100%;
        max-height:100%;
        border:0;
        border-radius:0;
    }

    .hc-reviews-header,
    .hc-reviews-list-section{
        padding-left:16px;
        padding-right:16px;
    }

    .hc-reviews-summary{
        grid-template-columns:1fr;
        gap:18px;
        padding:18px 16px;
    }

    .hc-reviews-average-box{
        min-height:125px;
    }

    .hc-reviews-editor{
        margin:18px 16px 0;
        padding:16px;
    }

    .hc-review-card-header,
    .hc-reviews-list-heading{
        flex-direction:column;
    }

    .hc-review-card-meta{
        justify-content:flex-start;
    }
}

/*  adattamento popup x recensioni */
/* =========================================================
   RECENSIONI - CORREZIONE POPUP HC-MODAL
   ========================================================= */

/* Il contenitore del popup resta fermo.
   Scorre soltanto il contenuto sotto l'header. */
.hc-modal-dialog.hc-reviews-dialog{
    width:min(760px,100%);
    max-height:calc(100vh - 40px);
    max-height:calc(100dvh - 40px);

    display:flex;
    flex-direction:column;

    overflow:hidden;
}

/* Header sempre visibile */
.hc-reviews-dialog > .hc-modal-header{
    flex:0 0 auto;
}

/* Schermata caricamento */
.hc-reviews-loading{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
}

/* QUESTA È LA PARTE CHE DEVE SCORRERE */
.hc-reviews-content{
    flex:1 1 auto;
    min-height:0;

    overflow-y:auto;
    overflow-x:hidden;

    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}

/* scrollbar Chrome / Edge / Safari */
.hc-reviews-content::-webkit-scrollbar{
    width:8px;
}

.hc-reviews-content::-webkit-scrollbar-track{
    background:#f5edf2;
}

.hc-reviews-content::-webkit-scrollbar-thumb{
    background:#d8b7c8;
    border-radius:20px;
}

.hc-reviews-content::-webkit-scrollbar-thumb:hover{
    background:#c793ae;
}

/* Firefox */
.hc-reviews-content{
    scrollbar-width:thin;
    scrollbar-color:#d8b7c8 #f5edf2;
}


/* =========================================================
   RIEPILOGO VOTO
   ========================================================= */

.hc-reviews-summary-main{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    min-height:150px;

    border-radius:14px;
    background:#faf7fb;
}

.hc-reviews-average{
    font-size:44px;
    font-weight:700;
    line-height:1;
}

.hc-reviews-total{
    color:#716a76;
    font-size:14px;
}


/* =========================================================
   RECENSIONI PIÙ RECENTI
   ========================================================= */

.hc-reviews-list-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;

    margin-top:24px;
    padding:24px 24px 15px;

    border-top:1px solid #eeeaf1;
}

.hc-reviews-list-header h3{
    margin:0;
    color:#211b27;
    font-size:18px;
}

.hc-reviews-list-header p{
    margin:5px 0 0;
    color:#716a76;
    font-size:14px;
    line-height:1.4;
}

/* Prima mancava il padding:
   era questo che faceva partire le recensioni completamente a sinistra */
.hc-reviews-list{
    padding:0 24px;
}

/* zona pulsante "Mostra altre recensioni" */
.hc-reviews-load-more-wrap{
    padding:0 24px 24px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:640px){

    .hc-modal-dialog.hc-reviews-dialog{
        width:100%;
        max-height:92vh;
        max-height:92dvh;
    }

    .hc-reviews-summary{
        grid-template-columns:1fr;
        gap:18px;
        padding:18px 16px;
    }

    .hc-reviews-summary-main{
        min-height:125px;
    }

    .hc-reviews-list-header{
        flex-direction:column;
        padding-left:16px;
        padding-right:16px;
    }

    .hc-reviews-list{
        padding-left:16px;
        padding-right:16px;
    }

    .hc-reviews-load-more-wrap{
        padding-left:16px;
        padding-right:16px;
        padding-bottom:18px;
    }
}

/* =========================================================
   PAGINE INFORMATIVE E LEGALI
   ========================================================= */

.hc-legal-page{
    width:100%;
    max-width:940px;
    margin:0 auto;
    padding:30px 20px 10px;
}

.hc-legal-hero{
    margin-bottom:18px;
    padding:28px;
    border-radius:18px;
    background:linear-gradient(135deg,#fff 0%,#fff5fa 100%);
    border:1px solid #f1dfe8;
}

.hc-legal-kicker{
    display:block;
    margin-bottom:8px;
    color:var(--color-primary-hover);
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.hc-legal-hero h1{
    margin:0;
    color:#211b27;
    font-size:34px;
    line-height:1.15;
}

.hc-legal-hero p{
    max-width:720px;
    margin:10px 0 0;
    color:#625a65;
    font-size:16px;
    line-height:1.6;
}

.hc-legal-updated{
    margin-top:13px;
    color:#817982;
    font-size:12px;
}

.hc-draft-notice{
    margin-bottom:18px;
    padding:12px 15px;
    border:1px solid #e8c96a;
    border-radius:10px;
    background:#fff9df;
    color:#6b5715;
    font-size:13px;
    line-height:1.5;
}

.hc-legal-toc{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
}

.hc-legal-toc a{
    padding:8px 12px;
    border:1px solid #eadde4;
    border-radius:20px;
    background:#fff;
    color:#5c5059;
    font-size:13px;
    text-decoration:none;
}

.hc-legal-toc a:hover{
    border-color:var(--color-primary);
    color:var(--color-primary-hover);
}

.hc-legal-card{
    margin-bottom:14px;
    padding:24px;
    border:1px solid #eee4ea;
    border-radius:14px;
    background:#fff;
    color:#554d56;
    font-size:15px;
    line-height:1.65;
    box-shadow:0 5px 20px rgba(60,30,47,.035);
    scroll-margin-top:85px;
}

.hc-legal-card h2{
    margin:0 0 10px;
    color:#2a2229;
    font-size:20px;
    line-height:1.3;
}

.hc-legal-card p{
    margin:0 0 11px;
}

.hc-legal-card p:last-child{
    margin-bottom:0;
}

.hc-legal-card ul,
.hc-legal-card ol{
    margin:8px 0 12px 20px;
}

.hc-legal-card li+li{
    margin-top:6px;
}

.hc-legal-card a{
    color:var(--color-primary-hover);
}

.hc-config-placeholder{
    color:#ad7600;
    font-weight:700;
    white-space:normal;
}

.hc-contact-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.hc-contact-grid .hc-legal-card{
    margin-bottom:0;
}

.hc-report-card{
    margin-top:14px;
    border-left:4px solid var(--color-primary);
}

.hc-table-wrap{
    overflow-x:auto;
}

.hc-legal-table{
    width:100%;
    border-collapse:collapse;
    min-width:560px;
}

.hc-legal-table th,
.hc-legal-table td{
    padding:11px 12px;
    border-bottom:1px solid #eee5ea;
    text-align:left;
    vertical-align:top;
}

.hc-legal-table th{
    background:#fff4f9;
    color:#3b3038;
    font-size:13px;
}

.hc-legal-table td{
    font-size:14px;
}

@media(max-width:640px){
    .footer-container{
        padding-left:16px;
        padding-right:16px;
    }

    .footer-links{
        gap:8px 14px;
    }

    .hc-legal-page{
        padding:18px 12px 5px;
    }

    .hc-legal-hero{
        padding:22px 18px;
        border-radius:14px;
    }

    .hc-legal-hero h1{
        font-size:28px;
    }

    .hc-legal-card{
        padding:19px 17px;
    }

    .hc-contact-grid{
        grid-template-columns:1fr;
    }
}
/* DICHIARAZIONE PAGAMENTO DIRETTO */
.btn-direct-payment {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
    padding: 8px 16px;
    border: 1px solid #e91e63;
    border-radius: 10px;
    background: #fff;
    color: #c2185b;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.btn-direct-payment:hover {
    background: #fff5f8;
}

.btn-direct-payment strong {
    font-size: .9rem;
}

.hc-direct-payment-dialog {
    width: min(520px,calc(100vw - 24px));
}

.hc-direct-payment-item {
    margin: 12px 0 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f6f6f8;
    color: #292936;
    font-weight: 700;
}

.hc-direct-payment-form {
    display: grid;
    gap: 9px;
}

.hc-direct-payment-form > div:not([hidden]) {
    display: grid;
    gap: 9px;
}

.hc-direct-payment-form label {
    margin-top: 3px;
    color: #363641;
    font-size: .9rem;
    font-weight: 700;
}

.hc-direct-payment-form .hc-optional-label {
    color: #777784;
    font-size: .82rem;
    font-weight: 500;
}

.hc-direct-payment-form select,
.hc-direct-payment-form input,
.hc-direct-payment-form textarea {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d7d7df;
    border-radius: 9px;
    background: #fff;
    color: #22222d;
    font: inherit;
}

.hc-direct-payment-form textarea {
    min-height: 82px;
    resize: vertical;
}

.hc-direct-payment-amount {
    position: relative;
}

.hc-direct-payment-amount input {
    padding-right: 40px;
}

.hc-direct-payment-amount span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-weight: 800;
}

.hc-direct-payment-warning {
    margin-top: 8px;
    padding: 12px 13px;
    border: 1px solid #f0b34d;
    border-radius: 10px;
    background: #fff7e8;
    color: #7a4700;
    line-height: 1.45;
}

.hc-direct-payment-success strong,
.hc-direct-payment-success p {
    display: block;
    margin: 0;
}

.hc-direct-payment-success p {
    margin-top: 7px;
}

.hc-direct-payment-actions {
    flex-wrap: wrap;
}

.hc-direct-payment-trigger {
    width: 100%;
}

.direct-payments-box {
    margin-bottom: 18px;
}

.direct-payments-heading {
    padding: 18px 20px 8px;
}

.direct-payments-heading h2,
.direct-payments-heading p {
    margin: 0;
}

.direct-payments-heading p {
    margin-top: 4px;
    color: #777784;
    font-size: .9rem;
}

.direct-payment-card {
    margin: 10px 20px;
    padding: 15px;
    border: 1px solid #ececf1;
    border-left: 4px solid #f0b34d;
    border-radius: 11px;
    background: #fff;
}

.direct-payment-card:last-child {
    margin-bottom: 20px;
}

.direct-payment-card-top,
.direct-payment-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.direct-payment-card-title {
    font-weight: 800;
}

.direct-payment-card-amount {
    color: #c2185b;
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
}

.direct-payment-card-model,
.direct-payment-card-meta,
.direct-payment-card-note {
    margin-top: 7px;
    color: #676774;
    font-size: .88rem;
}

.direct-payment-card-state {
    color: #8a5600;
    font-weight: 700;
}

@media (max-width: 600px) {
    .hc-purchase-confirm-actions > * {
        width: 100%;
    }

    .direct-payment-card-top,
    .direct-payment-card-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Scelta uniforme tra saldo Harem e pagamento gia effettuato alla modella. */
.shop-modal-dialog .hc-payment-alternative,
.video-purchase-dialog .hc-payment-alternative{
    padding-top:0;
}

@media(max-width:480px){
    .hc-purchase-confirm-actions{
        grid-template-columns:1fr;
    }

    .hc-payment-alternative{
        padding-left:16px;
        padding-right:16px;
    }
}

/* =========================================================
   NOTIFICHE HEADER
   ========================================================= */
.hc-notifications{
    position:relative;
    display:flex;
    align-items:center;
}

.hc-notifications-toggle{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    margin:0;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#fff;
    cursor:pointer;
    transition:background .18s ease,transform .18s ease;
}

.hc-notifications-toggle:hover,
.hc-notifications.is-open .hc-notifications-toggle{
    background:rgba(255,255,255,.15);
}

.hc-notifications-toggle:active{
    transform:scale(.95);
}

.hc-notifications-toggle svg{
    width:25px;
    height:25px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hc-notifications-count{
    position:absolute;
    top:-3px;
    right:-4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:19px;
    height:19px;
    padding:0 5px;
    box-sizing:border-box;
    border:2px solid #ff4da6;
    border-radius:999px;
    background:#fff;
    color:#e91e63;
    font-size:10px;
    font-weight:900;
    line-height:1;
}

.hc-notifications-count[hidden]{display:none!important}

.hc-notifications-panel{
    position:absolute;
    z-index:1300;
    top:calc(100% + 13px);
    right:-72px;
    width:min(390px,calc(100vw - 24px));
    overflow:hidden;
    border:1px solid #ececec;
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 55px rgba(37,15,27,.22);
    color:#333;

    /* Apertura/chiusura: il pannello sembra espandersi dalla campanella. */
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px) scaleX(.58) scaleY(.42);
    transform-origin:calc(100% - 86px) 0;
    transition:
        opacity .16s ease,
        transform .22s cubic-bezier(.2,.85,.3,1),
        visibility 0s linear .22s;
    will-change:transform,opacity;
}

.hc-notifications.is-open .hc-notifications-panel{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0) scaleX(1) scaleY(1);
    transition:
        opacity .16s ease,
        transform .22s cubic-bezier(.2,.85,.3,1),
        visibility 0s linear 0s;
}

.hc-notifications-panel[hidden]{display:none!important}

.hc-notifications-panel::before{
    content:"";
    position:absolute;
    top:-7px;
    right:86px;
    width:14px;
    height:14px;
    border-top:1px solid #ececec;
    border-left:1px solid #ececec;
    background:#fff;
    transform:rotate(45deg);
}

.hc-notifications-panel-head{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:15px 16px 13px;
    border-bottom:1px solid #efefef;
    background:#fff;
}

.hc-notifications-panel-head>strong{
    color:#292329;
    font-size:16px;
    font-weight:800;
}

.hc-notifications-read-all{
    margin:0;
    padding:3px 0;
    border:0;
    background:none;
    color:#e91e63;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.hc-notifications-read-all:hover{text-decoration:underline}
.hc-notifications-read-all[hidden]{display:none!important}

.hc-notifications-list{
    max-height:min(520px,70vh);
    overflow-y:auto;
    overscroll-behavior:contain;
}

.hc-notification-item{
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:11px;
    min-height:74px;
    padding:13px 32px 13px 14px;
    box-sizing:border-box;
    border-bottom:1px solid #f1f1f1;
    color:#333;
    text-decoration:none;
    transition:background .15s ease;
}

.hc-notification-item:last-child{border-bottom:0}
.hc-notification-item:hover{background:#fafafa}

.hc-notification-item.is-unread{
    padding-bottom:38px;
    background:#fff3f8;
}

.hc-notification-item.is-unread:hover{
    background:#ffeaf3;
}

.hc-notification-item.is-read{
    background:#fff;
}

.hc-notification-item.is-read .hc-notification-title,
.hc-notification-item.is-read .hc-notification-message{
    color:#777;
}

.hc-notification-type-icon{
    display:inline-flex;
    flex:0 0 34px;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin-top:1px;
    border-radius:50%;
    background:#ffe1ef;
    color:#e91e63;
    font-size:16px;
    font-weight:900;
    line-height:1;
}

.hc-notification-item.is-read .hc-notification-type-icon{
    background:#f2f2f2;
    color:#8a8a8a;
}

.hc-notification-content{
    display:block;
    min-width:0;
    flex:1 1 auto;
}

.hc-notification-title-row{
    display:flex;
    align-items:flex-start;
    gap:7px;
}

.hc-notification-title{
    min-width:0;
    color:#30262d;
    font-size:13px;
    font-weight:800;
    line-height:1.3;
}

.hc-notification-group-count{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    min-width:21px;
    height:19px;
    padding:0 6px;
    border-radius:999px;
    background:#e91e63;
    color:#fff;
    font-size:10px;
    font-weight:900;
}

.hc-notification-message{
    display:-webkit-box;
    margin-top:3px;
    overflow:hidden;
    color:#555;
    font-size:12px;
    line-height:1.4;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.hc-notification-time{
    display:block;
    margin-top:5px;
    color:#aaa;
    font-size:10px;
    line-height:1.2;
}

.hc-notification-read{
    position:absolute;
    right:9px;
    bottom:8px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    width:24px;
    height:24px;
    padding:0;
    overflow:hidden;
    box-sizing:border-box;
    border:1px solid rgba(233,30,99,.28);
    border-radius:999px;
    background:#fff;
    color:#e91e63;
    font-size:11px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    box-shadow:0 1px 4px rgba(72,20,47,.08);
    white-space:nowrap;
    transition:
        width .24s cubic-bezier(.2,.75,.25,1),
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.hc-notification-read-icon{
    display:inline-flex;
    flex:0 0 22px;
    width:22px;
    height:22px;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    line-height:1;
}

.hc-notification-read-label{
    display:inline-block;
    flex:0 0 auto;
    max-width:0;
    overflow:hidden;
    opacity:0;
    transform:translateX(18px);
    transition:
        max-width .24s cubic-bezier(.2,.75,.25,1),
        opacity .15s ease,
        transform .24s cubic-bezier(.2,.75,.25,1);
}

@media (hover:hover) and (pointer:fine){
    .hc-notification-read:hover,
    .hc-notification-read:focus-visible{
        width:155px;
        padding-left:10px;
        border-color:#e91e63;
        background:#e91e63;
        color:#fff;
        outline:none;
        box-shadow:0 3px 10px rgba(233,30,99,.22);
    }

    .hc-notification-read:hover .hc-notification-read-label,
    .hc-notification-read:focus-visible .hc-notification-read-label{
        max-width:125px;
        opacity:1;
        transform:translateX(0);
    }
}

.hc-notification-dot{
    position:absolute;
    top:10px;
    right:12px;
    width:7px;
    height:7px;
    border-radius:50%;
    background:#e91e63;
    box-shadow:0 0 0 3px rgba(233,30,99,.09);
}

@media(max-width:767px){
    .hc-notification-read{
        right:9px;
        bottom:8px;
        width:24px;
        padding:0;
    }

    .hc-notification-read-label{display:none}
}

.hc-notifications-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:30px 22px 32px;
    text-align:center;
}

.hc-notifications-empty-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin-bottom:10px;
    border-radius:50%;
    background:#f3f3f3;
    color:#888;
    font-size:20px;
    font-weight:800;
}

.hc-notifications-empty strong{
    color:#444;
    font-size:14px;
}

.hc-notifications-empty span:last-child{
    margin-top:4px;
    color:#999;
    font-size:12px;
    line-height:1.45;
}

@media (prefers-reduced-motion:reduce){
    .hc-notifications-panel{
        transition:none!important;
        transform:none!important;
    }
}

@media(max-width:767px){
    .hc-notifications-panel{
        position:fixed;
        top:68px;
        right:8px;
        left:8px;
        width:auto;
        max-height:calc(100dvh - 82px);
    }

    .hc-notifications-panel::before{display:none}
    .hc-notifications-list{max-height:calc(100dvh - 140px)}
    .hc-notifications-toggle{width:36px;height:36px}
    .hc-notifications-toggle svg{width:24px;height:24px}
}

/* Pagina pubblica di tutte le offerte */
.offers-global-page{
    padding-bottom:50px;
}

.offers-global-heading{
    margin-bottom:14px;
}

.offers-global-feed{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.offer-card-global{
    overflow:hidden;
}

.offer-global-model-header{
    margin:-14px -14px 14px;
    padding:11px 14px;
    border-bottom:1px solid #e8e8e8;
    background:#fff;
}

.offer-global-model-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-width:0;
    color:inherit;
    text-decoration:none;
}

.offer-global-model-image{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:50%;
    object-fit:cover;
    background:#f1f1f1;
}

.offer-global-model-name{
    overflow:hidden;
    color:#222;
    font-size:14px;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.offer-global-model-link:hover .offer-global-model-name{
    color:var(--color-primary);
}
/* =========================================================
   CATALOGO PUBBLICO VIDEO
   ========================================================= */
.video-public-page{
    padding-bottom:30px;
}

.video-public-heading p{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
}

.video-public-count{
    color:#888;
    font-size:12px;
    font-weight:600;
}

.video-public-count::before{
    content:"·";
    margin-right:7px;
}

.video-public-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}

.video-public-card{
    position:relative;
    display:flex;
    min-width:0;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #e5e5e8;
    border-radius:15px;
    background:#fff;
    box-shadow:0 4px 18px rgba(0,0,0,.055);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

@media (hover:hover) and (pointer:fine){
    .video-public-card:hover{
        border-color:rgba(var(--color-primary-rgb),.22);
        box-shadow:0 8px 26px rgba(0,0,0,.09);
        transform:translateY(-2px);
    }
}

.video-public-model-row{
    position:relative;
    display:flex;
    min-width:0;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:11px 12px;
    border-bottom:1px solid #ededf0;
}

.video-public-model{
    display:flex;
    min-width:0;
    align-items:center;
    gap:10px;
    color:inherit;
    text-decoration:none;
}

.video-public-model img{
    flex:0 0 38px;
    width:38px;
    height:38px;
    border:2px solid #fff;
    border-radius:50%;
    background:#eee;
    object-fit:cover;
    box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

.video-public-model strong{
    overflow:hidden;
    color:#302b30;
    font-size:14px;
    font-weight:750;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:color .18s ease;
}

.video-public-model:hover strong{
    color:var(--color-primary);
}

.video-public-report-menu{
    position:relative;
    flex:0 0 auto;
}

.video-public-description-wrap{
    padding:11px 12px 9px;
    background:#fff;
}

.video-public-description{
    display:-webkit-box;
    min-height:2.9em;
    overflow:hidden;
    color:#3b373b;
    font-size:14px;
    font-weight:450;
    line-height:1.45;
    white-space:pre-line;
    overflow-wrap:anywhere;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.video-public-description.expanded{
    display:block;
    min-height:0;
    overflow:visible;
    -webkit-line-clamp:unset;
}

.video-public-description-toggle{
    display:inline-flex;
    margin-top:4px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--color-primary);
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.video-public-description-toggle.is-hidden{
    visibility:hidden;
    pointer-events:none;
}

.video-public-preview{
    position:relative;
    display:flex;
    width:100%;
    aspect-ratio:16/9;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    outline:none;
    background:#111;
    isolation:isolate;
}

.video-public-preview-background{
    position:absolute;
    z-index:1;
    inset:-24px;
    background-position:center;
    background-size:cover;
    filter:blur(22px) brightness(.52);
    opacity:.92;
    transform:scale(1.08);
}

.video-public-preview-image{
    position:relative;
    z-index:2;
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    opacity:0;
    transition:opacity .2s ease;
}

.video-public-preview.is-ready .video-public-preview-image{
    opacity:1;
}

.video-public-preview-loading{
    position:absolute;
    z-index:4;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    transition:opacity .18s ease,visibility .18s ease;
}

.video-public-preview.is-ready .video-public-preview-loading{
    visibility:hidden;
    opacity:0;
}

.video-public-spinner{
    width:25px;
    height:25px;
    border:3px solid rgba(255,255,255,.28);
    border-top-color:#fff;
    border-radius:50%;
    animation:hcVideoPublicSpin .75s linear infinite;
}

@keyframes hcVideoPublicSpin{
    to{transform:rotate(360deg);}
}

.video-public-play{
    position:absolute;
    z-index:3;
    top:50%;
    left:50%;
    display:flex;
    width:52px;
    height:52px;
    align-items:center;
    justify-content:center;
    padding-left:4px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:50%;
    background:rgba(0,0,0,.58);
    color:#fff;
    font-size:21px;
    line-height:1;
    pointer-events:none;
    transform:translate(-50%,-50%);
    backdrop-filter:blur(5px);
    box-shadow:0 4px 16px rgba(0,0,0,.28);
    transition:transform .18s ease,background .18s ease;
}

@media (hover:hover) and (pointer:fine){
    .video-public-preview:hover .video-public-play{
        background:rgba(0,0,0,.72);
        transform:translate(-50%,-50%) scale(1.08);
    }
}

.video-public-meta{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border-bottom:1px solid #ededf0;
    background:#fafafa;
}

.video-public-meta>div{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:center;
    gap:2px;
    padding:9px 5px;
    text-align:center;
}

.video-public-meta>div+div{
    border-left:1px solid #e8e8eb;
}

.video-public-meta span{
    color:#929292;
    font-size:9px;
    font-weight:650;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.video-public-meta strong{
    overflow:hidden;
    max-width:100%;
    color:#4c484c;
    font-size:11px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.video-public-card-footer{
    margin-top:auto;
    padding:12px;
}

.video-public-buy{
    display:flex!important;
    width:100%;
    max-width:none!important;
    min-height:43px;
    align-items:center;
    justify-content:center;
    gap:9px;
    margin:0!important;
    border-radius:9px;
}

.video-public-buy strong{
    font-size:15px;
    font-weight:850;
}

.video-public-buy.is-purchased{
    background:#262326;
}

.video-public-response{
    margin-top:8px;
}

.video-public-response:empty{
    display:none;
}

.video-public-response .success-box,
.video-public-response .error-box{
    margin:0;
    font-size:12px;
}

.video-public-pagination{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:12px;
    margin-top:22px;
    padding:15px 16px;
    border:1px solid #e5e5e8;
    border-radius:12px;
    background:#fff;
}

.video-public-pagination-link{
    color:var(--color-primary);
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.video-public-pagination-link:last-child{
    text-align:right;
}

.video-public-pagination-link.disabled{
    color:#aaa;
    cursor:default;
}

.video-public-pagination-current{
    color:#666;
    font-size:12px;
    text-align:center;
    white-space:nowrap;
}

.video-public-viewer-dialog{
    width:min(940px,calc(100vw - 24px));
}

.video-public-viewer-content{
    position:relative;
    display:flex;
    min-height:min(62vh,560px);
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#090909;
}

.video-public-viewer-loading{
    position:absolute;
    z-index:2;
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 14px;
    border-radius:9px;
    background:rgba(0,0,0,.62);
    color:#fff;
    font-size:13px;
    font-weight:650;
}

.video-public-original{
    display:block;
    width:100%;
    max-height:72vh;
    opacity:0;
    object-fit:contain;
    transition:opacity .18s ease;
}

.video-public-original.is-ready{
    opacity:1;
}

@media (min-width:768px){
    .video-public-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
    }
}

@media (min-width:1400px){
    .video-public-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px;
    }
}

@media (max-width:600px){
    .video-public-heading p{
        display:block;
    }

    .video-public-count{
        display:block;
        margin-top:4px;
    }

    .video-public-count::before{
        display:none;
    }

    .video-public-grid{
        gap:14px;
    }

    .video-public-card{
        border-radius:13px;
    }

    .video-public-play{
        width:46px;
        height:46px;
        font-size:18px;
    }

    .video-public-pagination{
        gap:7px;
        padding:13px 11px;
    }

    .video-public-pagination-link{
        font-size:12px;
    }

    .video-public-pagination-current{
        font-size:11px;
    }

    .video-public-viewer-content{
        min-height:52vh;
    }
}

/* =========================================================
   RICARICHE REALI - coupon + bonifico
   ========================================================= */
.hc-recharge-page-message{
    margin:0 0 20px;
}
.hc-recharge-methods-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-bottom:20px;
}
.hc-recharge-method-card{
    min-width:0;
    padding:20px;
    border:1px solid #e3dbe0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 18px rgba(52,23,39,.05);
}
.hc-recharge-method-head{
    display:flex;
    align-items:flex-start;
    gap:13px;
    margin-bottom:18px;
}
.hc-recharge-method-head h2{
    margin:1px 0 5px;
    color:#2e2028;
    font-size:19px;
}
.hc-recharge-method-head p{
    margin:0;
    color:#766a71;
    font-size:13px;
    line-height:1.5;
}
.hc-recharge-method-icon{
    display:inline-flex;
    flex:0 0 42px;
    width:42px;
    height:42px;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    background:var(--color-primary-light);
    color:var(--color-primary);
    font-size:19px;
    font-weight:900;
}
.hc-recharge-method-card>label{
    display:block;
    margin:0 0 7px;
    color:#43373e;
    font-size:13px;
    font-weight:800;
}
.hc-recharge-method-card>input{
    width:100%;
    min-height:46px;
    padding:11px 12px;
    border:1px solid #d7ced3;
    border-radius:10px;
    background:#fff;
    color:#292126;
    font:inherit;
    box-sizing:border-box;
    outline:none;
}
.hc-recharge-method-card>input:focus{
    border-color:var(--color-primary);
    box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.11);
}
.hc-recharge-action{
    margin:12px 0 0!important;
}
.hc-recharge-action:disabled,
.hc-recharge-method-card input:disabled{
    cursor:not-allowed;
    opacity:.55;
}
.hc-recharge-response .error-box,
.hc-recharge-response .success-box{
    margin-bottom:0;
}
.hc-bank-details{
    display:grid;
    gap:1px;
    margin:0 0 16px;
    overflow:hidden;
    border:1px solid #e8e0e4;
    border-radius:12px;
    background:#e8e0e4;
}
.hc-bank-details>div{
    display:grid;
    grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr);
    gap:12px;
    align-items:center;
    padding:11px 12px;
    background:#faf8f9;
}
.hc-bank-details span{
    color:#897b83;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
}
.hc-bank-details strong{
    min-width:0;
    color:#33272e;
    font-size:13px;
    overflow-wrap:anywhere;
}
.hc-bank-copy-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.hc-bank-copy-row b{
    min-width:0;
    overflow-wrap:anywhere;
}
.hc-copy-mini{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:5px 9px;
    border:1px solid rgba(var(--color-primary-rgb),.3);
    border-radius:8px;
    background:#fff;
    color:var(--color-primary);
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.hc-copy-mini:hover{
    background:var(--color-primary-light);
}
.hc-bank-extra-instructions{
    margin:0 0 14px;
    padding:11px 12px;
    border-radius:10px;
    background:#f7f4f6;
    color:#655a60;
    font-size:12px;
    line-height:1.5;
}
.hc-bank-warning{
    margin:0 0 16px;
    padding:11px 12px;
    border:1px solid #ecd68a;
    border-radius:10px;
    background:#fff9df;
    color:#6c5716;
    font-size:12px;
    line-height:1.5;
}
.hc-bank-reference{
    display:inline-block;
    margin:8px 6px 8px 0;
    padding:8px 10px;
    border-radius:8px;
    background:#fff;
    color:#30262d;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:14px;
    font-weight:900;
    letter-spacing:.3px;
}
.hc-bank-created p{
    margin:8px 0 0;
    font-size:12px;
}
.recharge-status-rifiutata{
    background:#fde8e8;
    color:#b3261e;
}
.recharge-amount.is-pending{
    color:#777;
}
.hc-recharge-history-box{
    background:#fff;
}

/* ADMIN RICARICHE */
.hc-admin-recharges-page{
    width:min(1180px,calc(100% - 30px));
    margin:0 auto;
}
.hc-admin-recharge-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}
.hc-admin-recharge-section-head h2{
    margin:0 0 5px;
}
.hc-admin-recharge-section-head p{
    margin:0;
    color:#777;
    font-size:13px;
    line-height:1.45;
}
.hc-admin-method-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:14px 0;
    border-bottom:1px solid #e8e3e6;
}
.hc-admin-method-toggle>div{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:4px;
}
.hc-admin-method-toggle strong{
    color:#30262d;
    font-size:15px;
}
.hc-admin-method-toggle span{
    color:#80747b;
    font-size:12px;
    line-height:1.4;
}
.hc-switch{
    position:relative;
    display:block!important;
    flex:0 0 auto;
    width:48px;
    height:27px;
    margin:0!important;
}
.hc-switch input{
    position:absolute;
    width:1px!important;
    height:1px!important;
    margin:0!important;
    opacity:0;
}
.hc-switch>span{
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#cbc5c9;
    cursor:pointer;
    transition:.18s ease;
}
.hc-switch>span:before{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:21px;
    height:21px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.18);
    transition:.18s ease;
}
.hc-switch input:checked+span{
    background:var(--color-primary);
}
.hc-switch input:checked+span:before{
    transform:translateX(21px);
}
.hc-admin-bank-fields{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 16px;
    margin-top:18px;
}
.hc-admin-bank-fields label,
.hc-admin-coupon-form label{
    display:flex!important;
    flex-direction:column;
    gap:6px;
    margin:0!important;
    color:#44383f;
    font-size:12px;
}
.hc-admin-bank-fields label small,
.hc-admin-coupon-form label small{
    color:#999;
    font-weight:400;
}
.hc-admin-bank-fields input,
.hc-admin-bank-fields textarea,
.hc-admin-coupon-form input{
    width:100%!important;
    margin:0!important;
    box-sizing:border-box;
}
.hc-admin-bank-instructions{
    grid-column:1/-1;
}
.hc-admin-coupon-form{
    display:flex;
    align-items:flex-end;
    gap:12px;
}
.hc-admin-coupon-form label{
    width:min(260px,100%);
}
.hc-admin-coupon-form .btn-submit{
    margin:0!important;
    min-height:43px;
}
.hc-money-input{
    position:relative;
}
.hc-money-input>span{
    position:absolute;
    top:50%;
    left:12px;
    z-index:2;
    transform:translateY(-50%);
    color:#777;
    font-weight:800;
}
.hc-money-input input{
    padding-left:30px!important;
}
.hc-admin-coupon-created{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin:0 0 20px;
    padding:16px;
    border:1px solid rgba(var(--color-primary-rgb),.3);
    border-radius:14px;
    background:var(--color-primary-light);
}
.hc-admin-coupon-created>span{
    width:100%;
    color:#765967;
    font-size:12px;
    font-weight:700;
}
.hc-admin-coupon-created>strong{
    padding:9px 11px;
    border-radius:8px;
    background:#fff;
    color:#30262d;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:18px;
    letter-spacing:1px;
}
.hc-admin-coupon-created>small{
    width:100%;
    color:#806977;
    font-size:11px;
}
.hc-admin-pending-count{
    display:inline-flex;
    min-width:34px;
    height:34px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:var(--color-primary);
    color:#fff;
}
.hc-admin-bank-list,
.hc-admin-coupon-list,
.hc-admin-recent-bank-list{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #e6e0e3;
    border-radius:12px;
    background:#fff;
}
.hc-admin-bank-row{
    display:grid;
    grid-template-columns:minmax(170px,1.4fr) minmax(150px,1fr) auto auto;
    gap:15px;
    align-items:center;
    padding:13px 14px;
    border-bottom:1px solid #eee8eb;
}
.hc-admin-bank-row:last-child,
.hc-admin-coupon-row:last-child,
.hc-admin-recent-bank-row:last-child{
    border-bottom:0;
}
.hc-admin-bank-main,
.hc-admin-bank-reference{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:3px;
}
.hc-admin-bank-main>span,
.hc-admin-bank-reference>span{
    color:#999;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-admin-bank-main>strong,
.hc-admin-bank-reference>strong{
    overflow:hidden;
    color:#30262d;
    font-size:13px;
    text-overflow:ellipsis;
}
.hc-admin-bank-main>small{
    overflow:hidden;
    color:#8b7f86;
    font-size:10px;
    text-overflow:ellipsis;
}
.hc-admin-bank-reference .hc-copy-mini{
    width:max-content;
    margin-top:3px;
}
.hc-admin-bank-amount{
    color:var(--color-primary);
    font-size:17px;
    font-weight:900;
    white-space:nowrap;
}
.hc-admin-bank-actions{
    display:flex;
    align-items:center;
    gap:6px;
}
.hc-admin-bank-actions form,
.hc-admin-coupon-use form{
    margin:0;
}
.hc-admin-approve,
.hc-admin-reject{
    min-height:34px;
    padding:7px 10px;
    border-radius:8px;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.hc-admin-approve{
    border:1px solid var(--color-success);
    background:var(--color-success);
    color:#fff;
}
.hc-admin-reject{
    border:1px solid #d85b5b;
    background:#fff;
    color:#b33232;
}
.hc-admin-coupon-row{
    display:grid;
    grid-template-columns:minmax(140px,1fr) auto auto minmax(100px,.7fr);
    gap:14px;
    align-items:center;
    padding:12px 14px;
    border-bottom:1px solid #eee8eb;
}
.hc-admin-coupon-row>div:first-child{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:2px;
}
.hc-admin-coupon-row>div:first-child span,
.hc-admin-coupon-row>div:first-child small,
.hc-admin-coupon-use small{
    color:#948890;
    font-size:10px;
}
.hc-admin-coupon-row>div:first-child strong{
    color:#372b32;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:13px;
}
.hc-admin-coupon-amount{
    color:var(--color-primary);
    white-space:nowrap;
}
.hc-admin-recharge-status{
    display:inline-flex;
    width:max-content;
    padding:5px 8px;
    border-radius:999px;
    background:#eee;
    color:#666;
    font-size:10px;
    font-weight:800;
}
.hc-admin-recharge-status.is-attivo,
.hc-admin-recharge-status.is-completata{
    background:#e4f7ea;
    color:#278044;
}
.hc-admin-recharge-status.is-usato{
    background:#e8eef9;
    color:#395d9b;
}
.hc-admin-recharge-status.is-disattivato,
.hc-admin-recharge-status.is-rifiutata{
    background:#fde8e8;
    color:#b3261e;
}
.hc-admin-recent-bank-row{
    display:grid;
    grid-template-columns:1fr auto auto;
    gap:12px;
    align-items:center;
    padding:11px 13px;
    border-bottom:1px solid #eee8eb;
    font-size:12px;
}

@media(max-width:800px){
    .hc-recharge-methods-grid{
        grid-template-columns:1fr;
    }
    .hc-admin-bank-fields{
        grid-template-columns:1fr;
    }
    .hc-admin-bank-instructions{
        grid-column:auto;
    }
    .hc-admin-bank-row{
        grid-template-columns:1fr auto;
    }
    .hc-admin-bank-reference{
        grid-column:1/-1;
    }
    .hc-admin-bank-actions{
        grid-column:1/-1;
        justify-content:flex-end;
    }
    .hc-admin-coupon-row{
        grid-template-columns:1fr auto;
    }
    .hc-admin-coupon-use{
        text-align:right;
    }
}
@media(max-width:520px){
    .hc-admin-recharges-page{
        width:min(100% - 20px,1180px);
    }
    .hc-bank-details>div{
        grid-template-columns:1fr;
        gap:4px;
    }
    .hc-admin-coupon-form{
        align-items:stretch;
        flex-direction:column;
    }
    .hc-admin-coupon-form label{
        width:100%;
    }
    .hc-admin-coupon-form .btn-submit{
        width:100%;
    }
    .hc-admin-bank-row{
        grid-template-columns:1fr;
    }
    .hc-admin-bank-reference,
    .hc-admin-bank-actions{
        grid-column:auto;
    }
    .hc-admin-bank-actions{
        justify-content:flex-start;
    }
    .hc-admin-coupon-row{
        grid-template-columns:1fr;
    }
    .hc-admin-coupon-use{
        text-align:left;
    }
}

/* =========================================================
   RICARICHE - tipo bonifico + separazione pannello admin
   ========================================================= */
.hc-bank-abuse-warning{
    margin:0 0 16px;
    padding:12px 13px;
    border:1px solid #e9b8b8;
    border-radius:10px;
    background:#fff2f2;
    color:#7b2b2b;
    font-size:12px;
    line-height:1.5;
}
.hc-bank-abuse-warning strong{
    display:block;
    margin-bottom:3px;
    color:#9d2424;
}
.hc-bank-type-fieldset{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:0 0 14px;
    padding:0;
    border:0;
}
.hc-bank-type-fieldset legend{
    grid-column:1/-1;
    margin:0 0 7px;
    color:#43373e;
    font-size:13px;
    font-weight:800;
}
.hc-bank-type-option{
    position:relative;
    display:block!important;
    margin:0!important;
    cursor:pointer;
}
.hc-bank-type-option input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    pointer-events:none;
}
.hc-bank-type-option span{
    display:flex;
    min-height:68px;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    padding:11px 12px;
    border:1px solid #ddd2d8;
    border-radius:11px;
    background:#fff;
    transition:.16s ease;
}
.hc-bank-type-option strong{
    color:#33272e;
    font-size:13px;
}
.hc-bank-type-option small{
    color:#857881;
    font-size:11px;
    line-height:1.35;
}
.hc-bank-type-option input:checked+span{
    border-color:var(--color-primary);
    background:var(--color-primary-light);
    box-shadow:0 0 0 2px rgba(var(--color-primary-rgb),.08);
}
.hc-bank-type-option input:focus-visible+span{
    outline:3px solid rgba(var(--color-primary-rgb),.18);
    outline-offset:2px;
}
.hc-bank-type-option input:disabled+span{
    cursor:not-allowed;
    opacity:.55;
}
.recharge-method-detail{
    margin-top:2px;
    color:#958891;
    font-size:10px;
    font-weight:700;
}
.hc-admin-bank-type{
    color:var(--color-primary)!important;
    font-weight:800;
}
.hc-admin-recharges-table{
    overflow:hidden;
    border:1px solid #e6e0e3;
    border-radius:12px;
    background:#fff;
}
.hc-admin-recharges-table-head,
.hc-admin-recharges-table-row{
    display:grid;
    grid-template-columns:minmax(170px,1.4fr) minmax(140px,1fr) minmax(120px,.8fr) minmax(100px,.65fr) auto;
    gap:14px;
    align-items:center;
    padding:11px 13px;
}
.hc-admin-recharges-table-head{
    background:#f8f5f7;
    color:#867982;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-admin-recharges-table-row{
    border-top:1px solid #eee8eb;
    color:#4a3c44;
    font-size:12px;
}
.hc-admin-recharges-table-row>div{
    min-width:0;
}
.hc-admin-recharges-table-row strong,
.hc-admin-recharges-table-row small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.hc-admin-recharges-table-row small{
    margin-top:2px;
    color:#948890;
    font-size:10px;
}
@media(max-width:850px){
    .hc-admin-recharges-table-head{
        display:none;
    }
    .hc-admin-recharges-table-row{
        grid-template-columns:1fr auto;
        gap:8px 12px;
    }
    .hc-admin-recharges-table-row>div:nth-child(2),
    .hc-admin-recharges-table-row>div:nth-child(3),
    .hc-admin-recharges-table-row>div:nth-child(4){
        grid-column:1;
    }
    .hc-admin-recharges-table-row>div:nth-child(5){
        grid-column:2;
        grid-row:1;
    }
}
@media(max-width:520px){
    .hc-bank-type-fieldset{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   RICARICA - conferma effettiva bonifico
   ========================================================= */
.hc-bank-created-reference{
    margin:12px 0 8px;
    padding:12px;
    border:1px solid rgba(var(--color-primary-rgb),.18);
    border-radius:10px;
    background:#fff;
}
.hc-bank-created-reference>span{
    display:block;
    margin-bottom:3px;
    color:#74656e;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-bank-history-pending{
    grid-column:1/-1;
    margin-top:10px;
    padding:12px;
    border:1px solid #eadfe4;
    border-radius:11px;
    background:#faf8f9;
}
.hc-bank-history-copy-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.hc-bank-history-copy-grid>div{
    min-width:0;
    padding:10px;
    border-radius:9px;
    background:#fff;
}
.hc-bank-history-copy-grid span{
    display:block;
    margin-bottom:5px;
    color:#8b7b84;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-bank-history-copy-grid strong{
    display:block;
    margin-bottom:7px;
    color:#34272f;
    font-size:12px;
    overflow-wrap:anywhere;
}
.hc-bank-declare-button{
    width:auto!important;
    margin-top:10px!important;
}
.hc-bank-declare-response .error-box,
.hc-bank-declare-response .success-box{
    margin:10px 0 0;
}
.hc-bank-declared-state{
    margin:10px 0 0!important;
}
.hc-admin-bank-declared{
    color:#9a7d00!important;
    font-weight:800;
}
.hc-admin-bank-declared.is-declared{
    color:#278044!important;
}
@media(max-width:620px){
    .hc-bank-history-copy-grid{
        grid-template-columns:1fr;
    }
    .hc-bank-declare-button{
        width:100%!important;
    }
}

/* =========================================================
   RICARICA - scelta metodo con finestre di dialogo
   ========================================================= */
.hc-recharge-method-choice-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:0 0 22px;
}
.hc-recharge-choice{
    display:flex;
    width:100%;
    min-height:76px;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border:1px solid #e1d9dd;
    border-radius:15px;
    background:#fff;
    color:#34272f;
    text-align:left;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(52,23,39,.045);
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;
}
.hc-recharge-choice:hover{
    border-color:rgba(var(--color-primary-rgb),.42);
    background:#fffafd;
    box-shadow:0 7px 20px rgba(52,23,39,.07);
    transform:translateY(-1px);
}
.hc-recharge-choice:focus-visible{
    outline:3px solid rgba(var(--color-primary-rgb),.18);
    outline-offset:2px;
}
.hc-recharge-choice:disabled{
    cursor:not-allowed;
    opacity:.5;
    transform:none;
}
.hc-recharge-choice-icon{
    display:inline-flex;
    flex:0 0 46px;
    width:46px;
    height:46px;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:var(--color-primary-light);
    color:var(--color-primary);
    font-size:20px;
    font-weight:900;
}
.hc-recharge-choice-copy{
    display:flex;
    min-width:0;
    flex:1 1 auto;
    flex-direction:column;
    gap:4px;
}
.hc-recharge-choice-copy strong{
    color:#30242b;
    font-size:16px;
}
.hc-recharge-choice-copy small{
    color:#7d7077;
    font-size:12px;
    line-height:1.4;
}
.hc-recharge-choice-arrow{
    flex:0 0 auto;
    color:#ad9da6;
    font-size:28px;
    font-weight:300;
    line-height:1;
}
.hc-recharge-dialog{
    width:min(94vw,620px);
    max-height:min(90vh,850px);
    margin:auto;
    padding:0;
    overflow:auto;
    border:0;
    border-radius:18px;
    background:transparent;
    box-shadow:0 22px 70px rgba(30,12,22,.28);
}
.hc-recharge-dialog::backdrop{
    background:rgba(35,18,28,.62);
    backdrop-filter:blur(5px);
}
.hc-recharge-dialog-card{
    padding:22px;
    border-radius:18px;
    background:#fff;
}
.hc-recharge-dialog-card-small{
    width:min(100%,500px);
}
.hc-recharge-dialog-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:18px;
}
.hc-recharge-dialog-kicker{
    display:block;
    margin-bottom:3px;
    color:var(--color-primary);
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.hc-recharge-dialog-head h2{
    margin:0;
    color:#2e2229;
    font-size:22px;
}
.hc-recharge-dialog-close{
    display:inline-flex;
    flex:0 0 38px;
    width:38px;
    height:38px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid #e8e0e4;
    border-radius:50%;
    background:#fff;
    color:#685b62;
    font-size:26px;
    line-height:1;
    cursor:pointer;
}
.hc-recharge-dialog-close:hover{
    background:#f8f5f7;
}
.hc-recharge-dialog-intro{
    margin:0 0 16px;
    color:#74686e;
    font-size:13px;
    line-height:1.5;
}
.hc-recharge-dialog-label{
    display:block;
    margin:0 0 7px;
    color:#43373e;
    font-size:13px;
    font-weight:800;
}
.hc-recharge-dialog-input{
    width:100%;
    min-height:47px;
    padding:11px 12px;
    border:1px solid #d7ced3;
    border-radius:10px;
    background:#fff;
    color:#292126;
    font:inherit;
    box-sizing:border-box;
    outline:none;
}
.hc-recharge-dialog-input:focus{
    border-color:var(--color-primary);
    box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.11);
}
.hc-bank-reference-box{
    margin:0 0 14px;
    padding:12px 13px;
    border:1px solid rgba(var(--color-primary-rgb),.18);
    border-radius:11px;
    background:#fff8fb;
}
.hc-bank-reference-box>span{
    display:block;
    margin-bottom:5px;
    color:#71626a;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-bank-reference-box>div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.hc-bank-reference-box .hc-bank-reference{
    margin:0;
    padding:7px 0;
    background:transparent;
    color:#281c23;
    font-size:17px;
    letter-spacing:1px;
}
.hc-bank-reference-box small{
    display:block;
    margin-top:5px;
    color:#8b7c84;
    font-size:10px;
    line-height:1.4;
}
.hc-bank-submit{
    width:100%!important;
}
.hc-bank-history-summary{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
    padding:8px 10px;
    border-radius:9px;
    background:#faf7f9;
    color:#74676e;
    font-size:11px;
}
.hc-bank-history-summary strong{
    color:#34272f;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    letter-spacing:.4px;
}
.hc-bank-history-summary small{
    color:#8f8189;
    text-align:right;
}
@media(max-width:620px){
    .hc-recharge-dialog-card{
        padding:17px;
    }
    .hc-recharge-choice{
        min-height:70px;
        padding:12px 13px;
    }
    .hc-recharge-choice-icon{
        flex-basis:42px;
        width:42px;
        height:42px;
    }
    .hc-bank-reference-box>div{
        align-items:flex-start;
        flex-direction:column;
    }
    .hc-bank-history-summary{
        align-items:flex-start;
        flex-direction:column;
    }
    .hc-bank-history-summary small{
        text-align:left;
    }
}

/* =========================================================
   RICARICA - Crypto USDC su Base
   ========================================================= */
.hc-recharge-choice-icon-crypto{
    font-size:22px;
}
.hc-crypto-eur-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
}
.hc-crypto-quote-button{
    min-height:47px;
    white-space:nowrap;
}
.hc-crypto-payment-box{
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid #eee6ea;
}
.hc-crypto-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.hc-crypto-grid>div{
    min-width:0;
    padding:11px 12px;
    border:1px solid #e8e0e4;
    border-radius:10px;
    background:#faf8f9;
}
.hc-crypto-grid>div>span{
    display:block;
    margin-bottom:5px;
    color:#897a83;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.hc-crypto-grid>div>strong{
    display:block;
    color:#34272f;
    font-size:13px;
}
.hc-crypto-wide{
    grid-column:1/-1;
}
.hc-crypto-copy-row{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.hc-crypto-copy-row b{
    min-width:0;
    overflow-wrap:anywhere;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:12px;
}
.hc-crypto-amount-due{
    border-color:rgba(var(--color-primary-rgb),.22)!important;
    background:#fff8fb!important;
}
.hc-crypto-amount-due b{
    color:var(--color-primary);
    font-size:18px;
}
.hc-crypto-warning{
    margin:12px 0;
    padding:12px 13px;
    border:1px solid #f0d99c;
    border-radius:10px;
    background:#fff9e9;
    color:#6d5820;
    font-size:12px;
    line-height:1.5;
}
.hc-crypto-warning strong{
    color:#55420c;
}
.hc-crypto-rate-line{
    margin:0 0 15px;
    color:#85777f;
    font-size:11px;
    line-height:1.45;
}
.hc-crypto-txid-input{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:12px;
}
.hc-crypto-txid-help{
    display:block;
    margin:6px 0 12px;
    color:#8a7c84;
    font-size:10px;
    line-height:1.45;
}
.hc-crypto-history-summary{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
    padding:8px 10px;
    border-radius:9px;
    background:#f7f9fb;
    color:#6d747c;
    font-size:11px;
}
.hc-crypto-history-summary strong{
    color:#26313a;
}
.hc-crypto-history-summary small{
    color:#89919a;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.hc-admin-method-toggle-crypto{
    margin-top:18px;
    border-top:1px solid #eee6ea;
    padding-top:18px;
}
.hc-admin-crypto-fields{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:12px 0 18px;
}
.hc-admin-crypto-fields label{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:6px;
    color:#51444b;
    font-size:12px;
    font-weight:800;
}
.hc-admin-crypto-fields label small{
    color:#91848b;
    font-size:10px;
    font-weight:600;
}
.hc-admin-crypto-fields input{
    width:100%;
    min-height:43px;
    padding:9px 10px;
    border:1px solid #dcd4d8;
    border-radius:9px;
    box-sizing:border-box;
    font:inherit;
}
.hc-admin-crypto-fixed{
    grid-column:1/-1;
    display:flex;
    flex-wrap:wrap;
    gap:8px 18px;
    padding:11px 12px;
    border-radius:9px;
    background:#f8f6f7;
    color:#766971;
    font-size:11px;
}
.hc-admin-crypto-fixed code{
    overflow-wrap:anywhere;
    color:#34272f;
}
.hc-admin-crypto-txid{
    white-space:normal!important;
}
.hc-admin-crypto-txid code{
    font-size:10px;
}
@media(max-width:620px){
    .hc-crypto-eur-row,
    .hc-crypto-grid,
    .hc-admin-crypto-fields{
        grid-template-columns:1fr;
    }
    .hc-crypto-wide,
    .hc-admin-crypto-fixed{
        grid-column:1;
    }
    .hc-crypto-copy-row,
    .hc-crypto-history-summary{
        align-items:flex-start;
        flex-direction:column;
    }
    .hc-crypto-quote-button{
        width:100%;
    }
}

/* =========================================================
   RICARICA - Postepay
   ========================================================= */
.hc-admin-method-toggle-postepay{
    margin-top:18px;
    border-top:1px solid #eee6ea;
    padding-top:18px;
}
.hc-admin-postepay-fields{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px 16px;
    margin:12px 0 18px;
}
.hc-admin-postepay-fields label{
    display:flex!important;
    min-width:0;
    flex-direction:column;
    gap:6px;
    margin:0!important;
    color:#51444b;
    font-size:12px;
    font-weight:800;
}
.hc-admin-postepay-fields input{
    width:100%!important;
    min-height:43px;
    margin:0!important;
    padding:9px 10px;
    border:1px solid #dcd4d8;
    border-radius:9px;
    box-sizing:border-box;
    font:inherit;
}
.hc-recharge-choice-icon-postepay{
    font-size:18px;
    letter-spacing:-.04em;
}
.hc-postepay-field-gap{
    margin-top:14px;
}
.hc-postepay-help{
    display:block;
    margin:6px 0 0;
    color:#8a7c84;
    font-size:10px;
    line-height:1.45;
}
.hc-postepay-history-summary strong{
    font-family:inherit;
    letter-spacing:0;
}
.hc-admin-bank-row.is-postepay .hc-admin-bank-reference small{
    color:#8b7f86;
    font-size:10px;
}
@media(max-width:760px){
    .hc-admin-postepay-fields{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   ADMIN METODI RICARICA - schede espandibili
   ========================================================= */
.hc-admin-methods-shell{
    padding:18px;
}
.hc-admin-method-accordion{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.hc-admin-method-card{
    overflow:hidden;
    border:1px solid #e6dfe3;
    border-radius:14px;
    background:#fff;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.hc-admin-method-card.is-open{
    border-color:rgba(var(--color-primary-rgb),.34);
    box-shadow:0 7px 22px rgba(48,21,36,.07);
}
.hc-admin-method-card-head{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:72px;
    padding:0 16px;
}
.hc-admin-method-card-trigger{
    display:flex;
    min-width:0;
    flex:1 1 auto;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:15px 0;
    border:0;
    background:transparent;
    color:inherit;
    text-align:left;
    cursor:pointer;
}
.hc-admin-method-card-title{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:4px;
}
.hc-admin-method-card-title strong{
    color:#30262d;
    font-size:15px;
}
.hc-admin-method-card-title small{
    color:#897c84;
    font-size:11px;
    font-weight:500;
    line-height:1.4;
}
.hc-admin-method-card-arrow{
    display:inline-flex;
    width:30px;
    height:30px;
    flex:0 0 30px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f5f1f3;
    color:#66565f;
    font-size:21px;
    line-height:1;
    transition:transform .18s ease,background .18s ease,color .18s ease;
}
.hc-admin-method-card.is-open .hc-admin-method-card-arrow{
    transform:rotate(180deg);
    background:var(--color-primary-light);
    color:var(--color-primary);
}
.hc-admin-method-card-body{
    padding:16px;
    border-top:1px solid #eee7eb;
    background:#fff;
}
.hc-admin-method-card-body[hidden]{
    display:none!important;
}
.hc-admin-method-subsection + .hc-admin-method-subsection{
    margin-top:22px;
    padding-top:20px;
    border-top:1px solid #eee8eb;
}
.hc-admin-method-subhead{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}
.hc-admin-method-subhead h3{
    margin:0 0 4px;
    color:#362a31;
    font-size:14px;
}
.hc-admin-method-subhead p{
    margin:0;
    color:#8a7e85;
    font-size:11px;
    line-height:1.45;
}
.hc-admin-method-save-row{
    display:flex;
    justify-content:flex-end;
    margin-top:18px;
}
.hc-admin-method-save-row .btn-submit{
    margin:0!important;
}
.hc-admin-coupon-recent-section .hc-admin-coupon-list{
    margin-top:4px;
}
.hc-admin-method-card .hc-admin-bank-fields,
.hc-admin-method-card .hc-admin-postepay-fields,
.hc-admin-method-card .hc-admin-crypto-fields{
    margin-top:0;
}
@media(max-width:620px){
    .hc-admin-methods-shell{
        padding:12px;
    }
    .hc-admin-method-card-head{
        min-height:66px;
        padding:0 12px;
    }
    .hc-admin-method-card-title small{
        max-width:230px;
    }
    .hc-admin-method-card-body{
        padding:13px;
    }
    .hc-admin-method-save-row .btn-submit{
        width:100%;
    }
}
.hc-admin-method-toggle-form{
    margin:0;
    flex:0 0 auto;
}

/* Commenti post bacheca */
.hc-post-comments{padding:0 5px 12px;border-top:1px solid rgba(0,0,0,.06)}
.hc-comments-list{display:flex;flex-direction:column;gap:10px;padding-top:10px}
.hc-comment{display:flex;align-items:flex-start;gap:9px;min-width:0}
.hc-comment.is-reply{margin-left:34px}
.hc-comment-avatar{width:30px;height:30px;flex:0 0 30px;border-radius:50%;object-fit:cover;background:#eee}
.hc-comment-body{min-width:0;flex:1}
.hc-comment-head{display:flex;align-items:baseline;gap:7px;min-width:0}
.hc-comment-head strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-comment-head span{font-size:11px;color:#999;white-space:nowrap}
.hc-comment-text{margin-top:2px;font-size:14px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
.hc-comment-actions{display:flex;gap:10px;margin-top:4px}
.hc-comment-actions button,.hc-comments-more{padding:0;border:0;background:none;color:#777;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.hc-comment-actions button:hover,.hc-comments-more:hover{color:#ff4da6}
.hc-comments-more{margin:10px 0 2px;font-size:12px}
.hc-comment-compose{position:relative;margin-top:10px}
.hc-comment-input-wrap{display:flex;align-items:flex-end;gap:8px}
.hc-comment-input{display:block;width:100%;min-height:38px;max-height:110px;padding:9px 11px;border:1px solid #ddd;border-radius:12px;background:#fff;color:#222;font:inherit;font-size:14px;resize:vertical;outline:none}
.hc-comment-input:focus{border-color:#ff4da6;box-shadow:0 0 0 2px rgba(255,77,166,.08)}
.hc-comment-send{min-height:38px;padding:8px 13px;border:0;border-radius:10px;background:#ff4da6;color:#fff;font-weight:700;cursor:pointer}
.hc-comment-send:disabled{opacity:.55;cursor:default}
.hc-comment-replying{margin:0 0 6px;padding:6px 9px;border-radius:8px;background:#f6f6f8;color:#666;font-size:12px}
.hc-comment-replying button{float:right;border:0;background:none;cursor:pointer;font-size:16px;line-height:1}
.hc-comment-status{min-height:16px;margin-top:4px;color:#b42318;font-size:11px}
.hc-comment-mentions{position:absolute;left:0;right:55px;bottom:46px;z-index:20;overflow:hidden;border:1px solid #ddd;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.hc-comment-mention-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;cursor:pointer}
.hc-comment-mention-option:last-child{border-bottom:0}.hc-comment-mention-option:hover{background:#fafafa}.hc-comment-mention-option span{color:#888;font-size:12px}
.comment-action .comment-count{font-size:12px;color:#888}
@media(max-width:600px){.hc-comment.is-reply{margin-left:22px}.hc-comment-actions{gap:8px}.hc-comment-input-wrap{gap:6px}.hc-comment-send{padding:8px 10px}}
