/* CSS Principale Web App Lidia Zucaro */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Inter:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --lz-black: #000000;
    --lz-gold: #D4A956;
    --lz-gold-light: rgba(212, 169, 86, 0.1);
    --lz-bg: #F8F9FA;
    --lz-card: #FFFFFF;
    --lz-grey: #8E8E93;
    --lz-light-grey: #F2F2F7;
    --lz-white: #FFFFFF;
    --lz-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --lz-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Layout & Reset */
#lz-app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lz-bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    padding-top: env(safe-area-inset-top);
    overflow: hidden;
}

.lz-app-header {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

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

.lz-logo img {
    height: 35px;
    vertical-align: middle;
}

.lz-logout-btn {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #eee;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lz-logout-btn:hover {
    background: #f5f5f5;
    color: #000;
}

.lz-app-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 120px;
}

.lz-view,
.lz-tab-view {
    display: none;
    animation: lzFadeUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lz-view.active,
.lz-tab-view.active {
    display: block;
}

@keyframes lzFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Welcome Banner */
.lz-welcome-banner {
    padding: 30px 20px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: var(--lz-shadow);
    position: relative;
    overflow: hidden;
}

.lz-welcome-banner::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--lz-gold-light);
    border-radius: 50%;
    filter: blur(20px);
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--lz-black);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.lz-welcome-banner p {
    color: var(--lz-grey);
    font-size: 15px;
}

/* Premium Cards */
.lz-premium-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--lz-shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lz-premium-card:active {
    transform: scale(0.98);
}

.lz-premium-card.reminder {
    border-left: 5px solid var(--lz-gold);
}

.lz-premium-card.next-app {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #fff;
}

.lz-premium-card.next-app .card-label {
    color: var(--lz-gold);
}

.lz-premium-card.next-app .card-sub-text {
    color: rgba(255, 255, 255, 0.6);
}

.card-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lz-grey);
    margin-bottom: 12px;
    display: block;
}

.card-large-text {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-large-text small {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

.card-sub-text {
    font-size: 14px;
    color: var(--lz-grey);
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--lz-shadow);
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lz-shadow-hover);
}

.action-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.action-card .label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* History Cards */
.lz-history-card {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.lz-history-card.approved {
    border-left-color: #34c759;
}

.lz-history-card.pending {
    border-left-color: #ffcc00;
}

.h-date {
    font-weight: 700;
    font-size: 14px;
}

.h-date small {
    color: var(--lz-grey);
    font-weight: 400;
    margin-left: 5px;
}

.h-service {
    font-size: 13px;
    font-weight: 600;
    color: var(--lz-black);
    flex: 1;
    margin-left: 15px;
}

.h-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--lz-grey);
}

/* Autocomplete & Suggestions */
.lz-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.lz-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.suggestion-item:hover {
    background: #f8f8f8;
}

.suggestion-item .name {
    font-weight: 700;
    font-size: 14px;
}

.suggestion-item .phone {
    font-size: 12px;
    color: #999;
}

/* Toolbar & Multi-row Layout */
.lz-toolbar-multi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lz-toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lz-btn-flex {
    flex: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .lz-toolbar-multi {
        flex-direction: row;
        align-items: center;
    }

    .lz-toolbar-row {
        flex: 1;
    }
}

.lz-sub-tabs {
    display: flex;
    gap: 8px;
    background: #eee;
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}

.agenda-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.btn-nav {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 10px;
    color: #555;
}

.btn-nav:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Toolbar Responsive Layout for Agenda */
.lz-toolbar.agenda-toolbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.lz-toolbar.agenda-toolbar .lz-sub-tabs {
    width: 100%;
    display: flex;
}

.agenda-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.lz-pending-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 10;
}

@media (min-width: 768px) {
    .lz-toolbar.agenda-toolbar {
        flex-direction: row;
        align-items: center;
    }

    .lz-toolbar.agenda-toolbar .lz-sub-tabs {
        width: auto;
        flex: 1;
    }

    .agenda-actions-container {
        width: auto;
        justify-content: flex-end;
        gap: 15px;
    }

    /* Fixed header layout for independent scrolling */
    .lz-app-content:has(#view-agenda.active) {
        height: calc(100vh - 70px) !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 83px !important;
        min-height: 0;
    }

    #view-agenda.active {
        display: flex !important;
        flex-direction: column;
        height: calc(100vh - 100px) !important; /* Fixed height for desktop to enable scrolling */
        background: #f8fafc !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        position: relative;
        overflow: hidden !important; 
    }

    .agenda-list#list-weekly {
        flex: 1 !important;
        height: 100% !important;
        min-height: 0;
        display: flex !important;
        flex-direction: column;
        margin-top: 0;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    .lz-weekly-grid {
        flex: 1 !important;
        height: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .lz-weekly-grid-inner {
        flex: 1 !important;
        height: 100% !important;
        min-height: 0;
        display: flex !important;
        flex-direction: column;
    }

    .grid-day-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .grid-day-column {
        flex: 1;
        overflow-y: auto;
    }
}

