@import url('variables.css');
/* ========================================================= */
/* STYLE.CSS - MASTER DESIGN SYSTEM & FLUID COMPONENTS       */
/* Armonia & Benessere - Portale Clienti 3.0                 */
/* ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- FIXED CONTAINER SYSTEM --- */
.app-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: calc(var(--topbar-height) + 16px) 16px calc(var(--bottom-nav-height) + 24px) 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- HAUTE COUTURE TOPBAR --- */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.topbar-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon-topbar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
}

.btn-icon-topbar:active {
    transform: scale(0.92);
}

/* --- LUXURY CARDS --- */
.soleille-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.soleille-hero-card {
    background: var(--gradient-golden);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.soleille-tagline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--branddeep);
    margin-bottom: 6px;
}

.soleille-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* --- SOLEILLE BUTTONS SYSTEM --- */
.btn-soleille-primary, .soleille-btn-primary {
    background: var(--branddeep);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: var(--shadow-brand);
}

.btn-soleille-primary:hover, .soleille-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

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

.btn-soleille-secondary {
    background: var(--card-inner);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

/* --- GLIDER (BOUTIQUE CATEGORIES) --- */
.glider-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glider-container::-webkit-scrollbar {
    display: none;
}

.pill-item {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-inner);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.pill-item.active {
    background: var(--branddeep);
    color: #ffffff;
    border-color: var(--branddeep);
}

/* --- BOUTIQUE VETRINA LUXURY CARDS --- */
.product-card-luxury {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-luxury:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.product-img-wrapper {
    background: var(--product-img-bg);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.zoom-img {
    transition: transform 0.4s ease;
}

.product-card-luxury:hover .zoom-img {
    transform: scale(1.05);
}

/* --- FIXED BOTTOM NAVIGATION --- */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--topbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: transform 0.2s;
}

/* Custom Luxury Icons Styling */
.app-custom-ico-nav {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    opacity: 0.85;
}

.bottom-nav-item.active {
    color: var(--branddeep);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item.active .app-custom-ico-nav {
    transform: translateY(-2px) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 2px 6px rgba(158, 100, 67, 0.4));
}

.app-custom-ico-drawer {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.app-custom-ico-sm {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.bottom-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

/* --- FORM WINDOW MODALS & OVERLAYS --- */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10000;
}

.modal-content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lift);
    max-height: 90vh;
    overflow-y: auto;
}

/* --- GRANULAR RADIO BUTTONS FOR AGENDA (SLOT PICKER) --- */
.soleille-slot-pill {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.1s ease;
}

.soleille-slot-pill:not(.busy):hover {
    border-color: var(--branddeep);
    background: var(--card-inner);
}

.soleille-slot-pill.selected {
    background: var(--branddeep) !important;
    color: #ffffff !important;
    border-color: var(--branddeep) !important;
}

.soleille-slot-pill.busy {
    background: var(--card-inner) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

/* --- TAB ANIMATIONS ENGINE --- */
.app-tab-view {
    display: none;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-tab-view.active {
    display: block;
}

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

/* Custom Scrollbar Utility */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

/* ========================================================= */
/* 🦋 STILI LUXURY COMPONENTE: PUNTI FARFALLA - LA TUA RACCOLTA */
/* ========================================================= */
.farfalla-canvas-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto 16px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.butterfly-svg-root {
    width: 100%;
    height: auto;
    max-height: 380px;
    transform-origin: center center;
    animation: butterflySoftFlap 5s ease-in-out infinite;
    filter: drop-shadow(0 12px 30px rgba(197, 142, 105, 0.20));
}

@keyframes butterflySoftFlap {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.025) translateY(-5px);
    }
}

.farfalla-gold-line {
    stroke: #d4af37;
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.farfalla-spicchio {
    transition: fill 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.farfalla-spicchio.wing-active {
    fill: url(#pinkActive) !important;
    fill-opacity: 1 !important;
}

.farfalla-spicchio.wing-bg {
    fill: var(--card-inner) !important;
    fill-opacity: 0.65 !important;
}

.mini-farfalle-album {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.mini-farfalla-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.mini-farfalla-item:hover {
    transform: scale(1.15);
}

.mini-farfalla-item.full svg path {
    fill: #d98aa0;
    filter: drop-shadow(0 2px 6px rgba(217, 138, 160, 0.5));
}

.mini-farfalla-item.partial svg path {
    fill: url(#halfMini);
}

.mini-farfalla-item.empty svg path {
    fill: var(--text-muted);
    opacity: 0.25;
}

.rules-grid-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .rules-grid-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========================================================= */
/* 📱 HOME DASHBOARD QUICK TILES & MAIN CONTAINER            */
/* ========================================================= */
.app-main-content {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: calc(var(--topbar-height) + 52px) 16px calc(var(--bottom-nav-height) + 24px) 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge-gold-contour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--card-inner);
    border: 1px solid var(--border-gold);
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--branddeep);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.btn-action-tile {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(43, 36, 32, 0.04);
    flex: 1 1 220px;
    max-width: 320px;
    min-height: 140px;
}

.btn-action-tile:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

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

.btn-action-tile .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--card-inner);
    color: var(--branddeep);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.btn-action-tile:hover .icon-circle {
    background: var(--branddeep);
    color: #ffffff;
    border-color: var(--branddeep);
    transform: scale(1.08);
}

.btn-action-tile .tile-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.btn-action-tile .tile-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    display: block;
}

/* ========================================================= */
/* 🛍️ BOUTIQUE RESPONSIVE LAYOUT (SIDEBAR DESKTOP + PILLS MOBILE) */
/* ========================================================= */
.boutique-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 80px;
}

.boutique-sidebar {
    display: none;
}

.boutique-mobile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.btn-cat-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--card-inner);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-cat-pill:hover {
    color: var(--text-primary);
    border-color: var(--branddeep);
}

.btn-cat-pill.active {
    background: var(--branddeep);
    color: #ffffff;
    border-color: var(--branddeep);
    box-shadow: 0 4px 10px rgba(158, 100, 67, 0.2);
}

.boutique-main-content {
    flex: 1;
    min-width: 0;
}

/* Desktop layout: >= 768px */
@media (min-width: 768px) {
    .boutique-layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
    }

    .boutique-mobile-pills {
        display: none !important;
    }

    .boutique-sidebar {
        display: flex;
        flex-direction: column;
        width: 250px;
        flex-shrink: 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-card);
        padding: 16px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.02);
        position: sticky;
        top: calc(var(--topbar-height) + 52px);
    }

    .boutique-sidebar-title {
        font-family: var(--font-display);
        font-size: 15px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 12px 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .boutique-nav-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .boutique-nav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary);
        background: transparent;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left;
        width: 100%;
    }

    .boutique-nav-item:hover {
        background: var(--card-inner);
        color: var(--text-primary);
    }

    .boutique-nav-item.active {
        background: var(--branddeep);
        color: #ffffff;
        border-color: var(--branddeep);
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(158, 100, 67, 0.25);
    }

    .boutique-nav-item .nav-icon {
        width: 20px;
        display: inline-block;
        font-size: 14px;
        margin-right: 6px;
    }

    .boutique-nav-badge {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--card-inner);
        color: var(--text-muted);
        font-weight: 700;
    }

    .boutique-nav-item.active .boutique-nav-badge {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }

    /* Sottocategorie & Struttura ad Albero Luxury */
    .boutique-nav-group {
        display: flex;
        flex-direction: column;
    }

    .boutique-nav-item .boutique-arrow {
        font-size: 11px;
        transition: transform 0.2s ease;
        margin-left: auto;
        padding-left: 8px;
        color: inherit;
        opacity: 0.7;
    }

    .boutique-nav-item.open .boutique-arrow {
        transform: rotate(90deg);
    }

    .boutique-subnav {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding-left: 14px;
        margin: 4px 0 6px 10px;
        border-left: 2px solid var(--border-color);
    }

    .boutique-subnav.show {
        display: flex;
    }

    .boutique-subnav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--text-secondary);
        background: transparent;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: left;
        width: 100%;
    }

    .boutique-subnav-item:hover {
        background: var(--card-inner);
        color: var(--text-primary);
    }

    .boutique-subnav-item.active {
        background: rgba(158, 100, 67, 0.12);
        color: var(--branddeep);
        font-weight: 700;
        border-color: rgba(158, 100, 67, 0.25);
    }

    .boutique-subsubnav {
        display: none;
        flex-direction: column;
        gap: 2px;
        padding-left: 12px;
        margin: 2px 0 4px 8px;
        border-left: 1.5px dashed var(--border-color);
    }

    .boutique-subsubnav.show {
        display: flex;
    }

    .boutique-subsubnav-item {
        padding: 5px 8px;
        font-size: 11.5px;
        border-radius: 6px;
        color: var(--text-sub);
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: all 0.15s ease;
    }

    .boutique-subsubnav-item:hover {
        color: var(--branddeep);
        background: var(--card-inner);
    }

    .boutique-subsubnav-item.active {
        color: var(--branddeep);
        font-weight: 700;
        background: rgba(158, 100, 67, 0.1);
    }
}

