:root {
    --bg: #000000;
    --card: #111111;
    --card-2: #1c1c1e;
    --accent: #cf7eb3;
    --accent-hover: #df9ec7;
    --accent-glow: rgba(207, 126, 179, 0.3);
    --accent-subtle: rgba(207, 126, 179, 0.08);
    --group-accent: #8ac640;
    --group-accent-hover: #8ac640;
    --group-accent-glow: rgba(138, 198, 64, 0.3);
    --group-accent-subtle: rgba(138, 198, 64, 0.08);
    --text: #f0f0f0;
    --muted: #888;
    --border: rgba(255, 255, 255, 0.07);
    --danger: #ef4444;
    --success: #8ac640;
    --warning: #f59e0b;
    --shadow-red: 0 4px 20px rgba(207, 126, 179, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

html.modal-scroll-lock,
body.modal-scroll-lock {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

.is-hidden {
    display: none !important;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    position: relative;
    background-color: var(--bg);
    overflow: hidden;
}

.hidden-view {
    display: none !important;
}

.active-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    animation: fadeIn 0.4s ease;
}

.hidden-tab {
    display: none;
}

.active-tab {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── LOGIN ───────────────────────────────────────────── */
#view-login {
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: radial-gradient(ellipse at center, #140810 0%, #000000 70%);
    overflow-y: auto;
}

.login-box {
    background: var(--card);
    padding: 45px 25px;
    border-radius: 24px;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-red);
    border: 1px solid rgba(207, 126, 179, 0.28);
}

.login-logo {
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(207, 126, 179, 0.4));
    animation: pulse 2.5s infinite;
}

.login-logo-img {
    height: 100px;
    width: auto;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(207, 126, 179, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(207, 126, 179, 0.6));
    }
}

.login-box h2 {
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.login-box p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-box input {
    width: 100%;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #111;
    color: #fff;
    font-size: 16px;
    text-align: center;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.login-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(207, 126, 179, 0.1);
}

/* ─── HEADER ──────────────────────────────────────────── */
header {
    position: relative;
    padding: 30px 20px 20px;
    text-align: left;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.header-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(207, 126, 179, 0.12) 0%, transparent 70%);
    z-index: 0;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(207, 126, 179, 0.4));
}

.header-logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(207, 126, 179, 0.4));
    flex-shrink: 0;
}

header h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

header p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

#status-badge {
    margin-left: auto;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(207, 126, 179, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-settings-gear {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.btn-settings-gear-left {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.btn-settings-gear:active,
.btn-settings-gear-left:active {
    transform: scale(0.92);
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: rgba(207, 126, 179, 0.4);
}

/* ─── SETTINGS SLIDE-IN PANEL ─────────────────────────────── */
.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.settings-panel {
    background: var(--card);
    border: 1px solid rgba(207, 126, 179, 0.24);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 40px;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.65);
    max-height: 92vh;
    overflow-y: auto;
}

.settings-page {
    min-height: 100%;
}

.settings-page .settings-panel {
    transform: none;
    transition: none;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 8px;
}

.settings-overlay.open .settings-panel {
    transform: translateY(0);
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 14px;
}

.settings-panel-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.15;
}

.settings-panel-header h3 i {
    color: var(--accent);
}

.settings-panel-header p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
}

.btn-close-settings {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-card-spaced {
    margin-top: 16px;
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px 16px 0;
}

.settings-list,
.slot-chip-list {
    display: grid;
    gap: 8px;
}

.settings-list {
    padding: 0 12px;
}

.service-types-card {
    padding: 16px;
}

.service-types-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.service-types-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.service-types-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.service-types-card .settings-list {
    padding: 0;
    gap: 10px;
}

.settings-list-empty {
    color: var(--muted);
    font-size: 12px;
    padding: 10px 0;
}

.service-settings-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    padding: 12px;
    min-height: 70px;
}

.service-settings-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(207, 126, 179, 0.12);
    border: 1px solid rgba(207, 126, 179, 0.22);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.service-settings-main {
    min-width: 0;
}

/* STILI SOTTO-SCHEDE */
.subtabs-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.btn-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-subtab i {
    font-size: 17px;
    flex: 0 0 auto;
}

.btn-subtab.active {
    background: rgba(207, 126, 179, 0.16);
    color: var(--text) !important;
    border-color: rgba(207, 126, 179, 0.34);
    box-shadow: 0 8px 18px rgba(207, 126, 179, 0.12);
}

.btn-subtab:hover {
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent) !important;
    border-color: rgba(207, 126, 179, 0.25);
}

/* GRIGLIA E MINI CARD SETTIMANALI MASSAGGI */
.massaggi-orari-settimanali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.slots-grid-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
}

.slot-mini-card-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    min-height: 50px;
    padding: 9px 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.slot-mini-card-admin:active {
    transform: scale(0.96);
}

.slot-card-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--text-muted);
    font-weight: 500;
}

.slot-card-left i {
    flex: 0 0 auto;
    font-size: 16px;
}

.slot-mini-card-admin.is-active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.slot-mini-card-admin.is-active .slot-card-left {
    color: #10b981;
    font-weight: 700;
}

.slot-mini-card-admin.is-inactive {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.04);
    opacity: 0.5;
}

.slot-mini-card-admin.is-inactive .slot-card-left {
    text-decoration: line-through;
    color: var(--text-muted);
}

.slot-mini-card-admin.is-course-conflict {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.26);
    opacity: 0.86;
}

.slot-mini-card-admin.is-course-conflict .slot-card-left {
    color: #f59e0b;
    font-weight: 800;
}