/* Sleek Toolbar Styles */
.lz-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    color: #334155;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.lz-search-input:focus {
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.lz-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lz-action-btn:active {
    transform: scale(0.96);
}

.lz-btn-icon-only {
    width: 44px;
    padding: 0;
    font-size: 20px;
}

.lz-btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.lz-btn-primary:hover {
    background-color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lz-btn-success {
    background-color: #217346;
    color: #ffffff;
}

.lz-btn-success:hover {
    background-color: #1a5c38;
    box-shadow: 0 4px 12px rgba(33, 115, 70, 0.15);
}

.lz-btn-teal {
    background-color: #00a884;
    color: #ffffff;
}

.lz-btn-teal:hover {
    background-color: #008f70;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.15);
}

.sub-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sub-tab.active {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lz-granularity-toolbar {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.lz-granularity-tabs {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 3px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.gran-tab {
    border: none;
    background: transparent;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: #888;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gran-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gran-tab:hover:not(.active) {
    color: #444;
}

.lz-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.lz-card.pending {
    border-left: 4px solid #ff9800;
}

.lz-card.approved {
    border-left: 4px solid #4caf50;
}

/* Agenda Accordion */
.lz-accordion-wrapper {
    margin-top: 15px;
}

.lz-accordion-item {
    margin-bottom: 15px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lz-accordion-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.lz-accordion-header:hover {
    background: #f1f3f5;
}

.lz-accordion-icon {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s;
}

.lz-accordion-item.open .lz-accordion-icon {
    transform: rotate(180deg);
}

.lz-accordion-content {
    padding: 15px;
}

.lz-card.client {
    border-left: 4px solid #007bff;
    cursor: pointer;
}

/* Buttons */
.btn-ok {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.btn-no {
    background: #fff;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.btn-ok.full {
    width: 100%;
}

.btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-black:active {
    transform: scale(0.96);
}

.btn-black-small {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.btn-gold-small {
    background: var(--lz-gold);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
}

/* Modal */
.lz-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.lz-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
}

.lz-modal-content.large {
    margin: 5% auto;
    height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.lz-modal input,
.lz-modal textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Client Detail */
.client-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.client-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.stat-box {
    text-align: center;
}

.stat-val {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    color: #777;
}

/* Weekly Grid */
.lz-weekly-grid {
    display: block;
    gap: 2px;
    background: #eee;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    width: 100%;
}

#list-weekly {
    overflow-x: hidden;
}

/* Eliminated override for #view-agenda.active */

.grid-day-container {
    background: #f8f8f8;
}

.lz-premium-card.next-app {
    position: relative;
}

.lz-cal-btn {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.lz-cal-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lz-cal-btn i {
    font-size: 14px;
    color: var(--p-gold);
}

.empty-state {
    background: var(--p-light-grey);
    color: var(--p-black);
    text-align: center;
    border: 1px dashed #ddd;
}

.grid-day-header {
    background: #f8f8f8;
    padding: 10px 5px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

.grid-day-name {
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    color: #555;
}

.grid-day-date {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    margin-top: 2px;
}

.grid-day-column {
    background: #fff;
    flex: 1;
    overflow-y: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
}

.grid-app-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-left: 4px solid #1a73e8;
}

.grid-app-time {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.grid-app-name {
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

.grid-app-service {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}



/* Month View Redesign */
.lz-month-view {
    background: #eee;
    border: 1px solid #eee;
    gap: 1px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.lz-month-view .grid-day-container {
    background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.lz-month-view .grid-day-container.is-other-month {
    background: #fcfcfc;
}

.lz-month-view .grid-day-container.is-other-month .grid-day-date,
.lz-month-view .grid-day-container.is-other-month .grid-day-name {
    color: #cbd5e1;
}

.lz-month-view .grid-day-header {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: transparent;
}

.lz-month-view .grid-day-name {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
}

.lz-month-view .grid-day-date {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-left: auto;
}

.lz-month-view .grid-day-container.is-today .grid-day-date span {
    background: #1a73e8;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lz-month-view .grid-day-column {
    padding: 0 5px 5px;
    overflow: hidden;
    height: auto;
    flex: 1;
}

.grid-app-item-month {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 2px 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    transition: background 0.2s;
}

.grid-app-item-month:hover {
    background: #f1f5f9;
}

.grid-app-dot {
    width: 7px;
    height: 7px;
    background: #1a73e8;
    border-radius: 50%;
    flex-shrink: 0;
}

.grid-app-time {
    font-weight: 700;
    color: #475569;
}

.grid-app-title {
    color: #1e293b;
}

.grid-app-more {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    padding-left: 17px;
    margin-top: 2px;
}

/* Birthday in grid (Month view keeps it simple) */
.grid-birthday-item {
    background:#fff3cd; 
    color:#856404; 
    padding:5px 8px; 
    border-radius:6px; 
    margin-bottom:5px; 
    font-size:10px; 
    font-weight:bold; 
    border-left:3px solid #ffc107;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Bottom Nav */
.lz-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.nav-item {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8E8E93;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 15px;
    flex: 1;
}

.nav-item.active {
    color: #000;
    opacity: 1;
}

.nav-item .icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item .label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fidelity Card */
.lz-fidelity-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lz-fidelity-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 169, 86, 0.1) 0%, transparent 70%);
    transform: rotate(-30deg);
}

.points-count {
    color: var(--lz-gold);
    font-weight: 700;
    font-size: 18px;
}

.lz-timbri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 180px;
}

.lz-timbro {
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 86, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lz-timbro.active {
    background: var(--lz-gold);
    border-color: var(--lz-gold);
}

.lz-timbro svg {
    width: 18px;
    height: 18px;
    fill: #000;
}

/* Help Button */
.lz-help-btn {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: linear-gradient(135deg, #1bd95e, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
    font-weight: 800;
    font-size: 14px;
    z-index: 101;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lz-help-btn:active {
    transform: scale(0.95);
}

/* Toast Notifications */
#lz-toast-container {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lz-toast {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.95;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes toastIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.lz-toast.error {
    background: #d32f2f;
}

.lz-toast.success {
    background: #2e7d32;
}

/* Premium Loading States */
.lz-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.lz-btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */





/* Typography Overrides */
.serif {
    font-family: 'Playfair Display', serif;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 700;
}

/* Chat Box */
.lz-chat-widget {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
}

/* Shimmer Animation for UX Improvement */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

}

/* Client Detail Modal - Minimalist Redesign */
.profile-banner {
    padding: 30px 20px 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
    text-align: center;
    background: #fff;
}

.profile-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--lz-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.profile-subtitle {
    font-size: 14px;
    color: var(--lz-grey);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    padding: 0 10px;
    margin-bottom: 25px;
}

.p-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.p-tab.active {
    color: var(--lz-black);
    border-bottom: 2px solid var(--lz-black);
}

.p-tab:hover:not(.active) {
    color: #555;
}

.p-tab-content {
    animation: lzFadeUp 0.3s ease;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5px;
    border-bottom: 1px dashed #f0f0f0;
}

.profile-row:last-child {
    border-bottom: none;
}

.p-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--lz-grey);
}

.p-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--lz-black);
    text-align: right;
}

.p-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.p-input:focus {
    border-color: #ddd;
    background: #fff;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.p-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.p-stat {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f5f5f5;
}

.p-stat-val {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--lz-black);
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.p-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--lz-grey);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-discard {
    background: transparent;
    color: var(--lz-black);
    border: 1px solid #ddd;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-discard:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Toggle Switch Style (Refined) */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e4e4;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #000;
    /* Minimalist Black instead of WhatsApp Green */
}

input:focus+.slider {
    box-shadow: 0 0 1px #000;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Section Header */
.section-header {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: -0.5px;
}

/* Custom Booking Form Styles */
#lz-booking-form {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--lz-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

#lz-booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#lz-booking-form .form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--lz-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#lz-booking-form input:not([type="checkbox"]),
#lz-booking-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background-color: #f8fafc;
    color: #000;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#lz-booking-form input:focus,
#lz-booking-form select:focus {
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

#lz-booking-form .form-group-row {
    display: flex;
    gap: 15px;
}

#lz-booking-form .form-group.half {
    flex: 1;
}

#lz-submit-btn {
    margin-top: 10px;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

#lz-submit-btn:active {
    transform: scale(0.96);
}

/* Accordion Card (Profile Tab) */
.lz-accordion-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--lz-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.lz-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.lz-accordion-header:active {
    background: #f9f9f9;
}

.lz-accordion-chevron {
    font-size: 18px;
    color: #bbb;
    transition: transform 0.3s ease;
}

.lz-accordion-chevron.open {
    transform: rotate(180deg);
}

.lz-accordion-body {
    padding: 0 22px 22px;
}

/* Info rows inside accordion */
.lz-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
}

.lz-info-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 15px;
}