/* ========================================================= */
/* 📅 PRENOTAZIONE CABINA - GRID, CALENDARIO E STICKY BAR    */
/* ========================================================= */
.booking-service-grid-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: calc(var(--bottom-nav-height) + 120px) !important;
    align-items: start;
}

@media screen and (min-width: 1100px) {
    .booking-service-grid-columns {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
    .booking-service-box {
        padding: 20px 14px;
    }
    .booking-treatment-pill {
        padding: 10px 12px;
        font-size: 12.5px;
    }
}

@media screen and (max-width: 1099px) and (min-width: 900px) {
    .booking-service-grid-columns {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }
    .booking-service-box {
        padding: 14px 10px !important;
    }
    .booking-treatment-pill {
        padding: 8px 8px !important;
        font-size: 11px !important;
    }
    .booking-treatment-pill .pill-price {
        font-size: 11px !important;
    }
}

.booking-service-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--shadow-lift);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.booking-service-box:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(43, 36, 32, 0.08);
}
.booking-service-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}
.booking-service-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--branddeep);
    margin: 0;
    line-height: 1.2;
}
.booking-service-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
}
.booking-service-count {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: var(--branddeep);
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}
.booking-accordion-icon {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-inner);
    color: var(--branddeep);
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 8px;
}
.booking-pills-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

