body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    margin: 0;
}

.app-main {
    padding: 18px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.app-main:has(.login-page),
.app-main:has(.session-loading) {
    padding: 0;
}

/* Status Bar Blur for iOS Standalone PWA */
.ios-status-bar-blur {
    display: none;
}
@supports (-webkit-touch-callout: none) {
    .ios-status-bar-blur {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top, 0px);
        background: rgba(250, 250, 250, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        pointer-events: none;
    }
    .app-shell:has(.login-page) .ios-status-bar-blur,
    .app-shell:has(.session-loading) .ios-status-bar-blur {
        display: none;
    }
}

.card {
    background: white;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   MODERN DESIGN SYSTEM FOR FORM CONTROLS & INPUTS
   ========================================================================== */

/* Universal Inputs & TextBoxes */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
.form-control,
.input,
.search-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    border: 1.5px solid #e2d7e8;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
}

/* Hover State */
input[type="text"]:hover:not(:disabled):not([readonly]),
input[type="tel"]:hover:not(:disabled):not([readonly]),
input[type="email"]:hover:not(:disabled):not([readonly]),
input[type="number"]:hover:not(:disabled):not([readonly]),
input[type="password"]:hover:not(:disabled):not([readonly]),
input[type="search"]:hover:not(:disabled):not([readonly]),
input[type="url"]:hover:not(:disabled):not([readonly]),
input[type="date"]:hover:not(:disabled):not([readonly]),
input[type="time"]:hover:not(:disabled):not([readonly]),
.form-control:hover:not(:disabled):not([readonly]),
.input:hover:not(:disabled):not([readonly]),
.search-input:hover:not(:disabled):not([readonly]) {
    border-color: #c9b6d3;
    background-color: #ffffff;
}

/* Active / Focus Glow */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
.form-control:focus,
.input:focus,
.search-input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color, #c061cb) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(192, 97, 203, 0.18) !important;
    outline: none !important;
}

/* Readonly & Disabled State */
input[readonly],
input:disabled,
select:disabled,
textarea:disabled,
.form-control[readonly],
.form-control:disabled,
.input[readonly],
.input:disabled {
    background-color: #f9f6fa !important;
    border-color: #ebdfee !important;
    color: #4b4453 !important;
    cursor: not-allowed;
    opacity: 0.95;
    box-shadow: none !important;
}

/* Placeholder */
::placeholder {
    color: #a195a8;
    opacity: 1;
    font-size: 14px;
}

/* Form Control Compact (Tables/Badges) */
.form-control-sm {
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
}

/* Dropdowns / Selects */
select,
.select-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 42px 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    border: 1.5px solid #e2d7e8;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238c45a8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

select:hover:not(:disabled) {
    border-color: #c9b6d3;
}

/* Multiline Textareas */
textarea,
.form-control.textarea {
    width: 100%;
    min-height: 95px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    border: 1.5px solid #e2d7e8;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    resize: vertical;
    outline: none;
    line-height: 1.5;
    transition: all 0.2s ease;
}

/* Modern Picker Buttons (Volver, Subir Logo, Navegar Días, etc.) */
.picker-btn {
    background: #f8f0fc;
    border: 1.5px solid #eedbf7;
    color: #82279b;
    font-weight: 700;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(130, 39, 155, 0.08);
    text-decoration: none;
}

.picker-btn:hover {
    background: #f1e0f8;
    border-color: #dfbfee;
    color: #6b1882;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(130, 39, 155, 0.15);
}

.picker-btn:active {
    transform: translateY(0);
}

/* Secondary Neutral Buttons (Cancelar, Volver, etc.) */
.secondary-btn,
.primary-button.secondary,
.btn-secondary {
    background: #f3f4f6 !important;
    border: 1.5px solid #e5e7eb !important;
    color: #4b5563 !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: all 0.2s ease !important;
}

.secondary-btn:hover,
.primary-button.secondary:hover,
.btn-secondary:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
    transform: translateY(-1px);
}