.lz-info-value {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-align: right;
}

/* Group Message Modal Components */
.gm-choice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-choice-item:hover {
    border-color: var(--lz-gold);
    background: #fffdf9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gm-choice-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--lz-gold);
    margin: 0;
}

.gm-choice-info {
    display: flex;
    flex-direction: column;
}

.gm-choice-info strong {
    font-size: 15px;
    color: #333;
}

.gm-choice-info span {
    font-size: 12px;
    color: #999;
}

.gm-recipient-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
}

.gm-recipient-pill .remove {
    cursor: pointer;
    font-weight: bold;
    color: #999;
    font-size: 16px;
}

.gm-recipient-pill .remove:hover {
    color: #ff4d4d;
}

#gm-custom-text:focus {
    outline: none;
    border-color: var(--lz-gold);
    box-shadow: 0 0 0 3px rgba(184, 154, 110, 0.1);
}

/* Premium Promotion UI */
.lz-promo-popup-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 30px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

.lz-promo-hero {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lz-promo-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.lz-promo-content {
    padding: 30px;
    text-align: center;
}

.lz-promo-title {
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lz-promo-badge {
    background: var(--lz-gold);
    color: #000;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.lz-promo-home-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #262626 100%) !important;
    border: 1px solid rgba(212, 169, 86, 0.2) !important;
    position: relative;
    overflow: hidden;
    padding: 24px !important;
}

.lz-promo-home-card::before {
    content: '🎟️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.lz-promo-home-card .card-label {
    color: var(--lz-gold) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lz-promo-home-card .card-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--lz-gold);
    border-radius: 50%;
    display: inline-block;
}

.lz-promo-home-card h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 12px 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.lz-promo-home-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.lz-promo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.lz-promo-code {
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--lz-gold);
    background: rgba(212, 169, 86, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

@keyframes lzPromoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.lz-promo-home-card:hover {
    animation: lzPromoPulse 2s infinite ease-in-out;
}
/* --- REFINED CLIENT PANEL (Mockup Match) --- */
#modal-client-detail .lz-modal-content.large {
    padding: 0;
    max-width: 900px;
    background: #fbfbfb;
    border-radius: 12px;
    border: none;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.lz-mock-header {
    background: #fff;
    padding: 30px 80px 25px 80px;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f8f8f8;
}

.lz-mock-label-mini {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  vertical-align: middle;
}

.lz-mock-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lz-mock-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 400;
}

.lz-mock-verify-icon {
    color: #3b82f6;
    font-size: 16px;
    margin-left: 8px;
    vertical-align: middle;
}

.lz-mock-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lz-mock-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.lz-mock-circle-btn:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.lz-section-container {
    padding: 30px 80px 60px 80px;
}

.lz-mock-box {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.lz-mock-box-header {
    padding: 24px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.lz-mock-box-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
}

.lz-mock-box-toggle {
    font-size: 12px;
    color: #cbd5e1;
    transition: transform 0.3s;
}

.lz-mock-box.active .lz-mock-box-toggle {
    transform: rotate(180deg);
}

.lz-mock-box-content {
    padding: 0 35px 35px 35px;
    display: none;
}

.lz-mock-box.active .lz-mock-box-content {
    display: block;
}

/* Sub-box Style (Nested Accordion) */
.lz-mock-sub-box {
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 15px;
}

.lz-mock-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0 10px 0;
}

.lz-mock-sub-content {
    display: none;
    padding-top: 10px;
}

/* Profile Grid */
.lz-mock-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.lz-mock-info-item label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.lz-mock-info-item .val {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 400;
}

/* Custom Toggle Mockup */
.lz-mock-toggle-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lz-mock-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.lz-mock-switch input { opacity: 0; width: 0; height: 0; }

.lz-mock-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.lz-mock-slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.lz-mock-switch input:checked + .lz-mock-slider {
    background-color: #c5a059;
}

.lz-mock-switch input:checked + .lz-mock-slider:before {
    transform: translateX(24px);
}

/* Fidelity Mockup Disposition */
.lz-mock-fidelity-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
}