@media screen and (max-width: 899px) {
    .booking-service-grid-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .booking-service-box {
        padding: 16px 18px;
        border-radius: 20px;
        cursor: pointer;
    }
    .booking-service-box-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        cursor: pointer;
        user-select: none;
    }
    .booking-accordion-icon {
        display: flex;
    }
    .booking-service-box .booking-pills-wrap {
        display: none;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid var(--border-color);
        animation: accordionExpand 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .booking-service-box.is-expanded {
        border-color: var(--brand);
        box-shadow: 0 8px 24px rgba(197, 142, 105, 0.15);
    }
    .booking-service-box.is-expanded .booking-pills-wrap {
        display: flex;
    }
    .booking-service-box.is-expanded .booking-accordion-icon {
        transform: rotate(180deg);
        background: var(--branddeep);
        color: #ffffff;
    }
    @keyframes accordionExpand {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.booking-treatment-pill {
    background: var(--card-inner);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
    user-select: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.booking-treatment-pill:hover {
    color: var(--text-primary);
    border-color: var(--branddeep);
    background: var(--card-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.booking-treatment-pill.selected {
    background: var(--branddeep) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(158, 100, 67, 0.35);
    border-color: transparent !important;
    transform: scale(1.01);
}
.booking-treatment-pill.selected .badge-personalizzato {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.booking-treatment-pill .pill-name {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}
.booking-treatment-pill .pill-price {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.95;
    flex-shrink: 0;
    text-align: right;
}

/* Sticky Bottom Summary Bar */
.booking-sticky-bottom-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 900px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-gold);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(158, 100, 67, 0.15);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: slideUpSticky 0.25s ease-out;
}
@media (min-width: 1024px) {
    .booking-sticky-bottom-bar {
        bottom: 24px;
        padding: 16px 28px;
    }
}
@keyframes slideUpSticky {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}
.booking-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.booking-sticky-count {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.booking-sticky-total {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* Layout Calendario Step 2 */
.booking-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .booking-grid-two-cols {
        grid-template-columns: 360px 1fr;
        align-items: start;
    }
}
.booking-calendar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lift);
}
.booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.booking-cal-nav-btn {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.booking-cal-nav-btn:hover {
    background: var(--branddeep);
    color: #ffffff;
    border-color: var(--branddeep);
}
.booking-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.booking-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.booking-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}
/* Stili Gradiente per le giornate del calendario */
.booking-day-cell.closed,
.booking-day-cell.full {
    background: transparent;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.3;
    border: 1px solid transparent;
}
.booking-day-cell.open-high {
    /* Massima disponibilità / Consigliata: calda tonalità arancione/ambra dorata luxury */
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.22) 0%, rgba(211, 84, 0, 0.12) 100%);
    color: #e67e22;
    border: 1.5px solid rgba(230, 126, 34, 0.5);
    font-weight: 800;
}
.booking-day-cell.open-high:hover {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.35) 0%, rgba(211, 84, 0, 0.22) 100%);
    border-color: #e67e22;
    transform: scale(1.06);
}
.booking-day-cell.open-med {
    /* Buona disponibilità: tonalità sabbia/oro dorata soft */
    background: rgba(197, 142, 105, 0.12);
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
}
.booking-day-cell.open-med:hover {
    border-color: var(--branddeep);
    background: rgba(197, 142, 105, 0.2);
    transform: scale(1.04);
}
.booking-day-cell.open-low {
    /* Pochi posti disponibili: verde smeraldo/salvia gentile */
    background: rgba(46, 125, 50, 0.12);
    color: #4caf50;
    border: 1px solid rgba(46, 125, 50, 0.35);
}
.booking-day-cell.open-low:hover {
    border-color: #4caf50;
    background: rgba(46, 125, 50, 0.22);
    transform: scale(1.04);
}
.booking-day-cell.selected {
    background: var(--branddeep) !important;
    color: #ffffff !important;
    border-color: var(--branddeep) !important;
    box-shadow: 0 4px 16px rgba(158, 100, 67, 0.45) !important;
    transform: scale(1.08) !important;
    font-weight: 800;
}