/* Primary Button Enhancements */
.primary-button {
    background: var(--primary-color, #c061cb);
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(192, 97, 203, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(192, 97, 203, 0.38);
    opacity: 0.96;
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.primary-button:disabled {
    background: #d8c8dc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.75;
}

/* Danger / Delete Buttons */
.danger-button {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    font-weight: 700;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.danger-button:hover {
    background: #fecaca;
    border-color: #f87171;
    transform: translateY(-1px);
}

/* Modern Checkboxes & Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-color, #c061cb);
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
}

/* ==========================================================================
   CALENDAR & AGENDA MODERN CONTROLS
   ========================================================================== */

.calendar-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-page-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-page-header .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-nav-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calendar-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.calendar-stepper-btn {
    background: #f4f5f8;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    font-weight: 700;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.calendar-stepper-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-stepper-btn:active {
    transform: translateY(0);
}

.calendar-stepper-btn .stepper-arrow {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.calendar-stepper-btn .stepper-label {
    display: inline;
}

.calendar-date-display {
    flex: 1;
    text-align: center;
    background: var(--background-accent, #faf6fc);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 750;
    color: #1f2937;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    min-width: 0;
}

.calendar-date-display .date-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.calendar-date-display .date-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.calendar-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.calendar-view-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.calendar-view-pill {
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 650;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.calendar-view-pill:hover {
    background: #edf2f7;
    color: #1a202c;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.calendar-view-pill.active {
    background: var(--primary-color, #c061cb);
    color: #ffffff;
    border-color: var(--primary-color, #c061cb);
    box-shadow: 0 3px 10px rgba(192, 97, 203, 0.28);
}

.staff-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.staff-filter-label {
    font-size: 12px;
    font-weight: 750;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-filter-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.staff-chip {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.staff-chip:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.staff-chip.selected {
    background: var(--primary-color, #c061cb);
    border-color: var(--primary-color, #c061cb);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(192, 97, 203, 0.28);
}

@media (max-width: 600px) {
    .calendar-page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .calendar-page-header .primary-button {
        padding: 9px 14px;
        font-size: 13.5px;
    }

    .calendar-stepper-row {
        gap: 8px;
    }

    .calendar-stepper-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .calendar-stepper-btn .stepper-label {
        display: none;
    }

    .calendar-stepper-btn .stepper-arrow {
        font-size: 18px;
    }

    .calendar-date-display {
        padding: 9px 8px;
        font-size: 13.5px;
        gap: 6px;
        border-radius: 12px;
    }

    .calendar-date-display .date-icon {
        font-size: 15px;
    }

    .calendar-date-display .date-text {
        font-size: 13.5px;
        font-weight: 750;
    }

    .calendar-view-toolbar {
        flex-direction: row;
        gap: 8px;
    }

    .calendar-view-pills {
        width: 100%;
        display: flex;
    }

    .calendar-view-pill {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12.5px;
    }
}

.date-picker-lite {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   DASHBOARD & HERO STYLES
   ========================================================================== */
.dashboard-hero {
    background: var(--primary-gradient, linear-gradient(135deg, #7b1fa2 0%, #9c27b0 50%, #ba68c8 100%));
    color: white;
    padding: 20px 22px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(123, 31, 162, 0.22);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.dashboard-hero-subtitle {
    margin: 4px 0 0 0;
    opacity: 0.95;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.dashboard-hero-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: capitalize;
}

.dashboard-kpi-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 700px) {
    .dashboard-kpi-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .dashboard-kpi-bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

.kpi-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1.5px solid #f1e8f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 104px;
    box-sizing: border-box;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(123, 31, 162, 0.1);
    border-color: #e2cce9;
}

.kpi-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.kpi-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.kpi-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kpi-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.kpi-value small {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.kpi-value-text {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value-currency {
    font-size: 20px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -0.5px;
}

.kpi-value-currency-muted {
    font-size: 19px;
    font-weight: 800;
    color: #991b1b;
    letter-spacing: -0.5px;
}

.kpi-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.kpi-badge-purple { background: #f3e8ff; color: #7b1fa2; }
.kpi-pill-purple { background: #faf5ff; color: #7b1fa2; border: 1px solid #e9d5ff; }
.kpi-badge-blue { background: #e0f2fe; color: #0284c7; }
.kpi-pill-blue { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.kpi-badge-emerald { background: #dcfce7; color: #16a34a; }
.kpi-pill-emerald { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.kpi-badge-rose { background: #ffe4e6; color: #e11d48; }
.kpi-pill-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.kpi-badge-amber { background: #fef3c7; color: #d97706; }
.kpi-pill-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.kpi-badge-indigo { background: #e0e7ff; color: #4f46e5; }
.kpi-pill-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.kpi-badge-violet { background: #ede9fe; color: #7c3aed; }
.kpi-pill-violet { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.kpi-badge-green { background: #dcfce7; color: #15803d; }
.kpi-pill-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.kpi-badge-slate { background: #f1f5f9; color: #64748b; }
.kpi-pill-slate { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.kpi-card-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #86efac;
}

.kpi-card-wide {
    grid-column: span 2;
}

.kpi-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 4px 0 2px 0;
}

.kpi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.reminder-list {
    display: grid;
    gap: 10px;
}

.reminder-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #fff8ec;
    border-left: 5px solid #f2a93b;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.reminder-card:hover {
    transform: translateX(3px);
}

.reminder-type {
    font-weight: 700;
    color: #a66300;
    font-size: 13px;
}

.reminder-customer {
    font-weight: 700;
    font-size: 15px;
}

.reminder-service {
    color: #5f5140;
    font-size: 13.5px;
}

.day-timeline {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 20px;
    border: 1px solid #f0e4f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.timeline-hour {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 16px;
    min-height: 72px;
    border-bottom: 1px solid #f3f4f6;
    padding: 10px 0;
    align-items: flex-start;
}

.timeline-hour:last-child {
    border-bottom: none;
}

.timeline-label {
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
    user-select: none;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 52px;
    width: 100%;
}

.current-time-line {
    position: relative;
    height: 2px;
    background: #e11d48;
    margin: 6px 0 10px 0;
    border-radius: 999px;
    width: 100%;
}

.current-time-line span {
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #e11d48;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.appointment-list {
    display: grid;
    gap: 10px;
}

.appointment-card {
    border-left: 5px solid var(--primary-color, #c061cb);
    background: var(--background-accent, #fbf7fc);
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.appointment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.appointment-card-link {
    cursor: pointer;
}

.appointment-time {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.appointment-customer {
    font-size: 15.5px;
    font-weight: 800;
    color: #1f1424;
}

.appointment-service {
    font-size: 13.5px;
    color: #4b5563;
    font-weight: 500;
}

.appointment-staff {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 600;
}

.appointment-service-lashes {
    border-left-color: #9333ea !important;
    background: #faf5ff !important;
}
.appointment-service-lashes .appointment-time {
    color: #7e22ce !important;
}

.appointment-service-nails {
    border-left-color: #0284c7 !important;
    background: #f0f9ff !important;
}
.appointment-service-nails .appointment-time {
    color: #0369a1 !important;
}

.appointment-service-hair {
    border-left-color: #ec4899 !important;
    background: #fdf2f8 !important;
}
.appointment-service-hair .appointment-time {
    color: #be185d !important;
}

.appointment-service-default {
    border-left-color: #10b981 !important;
    background: #f0fdf4 !important;
}
.appointment-service-default .appointment-time {
    color: #047857 !important;
}

.appointment-card-cancelled {
    border-left-color: #9ca3af !important;
    background: #f3f4f6 !important;
    opacity: 0.75;
}
.appointment-card-cancelled .appointment-time,
.appointment-card-cancelled .appointment-customer,
.appointment-card-cancelled .appointment-service,
.appointment-card-cancelled .appointment-staff {
    color: #6b7280 !important;
}

.move-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7e22ce;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e9d5ff;
    transition: all 0.15s ease;
}
.move-chip:hover {
    background: #e9d5ff;
    color: #581c87;
    transform: translateY(-1px);
    text-decoration: none;
}

.move-mode-card {
    border-left: 5px solid #f59e0b;
    background: #fffbeb;
    margin-bottom: 16px;
}

.move-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.move-slot {
    padding: 7px 10px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.15s ease;
}
.move-slot:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    text-decoration: none;
}

.muted {
    color: #777;
    font-size: 13px;
}
.status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.session-loading, .login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: calc(22px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px)) 22px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #f8edfb 0%, #ffffff 52%, #f4e9f7 100%);
}

.login-card {
    width: min(100%, 390px);
    background: white;
    padding: 28px 24px;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(75, 25, 90, .14);
    display: grid;
    gap: 10px;
}

.login-brand {
    height: 62px;
    display: flex;
    align-items: center;
    background: transparent;
}
.login-brand img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.login-card h1 { margin: 8px 0 0; }
.login-card label { font-size: 13px; font-weight: 700; color: #493d4c; }
.login-card > input {
    min-height: 46px;
    border: 1px solid #ddcfdf;
    border-radius: 12px;
    padding: 0 13px;
    font-size: 16px;
}
.biometric-option { display: flex; align-items: center; gap: 9px; margin: 6px 0; }
.login-button, .biometric-button { width: 100%; min-height: 46px; border-radius: 14px; border: 0; }
.biometric-button { background: #f4eaf6; color: #582864; font-weight: 750; }
.invitation-login-button { width:100%; min-height:44px; border:1px solid #b88ac0; border-radius:14px; background:white; color:#672d72; font-weight:750; }
.invitation-token-input { width:100%; min-height:78px; box-sizing:border-box; resize:vertical; border:1px solid #ddcfdf; border-radius:11px; padding:10px; overflow-wrap:anywhere; }
.login-error { background: #fff0ef; color: #a12620; padding: 10px 12px; border-radius: 10px; }
.access-denied-page { min-height:70vh; display:grid; place-items:center; }
.access-denied-card { max-width:380px; text-align:center; }
.access-denied-icon { font-size:42px; }
.customer-contact-card { display:grid; gap:12px; border:1px solid #ccebd7; background:linear-gradient(145deg,#ffffff,#f1fbf5); }
.customer-contact-heading { display:flex; gap:11px; align-items:flex-start; }.customer-contact-heading h3,.customer-contact-heading p{margin:0}.customer-contact-heading p{color:#66736a;font-size:13px;margin-top:3px}.customer-contact-icon{font-size:26px}
.whatsapp-share-button { width:100%; min-height:48px; border:0; border-radius:14px; background:#1fa855; color:white; font-weight:800; font-size:15px; }.whatsapp-share-button:disabled{opacity:.65}
.customer-contact-card small{color:#66736a}.contact-success{padding:10px 12px;border-radius:10px;background:#dff6e7;color:#17663a;font-size:13px}

.password-field { display:flex; border:1px solid #ddcfdf; border-radius:12px; overflow:hidden; background:white; }
.password-field input { min-width:0; flex:1; min-height:46px; border:0; padding:0 13px; font-size:16px; outline:none; }
.password-field button { width:48px; border:0; background:#f7f0f8; font-size:18px; cursor:pointer; }
.access-page { display:grid; gap:14px; max-width:780px; margin:0 auto; padding-bottom:30px; }
.access-hero { display:flex; gap:14px; align-items:center; padding:18px; color:white; border-radius:0 0 22px 22px; background:linear-gradient(135deg,#512bd4,#a64eb2); }
.access-hero h1,.access-hero p { margin:0; }.access-hero p{opacity:.9}.access-icon{font-size:34px}
.access-invite-card { display:grid; gap:10px; }.access-invite-card input,.access-invite-card select{min-height:44px;border:1px solid #ddcfdf;border-radius:11px;padding:0 12px;background:white}
.access-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.access-form-row>div{display:grid;gap:6px}
.invitation-result,.access-message { padding:12px; border-radius:12px; background:#eaf8ef; color:#245a38; }.invitation-result{display:grid;gap:7px}.invitation-result p{margin:0}.invitation-result input{width:100%;box-sizing:border-box}
.access-list{display:grid;gap:9px}.access-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #eadfec;border-radius:13px}.access-row>div{display:grid;gap:3px}.access-row span,.access-row small{color:#716574}
.danger-soft,.success-soft{border:0;border-radius:11px;padding:9px 11px;font-weight:700}.danger-soft{background:#fff0ef;color:#a12620}.success-soft{background:#eaf8ef;color:#24633a}
.access-row-actions {
    display: flex;
    gap: 8px;
}
.recovery-btn-soft {
    border: 0;
    border-radius: 11px;
    padding: 9px 11px;
    font-weight: 700;
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
    cursor: pointer;
}

/* Salon Picker in Login */
.salon-picker-list {
    display: grid;
    gap: 10px;
    margin: 8px 0;
}
.salon-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #faf6fc;
    border: 1.5px solid #ebdfee;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}
.salon-picker-item:hover, .salon-picker-item:focus {
    background: #f3e6f7;
    border-color: #c061cb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140, 69, 168, 0.12);
}
.salon-picker-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    display: grid;
    place-items: center;
    font-size: 20px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #ebdfee;
}
.salon-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.salon-picker-info {
    flex: 1;
    display: grid;
    gap: 3px;
    min-width: 0;
}
.salon-picker-info strong {
    font-size: 15px;
    color: #2c1b31;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.salon-role-badge {
    font-size: 12px;
    color: #8c45a8;
    font-weight: 600;
}
.salon-picker-arrow {
    font-size: 20px;
    color: #b88ac0;
    font-weight: bold;
}

@media(max-width:580px){
    .access-form-row {
        grid-template-columns: 1fr;
    }
    .access-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .access-row > div:first-child {
        word-break: break-all;
    }
    .access-row-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .access-row-actions button {
        flex: 1;
        text-align: center;
    }
}

.invitation-status-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9999px;
    margin-left: 6px;
}
.status-pending { background: #ffe0b2; color: #e65100; }
.status-accepted { background: #e8f5e9; color: #2e7d32; }
.status-revoked { background: #ffebee; color: #c62828; }
.status-expired { background: #e0e0e0; color: #424242; }

/* Booking & Rescheduling Slots */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 8px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
    user-select: none;
}

.slot-button:hover {
    border-color: var(--primary-color, #c061cb);
    color: var(--primary-color, #7e22ce);
    background: var(--background-accent, #faf5ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 97, 203, 0.15);
}

.slot-button.selected {
    background: var(--primary-gradient, linear-gradient(135deg, var(--primary-color, #c061cb), var(--secondary-color, #7e22ce))) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    font-weight: 700;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 14px rgba(192, 97, 203, 0.4);
}

.slot-button:active {
    transform: translateY(0) scale(0.98);
}


/* BOOKING WIZARD AND DEPOSIT STYLES */

    /* Search Box */
    .service-search-box {
        margin-bottom: 16px;
    }
    .service-search-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }
    .service-search-icon {
        position: absolute;
        left: 14px;
        font-size: 1.1rem;
        pointer-events: none;
        z-index: 2;
        color: #9333ea;
    }
    .service-search-input,
    input[type="text"].service-search-input {
        width: 100%;
        padding: 12px 40px 12px 44px !important;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        font-size: 0.95rem;
        background: #f8fafc;
        color: #1e293b;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    .service-search-input:focus {
        background: #ffffff;
        border-color: #9333ea;
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
        outline: none;
    }
    .service-search-clear {
        position: absolute;
        right: 12px;
        background: #e2e8f0;
        border: none;
        color: #64748b;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        cursor: pointer;
    }
    .service-search-clear:hover {
        background: #cbd5e1;
        color: #1e293b;
    }
    .empty-services-search {
        text-align: center;
        padding: 30px 15px;
        background: #f8fafc;
        border-radius: 12px;
        border: 1px dashed #cbd5e1;
    }
    .empty-services-search .empty-icon {
        font-size: 2rem;
        display: block;
        margin-bottom: 8px;
    }
    .btn-clear-search {
        margin-top: 10px;
        background: #9333ea;
        color: white;
        border: none;
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }

    /* Category Tag & Deposit Pill */
    .service-category-tag {
        font-size: 0.72rem;
        font-weight: 800;
        color: #c026d3;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    .service-deposit-pill {
        margin-top: 6px;
        font-size: 0.76rem;
        font-weight: 700;
        color: #be185d;
        background: #fdf2f8;
        padding: 3px 8px;
        border-radius: 6px;
        border: 1px solid #fbcfe8;
        display: inline-block;
        width: fit-content;
    }
    .selected-deposit-tag {
        display: block;
        margin-top: 4px;
        font-size: 0.8rem;
        font-weight: 700;
        color: #9333ea;
    }
    .booking-deposit-info-alert {
        background: #faf5ff;
        border: 1px solid #e9d5ff;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 16px;
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }
    .deposit-alert-emoji {
        font-size: 1.5rem;
        line-height: 1;
    }

    /* Deposit Pending Card (Confirmation Screen) */
    .deposit-pending-card {
        background: #ffffff;
        border: 1.5px solid #e9d5ff;
        border-radius: 16px;
        padding: 24px 20px;
        box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.1), 0 8px 10px -6px rgba(147, 51, 234, 0.05);
        margin-bottom: 24px;
    }
    .deposit-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fde68a;
        font-size: 0.75rem;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 20px;
        letter-spacing: 0.5px;
        margin-bottom: 12px;
        text-transform: uppercase;
    }
    .deposit-badge-icon {
        font-size: 0.9rem;
    }
    .deposit-success-title {
        font-size: 1.4rem;
        font-weight: 800;
        color: #1e1b4b;
        margin: 0 0 8px 0;
    }
    .deposit-success-subtitle {
        color: #4b5563;
        font-size: 0.92rem;
        line-height: 1.5;
        margin: 0 0 18px 0;
    }
    .deposit-breakdown-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 18px;
    }
    .breakdown-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 0.88rem;
        color: #4b5563;
    }
    .breakdown-row.highlight {
        background: #faf5ff;
        margin: 4px -8px;
        padding: 8px;
        border-radius: 8px;
        border: 1px dashed #d8b4fe;
        color: #581c87;
        font-weight: 700;
    }
    .breakdown-row.highlight .bold-deposit {
        font-size: 1.15rem;
        font-weight: 800;
        color: #7e22ce;
    }
    .breakdown-row.subtle {
        font-size: 0.82rem;
        color: #64748b;
        border-top: 1px solid #e2e8f0;
        margin-top: 6px;
        padding-top: 8px;
    }

    /* Bank Details Box */
    .bank-details-box {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 20px;
    }
    .bank-box-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
    }
    .bank-title-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .bank-icon-emoji {
        font-size: 1.6rem;
    }
    .bank-name-text {
        display: block;
        font-size: 1.05rem;
        color: #0f172a;
        font-weight: 800;
    }
    .bank-type-tag {
        display: inline-block;
        font-size: 0.68rem;
        font-weight: 800;
        background: #e0e7ff;
        color: #3730a3;
        padding: 2px 6px;
        border-radius: 4px;
        letter-spacing: 0.5px;
    }
    .bank-rows-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .bank-data-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #f1f5f9;
    }
    .bank-field-info {
        display: flex;
        flex-direction: column;
    }
    .bank-field-label {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.5px;
    }
    .bank-field-value {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }
    .bank-field-value.mono {
        font-family: Consolas, Monaco, monospace;
        font-size: 1rem;
        letter-spacing: 1px;
        color: #7c2d12;
    }
    .btn-copy-action {
        background: #9333ea;
        color: white;
        border: none;
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .btn-copy-action:hover {
        background: #7e22ce;
    }
    .btn-copy-action.copied {
        background: #16a34a;
    }
    .btn-copy-action.small {
        padding: 4px 10px;
        font-size: 0.78rem;
    }
    .bank-instructions-box {
        margin-top: 10px;
        background: #fefce8;
        border: 1px solid #fef08a;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        color: #854d0e;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* WhatsApp CTA & New Booking */
    .deposit-cta-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .btn-whatsapp-voucher {
        width: 100%;
        background: linear-gradient(135deg, #25d366, #128c7e);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
        transition: all 0.2s ease;
    }
    .btn-whatsapp-voucher:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    }
    .deposit-auto-note {
        font-size: 0.82rem;
        color: #64748b;
        text-align: center;
        margin: 0;
        line-height: 1.4;
    }
    .btn-new-booking {
        background: #f1f5f9;
        color: #334155;
        border: 1px solid #cbd5e1;
        padding: 10px 16px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    .btn-new-booking:hover {
        background: #e2e8f0;
        color: #0f172a;
    }


/* =========================================================
   BOOKING WIZARD, OPTION BUTTONS & DEPOSIT CARD STYLES
   ========================================================= */
.service-option-btn {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
    padding: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: inherit !important;
    box-sizing: border-box !important;
}

.service-option-btn:hover {
    background: #faf5ff !important;
    border-color: #d8b4fe !important;
}

.service-option-btn.selected {
    background: #faf5ff !important;
    border-color: #9333ea !important;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.25) !important;
}

.service-card-img-container {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background-color: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 1px solid #e5e7eb !important;
}

.service-card-img-container.mini {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

.service-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.service-card-img-placeholder {
    font-size: 22px !important;
}

.service-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.service-card-info strong {
    font-size: 15px !important;
    color: #1e293b !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.service-card-meta {
    font-size: 13px !important;
    color: #64748b !important;
}

.service-category-tag {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #c026d3 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.service-deposit-pill {
    margin-top: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #be185d !important;
    background: #fdf2f8 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #fbcfe8 !important;
    display: inline-block !important;
    width: fit-content !important;
}

.selected-deposit-tag {
    display: block !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #9333ea !important;
}

/* ==========================================================================
   UNIVERSAL THEME SKINNING ENGINE (SETTINGS THEME INTEGRATION)
   ========================================================================== */

/* Primary Buttons everywhere */
.primary-button,
.btn-primary,
.button-primary,
.btn-save,
.btn-submit,
.btn-create,
.btn-action-primary,
.booking-confirm-btn,
.btn-save-reschedule,
.btn-copy-action,
.btn-checkout-pay {
    background: var(--primary-gradient, var(--primary-color, #c061cb)) !important;
    color: #ffffff !important;
    border: none !important;
}

.primary-button:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.button-primary:hover:not(:disabled),
.btn-save:hover:not(:disabled),
.btn-submit:hover:not(:disabled),
.btn-create:hover:not(:disabled),
.btn-action-primary:hover:not(:disabled),
.booking-confirm-btn:hover:not(:disabled),
.btn-save-reschedule:hover:not(:disabled),
.btn-copy-action:hover:not(:disabled),
.btn-checkout-pay:hover:not(:disabled) {
    box-shadow: 0 4px 14px var(--primary-shadow, rgba(0, 0, 0, 0.25)) !important;
    opacity: 0.95;
}

/* Floating Action Button (Agendar) in Bottom Nav */
.floating-agendar-btn,
.nav-center-action .floating-btn {
    background: var(--primary-gradient, linear-gradient(135deg, var(--primary-color, #c061cb), var(--secondary-color, #8c45a8))) !important;
    box-shadow: 0 6px 18px var(--primary-shadow, rgba(0, 0, 0, 0.3)) !important;
}

/* Bottom Navigation Active States */
.bottom-nav .nav-link-item.active .nav-icon-box,
.bottom-nav .nav-link-item.active .nav-label,
.nav-link-item.active svg {
    color: var(--primary-color, #c061cb) !important;
    stroke: var(--primary-color, #c061cb) !important;
}

/* Form Controls Focus Glow */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
.form-control:focus,
.input:focus,
.search-input:focus,
.custom-date-input:focus,
.service-search-input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color, #c061cb) !important;
    box-shadow: 0 0 0 3px var(--background-accent, rgba(192, 97, 203, 0.18)) !important;
}

/* Selected Items, Cards, Pills & Tabs */
.service-option-btn.selected,
.staff-card-btn.selected,
.slot-btn.selected,
.reschedule-slot-btn.selected,
.category-pill.active,
.tab-btn.active,
.pill-tab.active,
.nav-tab.active,
.filter-chip.selected,
.payment-method-pill.active,
.payment-method-card.selected {
    background: var(--background-accent, #faf5ff) !important;
    border-color: var(--primary-color, #c061cb) !important;
    box-shadow: 0 0 0 2px var(--primary-color, #c061cb) !important;
}

.service-option-btn:hover,
.staff-card-btn:hover,
.slot-btn:hover,
.reschedule-slot-btn:hover {
    border-color: var(--primary-color, #c061cb) !important;
    background: var(--background-accent, #faf5ff) !important;
}

/* Badges, Counters & Steppers */
.step-badge,
.stepper-circle.active,
.stage-badge,
.badge-theme {
    background: var(--primary-gradient, var(--primary-color, #c061cb)) !important;
    color: #ffffff !important;
}

/* Accent Highlights & Text */
.service-category-tag,
.selected-deposit-tag,
.date-display-label,
.theme-accent-text,
.service-search-icon {
    color: var(--primary-color, #c061cb) !important;
}

/* Hero Cards / Summary Cards */
.appointment-hero-card,
.booking-hero-card,
.summary-hero-card {
    background: var(--background-accent, #fbf7fc) !important;
    border: 1.5px solid var(--primary-color, #c061cb) !important;
}