.lz-mock-points-val {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: #000;
    line-height: 1;
    margin-top: 10px;
}
.lz-mock-textarea {
    width: 100%;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
    font-family: inherit;
    font-size: 15px;
    color: #64748b;
    resize: none;
    margin-top: 10px;
}

.lz-mock-select {
    width: 100%;
    height: 54px;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    padding: 0 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    appearance: none;
    font-size: 15px;
    color: #1a1a1a;
    margin-top: 10px;
}

.lz-mock-msg-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #fbfbfb;
}

.lz-mock-btn-text {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 0;
}

.lz-mock-btn-text:hover {
    color: #94a3b8;
}

.lz-mock-btn-dark {
    background: #1d2327;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.2s;
    text-align: center;
}

.lz-mock-btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Appointments Mockup Table */
.lz-mock-table {
    width: 100%;
    border-collapse: collapse;
}

.lz-mock-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 20px;
}

.lz-mock-table td {
    padding: 25px 0;
    border-top: 1px solid #fbfbfb;
    font-size: 14px;
    color: #64748b;
}

.lz-mock-table td.strong {
    color: #1a1a1a;
    font-weight: 600;
}

.lz-mock-table td.status {
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lz-mock-status-in-bound { color: #c5a059; }
.lz-mock-status-done { color: #cbd5e1; }

.lz-clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.lz-clickable-row:hover {
    background-color: #fbfbfb;
}

/* Promo Mockup */
.lz-mock-promo-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    margin-bottom: 15px;
    gap: 20px;
}

.lz-mock-promo-icon {
    width: 48px;
    height: 48px;
    background: #fffaf0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-size: 20px;
}

.lz-mock-promo-info { flex: 1; }
.lz-mock-promo-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.lz-mock-promo-desc { font-size: 13px; color: #64748b; }

.lz-mock-badge-active {
    background: #fff8e6;
    color: #c5a059;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    text-transform: uppercase;
}

/* Mockup Footer */
.lz-mock-footer {
    display: flex;
    justify-content: space-between;
    padding: 40px 80px;
    border-top: 1px solid #f8f8f8;
}

.lz-mock-footer-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lz-mock-footer-btn.danger { color: #fca5a5; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* Agenda Redesign (V3) */
    #view-agenda.active {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 70px) !important;
        overflow: hidden !important;
        position: relative;
        background: #fff !important;
    }

    #list-weekly {
        flex: 1 !important;
        overflow-y: auto !important;
        background: #fdfdfd;
        padding-bottom: 80px; /* Space for overlay */
        position: relative;
    }

    /* Granularity bar as a PERSISTENT OVERLAY at the bottom */
    .lz-granularity-toolbar {
        position: fixed !important;
        bottom: 100px !important; /* Raised to be clearly above bottom nav */
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        background: rgba(255,255,255,0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        padding: 6px !important;
        z-index: 1000 !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
    }
}

@keyframes bubblePulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
    50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
}

/* Floating Pending Bubble - Global Styles */
.lz-pending-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    display: none; /* Controlled by PHP/JS */
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1001;
    cursor: pointer;
    animation: bubblePulse 2s infinite;
    transition: all 0.3s ease;
}