.slot-mini-card-admin.is-course-conflict .slot-time-text {
    color: #f8d38a;
}

.slot-conflict-text {
    min-width: 0;
    color: rgba(248, 211, 138, 0.78);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.slot-time-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

.slot-mini-card-admin.is-active .slot-time-text {
    color: var(--text);
}

.btn-slot-delete {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(239, 68, 68, 0.65);
    transition: all 0.2s ease;
    border-radius: 9px;
}

.btn-slot-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.08);
}

.slot-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label label"
        "input button";
    gap: 8px 10px;
    align-items: end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    padding: 12px 0 0;
}

.slot-add-label {
    grid-area: label;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.slot-add-input {
    grid-area: input;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 46px;
}

.slot-add-button {
    grid-area: button;
    min-width: 116px;
    height: 46px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* TURNI LIBERI IN AGENDA (Stile rosa) */
.agenda-item.is-free-slot .agenda-card-content {
    border-left-color: var(--accent);
    background: var(--accent-subtle);
    border-color: rgba(207, 126, 179, 0.18);
}

.agenda-item.is-free-slot .client-name-admin.is-free {
    color: var(--accent);
    font-weight: 700;
}

.agenda-item.is-free-slot .badge-free {
    background: rgba(207, 126, 179, 0.15);
    color: var(--accent);
    border: 1px solid rgba(207, 126, 179, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.btn-action-mini.btn-book-free {
    background: var(--accent-subtle);
    color: var(--accent) !important;
    border: 1px solid rgba(207, 126, 179, 0.2);
}

.btn-action-mini.btn-book-free:hover {
    background: var(--accent);
    color: #080808 !important;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-action-mini.btn-block-free {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-action-mini.btn-block-free:hover {
    background: #ef4444;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-add-custom-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-custom-slot:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ALLINEAMENTO TIPOLOGIE MASSAGGI */
#form-aggiungi-servizio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
}

.service-add-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.service-add-field label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

#form-aggiungi-servizio .input-modern {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

#form-aggiungi-servizio #nuovo-servizio-durata {
    height: 46px;
    padding-right: 44px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.service-duration-input-wrap {
    position: relative;
    min-width: 0;
}

.service-duration-input-wrap span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.service-add-submit {
    grid-column: 1 / -1;
}

.service-add-help {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

#form-aggiungi-servizio #nuovo-servizio-nome,
#form-aggiungi-servizio #nuovo-servizio-durata {
    min-width: 0;
}

#form-aggiungi-servizio button {
    width: 100%;
    padding: 10px 16px;
    height: 46px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.service-settings-main strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.service-settings-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.service-duration-badge,
.service-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.service-duration-badge {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.service-duration-badge i {
    font-size: 13px;
}

.service-status-badge.is-enabled {
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.service-status-badge.is-disabled {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.service-settings-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px auto;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-inline-form button {
    grid-column: auto;
}

@media (max-width: 430px) {
    .subtabs-container {
        gap: 5px;
        padding: 4px;
    }

    .btn-subtab {
        min-height: 48px;
        padding: 9px 8px;
        font-size: 12px;
        line-height: 1.2;
        flex-direction: column;
        gap: 4px;
    }

    .service-types-card {
        padding: 14px;
    }

    .service-settings-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        align-items: flex-start;
    }

    .service-settings-icon {
        width: 40px;
        height: 40px;
    }

    .service-settings-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .service-settings-actions .btn-course-action {
        flex: 1 1 0;
    }

    .settings-inline-form {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .settings-inline-form button {
        grid-column: 1 / -1;
    }

    #form-aggiungi-servizio {
        grid-template-columns: 1fr;
    }
}

.slot-chip-list {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    padding: 0 12px;
}

.slot-chip-admin {
    border: 1px solid rgba(207, 126, 179, 0.24);
    border-radius: 8px;
    background: rgba(207, 126, 179, 0.08);
    color: var(--text);
    min-height: 38px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.slot-chip-admin button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.14);
    color: var(--danger);
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* ─── MAIN & SECTIONS ─────────────────────────────────── */
main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 15px 20px 105px;
    scrollbar-width: none;
}

main::-webkit-scrollbar {
    display: none;
}

.section-title {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-weight: 700;
}

/* ─── BOTTOM NAV ──────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--card);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 25px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-item {
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: 0.3s;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 0 4px;
}

.nav-icon {
    display: block;
    font-size: 21px;
    margin-bottom: 3px;
    transition: 0.2s;
}

.active-nav {
    color: var(--accent);
    font-weight: 700;
}

.active-nav .nav-icon {
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(207, 126, 179, 0.5));
}

/* ─── APPOINTMENT CARDS ───────────────────────────────── */
.availability-manager {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.availability-date-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.availability-date-main {
    min-width: 0;
    text-align: center;
}

.availability-date-main strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.availability-date-main input {
    width: 100%;
    max-width: 170px;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 0 10px;
}

.availability-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.availability-summary span {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.availability-summary strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1;
}

.availability-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.availability-slots-grid.is-saving {
    opacity: 0.68;
    pointer-events: none;
}

.availability-slot {
    min-width: 0;
    min-height: 86px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: var(--shadow-sm);
}

.availability-slot strong {
    font-size: 18px;
    line-height: 1;
}

.availability-slot span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.availability-slot em {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.availability-slot.is-available {
    border-color: rgba(138, 198, 64, 0.5);
    background: rgba(138, 198, 64, 0.1);
}

.availability-slot.is-available strong,
.availability-slot.is-available em {
    color: var(--group-accent);
}

.availability-slot.is-available em {
    background: rgba(138, 198, 64, 0.15);
}

.availability-slot.is-blocked {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.11);
}

.availability-slot.is-blocked strong,
.availability-slot.is-blocked em {
    color: var(--danger);
}

.availability-slot.is-blocked em {
    background: rgba(239, 68, 68, 0.16);
}

.availability-slot.is-booked {
    border-color: rgba(207, 126, 179, 0.42);
    background: rgba(207, 126, 179, 0.1);
}

.availability-slot.is-booked strong,
.availability-slot.is-booked em {
    color: var(--accent);
}

.availability-slot.is-booked em {
    background: rgba(207, 126, 179, 0.16);
}

.availability-slot.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.availability-slot:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.availability-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    padding: 24px 12px;
    text-align: center;
    font-size: 13px;
}

@media (min-width: 430px) {
    .availability-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.availability-week-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.availability-week-header strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.availability-week-header span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.availability-week-grid {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 305px);
    min-height: 360px;
}

.availability-week-grid.is-saving {
    opacity: 0.68;
    pointer-events: none;
}

.availability-week-table {
    min-width: 760px;
    display: grid;
    grid-template-columns: 64px repeat(7, minmax(92px, 1fr));
}

.availability-time-heading,
.availability-day-heading,
.availability-time-cell {
    position: sticky;
    z-index: 2;
    background: #161116;
    border-bottom: 1px solid var(--border);
}

.availability-time-heading {
    left: 0;
    top: 0;
    z-index: 4;
    min-height: 58px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.availability-day-heading {
    top: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-left: 1px solid var(--border);
}

.availability-day-heading strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.availability-day-heading span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.availability-time-cell {
    left: 0;
    z-index: 3;
    min-height: 34px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    border-right: 1px solid var(--border);
}

.availability-week-cell {
    min-width: 0;
    min-height: 34px;
    border: 0;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.12s ease;
}

.availability-week-cell span {
    opacity: 0;
}

.availability-week-cell.is-available {
    background: rgba(138, 198, 64, 0.1);
}

.availability-week-cell.is-blocked {
    background: rgba(239, 68, 68, 0.11);
}

.availability-week-cell:hover {
    box-shadow: inset 0 0 0 2px var(--accent);
    filter: brightness(1.25);
}

.availability-week-cell:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.availability-week-cell::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: auto;
}

.availability-week-cell.is-available::before {
    background: var(--group-accent);
    box-shadow: 0 0 0 4px rgba(138, 198, 64, 0.12);
}

.availability-week-cell.is-blocked::before {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.availability-week-grid::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.availability-week-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.appointment-card {
    background: var(--card);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent);
}

.appointment-card.is-massaggio-booking {
    border-left-color: var(--accent);
}

.appointment-card.is-yoga-booking {
    border-left-color: var(--group-accent);
    background: rgba(138, 198, 64, 0.08);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 12px;
    gap: 8px;
}

.app-date {
    font-weight: 600;
    color: var(--accent);
    font-size: 13px;
    flex: 1;
}

.appointment-card.is-yoga-booking .app-date {
    color: var(--group-accent);
}

.app-service-badge {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: right;
    max-width: 58%;
    white-space: normal;
}

.app-service-badge.is-massaggio {
    background: var(--accent-subtle);
    color: var(--accent);
}

.app-service-badge.is-yoga {
    background: rgba(138, 198, 64, 0.16);
    color: var(--group-accent);
}

.app-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.app-note i {
    flex-shrink: 0;
    margin-top: 1px;
}


.client-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.client-info p {
    font-size: 13px;
    color: var(--muted);
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.btn-icon {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-call {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: none;
}

.btn-cancel {
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    border: 1px solid rgba(207, 126, 179, 0.3);
}

.btn-call:active {
    background: rgba(255, 255, 255, 0.12);
}

.btn-done {
    background: rgba(138, 198, 64, 0.15);
    color: var(--success);
}

.btn-done:active {
    background: rgba(138, 198, 64, 0.25);
}

/* ─── AGENDA ──────────────────────────────────────────── */
.day-title {
    color: var(--accent);
    font-weight: 700;
    margin: 25px 0 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(207, 126, 179, 0.2);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fascia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 10px 0;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
}

.fascia-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-bulk-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}

/* Day group for agenda */
.day-group {
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.day-header-admin {
    background: var(--card);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.day-header-admin:active {
    background: rgba(207, 126, 179, 0.05);
}

.day-header-admin h3 {
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
}

.day-summary {
    font-size: 11px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
}

.day-body-admin {
    display: none;
    background: rgba(8, 8, 8, 0.6);
    padding: 15px;
}

.day-body-admin.active {
    display: block;
}

.fascia-title-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 15px 0 10px 0;
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-slot-card {
    background: var(--card);
    border-radius: 12px;
    padding: 13px;
    border-left: 4px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.admin-slot-card.is-free {
    border-left-color: var(--success);
    background: rgba(138, 198, 64, 0.08);
}

.admin-slot-card.is-booked {
    border-left-color: var(--accent);
    background: var(--accent-subtle);
}

.admin-slot-card.is-blocked {
    border-left-color: #64748b;
    background: rgba(255, 255, 255, 0.04);
}

.slot-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-time-admin {
    font-weight: 800;
    font-size: 17px;
}

.slot-badge-admin {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.badge-free {
    background: rgba(138, 198, 64, 0.12);
    color: var(--success);
}

.badge-booked {
    background: var(--accent-subtle);
    color: var(--accent);
}

.badge-yoga {
    background: rgba(138, 198, 64, 0.12);
    color: var(--success);
}

.badge-blocked {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.client-data-box {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

.client-name-admin {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.client-detail-admin {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.massage-type-detail {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    margin: 0 0 8px 0;
    border-radius: 10px;
    background: var(--accent-subtle);
    color: #f4b4d9;
    line-height: 1.2;
}

.massage-type-detail i {
    font-size: 16px;
    flex-shrink: 0;
}

.massage-type-detail strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 13px;
}

.massage-type-detail em {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8d4e9;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.admin-slot-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-action-mini {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action-mini:active {
    transform: scale(0.95);
}

.agenda-cascade-header {
    gap: 14px;
    align-items: stretch;
    cursor: default;
    flex-direction: column;
}

.btn-add-appointment {
    border: 1px solid rgba(207, 126, 179, 0.55);
    border-radius: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-red);
}

.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.agenda-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.agenda-time {
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-time strong {
    font-size: 16px;
    color: #fff;
    line-height: 1.1;
}

.agenda-time span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.agenda-card-content {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    border-left: 4px solid var(--accent);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.agenda-item.is-blocked .agenda-card-content {
    border-left-color: #64748b;
    background: rgba(255, 255, 255, 0.04);
}

.agenda-item.is-shared-turn .agenda-card-content {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.agenda-item.is-yoga-turn .agenda-card-content {
    border-left-color: var(--success);
    background: rgba(138, 198, 64, 0.08);
}

.agenda-turn-clients {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.agenda-turn-client {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    padding: 8px;
}

.agenda-turn-client .agenda-item-actions {
    margin-top: 9px;
}

.agenda-item.is-course-card .agenda-card-content {
    border-left-color: var(--group-accent);
}

.course-clients-list {
    gap: 8px;
}

.course-client-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.course-client-identity {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.course-client-phone {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.course-client-phone.muted {
    color: var(--muted);
    font-weight: 600;
}

.course-client-note {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.course-client-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-course-client-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}

.btn-course-client-icon.is-danger {
    background: rgba(239, 68, 68, 0.09);
    border-color: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.btn-course-client-icon:active {
    transform: scale(0.94);
}

.course-empty-clients {
    min-height: 42px;
    border: 1px dashed rgba(138, 198, 64, 0.24);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(138, 198, 64, 0.045);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.btn-add-course-person {
    background: var(--group-accent);
    color: #fff;
    border: 0;
    box-shadow: 0 4px 18px rgba(138, 198, 64, 0.22);
}

.btn-add-course-person:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.12);
    color: var(--muted);
    box-shadow: none;
}

.available-panel {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 13px;
}

.available-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
}

.available-slots-list span {
    border-radius: 8px;
    border: 1px solid rgba(138, 198, 64, 0.22);
    background: rgba(138, 198, 64, 0.08);
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 8px 6px;
}

.free-slot-summaries {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.free-slot-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(138, 198, 64, 0.18);
    border-radius: 8px;
    background: rgba(138, 198, 64, 0.06);
    padding: 10px;
}

.free-slot-summary strong {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.free-slot-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.free-slot-summary b {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(138, 198, 64, 0.14);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.slots-more {
    color: var(--muted);
    font-size: 12px;
    margin-top: 10px;
}

.empty-agenda-state {
    text-align: center;
    padding: 28px 18px;
    color: var(--muted);
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.empty-agenda-state.compact {
    padding: 20px 14px;
}

.empty-agenda-state i {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 8px;
    display: inline-block;
}

.empty-agenda-state h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 16px;
}

.empty-agenda-state p {
    font-size: 13px;
    line-height: 1.5;
}

.appointment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.appointment-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.appointment-modal {
    width: min(100%, 480px);
    max-height: 92vh;
    overflow: auto;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.65);
    transform: translateY(18px);
    transition: transform 0.2s ease;
}

.appointment-modal-overlay.is-open .appointment-modal {
    transform: translateY(0);
}

.appointment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.appointment-modal-header h3 {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-modal-close:active {
    transform: scale(0.96);
}

.appointment-modal-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.appointment-field {
    display: grid;
    gap: 7px;
}

.appointment-client-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    padding: 12px;
}

.appointment-client-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 12px;
}

.client-source-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.btn-client-book,
.btn-manual-client {
    width: 100%;
    border-radius: 10px;
    min-height: 48px;
    padding: 10px 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
}

.btn-client-book {
    border: 1px solid rgba(207, 126, 179, 0.55);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: 0 10px 22px rgba(207, 126, 179, 0.24);
}

.btn-manual-client {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
}

.btn-client-book i,
.btn-manual-client i {
    font-size: 20px;
    flex: 0 0 auto;
}

.btn-client-book:active,
.btn-manual-client:active {
    transform: scale(0.98);
}

.client-book-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    margin-top: 0;
    margin-bottom: 12px;
}

.client-book-search {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.client-book-search i {
    color: var(--muted);
    font-size: 18px;
}

.client-book-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.client-book-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    margin-top: 10px;
    padding-right: 2px;
}

.client-book-item {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.client-book-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.client-book-item small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.client-book-item i {
    color: var(--accent);
    font-size: 18px;
    flex: 0 0 auto;
}

.client-book-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 10px;
}

.manual-client-fields {
    display: grid;
    gap: 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-top: 0;
}

@media (max-width: 390px) {
    .client-source-actions {
        grid-template-columns: 1fr;
    }
}

.client-book-panel.is-hidden,
.client-book-empty.is-hidden,
.manual-client-fields.is-hidden,
.selected-client-box.is-hidden {
    display: none;
}

.selected-client-box {
    border: 1px solid rgba(138, 198, 64, 0.28);
    border-radius: 8px;
    background: rgba(138, 198, 64, 0.08);
    padding: 12px;
    margin-top: 12px;
}

.selected-client-box span {
    display: block;
    color: var(--success);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
}

.selected-client-box strong {
    display: block;
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.selected-client-box small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.appointment-modal textarea.input-modern {
    min-height: 88px;
    resize: vertical;
}

.appointment-note-field.is-hidden {
    display: none;
}

.appointment-modal-actions {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.btn-save-appointment {
    background: var(--accent);
    color: #fff;
}

.agenda-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-room-view {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(138, 198, 64, 0.4);
    border-radius: 8px;
    background: rgba(138, 198, 64, 0.14);
    color: var(--success);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-room-view:active {
    transform: scale(0.98);
}

.room-view-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.76);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.room-view-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.room-view-modal {
    width: min(100%, 620px);
    max-height: 92vh;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #101010;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(18px);
    transition: transform 0.2s ease;
}

.room-view-overlay.is-open .room-view-modal {
    transform: translateY(0);
}

.room-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.room-view-header span {
    color: var(--success);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.room-view-header h3 {
    color: #fff;
    font-size: 17px;
    margin-top: 3px;
}

.room-view-body {
    padding: 14px;
}

.room-view-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.room-view-summary span {
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-view-summary b {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.room-view-summary .is-free b {
    background: var(--group-accent);
}

.room-view-summary .is-partial b {
    background: #facc15;
}

.room-view-summary .is-massage b {
    background: var(--accent);
}

.room-view-summary .is-yoga b {
    background: var(--group-accent);
}

.room-view-summary .is-full b {
    background: #ef4444;
}

.room-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.room-view-divider {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 8px 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-view-divider:first-child {
    margin-top: 0;
}

.room-view-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.room-slot {
    position: relative;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 9px 5px;
    text-align: center;
    overflow: hidden;
}

.room-slot strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.room-slot span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}

.room-slot em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    margin-top: 6px;
    text-transform: uppercase;
}

.room-slot.disponibile {
    background: rgba(207, 126, 179, 0.12);
    border-color: rgba(207, 126, 179, 0.36);
}

.room-slot.disponibile em {
    color: var(--accent-hover);
}

.room-slot.parziale {
    background: rgba(207, 126, 179, 0.18);
    border-color: rgba(207, 126, 179, 0.48);
}

.room-slot.parziale em {
    color: var(--accent);
}

.room-slot.is-yoga.disponibile {
    background: rgba(138, 198, 64, 0.16);
    border-color: rgba(138, 198, 64, 0.38);
}

.room-slot.is-yoga.disponibile em {
    color: var(--group-accent-hover);
}

.room-slot.is-yoga.parziale {
    background: rgba(138, 198, 64, 0.22);
    border-color: rgba(138, 198, 64, 0.5);
}

.room-slot.is-yoga.parziale em {
    color: var(--group-accent);
}

.room-slot.non-disponibile {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.42);
}

.room-slot.non-disponibile em {
    color: #fca5a5;
}

@media (min-width: 820px) {
    .agenda-cascade-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .agenda-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: start;
    }

    .appointment-modal-overlay {
        align-items: center;
    }

    .room-view-overlay {
        align-items: center;
    }

    .room-view-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .room-view-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ─── FORM TURNI ──────────────────────────────────────── */
.form-card {
    background: var(--card);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.label-custom {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 20px 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-modern {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #111;
    color: white;
    outline: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.input-modern:focus {
    border-color: var(--accent);
    background: #151515;
    box-shadow: 0 0 0 3px rgba(207, 126, 179, 0.1);
}

select.input-modern,
.appointment-modal select.input-modern {
    appearance: auto;
    background-color: #101010;
    color: #fff;
    color-scheme: dark;
}

select.input-modern option,
.appointment-modal select.input-modern option {
    background-color: #101010;
    color: #fff;
}

select.input-modern option:checked,
select.input-modern option:hover,
.appointment-modal select.input-modern option:checked,
.appointment-modal select.input-modern option:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.input-modern::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

/* Quick week buttons */
.quick-week-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-quick-week {
    flex: 1;
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-quick-week:active,
.btn-quick-week:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
    transform: scale(0.98);
}

.week-date-label {
    font-size: 13px;
    color: var(--success);
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    background: rgba(138, 198, 64, 0.05);
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(138, 198, 64, 0.3);
}

/* Chips */
.toggle-container {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}

.toggle-btn.active {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-color: var(--accent);
    box-shadow: var(--shadow-red);
}

.chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chips-row .chip {
    flex: 1;
    text-align: center;
}

.chips-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chip {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    background: transparent;
}

.chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 25px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    box-shadow: var(--shadow-red);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ─── MODAL ───────────────────────────────────────────── */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 13000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

#modal-overlay.active-modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--card);
    width: 90%;
    max-width: 350px;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(207, 126, 179, 0.24);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-red);
    transform: translateY(30px) scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#modal-overlay.active-modal .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-box p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-box input {
    margin-bottom: 25px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: 0.2s;
}

.modal-actions button:active {
    transform: scale(0.96);
}

.btn-mini {
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}

.btn-mini:active {
    transform: scale(0.95);
}

.btn-outline-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-outline-accent {
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    border: 1px solid rgba(207, 126, 179, 0.3);
}

.btn-outline-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-solid-danger {
    background: var(--danger);
    color: white;
}

.btn-solid-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: var(--shadow-red);
}

.modal-hidden {
    display: none !important;
}

/* ─── CALENDAR ────────────────────────────────────────── */
.calendar-card {
    background: var(--card);
    border-radius: 20px;
    padding: 18px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-cal-nav {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-cal-nav:active {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-title-group {
    text-align: center;
}

.calendar-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.cal-expand-handle {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 15px;
    opacity: 0.6;
    transition: 0.2s;
}

.cal-expand-handle:active {
    opacity: 1;
}

.handle-bar {
    width: 45px;
    height: 5px;
    background: var(--muted);
    border-radius: 10px;
}

/* ─── IMPOSTAZIONI ─────────────────────────────────────────────── */
.settings-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    gap: 16px;
}

.setting-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.setting-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.setting-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* Toggle switch stile iOS */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

/* ─── QUICK ACTIONS BAR ────────────────────────────────────────── */
.quick-actions-bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.btn-quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    padding: 12px 2px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}

.btn-quick-action i {
    font-size: 22px;
    color: var(--text);
}

.btn-quick-action.is-active-block {
    background: rgba(207, 126, 179, 0.12);
    border-color: rgba(207, 126, 179, 0.35);
    color: var(--accent);
}

.btn-quick-action.is-active-block i {
    color: var(--accent);
}

.btn-quick-action:not(:disabled):not(.is-active-block):active {
    transform: scale(0.95);
    background: rgba(207, 126, 179, 0.1);
    border-color: rgba(207, 126, 179, 0.3);
    color: var(--accent);
}

.btn-quick-action:not(:disabled):active i {
    color: var(--accent);
}

.btn-quick-action:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: transparent;
}

/* Agenda compatta v4 */
.agenda-cascade-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    cursor: default;
}

.agenda-cascade-header h3 {
    line-height: 1.25;
}

.agenda-cascade-header .day-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    line-height: 1.4;
}

.btn-add-appointment {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    white-space: normal;
}

.day-body-admin.active {
    padding: 12px;
}

.agenda-actions-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px 0;
}

.agenda-actions-bar .btn-quick-action {
    min-width: 0;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 10px;
    line-height: 1.2;
}

.agenda-actions-bar .btn-quick-action i {
    font-size: 18px;
}

.custom-block-panel {
    display: grid;
    gap: 10px;
    margin: 0 0 14px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.custom-block-summary {
    position: relative;
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(207, 126, 179, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(207, 126, 179, 0.14), rgba(255, 255, 255, 0.045)),
        rgba(0, 0, 0, 0.28);
    color: var(--text);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 12px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.custom-block-summary:active {
    border-color: rgba(207, 126, 179, 0.48);
    background:
        linear-gradient(135deg, rgba(207, 126, 179, 0.2), rgba(255, 255, 255, 0.055)),
        rgba(0, 0, 0, 0.32);
    transform: translateY(1px);
}

.custom-block-summary:focus-visible {
    border-color: rgba(207, 126, 179, 0.6);
    box-shadow: 0 0 0 3px rgba(207, 126, 179, 0.14);
    outline: none;
}

.custom-block-summary-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.custom-block-summary-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(207, 126, 179, 0.16);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.custom-block-title {
    min-width: 0;
}

.custom-block-title strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.custom-block-summary-side {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.custom-block-summary-side > i {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.custom-block-panel:not(.is-collapsed) .custom-block-summary-side > i {
    transform: rotate(180deg);
}

.custom-block-count {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 8px;
    text-transform: uppercase;
}

.custom-block-summary-handle {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 45px;
    height: 5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    transform: translateX(-50%);
}

.custom-block-body {
    display: grid;
    gap: 10px;
}

.custom-block-body[hidden] {
    display: none;
}

.custom-block-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.clock-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.clock-time-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.clock-time-field > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.clock-time-field input {
    display: none;
}

.clock-time-button {
    width: 100%;
    min-width: 0;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    place-items: center;
}

.clock-time-button:focus-visible {
    border-color: rgba(207, 126, 179, 0.55);
    box-shadow: 0 0 0 3px rgba(207, 126, 179, 0.14);
    outline: none;
}

.clock-time-button strong {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.clock-time-button strong.is-placeholder {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.clock-time-button small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.clock-time-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    padding: 0 10px;
}

.clock-time-duration span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clock-time-duration strong {
    color: var(--accent);
    font-size: 12px;
}

.wheel-time-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.wheel-time-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.wheel-time-modal {
    width: min(100%, 430px);
    max-height: calc(100dvh - 28px);
    border: 1px solid var(--border);
    border-radius: 18px 18px 12px 12px;
    background: #101010;
    box-shadow: 0 -22px 70px rgba(0, 0, 0, 0.62);
    overflow: hidden;
    transform: translateY(18px);
    transition: transform 0.2s ease;
}

.wheel-time-overlay.is-open .wheel-time-modal {
    transform: translateY(0);
}

.wheel-time-grabber {
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    margin: 10px auto 4px;
}

.wheel-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--border);
}

.wheel-time-header span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.wheel-time-header h3 {
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    margin-top: 3px;
}

.wheel-time-header strong {
    flex: 0 0 auto;
    min-width: 94px;
    border: 1px solid rgba(207, 126, 179, 0.35);
    border-radius: 8px;
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 10px;
    text-align: center;
}

.wheel-time-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
    height: 250px;
    padding: 0 18px;
}

.wheel-time-highlight {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 52px;
    border: 1px solid rgba(207, 126, 179, 0.28);
    border-radius: 10px;
    background: rgba(207, 126, 179, 0.08);
    transform: translateY(-50%);
    pointer-events: none;
}

.wheel-time-column {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scroll-padding-block: 99px;
    padding: 99px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wheel-time-column::-webkit-scrollbar {
    display: none;
}

.wheel-time-option {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    scroll-snap-align: center;
}

.wheel-time-option.is-selected {
    color: #fff;
    font-size: 30px;
}

.wheel-time-separator {
    position: relative;
    z-index: 1;
    height: 52px;
    align-self: center;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
}

.wheel-time-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--border);
}

.wheel-time-actions button {
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.btn-wheel-cancel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
}

.btn-wheel-confirm {
    border: 0;
    background: var(--accent);
    color: #fff;
}

.btn-custom-block {
    grid-column: 1 / -1;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-full-day-block {
    min-height: 42px;
    border: 1px solid rgba(207, 126, 179, 0.28);
    border-radius: 8px;
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.custom-block-list {
    display: grid;
    gap: 8px;
}

.custom-block-list-title,
.custom-block-empty {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.custom-block-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.custom-block-range {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.custom-block-range i {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 18px;
}

.custom-block-range strong {
    min-width: 0;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.btn-unblock-range {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(207, 126, 179, 0.28);
    border-radius: 8px;
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.agenda-layout {
    display: block;
}

.available-panel {
    display: none;
}

.agenda-list-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    padding: 12px;
}

.agenda-hidden-past-notice {
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.agenda-hidden-past-notice i {
    font-size: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.agenda-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.agenda-time {
    border-radius: 8px;
    padding: 8px 5px;
    min-width: 0;
}

.agenda-time strong {
    font-size: 14px;
}

.agenda-time span {
    font-size: 10px;
}

.agenda-card-content {
    min-width: 0;
    border-radius: 8px;
    padding: 10px;
}

.agenda-row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.agenda-person {
    min-width: 0;
}

.agenda-person .client-name-admin {
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.agenda-time-text {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.agenda-row-top .slot-badge-admin {
    white-space: nowrap;
    align-self: start;
}

.agenda-item .client-data-box {
    margin-top: 8px;
}

.agenda-item .client-detail-admin {
    overflow-wrap: anywhere;
}

.agenda-item.is-shared-turn .slot-badge-admin {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.agenda-turn-clients {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.agenda-turn-client {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    padding: 10px;
}

.agenda-turn-client .client-data-box {
    margin-top: 8px;
}

.agenda-turn-client .agenda-item-actions {
    margin-top: 9px;
}

@media (max-width: 430px) {
    .course-client-main {
        grid-template-columns: 1fr;
    }

    .course-client-phone {
        white-space: normal;
    }
}

.agenda-item-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
}

.agenda-item-actions .btn-action-mini {
    min-width: 0;
    border-radius: 8px;
    padding: 9px 8px;
}

@media (min-width: 560px) {
    .agenda-actions-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .custom-block-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-block-list-title {
        grid-column: 1 / -1;
    }

    .agenda-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }
}

@media (min-width: 760px) {
    .agenda-cascade-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .btn-add-appointment {
        width: auto;
        min-width: 210px;
    }

    .agenda-header-actions {
        width: 230px;
    }
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    transition: all 0.3s ease;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.cal-day.other-month {
    color: #444;
    pointer-events: none;
}

.cal-day:active {
    transform: scale(0.9);
}

.cal-day.selected {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.cal-day.today {
    border-color: var(--accent);
}

.cal-dots-container {
    display: flex;
    gap: 3px;
    position: absolute;
    bottom: 6px;
}

.cal-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.cal-dot.dot-blocked {
    background: rgba(207, 126, 179, 0.55);
}

.cal-day.selected .cal-dot {
    background: #fff;
}

.cal-day.selected .cal-dot.dot-blocked {
    background: #fff;
}

/* ─── STILI GESTIONE CORSI ────────────────────────────── */
.corsi-settimanali-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.day-courses-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease;
}

.day-courses-card:hover {
    border-color: rgba(138, 198, 64, 0.32);
}

.day-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.day-courses-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--group-accent);
    text-transform: capitalize;
}

.day-courses-empty {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    padding: 10px 0;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 10px;
    transition: all 0.2s ease;
}

.course-item-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.course-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.course-time {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.course-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.course-title-line {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.course-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-spots {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.course-actions {
    display: flex;
    gap: 6px;
}

.course-actions-inline {
    min-width: max-content;
    justify-content: flex-end;
}

.course-actions-inline .btn-course-action {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.course-actions-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.course-actions-large .btn-action-mini {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-course-edit-large {
    background: rgba(138, 198, 64, 0.1);
    color: var(--group-accent);
    border: 1px solid rgba(138, 198, 64, 0.28);
}

.btn-course-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-course-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-course-action.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.btn-add-course {
    width: 100%;
    margin-top: 8px;
    background: var(--group-accent-subtle);
    border: 1px dashed rgba(138, 198, 64, 0.34);
    color: var(--group-accent);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.btn-add-course:hover {
    background: rgba(138, 198, 64, 0.14);
    border-color: rgba(138, 198, 64, 0.55);
    transform: scale(0.99);
}

.modal-box-large {
    max-width: 440px !important;
}

#modal-corso-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

#modal-corso-overlay.active-modal {
    opacity: 1;
    pointer-events: auto;
}

#modal-corso-overlay.active-modal .modal-box {
    transform: translateY(0) scale(1);
}

#modal-corso-overlay .modal-box {
    border-color: rgba(138, 198, 64, 0.24);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 4px 24px var(--group-accent-glow);
}

#modal-corso-overlay .input-modern:focus {
    border-color: var(--group-accent);
    box-shadow: 0 0 0 3px var(--group-accent-subtle);
}

#modal-corso-overlay .clock-time-button:focus-visible {
    border-color: rgba(138, 198, 64, 0.55);
    box-shadow: 0 0 0 3px var(--group-accent-subtle);
}

#modal-corso-overlay .btn-solid-primary {
    background: var(--group-accent);
    box-shadow: 0 4px 20px var(--group-accent-glow);
}

#modal-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 13000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    padding: 18px;
}

#modal-settings-overlay.active-modal {
    opacity: 1;
    pointer-events: auto;
}

#modal-settings-overlay.active-modal .modal-box {
    transform: translateY(0) scale(1);
}

#modal-settings-overlay .modal-box {
    width: min(100%, 430px);
    max-width: 430px;
    max-height: 88vh;
    overflow-y: auto;
    text-align: left;
}

.wheel-time-overlay.is-course-time .wheel-time-header strong {
    border-color: rgba(138, 198, 64, 0.35);
    background: rgba(138, 198, 64, 0.1);
    color: var(--group-accent);
}

.wheel-time-overlay.is-course-time .wheel-time-highlight {
    border-color: rgba(138, 198, 64, 0.28);
    background: rgba(138, 198, 64, 0.08);
}

.wheel-time-overlay.is-course-time .wheel-time-separator {
    color: var(--group-accent);
}

.wheel-time-overlay.is-course-time .btn-wheel-confirm {
    background: var(--group-accent);
}

/* ─── YOGA DYNAMIC COLOR-CODING ─────────────────────── */
.agenda-item.is-yoga-dynamic .agenda-card-content {
    border-left-color: var(--slot-text) !important;
    background: var(--slot-bg) !important;
}

.badge-yoga.is-yoga-dynamic {
    background: var(--slot-em-bg) !important;
    color: var(--slot-em-text) !important;
    border: 1px solid var(--slot-border) !important;
}

.course-item-row.yoga-dynamic-course {
    background: var(--slot-bg) !important;
    border-color: var(--slot-border) !important;
}

.course-item-row.yoga-dynamic-course .course-name {
    color: var(--slot-text) !important;
}

.course-item-row.yoga-dynamic-course .course-time {
    background: var(--slot-em-bg) !important;
    color: var(--slot-em-text) !important;
}

.course-item-row.yoga-dynamic-course:hover {
    border-color: var(--slot-glow) !important;
    background: var(--slot-hover-bg) !important;
}

/* ─── YOGA MODAL OVERRIDES ───────────────────────────── */
#modal-overlay.service-yoga .modal-box {
    border-color: var(--group-accent-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 4px 20px var(--group-accent-glow);
}

#modal-overlay.service-yoga .btn-solid-primary {
    background: var(--group-accent);
    box-shadow: 0 4px 20px var(--group-accent-glow);
}

#modal-overlay.service-yoga .btn-solid-primary:hover {
    background: var(--group-accent);
}

/* ─── GROUPED CLIENTS IN NOVITA ───────────────────────── */
.grouped-clients-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.grouped-client-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
}

.grouped-client-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-info-compact {
    flex: 1;
    text-align: left;
}

.client-name-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.client-index-num {
    background: var(--group-accent);
    color: #121212;
    font-weight: 700;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-info-compact h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.client-info-compact p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-buttons-compact {
    display: flex;
    gap: 6px;
}

.btn-icon-compact {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-call-compact {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-call-compact:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-cancel-compact {
    background: rgba(207, 126, 179, 0.1);
    color: var(--accent);
    border: 1px solid rgba(207, 126, 179, 0.2);
}

.btn-cancel-compact:hover {
    background: rgba(207, 126, 179, 0.2);
    border-color: rgba(207, 126, 179, 0.4);
}

.is-yoga-booking .btn-cancel-compact {
    background: rgba(138, 198, 64, 0.1);
    color: var(--group-accent);
    border: 1px solid rgba(138, 198, 64, 0.2);
}

.is-yoga-booking .btn-cancel-compact:hover {
    background: rgba(138, 198, 64, 0.2);
    border-color: rgba(138, 198, 64, 0.4);
}

/* ─── STILI GESTIONE BLOCCHI RICORRENTI ────────────────── */
.segment-control-corsi {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.segment-btn-corsi {
    flex: 1;
    background: none;
    border: none;
    color: var(--muted);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.segment-btn-corsi:hover {
    color: var(--text);
}

.segment-btn-corsi.active {
    background: var(--card-2);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.day-blocks-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease;
}

.day-blocks-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.day-blocks-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
    text-transform: capitalize;
}

.day-blocks-empty {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    padding: 10px 0;
}

.block-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 10px;
    transition: all 0.2s ease;
}

.block-item-row:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.block-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.block-time {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: rgba(239, 68, 68, 0.18);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.block-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-add-blocco {
    width: 100%;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-blocco:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

/* OTTIMIZZAZIONE TOCCO MOBILE */
button, 
.nav-item, 
.cal-day, 
.booking-slot-chip, 
.btn-day-tab, 
.slot-time-text, 
.slot-mini-card-admin, 
.home-action-card, 
.btn-settings-gear, 
.btn-settings-gear-left { 
    touch-action: manipulation; 
}