.booking-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}
.booking-calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.booking-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.booking-legend-dot.high { background: #e67e22; border: 1px solid #d35400; }
.booking-legend-dot.med { background: #c58e69; border: 1px solid #a26c48; }
.booking-legend-dot.low { background: #4caf50; border: 1px solid #2e7d32; }
.booking-legend-dot.closed { background: #64748b; opacity: 0.5; }

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
}

/* ========================================================= */
/* 🏡 HOME DASHBOARD SPLIT: BENVENUTO/A (SX) + AGENDA (DX)   */
/* ========================================================= */
.home-dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .home-dashboard-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.home-welcome-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold, var(--border-color));
    border-radius: var(--radius-card, 20px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.home-welcome-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(199, 137, 102, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-agenda-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card, 20px);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.home-appointment-item {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.home-appointment-item:hover {
    border-color: var(--branddeep);
    transform: translateX(2px);
}

/* ========================================================= */
/* 🎁 REGALO TOUCH PILLS - UX MOBILE-FIRST A TASTONI         */
/* ========================================================= */
.regalo-touch-pill {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.regalo-touch-pill:hover {
    border-color: var(--branddeep);
    transform: translateY(-1px);
}

.regalo-touch-pill:active {
    transform: scale(0.98);
}

.regalo-touch-pill.is-selected {
    background: linear-gradient(135deg, rgba(197, 142, 105, 0.16) 0%, rgba(158, 100, 67, 0.08) 100%) !important;
    border-color: var(--branddeep) !important;
    box-shadow: 0 4px 14px rgba(158, 100, 67, 0.18) !important;
}

.regalo-pill-badge {
    background: var(--branddeep);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(158, 100, 67, 0.4);
    animation: popBadge 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBadge {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.regalo-pill-minus-btn {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.regalo-pill-minus-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.regalo-pill-minus-btn:active {
    transform: scale(0.9);
}

/* ========================================================= */
/* 📱 SMARTPHONE & ANDROID TASTONI HERO CHOOSER (FASE 1)     */
/* ========================================================= */
.booking-macro-card {
    background: var(--card-bg);
    border: 2px solid var(--border-gold);
    border-radius: 22px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    text-align: left;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.booking-macro-card:hover {
    border-color: var(--branddeep);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(158, 100, 67, 0.15);
}

.booking-macro-card:active {
    transform: scale(0.98);
}

.booking-macro-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(197, 142, 105, 0.2) 0%, rgba(158, 100, 67, 0.08) 100%);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

@keyframes slideRightIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ========================================================= */
/* 📱 RESPONSIVE NAVIGATION: DESKTOP vs MOBILE               */
/* ========================================================= */
/* Su schermi piccoli (Mobile/Tablet <= 768px):
   - Nascondi il badge pillola account in alto (ridondante perché c'è già il Drawer con avatar e opzioni)
   - Mostra il pulsante Hamburger
*/
@media (max-width: 768px) {
    .desktop-only-account {
        display: none !important;
    }
    #btn-topbar-hamburger {
        display: flex !important;
    }
    .app-topbar {
        padding: 0 14px;
    }
    .topbar-title {
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar-actions {
        gap: 8px;
    }
}

/* Su schermi grandi (Desktop > 768px):
   - Mostra la pillola account con menu a tendina
   - Nascondi il pulsante Hamburger (navigazione standard e pulita)
*/
@media (min-width: 769px) {
    .desktop-only-account {
        display: block !important;
    }
    #btn-topbar-hamburger {
        display: none !important;
    }
}

/* Stili Drawer Menu Laterale */
.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-menu-item:hover, .drawer-menu-item:active {
    border-color: var(--branddeep);
    background: var(--card-bg);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(158, 100, 67, 0.1);
}