.lz-bubble-icon {
    font-size: 24px;
}

.lz-bubble-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .lz-pending-bubble {
        bottom: 150px; /* Above the granularity bar */
        right: 20px;
        width: 54px;
        height: 54px;
    }


    .lz-granularity-tabs {
        display: flex;
        gap: 5px;
        background: #f1f3f5;
        padding: 4px;
        border-radius: 10px;
    }

    .gran-tab {
        flex: 1;
        padding: 10px;
        border: none;
        background: transparent;
        font-size: 12px;
        font-weight: 700;
        border-radius: 7px;
        color: #666;
    }

    .gran-tab.active {
        background: #fff;
        color: #000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    /* Add button inside day box */
    .lz-day-add-btn {
        width: 40px;
        height: 40px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        cursor: pointer;
    }

    /* Week View Accordion logic */
    .lz-week-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .lz-week-view .grid-day-container {
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    }

    .lz-week-view .grid-day-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        background: #fff !important;
        cursor: pointer;
        border-bottom: none !important;
    }

    .lz-week-view .grid-day-container.is-open .grid-day-header {
        border-bottom: 1px solid #eee !important;
    }

    .lz-week-view .grid-day-column {
        display: none !important;
        padding: 15px !important;
        background: #fafafa !important;
    }

    .lz-week-view .grid-day-container.is-open .grid-day-column {
        display: flex !important;
        flex-direction: column !important;
    }

    .lz-month-view {
        padding: 5px;
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
    }

    .lz-month-grid-container {
        display: block !important;
        width: 100% !important;
        min-height: 0;
        flex: 1;
    }

    /* UNIVERSAL VISIBILITY TOGGLES MOVED TO BOTTOM FOR PRECEDENCE */

    /* Desktop section temporarily removed to be moved below */

    
    .lz-mock-header {
        padding: 20px 20px 15px 20px;
    }
    
    .lz-mock-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lz-mock-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .lz-mock-name {
        font-size: 26px;
    }

    .lz-section-container {
        padding: 20px 20px 40px 20px;
    }

    .lz-mock-box-header {
        padding: 25px 20px;
    }

    .lz-mock-box-content {
        padding: 0 20px 25px 20px;
    }

    .lz-mock-profile-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .lz-mock-toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lz-mock-switch {
        transform: scale(0.9);
        transform-origin: left center;
    }

    .lz-mock-footer {
        padding: 30px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .lz-mock-fidelity-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .lz-mock-points-val {
        font-size: 48px;
    }
    
    .lz-weekly-grid {
        background: transparent;
        border: none;
        padding-bottom: 20px;
    }

    .grid-day-container {
        height: auto;
        min-height: auto;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding: 2px !important;
    }

    .grid-day-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4px 2px !important;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        gap: 2px;
    }

    .grid-day-name {
        font-size: 8px !important;
        font-weight: 700;
        line-height: 1;
    }

    .grid-day-date {
        font-size: 10px !important;
        font-weight: 800;
        line-height: 1;
    }

    .grid-day-column {
        padding: 4px 2px !important;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .lz-month-view .grid-day-container {
        min-height: 55px !important;
    }

    /* Empty state styling */
    .grid-empty-msg {
        font-size: 11px !important;
        color: #94a3b8;
        text-align: center;
        padding: 20px 10px !important;
        font-style: italic;
        margin: 0 !important;
    }

    .grid-app-item {
        padding: 4px !important;
        margin-bottom: 2px !important;
        border-left-width: 2px !important;
        box-shadow: none !important;
        border-radius: 2px !important;
    }

    .grid-app-time {
        font-size: 8px !important;
        font-weight: 800 !important;
    }

    .grid-app-name {
        font-size: 9px !important;
        line-height: 1.1 !important;
        word-break: break-all !important;
    }

    .grid-app-service {
        display: none !important;
    }

    .grid-app-item-month {
        gap: 2px !important;
        padding: 1px 2px !important;
    }

    .grid-app-dot {
        width: 4px !important;
        height: 4px !important;
    }

    .grid-app-more {
        font-size: 7px !important;
        padding-left: 6px !important;
    }

    .grid-birthday-item {
        padding: 2px !important;
        font-size: 7px !important;
        border-left-width: 2px !important;
    }

    .grid-app-time {
        font-size: 13px;
    }

    .grid-app-name {
        font-size: 14px;
        line-height: 1.3;
        word-break: normal;
    }

    .grid-app-service {
        font-size: 11px;
    }
}

/* --- NEW AGENDA REDESIGN --- */

/* FLOATING ADD BUTTON */
.lz-floating-add-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #a855f7; /* Default purple as seen in mockup */
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    font-weight: 300;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.lz-floating-add-btn:active {
    transform: scale(0.95);
}

/* DAY VIEW TIMELINE */
.lz-day-timeline-view {
    padding: 15px;
    background: #fff;
    padding-bottom: 100px;
}
.lz-prossimo-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.lz-p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.lz-p-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}
.lz-p-chevron {
    color: #a855f7;
    font-size: 12px;
}
.lz-p-details {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}
.lz-p-client {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lz-p-avatar {
    width: 40px;
    height: 40px;
    background: #f3e8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.lz-p-info {
    flex: 1;
}
.lz-p-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}
.lz-p-service {
    font-size: 12px;
    font-weight: 600;
}
.lz-p-btn {
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.lz-agenda-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.lz-div-title {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}
.lz-div-count {
    font-size: 12px;
    color: #94a3b8;
}

.lz-timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lz-timeline-item {
    display: flex;
    gap: 15px;
    position: relative;
    cursor: pointer;
}
.lz-tl-time {
    width: 45px;
    font-weight: 800;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lz-tl-line {
    width: 2px;
    flex: 1;
    background: #e2e8f0;
    margin-top: 5px;
    min-height: 40px;
}
.lz-timeline-item:last-child .lz-tl-line {
    display: none;
}
.lz-tl-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.lz-tl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}
.lz-tl-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.lz-tl-card-status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f8fafc;
}
.lz-tl-card-service {
    font-size: 13px;
    color: #64748b;
}

/* WEEK VIEW ACCORDION */
.lz-week-accordion-view {
    background: #f8fafc;
    min-height: 100%;
}
.lz-week-acc-item {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.lz-week-acc-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}
.lz-acc-date-block {
    text-align: center;
    margin-right: 15px;
    background: #f3e8ff;
    padding: 8px 12px;
    border-radius: 12px;
}
.lz-week-acc-item.open .lz-acc-date-block {
    background: #a855f7;
    color: #fff;
}
.lz-acc-day-name {
    font-size: 10px;
    font-weight: 800;
    color: inherit;
    opacity: 0.7;
}
.lz-acc-day-num {
    font-size: 18px;
    font-weight: 800;
    color: inherit;
}
.lz-acc-info-block {
    flex: 1;
}
.lz-acc-full-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.lz-acc-icon {
    color: #a855f7;
    font-size: 12px;
    transition: transform 0.2s;
}
.lz-week-acc-item.open .lz-acc-icon {
    transform: rotate(180deg);
}
.lz-week-acc-content {
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
}
.lz-week-acc-item.open .lz-week-acc-content {
    display: block;
}
/* MONTH GRID (INDEPENDENT) */
.lz-mg-day-header {
    background: #fff;
    text-align: center;
    padding: 15px 0 10px 0;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
}

.lz-mg-cell {
    background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.lz-mg-cell:hover {
    background: #f8fafc;
}
.lz-mg-cell.is-today {
    background: rgba(168, 85, 247, 0.05);
    z-index: 2;
    box-shadow: inset 0 0 0 2px #a855f7;
}
.lz-mg-cell.is-other-month {
    background: #fbfbfb;
}
.lz-mg-cell.is-other-month .lz-mg-date {
    color: #cbd5e1;
}

.lz-mg-cell-header {
    text-align: left;
    padding: 10px 10px 5px;
}
.lz-mg-date {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 6px;
}
.lz-mg-cell.is-today .lz-mg-date {
    background: #a855f7;
    color: #fff !important;
}

.lz-mg-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 5px 8px;
}

.lz-mg-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 5px;
}
.lz-mg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.lz-mg-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.lz-mg-pill {
    font-size: 11px;
    background: #f3e8ff;
    color: #6b21a8;
    padding: 5px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}
.lz-mg-pill:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.1);
}
.lz-mg-pill-time {
    opacity: 0.8;
}
.lz-mg-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.lz-mg-more {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    padding: 4px;
    margin-top: 2px;
}

/* MOBILE VISIBILITY OVERRIDES */
@media (max-width: 768px) {
    .lz-day-desktop-wrapper, .lz-week-desktop-wrapper, .lz-month-desktop-wrapper { display: none !important; }
    .lz-day-mobile-wrapper, .lz-week-mobile-wrapper, .lz-month-mobile-wrapper { display: block !important; }
    
    #view-agenda.active {
        max-width: 100%;
        margin: 0;
        border: none;
        border-radius: 0;
        height: calc(100vh - 70px) !important;
    }
    .lz-mg-cell {
        min-height: 70px !important;
    }
    .lz-mg-day-header {
        padding: 10px 0;
        font-size: 10px;
    }
}

/* GLOBAL MONTH GRID BASE */
.lz-mg-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 100%;
    background: #e2e8f0;
    gap: 1px;
    border: 1px solid #e2e8f0;
}

/* DESKTOP VISIBILITY FORCING */
@media (min-width: 769px) {
    .lz-day-desktop-wrapper, .lz-week-desktop-wrapper, .lz-month-desktop-wrapper { 
        display: flex !important; 
        flex-direction: column;
        flex: 1;
        height: 100%;
        min-height: 0;
    }
    .lz-day-mobile-wrapper, .lz-week-mobile-wrapper, .lz-month-mobile-wrapper { display: none !important; }

    /* DAY DESKTOP REDESIGN (Restored here) */
    .lz-day-desktop-wrapper {
        overflow-y: auto !important;
        padding: 40px;
        background: #f8fafc;
    }
    .lz-day-desktop-grid {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .lz-day-desktop-item {
        background: #fff;
        border-radius: 16px;
        padding: 20px 30px;
        display: flex;
        align-items: center;
        gap: 30px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid #f1f5f9;
        margin-bottom: 5px;
    }
    .lz-day-desktop-item:hover { 
        transform: translateY(-2px); 
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        border-color: #e2e8f0;
    }
    .lz-dd-time { 
        font-size: 22px; 
        font-weight: 900; 
        color: #1e293b; 
        width: 100px;
        position: relative;
    }
    .lz-dd-time::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 20%;
        bottom: 20%;
        width: 2px;
        background: #f1f5f9;
    }
    .lz-dd-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
    .lz-dd-name { font-size: 18px; font-weight: 800; color: #0f172a; }
    .lz-dd-service { font-size: 14px; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
    .lz-dd-status { 
        font-size: 12px; 
        font-weight: 800 !important; 
        text-transform: uppercase; 
        padding: 6px 12px;
        background: #f0fdf4 !important;
        color: #16a34a !important; /* Force green even if inline says red */
        border-radius: 99px;
    }

    /* WEEK DESKTOP (Restored here) */
    .lz-week-grid {
        display: flex;
        gap: 10px;
        padding: 10px;
        height: 100%;
        overflow-x: auto;
    }
    .lz-week-col {
        flex: 1;
        min-width: 150px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .lz-week-col.is-today { border: 2px solid #a855f7; }
    .lz-week-col-header {
        padding: 12px;
        background: #fafafa;
        border-bottom: 1px solid #f1f5f9;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .lz-week-col-header strong { font-size: 12px; color: #94a3b8; text-transform: uppercase; }
    .lz-week-col-header span { font-size: 18px; font-weight: 800; color: #333; }
    .lz-week-col-content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
    .lz-week-card {
        padding: 8px 10px;
        background: #f8fafc;
        border-radius: 8px;
        cursor: pointer;
    }
    .lz-wc-time { font-size: 12px; font-weight: 800; color: #333; }
    .lz-wc-title { font-size: 13px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* MONTH DESKTOP (Restored here) */
    .lz-mg-grid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        grid-auto-rows: 1fr; /* All rows equal height */
        width: 100%;
        height: 100%; /* Fill the wrapper */
        background: #e2e8f0;
        gap: 1px;
        border-top: 1px solid #e2e8f0;
        border-left: 1px solid #e2e8f0;
        min-height: 0;
    }
    .lz-mg-cell {
        background: #fff;
        min-height: 0 !important; /* Allow squashing */
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .lz-mg-content {
        flex: 1;
        overflow-y: auto !important; /* Internal scroll for many appointments */
        scrollbar-width: none; /* Cleaner look */
    }
    .lz-mg-content::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) {
    .lz-day-timeline-view {
        max-width: 800px;
        margin: 0 auto;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-top: 20px;
    }
    .lz-week-accordion-view {
        max-width: 800px;
        margin: 0 auto;
        margin-top: 0;
        margin-bottom: 0 !important;
        border: none !important;
        border-radius: 0;
        overflow-y: auto;
        flex: 1 !important;
        height: 100% !important;
        background: transparent !important;
        min-height: 0;
    }
}

/* Legacy desktop overrides for accordion removed in favor of separate lz-week-desktop-wrapper */

/* WhatsApp Chat Interface - Admin Dashboard */
/* --- MESSAGES TAB STYLES --- */

.lz-chat-container {
    display: flex;
    height: 750px;
    max-height: calc(100vh - 180px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-top: 10px;
}

/* Sidebar */
.lz-chat-sidebar {
    width: 320px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.lz-chat-sidebar-header {
    padding: 24px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lz-chat-sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lz-chat-sidebar-title-row h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.lz-chat-search-wrapper {
    position: relative;
}

.lz-chat-search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.lz-chat-search-input:focus {
    background: #fff;
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.lz-chat-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
}

.lz-chat-refresh {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lz-chat-refresh:hover {
    background: #e2e8f0;
}

.lz-chat-list {
    flex: 1;
    overflow-y: auto;
    padding-top: 5px;
}

.lz-chat-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
}

.lz-chat-item:hover {
    background: #f8fafc;
}

.lz-chat-item.active {
    background: #f1f5f9;
    border-left-color: #000;
}

.lz-chat-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
}

.lz-chat-live-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.lz-chat-item-content {
    flex: 1;
    min-width: 0;
}

.lz-chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.lz-chat-item-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lz-chat-item-time {
    font-size: 11px;
    color: #94a3b8;
}

.lz-chat-item-last-msg {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Window */
.lz-chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.lz-chat-window-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fbfbfb;
    z-index: 10;
    color: #000;
}

.lz-chat-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lz-chat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.lz-chat-user-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #000;
}

.lz-chat-user-info span {
    font-size: 12px;
    color: #666;
}

.lz-chat-messages-container {
    flex: 1;
    padding: 30px 25px;
    overflow-y: auto;
    background: #efeae2; /* Standard WhatsApp-like chat background */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Grouped messages closer */
}

/* Day Separator */
.lz-chat-date-separator {
    align-self: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #54656f;
    margin: 20px 0;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    text-transform: uppercase;
}

.lz-chat-msg {
    max-width: 85%;
    padding: 8px 12px 6px;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    margin-bottom: 8px;
}

/* Incoming (Left) */
.lz-chat-msg.in {
    align-self: flex-start;
    background: #fbfbfb;
    color: #000;
    border-top-left-radius: 0;
}

.lz-chat-msg.in::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 13px;
    background: #fbfbfb;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Outgoing (Right) */
.lz-chat-msg.out {
    align-self: flex-end;
    background: #9df291;
    color: #000;
    border-top-right-radius: 0;
}

.lz-chat-msg.out::before {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 13px;
    background: #9df291;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Support (System/Special) */
.lz-chat-msg.support {
    align-self: flex-start;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Action (System Log) */
.lz-chat-msg.action {
    align-self: center;
    background: #e1f5fe;
    color: #0277bd;
    font-size: 12px;
    border-radius: 15px;
    max-width: 90%;
    text-align: center;
    border: none;
    box-shadow: none;
    margin: 10px 0;
}

.lz-chat-msg-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.lz-chat-msg-time {
    font-size: 10.5px;
    color: #667781;
}

.lz-chat-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    padding: 40px;
}

.lz-chat-empty-state span {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.lz-chat-input-area {
    padding: 12px 20px;
    background: #f0f2f5;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    z-index: 10;
}

.lz-chat-input-wrapper {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 0 15px;
    display: flex;
    align-items: flex-end;
    min-height: 40px;
}

.lz-chat-input-area textarea {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    height: 22px;
    max-height: 100px;
    outline: none;
    background: transparent;
    line-height: 20px;
}

.lz-chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lz-chat-send-btn:hover {
    background: #333;
}

.lz-chat-send-btn span {
    font-size: 20px;
}

.lz-chat-attach-btn {
    background: none;
    border: none;
    padding: 10px 5px;
    color: #54656f;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.lz-chat-attach-btn:hover {
    color: #000;
}

.lz-chat-quick-reply-btn {
    background: none;
    border: none;
    padding: 10px 5px;
    color: #54656f;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lz-chat-close-btn {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}


/* Styling for the WhatsApp Chat Popup Modal */
.lz-chat-popup-modal .lz-modal-content {
    max-width: 800px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    position: relative;
}

.lz-chat-popup-modal .lz-chat-window {
    height: 75vh !important;
    max-height: 800px;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1 !important;
}


