/**
 * Shared Dashboard Styles - Glassmorphic Dark Theme
 * Used across all groomer dashboard pages
 */

/* Dashboard Variables - Glassmorphic V2 */
:root {
    /* Dark Base & Surfaces */
    --dark-base: #1a1a2e;
    --dark-surface: #16213e;
    --dark-elevated: #1f2b47;

    /* Accent Colors */
    --violet-deep: #7c3aed;
    --violet-light: #a78bfa;
    --violet-glow: rgba(124, 58, 237, 0.3);
    --gold: #d4a574;
    --gold-light: #e8c9a0;
    --gold-glow: rgba(212, 165, 116, 0.2);

    /* Text Colors */
    --cream: #faf7f2;
    --text-primary: #f8f8f8;
    --text-secondary: rgba(248, 248, 248, 0.7);
    --text-muted: rgba(248, 248, 248, 0.5);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* 3-Color Gradient for Text (matches main site hero) */
    --gradient-text-3color: linear-gradient(90deg, #a78bfa 0%, #d4a574 50%, #a78bfa 100%);
}

/* Reset body margin/padding for dashboard (overrides styles.css mobile padding-top: 44px) */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Header */
.dashboard-header {
    background: rgba(26, 26, 46, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-header .container {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo .logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #55497b;
    border: 1px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
    position: relative;
}

.header-logo .logo-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    background: linear-gradient(90deg, #d4a574 0%, #d4a574 20%, #faf7f2 50%, #d4a574 80%, #d4a574 100%);
    z-index: -1;
}

.header-logo span {
    background: linear-gradient(90deg, #d4a574 0%, #d4a574 20%, var(--cream) 50%, #d4a574 80%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo .logo-paw {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.header-logo .logo-paw path {
    fill: url(#logoGradient);
}

.header-logo:hover {
    transform: scale(1.05);
}

/* REMOVED: .header-divider and .dashboard-header h1 - unified nav layout */

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(5, auto);
    column-gap: 8px;
    row-gap: 2px;
    justify-content: center;
    justify-items: center;
}

.dashboard-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    padding: 4px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #a78bfa 0%, #ffffff 50%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-origin: content-box;
    white-space: nowrap;
}

.dashboard-nav a:hover {
    background: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: #a78bfa;
    color: #a78bfa;
}

.dashboard-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #d4a574);
    transition: width 0.3s;
}

.dashboard-nav a:hover::after {
    width: calc(100% - 28px);
}

.dashboard-nav a.active {
    -webkit-text-fill-color: white;
    color: white;
    background: none;
    -webkit-background-clip: text;
    background-clip: text;
}

.dashboard-nav a.active::after {
    width: calc(100% - 28px);
}

.dashboard-nav a.active:hover {
    -webkit-text-fill-color: white;
    color: white;
    background: none;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Booking not live banner */
.booking-not-live-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

/* Pet owner enquiries: banner on every page while unread, list on profile.html */
.enquiries-banner-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.enquiries-banner {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 8px;
    color: #e8c9a0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.enquiries-section[hidden] {
    display: none;
}

.enquiries-list {
    display: grid;
    gap: 12px;
}

.enquiry-item {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.enquiry-item--unread {
    border-color: rgba(212, 165, 116, 0.5);
    background: rgba(212, 165, 116, 0.06);
}

.enquiry-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.enquiry-item-date {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.enquiry-item-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.enquiry-item-contact a {
    color: var(--violet-light);
    word-break: break-all;
}

.enquiry-item-row {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.enquiry-item-label {
    color: var(--text-muted);
    margin-right: 8px;
}

.booking-not-live-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 14px;
    line-height: 1.4;
}

.booking-not-live-banner svg {
    flex-shrink: 0;
    stroke: #f87171;
}

.booking-not-live-banner a {
    color: #f87171;
    text-decoration: underline;
    font-weight: 600;
}

.booking-not-live-banner a:hover {
    color: #fca5a5;
}

/* Demo-readonly banner (locked demo dashboard) */
.demo-readonly-banner-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.demo-readonly-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 160, 69, 0.15));
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 8px;
    color: #e9deff;
    font-size: 14px;
    line-height: 1.4;
}

.demo-readonly-banner svg {
    flex-shrink: 0;
    stroke: #d4a574;
}

.demo-readonly-banner strong {
    color: #ffffff;
    font-weight: 700;
}

/* Disable mutation controls when in demo-readonly mode.
   Excludes view-only controls: .btn-cancel (modal close), .nav-btn (pagination). */
body.demo-readonly .btn-save,
body.demo-readonly .btn-danger,
body.demo-readonly .btn-gold,
body.demo-readonly .btn-cancel-booking,
body.demo-readonly .btn-decline-action,
body.demo-readonly .add-booking-btn,
body.demo-readonly .section-save-btn,
body.demo-readonly .delete-block-btn,
body.demo-readonly .save-btn,
body.demo-readonly .delete-btn,
body.demo-readonly .upload-btn,
body.demo-readonly button[type="submit"],
body.demo-readonly input[type="file"] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Admin nav pending badges */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #7c3aed, #d9a045, #7c3aed);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
    -webkit-text-fill-color: #1a1a2e;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6), 0 0 16px rgba(217, 160, 69, 0.3);
    overflow: hidden;
}

.nav-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-100%);
    will-change: transform;
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 30% { transform: translateX(-100%); }
    70%, 100% { transform: translateX(100%); }
}

/* REMOVED: .header-title and .dashboard-subnav - now using unified header with inline nav */

/* Gradient text utility - 3-color gradient like main site hero */
.gradient-text {
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--violet-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active:has(~ .modal-overlay.active) {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: rgba(10, 10, 25, 0.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-header {
    padding: 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--gold);
}

/* Gradient title for specific modals */
#manualBookingModal .modal-header h3,
#detailsModal .modal-header h3,
#confirmModal .modal-header h3 {
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
    padding-bottom: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 0 1 auto;
    min-height: 0;
    isolation: isolate;
}

/* Manual Booking Modal - ensure it sizes to content without extra gap */
#manualBookingModal .modal {
    height: auto;
    max-height: 90vh;
}



#manualBookingModal .modal-body {
    padding-bottom: 30px;
}

#manualBookingModal .form-section:last-child {
    margin-bottom: 0;
}

#manualBookingModal .form-section:last-child .form-section-card {
    padding-bottom: 8px;
}

#manualBookingModal .form-section-card > *:last-child {
    margin-bottom: 0 !important;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--violet-light), var(--gold));
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--violet-light);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 0 0 16px 16px;
}

/* Destructive actions stick to the left edge; constructive actions to the
   right (default flex-end). Works via auto margin so the convention holds
   with any number of buttons. */
.modal-footer .btn-cancel-booking,
.modal-footer .btn-decline-action,
.modal-footer .btn-delete,
.modal-footer .btn-danger {
    margin-right: auto;
}

/* Glass dropdowns inside modals - ensure clickability */
.modal .glass-dropdown {
    position: relative;
    z-index: 10;
    overflow: hidden; /* Prevent absolutely positioned menu from extending scroll area - we use clones to body */
}

.modal .glass-dropdown-trigger {
    position: relative;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
}

.modal .form-group {
    position: relative;
    z-index: 1;
}

/* Form Sections - used in Add Manual Booking modal */
.form-section {
    margin-bottom: 24px;
}

.form-section:last-child {
    margin-bottom: 0 !important;
}

.form-section-heading {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
}

.form-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    padding-bottom: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

/* Remove bottom margin/padding from last items in modal to prevent extra space */
.modal-body > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.form-section-card > *:last-child {
    margin-bottom: 0 !important;
}

.form-section-card > .form-row:last-child .form-group {
    margin-bottom: 0 !important;
}

/* Specifically target the last form-section's card to have tighter bottom */
.form-section:last-child .form-section-card {
    padding-bottom: 16px;
}

/* Ensure the last form-row in the appointment section has no extra space */
.form-section:last-child .form-section-card > .form-row:last-child {
    margin-bottom: 0;
}

/* Add-on checkbox list (matches booking widget glass toggle style) */
.addons-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.addon-checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.08));
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.addon-checkbox-item:hover {
    border-color: var(--violet-light, #a78bfa);
    background: rgba(167, 139, 250, 0.12);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.addon-checkbox-item.checked {
    border-color: var(--violet-light, #a78bfa);
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Hide native checkbox, use custom glass toggle */
.addon-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.addon-checkbox-item::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    border: 2px solid rgba(167, 139, 250, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-checkbox-item:hover::before {
    border-color: var(--violet-light, #a78bfa);
    background: rgba(167, 139, 250, 0.1);
}

.addon-checkbox-item.checked::before {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-color: var(--violet-light, #a78bfa);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.addon-checkbox-item.checked::after {
    content: '';
    position: absolute;
    left: 1rem;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.addon-checkbox-item .addon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.addon-checkbox-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cream, #faf7f2);
}

.addon-checkbox-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--violet-light, #a78bfa);
    white-space: nowrap;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--violet-light);
}

.form-group label.addon-checkbox-item {
    display: flex;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--glass-bg);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.details-card textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
}

.form-group select {
    background: var(--dark-surface);
    cursor: pointer;
}

/* Hide number spinner arrows in form inputs */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--violet-light);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.form-group select:focus {
    background: var(--dark-elevated);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Breed Autocomplete */
.modal .breed-autocomplete-container {
    position: relative;
    z-index: 10;
}

.breed-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.breed-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breed-option:first-child {
    border-radius: 11px 11px 0 0;
}

.breed-option:last-child {
    border-bottom: none;
    border-radius: 0 0 11px 11px;
}

.breed-option:only-child {
    border-radius: 11px;
}

.breed-option:hover,
.breed-option.highlighted {
    background: rgba(167, 139, 250, 0.25);
    color: white;
}

.breed-name {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.breed-name strong {
    color: var(--violet-light);
}

.breed-size {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.breed-size-small {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.breed-size-medium {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

.breed-size-large {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

.breed-size-extra_large {
    background: rgba(220, 38, 38, 0.2);
    color: #FCA5A5;
}

.breed-size-indicator {
    display: none;
    margin-top: 0.5rem;
}

.breed-size-indicator .breed-size {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
}

.breed-autocomplete-container.no-autocomplete .breed-autocomplete-dropdown,
.breed-autocomplete-container.no-autocomplete .breed-size-indicator {
    display: none !important;
}

/* Customer Suggestion Autocomplete */
.customer-suggestion-dropdown {
    position: fixed;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    z-index: 99999;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.customer-suggestion-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-suggestion-option:first-child {
    border-radius: 11px 11px 0 0;
}

.customer-suggestion-option:last-child {
    border-bottom: none;
    border-radius: 0 0 11px 11px;
}

.customer-suggestion-option:only-child {
    border-radius: 11px;
}

.customer-suggestion-option:hover,
.customer-suggestion-option.highlighted {
    background: rgba(167, 139, 250, 0.25);
}

.customer-suggestion-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.customer-suggestion-details {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 2px;
}

.customer-loaded-indicator {
    display: none;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #6EE7B7;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.customer-loaded-indicator.visible {
    display: block;
    opacity: 1;
}

/* Button Styles — matches .action-btn pattern from customers page */
.btn-cancel,
.btn-save,
.btn-decline-action,
.btn-danger,
.btn-success,
.btn-gold {
    padding: 10px 20px;
    min-width: 110px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-cancel:hover,
.btn-save:hover,
.btn-decline-action:hover,
.btn-danger:hover,
.btn-success:hover,
.btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-cancel {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.btn-save {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(139, 92, 246, 0.2));
    border-color: rgba(167, 139, 250, 0.4);
    color: #a78bfa;
}

.btn-decline-action,
.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.btn-gold {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.3), rgba(232, 201, 160, 0.2));
    border-color: rgba(212, 165, 116, 0.4);
    color: #d4a574;
}

/* Reschedule Modal */
.reschedule-hint {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.reschedule-conflict {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.btn-cancel-booking {
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-cancel-booking:hover {
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--violet-glow);
}

.add-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Toast Notification — positioned near last click by JS */
.toast {
    position: fixed;
    padding: 12px 20px;
    background: rgba(26, 26, 46, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    display: none;
    z-index: 2000;
    white-space: pre-line;
    max-width: min(380px, calc(100vw - 16px));
    text-align: center;
    line-height: 1.4;
    font-size: 14px;
}

.toast.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.toast.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.toast.visible {
    display: block;
    animation: toastFadeIn 0.3s ease;
}

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


/* Cards - More transparent like main site */
.card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: visible;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.status-badge.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.declined,
.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-badge.no_show {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.55);
}

/* Navigation — all tabs freely navigable (locked mode uses input interception instead) */

/* Upgrade Navigation Link */
.dashboard-nav a.nav-upgrade {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-nav a.nav-upgrade:hover {
    background: none;
    -webkit-text-fill-color: var(--gold-light);
    color: var(--gold-light);
}

.dashboard-nav a.nav-upgrade::after {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Access Denied Overlay */
.access-denied-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 165, 116, 0.25) 0%, transparent 50%),
        var(--dark-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.access-denied {
    text-align: center;
    padding: 48px 40px;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.access-denied::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.access-denied-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.access-denied h2 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
}

.access-denied p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.access-denied .upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.access-denied .upgrade-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-primary);
    font-size: 15px;
}

.access-denied .upgrade-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #34d399;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.access-denied-price {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.access-denied .upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 4px 15px var(--violet-glow);
}

.access-denied .upgrade-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

.access-denied .back-link {
    display: block;
    margin-top: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.access-denied .back-link:hover {
    color: var(--violet-light);
}

/* Upgrade Modal */
.upgrade-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.upgrade-modal {
    background: rgba(26, 26, 46, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.upgrade-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.upgrade-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.3s;
}

.upgrade-modal .modal-close:hover {
    color: var(--text-primary);
}

.upgrade-modal-icon {
    margin-bottom: 16px;
    color: var(--violet-light, #a78bfa);
}

.upgrade-modal h2 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
}

.upgrade-modal p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.upgrade-modal .upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.upgrade-modal .upgrade-features li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-primary);
    font-size: 14px;
}

.upgrade-modal .upgrade-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #34d399;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.upgrade-modal-price {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.upgrade-modal .upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 4px 15px var(--violet-glow);
}

.upgrade-modal .upgrade-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

.upgrade-modal .secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.upgrade-modal .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Bundle highlight in upgrade modal */
.bundle-highlight-modal {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.bundle-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.bundle-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light, #e8c9a0);
    margin-bottom: 4px;
}

.bundle-price {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #a78bfa, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.bundle-includes {
    font-size: 13px;
    color: rgba(248, 248, 248, 0.6);
    margin-bottom: 12px;
}

.bundle-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.3)) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.bundle-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.4)) !important;
}

.or-divider-modal {
    color: rgba(248, 248, 248, 0.5);
    font-size: 13px;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Field locked hint */
.field-locked {
    position: relative;
}

.upgrade-hint {
    font-size: 13px;
    color: #fbbf24;
    margin-top: 6px;
    font-style: italic;
}

/* ==========================================================================
   SECTION LOCKED OVERLAY - For Basic Tier
   Show sections as visible but locked (darkened with lock overlay)
   ========================================================================== */

/* Section locked state - content visible but not interactive */
.settings-section.section-locked {
    position: relative;
    /* Remove parent backdrop-filter so child lock badge blur works */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.section-locked .settings-section-content {
    pointer-events: none;
    user-select: none;
}

/* Click catcher over locked section */
.section-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    cursor: pointer;
    z-index: 5;
}

/* Lock card shown on locked sections - frosted glass */
.section-lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 36px;
    background: rgba(72, 59, 116, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    max-width: 360px;
}

/* Gradient top line - matches welcome card header */
.section-lock-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), var(--gold, #d4a853), rgba(167, 139, 250, 0.4), transparent);
    border-radius: 16px 16px 0 0;
}

.section-lock-badge:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.section-lock-badge .lock-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.section-lock-badge .lock-text {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    text-align: center;
}

.section-lock-badge .lock-subtext {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 10px 28px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    transition: all 0.2s;
}

.section-lock-badge:hover .lock-subtext {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

/* Tier badge in header */
.tier-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
}

.tier-badge.basic {
    background: rgba(107, 114, 128, 0.3);
    border: 1px solid rgba(107, 114, 128, 0.5);
    color: #9ca3af;
}

.tier-badge.pro {
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: var(--violet-light);
}

.tier-badge.premium {
    background: rgba(212, 165, 116, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.5);
    color: var(--gold-light);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .dashboard-header .container {
        flex-direction: column;
        gap: 16px;
    }

    .header-brand {
        width: 100%;
        justify-content: center;
    }

    .dashboard-nav {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 6px;
        row-gap: 2px;
    }

    .dashboard-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Mobile nav reorder for thumb reach (least→most used top→bottom, Bookings last) */
    .dashboard-nav a[data-nav="reviews"]      { order: 1; }
    .dashboard-nav a[data-nav="customers"]    { order: 2; }
    .dashboard-nav a[data-nav="settings"]     { order: 3; }
    .dashboard-nav a[data-nav="availability"] { order: 4; }
    .dashboard-nav a[data-nav="profile"]      { order: 5; }
    .dashboard-nav a[data-nav="services"]     { order: 6; }
    .dashboard-nav a[data-nav="marketing"]    { order: 7; }
    .dashboard-nav a[data-nav="textback"]     { order: 8; }
    .dashboard-nav a[data-nav="reports"]      { order: 9; }
    .dashboard-nav a[data-nav="bookings"]     { order: 10; }

    /* Centre Bookings (last link) when it's alone in its row (10 links / 3 cols = 1 orphan) */
    .dashboard-nav a[data-nav="bookings"] {
        grid-column: 2;
    }

    /* REMOVED: Mobile styles for secondary nav - now using unified header */

    .container {
        padding: 0 16px;
    }

    .access-denied {
        padding: 32px 24px;
    }

    .access-denied h2 {
        font-size: 24px;
    }

    .upgrade-modal {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   BOOKINGS PAGE STYLES
   ========================================================================== */

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 16px;
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-btn.today-btn {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: white;
    box-shadow: 0 4px 12px var(--violet-glow);
}

.nav-btn.today-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--violet-glow);
}

.week-range {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 220px;
    text-align: center;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-secondary);
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.view-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: white;
    box-shadow: 0 4px 12px var(--violet-glow);
}

/* Week Calendar */
.week-calendar {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(167, 139, 250, 0.1);
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    position: relative;
}

/* Top accent bar — always present via ::before, colour set by JS or class */
.week-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cal-accent, transparent);
    z-index: 20;
}

.week-calendar.staff-gradient-border::before {
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.week-calendar .calendar-grid {
    line-height: normal;
}

/* Calendar Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    margin: 0;
    padding: 0;
    border-spacing: 0;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-table .time-col {
    width: 70px;
}

.calendar-table thead {
    background: transparent;
}

.calendar-table thead th {
    padding: 12px 8px;
    text-align: center;
    background: transparent;
    font-weight: normal;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.calendar-table tfoot td {
    padding: 12px 8px;
    text-align: center;
    background: transparent;
    font-weight: normal;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.calendar-table tfoot td.alt-bg {
    background: rgba(255, 255, 255, 0.06);
}

.calendar-table tfoot td.time-col {
    border-right: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.calendar-table tfoot td.today {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
    position: relative;
}

.calendar-table tfoot td.today::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.calendar-table tfoot td.today.alt-bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
}

.calendar-table thead th.alt-bg {
    background: rgba(255, 255, 255, 0.03);
}

.calendar-table thead th.time-col {
    border-right: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.calendar-table thead th.today {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
    position: relative;
}

.calendar-table thead th.today::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.calendar-table thead th.today.alt-bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
}

.day-name {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.day-date {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.calendar-table thead th.today .day-date {
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-table .time-labels {
    background: transparent;
    vertical-align: top;
    padding: 0;
    border-right: 1px solid rgba(167, 139, 250, 0.2);
}

.time-label {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.time-label.alt-bg {
    background-color: rgba(255, 255, 255, 0.03);
}

.time-label.first-hour {
    border-top: none;
}

.calendar-table .day-column {
    position: relative;
    vertical-align: top;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}


.calendar-table .day-column.alt-bg {
    background-color: rgba(255, 255, 255, 0.10);
}

/* Today column gets the gradient background */
.calendar-table .day-column.today {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 165, 116, 0.35) 0%, transparent 55%),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(124, 58, 237, 0.3), inset 0 -1px 0 rgba(212, 165, 116, 0.2);
}

.day-grid {
    position: relative;
    width: 100%;
}

.grid-line {
    height: 15px;
    border-top: 1px solid transparent;
}

.grid-line.hour {
    border-top: 2px solid var(--glass-border);
}

.grid-line.half {
    border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.grid-line.quarter {
    border-top: 1px dotted rgba(167, 139, 250, 0.1);
}

.grid-line:first-child {
    border-top: none;
}

/* Staff pip row - dedicated table row above the grid */
.staff-pip-row td {
    padding: 0;
}

.staff-pip-row .staff-pips {
    display: flex;
}

.staff-pip-row .staff-pip-cell {
    flex: 1;
    padding: 4px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--staff-border);
    border-bottom: 1px solid var(--staff-border);
}

.staff-pip-row .staff-pip-cell + .staff-pip-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Staff Sub-Columns Overlay - "All Staff" side-by-side view */
.staff-columns-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 4;
}

.staff-column {
    flex: 1;
    position: relative;
    min-width: 0;
}

.staff-column + .staff-column {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-col-pip {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--staff-color);
    box-shadow: 0 0 6px var(--staff-border);
}

.staff-column .booking-block {
    left: 2px;
    right: 2px;
    padding: 4px 6px;
    border-radius: 8px;
    overflow: hidden;
}

.staff-column .booking-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--staff-color), transparent);
    border-radius: 8px 8px 0 0;
}

.staff-column .booking-block-service {
    font-size: 9px;
}

.staff-column .booking-block-breed,
.staff-column .booking-block-pet,
.staff-column .booking-block-owner {
    font-size: 8px;
}

/* Colour dot on staff filter buttons */
.staff-color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .staff-col-header {
        font-size: 7px;
        padding: 2px 2px;
        letter-spacing: 0;
    }

    .staff-column .booking-block {
        left: 1px;
        right: 1px;
        padding: 2px 3px;
    }

    .staff-column .booking-block-service {
        font-size: 8px;
    }

    .staff-column .booking-block-breed,
    .staff-column .booking-block-pet,
    .staff-column .booking-block-owner {
        display: none;
    }
}

/* Booking Blocks - Glassmorphic Style */
.booking-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 10px;
    padding: 8px 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.booking-block:hover {
    transform: scale(1.02);
    z-index: 6;
}

.booking-block.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(180, 110, 8, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.booking-block.pending:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(180, 110, 8, 0.4));
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.booking-block.confirmed {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.5);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.booking-block.confirmed:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.25);
}

.booking-block.has-conflict {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.booking-block.declined,
.booking-block.cancelled {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(180, 50, 110, 0.25));
    border: 1px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.booking-block.completed {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.35), rgba(75, 80, 95, 0.25));
    border: 1px solid rgba(107, 114, 128, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Post-groom notes written — visually recede so the groomer can tell at a
   glance which bookings she's already reconciled. Hover restores full
   saturation so the details stay legible. */
.booking-block.has-post-notes {
    opacity: 0.55;
    filter: saturate(0.65);
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.booking-block.has-post-notes:hover {
    opacity: 1;
    filter: saturate(1);
}

/* Paid pill — gold marker in the top-right of a booking block when the
   groomer has marked payment_status='paid'. Small enough to sit alongside
   the service/breed/pet text without crowding. */
/* Paid and no-app-notification markers, right-aligned in one row at the
   BOTTOM of a booking block. Top-right still clashed: the service name is a
   full-width line with ellipsis, so a long title runs underneath anything up
   there. The lower right is empty on a normal booking, since the text lines
   fill downwards from the top and only reach the bottom on tall blocks.
   Grouped so the two markers cannot overlap each other. */
.booking-block-markers {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
    z-index: 2;
}

.booking-paid-pill {
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8c9a0 0%, #d4a574 100%);
    color: #2b1d08;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* No-push pill. Tells the groomer, without opening the client list, that app
   reminders and earlier-slot alerts will not reach this booking's customer. */
.booking-no-push-pill {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.booking-no-push-pill svg {
    width: 10px;
    height: 10px;
}

/* Pending-queue variant: inline with the customer name, not absolute. */
.pending-no-push {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #f87171;
    font-size: 10px;
    font-weight: 600;
    vertical-align: 1px;
}

.pending-no-push svg {
    width: 10px;
    height: 10px;
}

.booking-block-service {
    font-weight: 600;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #d4a574;
}

.booking-block-breed {
    opacity: 0.95;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.booking-block-pet {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    color: #c4b5fd;
}

.booking-block-owner {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    color: #c4b5fd;
    opacity: 0.75;
}

.booking-block-staff {
    opacity: 0.85;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    color: var(--gold);
}

/* Staff badge on pending items */
.pending-staff-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(167, 139, 250, 0.2);
    color: var(--violet-light);
    border: 1px solid rgba(167, 139, 250, 0.3);
    margin-left: 4px;
    vertical-align: middle;
}

/* Staff badge on booking detail modal */
.booking-staff-badge {
    display: inline-block;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(167, 139, 250, 0.15);
    color: var(--violet-light);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

/* Staff filter card - mirrors .calendar-header */
.staff-filter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.staff-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.staff-filter-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-filter-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.staff-filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.staff-filter-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: white;
    box-shadow: 0 4px 12px var(--violet-glow);
}

/* Blocked Slot Styles - Soft gradient overlay for unavailable times */
.blocked-slot-block {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
        rgba(26, 26, 46, 0.55);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blocked-slot-block.clickable {
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s;
}

.blocked-slot-block.clickable:hover {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.18) 0%, transparent 60%),
        rgba(26, 26, 46, 0.6);
    border-color: rgba(167, 139, 250, 0.45);
}

.blocked-slot-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(167, 139, 250, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.blocked-slot-block.full-day {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
        rgba(26, 26, 46, 0.55);
}

.blocked-slot-block.closed-day {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        rgba(26, 26, 46, 0.5);
    pointer-events: none;
}

/* Per-staff closed overlay within sub-columns — uses staff colour */
.staff-column .blocked-slot-block.staff-closed {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
        rgba(26, 26, 46, 0.55);
    z-index: 5;
    pointer-events: none;
}

/* Month View Overlay */
/* ---- Month View Overlay ---- */
.month-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.month-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.month-overlay.active {
    display: flex;
}

.month-calendar {
    background: rgba(10, 10, 25, 0.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.month-calendar-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.month-calendar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.month-calendar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.month-calendar-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.month-calendar-body {
    padding: 20px 24px;
}

.month-calendar-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 0 0 16px 16px;
}

.month-calendar-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.month-title {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.month-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--glass-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.month-nav-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border-color: rgba(167, 139, 250, 0.4);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.month-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    background: rgba(124, 58, 237, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.month-day-header:last-of-type {
    border-right: none;
}

/* Alternating column headers (Tue, Thu, Sat) */
.month-day-header:nth-child(7n+2),
.month-day-header:nth-child(7n+4),
.month-day-header:nth-child(7n+6) {
    background: rgba(167, 139, 250, 0.2);
}

.month-day {
    min-height: 90px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    position: relative;
    color: var(--text-primary);
    padding: 4px 5px;
    background: rgba(124, 58, 237, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alt-bg for day cells (Tue, Thu, Sat columns) */
.month-grid > .month-day:nth-child(7n+2),
.month-grid > .month-day:nth-child(7n+4),
.month-grid > .month-day:nth-child(7n+6) {
    background: rgba(167, 139, 250, 0.12);
}

.month-day:hover {
    background: rgba(255, 255, 255, 0.12);
}

.month-day.other-month {
    opacity: 0.4;
}

.month-day.today {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.1));
}

.month-day.today .month-day-num {
    color: var(--violet-light);
}

.month-day.selected {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
}

.month-day-num {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1;
}

.month-day.today .month-day-num {
    font-weight: 700;
}

/* Booking event entries inside day cells */
.month-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex: 1;
}

.month-event {
    font-size: 10px;
    line-height: 1.3;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-secondary);
}

.month-event.pending {
    background: rgba(212, 165, 116, 0.15);
    color: var(--gold);
}

.month-event.completed {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.month-event.blocked {
    background: rgba(139, 92, 246, 0.22);
    color: var(--text-secondary);
    font-style: italic;
}

.month-event-more {
    font-size: 10px;
    color: var(--text-muted);
    padding: 1px 4px;
    font-style: italic;
}

/* Dots fallback for mobile */
.month-day .booking-dots {
    display: none;
    gap: 2px;
    margin-top: 2px;
}

.booking-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-light);
}

.booking-dot.pending {
    background: var(--warning-color);
}

.booking-dot.confirmed {
    background: var(--success-color);
}

.booking-dot.blocked {
    background: linear-gradient(135deg, var(--violet-deep), #BE185D);
}

.month-day.has-full-block {
    background:
        radial-gradient(ellipse at 40% 30%, rgba(167, 139, 250, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse at 60% 70%, rgba(212, 165, 116, 0.12) 0%, transparent 70%),
        rgba(124, 58, 237, 0.14);
}

.month-day.has-time-block:not(.has-full-block) {
    background:
        linear-gradient(
            to bottom,
            transparent 60%,
            rgba(109, 40, 217, 0.1) 60%
        ),
        rgba(124, 58, 237, 0.08);
}

/* Mobile: compact month view with dots instead of event text */
@media (max-width: 768px) {
    .month-calendar {
        max-width: 100%;
        padding: 16px;
    }
    .month-day {
        min-height: 44px;
        padding: 4px 2px;
        align-items: center;
    }
    .month-day-num {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .month-day-events {
        display: none;
    }
    .month-day .booking-dots {
        display: flex;
    }
}

/* Pending Actions Panel */
.pending-panel {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    display: inline-block;
    min-width: 400px;
    max-width: 100%;
}

.pending-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 16px 0;
    padding: 12px 20px;
    margin: -20px -20px 16px -20px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.pending-panel h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.pending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pending-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.pending-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
    box-shadow: 0 4px 12px var(--violet-glow);
    transform: translateY(-1px);
}

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

.pending-customer {
    font-weight: 600;
    color: var(--text-primary);
}

.pending-datetime {
    font-size: 13px;
    color: var(--text-secondary);
}

.pending-extras {
    font-size: 12px;
    color: var(--violet-light);
    margin-top: 2px;
}

.pending-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pending-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pending-duration {
    color: var(--violet-light);
    font-weight: 500;
}

.pending-price {
    color: #34d399;
    font-weight: 600;
}

.pending-clash-warning {
    font-size: 12px;
    font-weight: 600;
    color: #FBBF24;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pending-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pending-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pending-btn.confirm {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.pending-btn.confirm:hover {
    background: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.pending-btn.decline {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pending-btn.decline:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.pending-btn.view {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    padding: 8px 20px;
}

.pending-btn.view:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--violet-glow);
}

/* Booking Conflicts Panel */
.conflicts-panel {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: inline-block;
    min-width: 400px;
    max-width: 100%;
}

.conflicts-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f87171;
    margin: 0 0 16px 0;
    padding: 12px 20px;
    margin: -20px -20px 16px -20px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(239, 68, 68, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(239, 68, 68, 0.15) 0%, transparent 60%),
        #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.conflicts-panel h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f87171, #FBBF24, #f87171, transparent);
}

.conflicts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.conflict-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.conflict-item:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

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

.conflict-customer {
    font-weight: 600;
    color: var(--text-primary);
}

.conflict-datetime {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.conflict-overlap {
    font-size: 12px;
    font-weight: 600;
    color: #FBBF24;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Add Booking Button */
.add-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--violet-glow);
    transition: all 0.3s;
}

.add-booking-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 4px 12px var(--violet-glow);
}

/* Form row for manual booking */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Booking Details Modal */
.booking-details-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.booking-details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-details-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.booking-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.booking-detail-label {
    color: var(--text-secondary);
}

.booking-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Booking Details Cards - styled to match Review Booking sections */
.details-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.details-card:last-child {
    margin-bottom: 0;
}

.details-card-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}

.details-card-value {
    font-size: 14px;
    color: var(--text-primary);
}

/* Status badges for dark theme */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.status-badge.confirmed {
    background: rgba(167, 139, 250, 0.3);
    color: var(--violet-light);
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.3);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.declined,
.status-badge.cancelled {
    background: rgba(236, 72, 153, 0.3);
    color: #F472B6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.status-badge.completed {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.status-badge.no_show {
    background: rgba(245, 158, 11, 0.3);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.55);
}

/* Booking Summary - Review Modal */
.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Override styles.css card styling */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: unset;
    max-width: unset;
    width: 100%;
}

.booking-summary-section {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.booking-summary-section:last-child {
    /* No special handling needed */
}

.booking-summary-section-title {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.booking-summary-row {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.booking-summary-label {
    font-size: 13px;
    color: var(--violet-light);
    min-width: 80px;
    flex-shrink: 0;
}

.booking-summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.booking-summary-value a {
    color: var(--violet-light) !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.booking-summary-value a:hover {
    opacity: 0.8;
}

.booking-summary-duration {
    background: rgba(167, 139, 250, 0.2);
    color: var(--violet-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.booking-summary-price {
    color: var(--gold);
    font-weight: 600;
}

.booking-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-summary-total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.booking-summary-notes {
    font-size: 14px;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--violet-light);
}

/* Confirm Duration Section - Glassmorphic */
.confirm-duration-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.confirm-duration-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--violet-light);
    margin-bottom: 8px;
}

.confirm-duration-section select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.confirm-duration-section select:focus {
    outline: none;
    border-color: var(--violet-light);
}

.confirm-duration-section small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--cream);
}

/* ==========================================================================
   SERVICES PAGE STYLES
   ========================================================================== */

.services-container {
    max-width: 700px;
    margin: 0 auto;
}

.services-section {
    margin-bottom: 40px;
}

.services-section h2 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.service-card:hover {
    border-color: var(--violet-light);
    box-shadow: 0 8px 32px var(--violet-glow);
}

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

.service-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.service-actions {
    display: flex;
    gap: 8px;
}

.service-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-action-btn.edit {
    background: rgba(167, 139, 250, 0.2);
    color: var(--violet-light);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.service-action-btn.edit:hover {
    background: rgba(167, 139, 250, 0.3);
}

.service-action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.service-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

.service-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.price-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.price-size {
    font-size: 12px;
    color: var(--violet-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.service-duration {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Add-ons Section */
.addon-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.addon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.addon-card:hover {
    border-color: var(--violet-light);
    box-shadow: 0 8px 32px var(--violet-glow);
}

.addon-info {
    flex: 1;
}

.addon-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.addon-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.addon-price {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 16px;
}

/* ==========================================================================
   AVAILABILITY PAGE STYLES
   ========================================================================== */

.availability-container {
    max-width: 700px;
    margin: 0 auto;
}

.availability-section {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: visible;
}

.availability-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.availability-section h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
}

.day-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.day-name-col {
    width: 100px;
    font-weight: 600;
    color: var(--text-primary);
}

.day-toggle {
    margin-right: 20px;
}

.day-times {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

.time-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.time-input:focus {
    outline: none;
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.time-separator {
    color: var(--text-muted);
}

.day-closed {
    color: var(--text-muted);
    font-style: italic;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex: 0 0 48px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border-color: rgba(167, 139, 250, 0.4);
}

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

/* Block Time Off Section */
.blocked-slots-list {
    margin-top: 16px;
}

.blocked-slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 8px;
}

.blocked-slot-info {
    flex: 1;
}

.blocked-slot-date {
    font-weight: 600;
    color: var(--text-primary);
}

.blocked-slot-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.blocked-slot-reason {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.blocked-slot-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.blocked-slot-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   PROFILE PAGE STYLES
   ========================================================================== */

.profile-container {
    max-width: 700px;
    margin: 0 auto;
}

.profile-section {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: visible;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.profile-section h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   SETTINGS PAGE STYLES
   ========================================================================== */

.settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.settings-section {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: visible;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.settings-section.booking-disabled-highlight {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
}

.settings-section.booking-disabled-highlight::before {
    background: linear-gradient(90deg, transparent, #f87171, #ef4444, #f87171, transparent);
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
    padding: 16px 24px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.settings-section h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.settings-label {
    flex: 1;
}

.settings-label h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.settings-label p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.settings-control {
    flex-shrink: 0;
}

/* Number input for settings */
.settings-number-input {
    width: 80px;
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
}

.settings-number-input:focus {
    outline: none;
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Responsive adjustments for page-specific styles */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        padding: 16px;
    }

    .calendar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .week-range {
        font-size: 18px;
        min-width: auto;
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 4px;
    }

    .calendar-table .time-col {
        width: 45px;
    }

    .calendar-table thead th {
        padding: 8px 2px;
    }

    .time-label {
        font-size: 10px;
        padding-right: 4px;
        padding-left: 4px;
        justify-content: center;
    }

    .modal-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
    }

    .modal-footer .btn-cancel,
    .modal-footer .btn-gold,
    .modal-footer .btn-cancel-booking,
    .modal-footer .btn-save,
    .modal-footer .btn-decline-action,
    .modal-footer .btn-danger,
    .modal-footer .btn-success {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pending-panel,
    .conflicts-panel {
        min-width: auto;
        width: 100%;
    }

    .pending-item,
    .conflict-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pending-actions {
        width: 100%;
        margin-top: 12px;
    }

    .service-prices {
        grid-template-columns: repeat(2, 1fr);
    }

    .day-row {
        flex-wrap: wrap;
    }

    .day-times {
        width: 100%;
        margin-top: 12px;
    }

    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   SERVICES PAGE - PETS ACCEPTED SECTION
   ========================================================================== */

.pets-accepted-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 48px;
    overflow: visible;
    position: relative;
}

.pets-accepted-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.pets-accepted-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
    padding: 16px 24px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        #1a1a2e;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.pets-accepted-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.pets-accepted-content {
    padding: 24px;
}

.pets-accepted-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.pets-section-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pets-section-label .icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.pets-section-label .icon svg {
    vertical-align: middle;
}

.pet-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

/* Two-column grid for qualifications and facilities */
#qualificationsGroup,
#facilitiesCheckboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    #qualificationsGroup,
    #facilitiesCheckboxes {
        grid-template-columns: 1fr;
    }
}

.pet-checkbox-item,
.form-group .pet-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    margin-bottom: 0;
}

.pet-checkbox-item:hover {
    border-color: var(--violet-light);
    box-shadow: 0 4px 12px var(--violet-glow);
    transform: translateY(-1px);
}

.pet-checkbox-item.checked {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--violet-light);
    box-shadow: 0 4px 12px var(--violet-glow);
}

.pet-checkbox-item input[type="checkbox"] {
    display: none;
}

.pet-checkbox-tick {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: var(--glass-bg);
}

.pet-checkbox-tick svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.2s;
}

.pet-checkbox-item.checked .pet-checkbox-tick {
    background: linear-gradient(135deg, var(--violet-deep), var(--violet-light));
    border-color: transparent;
}

.pet-checkbox-item.checked .pet-checkbox-tick svg {
    opacity: 1;
}

.pet-checkbox-label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pet-checkbox-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.pets-save-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--violet-glow);
    transition: all 0.3s;
}

.pets-save-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

.pets-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   SERVICES PAGE - BREED PRICING
   ========================================================================== */

.breed-pricing-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 4px;
    margin-bottom: 20px;
}

.breed-overrides-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(212, 165, 116, 0.35);
    color: #d4a574;
    margin-left: 8px;
    vertical-align: middle;
}

/* Breed Pricing Panel */
.breed-pricing-panel {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.breed-pricing-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.breed-pricing-panel h3 {
    background: linear-gradient(90deg, #a78bfa 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.breed-panel-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.breed-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.breed-search-wrap input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.breed-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: none;
}

.breed-search-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.breed-search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.breed-search-wrap input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.5);
}

.breed-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.breed-suggestions::-webkit-scrollbar { width: 6px; }
.breed-suggestions::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.breed-suggestions::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.3); border-radius: 3px; }
.breed-suggestions::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.5); }

.breed-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.breed-suggestion-item:hover {
    background: rgba(167, 139, 250, 0.25);
    color: white;
}

.breed-search-existing {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    margin-left: 8px;
}

.breed-size-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: capitalize;
}

.breed-size-tag.breed-size-small {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.breed-size-tag.breed-size-medium {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.breed-size-tag.breed-size-large {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.breed-size-tag.breed-size-extra_large {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

/* Breed Summary Cards */
.breed-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.breed-no-overrides {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

.breed-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #d4a574;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    flex: 0 1 auto;
}

.breed-summary-card:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}

.breed-summary-info {
    display: flex;
    align-items: center;
}

.breed-summary-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.breed-summary-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breed-summary-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.breed-summary-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    line-height: 1;
}

.breed-summary-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Breed Edit Panel */
.breed-edit-panel {
    padding: 0;
    margin-top: 16px;
}

.breed-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.breed-edit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.breed-edit-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.breed-edit-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.breed-edit-table-wrap {
    margin-bottom: 24px;
}

.breed-edit-table-wrap h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4a574;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breed-edit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    margin: 0;
}

.breed-edit-table th {
    text-align: left;
    padding: 8px 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(212, 165, 116, 0.1) 100%);
    line-height: 1.4;
    vertical-align: bottom;
}
.breed-edit-table th:first-child { border-top-left-radius: 10px; }
.breed-edit-table th:last-child { border-top-right-radius: 10px; }

.breed-th-unit {
    font-size: 0.6rem;
    color: rgba(212, 165, 116, 0.6);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Column widths: service name gets space, data columns compact */
.breed-edit-table th:nth-child(1),
.breed-edit-table td:nth-child(1) { padding-left: 14px; }
.breed-edit-table th:nth-child(1) { width: 40%; }
.breed-edit-table th:nth-child(2),
.breed-edit-table th:nth-child(4) { width: 14%; text-align: center; }
.breed-edit-table th:nth-child(3) { width: 16%; text-align: center; padding-right: 12px; }
.breed-edit-table th:nth-child(5) { width: 16%; text-align: center; }

/* Vertical dividers between all data columns */
.breed-edit-table th:nth-child(n+2),
.breed-edit-table td:nth-child(n+2) { border-left: 1px solid rgba(255, 255, 255, 0.06); }

.breed-edit-table td {
    padding: 6px 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.breed-edit-table tbody tr:last-child td {
    padding-bottom: 14px;
    border-bottom: none;
}

.breed-edit-table td:nth-child(2),
.breed-edit-table td:nth-child(3),
.breed-edit-table td:nth-child(4),
.breed-edit-table td:nth-child(5) {
    text-align: center;
}

.breed-standard-price {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.breed-edit-table input {
    width: 100%;
    max-width: 80px;
    padding: 6px 4px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    text-align: center;
}

.breed-edit-table input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.breed-edit-table input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.5);
}

/* Hide number spinner arrows */
.breed-edit-table input[type="number"]::-webkit-inner-spin-button,
.breed-edit-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.breed-edit-table input[type="number"] {
    -moz-appearance: textfield;
}

.breed-edit-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.breed-save-btn {
    padding: 8px 24px;
    font-size: 0.875rem;
}

/* Responsive: breed edit table */
@media (max-width: 600px) {
    .breed-edit-table th:nth-child(4),
    .breed-edit-table td:nth-child(4) {
        display: none;
    }
    .breed-summary-card {
        min-width: 100%;
    }
}

/* ==========================================================================
   SERVICES PAGE - BREED EXCLUSIONS
   ========================================================================== */

.breed-exclusion-panel {
    margin-top: 12px;
    margin-bottom: 20px;
}

.excluded-breeds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.excluded-breed-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.8125rem;
}

.excluded-breed-tag .breed-size-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

.excluded-breed-tag .breed-size-small { background: rgba(167, 139, 250, 0.2); color: #a78bfa; }
.excluded-breed-tag .breed-size-medium { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.excluded-breed-tag .breed-size-large { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.excluded-breed-tag .breed-size-extra_large { background: rgba(220, 38, 38, 0.2); color: #f87171; }

.excluded-breed-remove {
    background: none;
    border: none;
    color: #f87171;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.excluded-breed-remove:hover {
    color: #fca5a5;
}

/* ==========================================================================
   SERVICES PAGE - SERVICE & ADDON LISTS
   ========================================================================== */

.page-title {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

/* Add Button */
.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--violet-glow);
    transition: all 0.3s;
    font-size: 14px;
}

.add-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

.add-btn span {
    font-size: 18px;
    font-weight: 700;
}

/* Service Card Button Icons */
.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

/* Additional contact rows (extra phone / email entries under a primary input).
   Used by customer edit modal (customers.html) and walk-in booking modal (bookings.html). */
.additional-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.additional-contact-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.additional-contact-row input {
    flex: 1;
}

.btn-remove-contact {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.btn-remove-contact:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-add-contact {
    align-self: flex-start;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px dashed rgba(167, 139, 250, 0.4);
    border-radius: 6px;
    color: var(--violet-light, #a78bfa);
    font-size: 0.8125rem;
    cursor: pointer;
}

.btn-add-contact:hover {
    background: rgba(167, 139, 250, 0.25);
}

.btn-add-contact[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-edit {
    background: rgba(167, 139, 250, 0.2);
    color: var(--violet-light);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.btn-edit:hover {
    background: rgba(167, 139, 250, 0.3);
    transform: translateY(-1px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Pricing Grid (for service cards) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.price-cell {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.price-duration {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   SERVICES PAGE - PRICING TABLE (Modal)
   ========================================================================== */

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
}

.pricing-table th:nth-child(n+2),
.pricing-table td:nth-child(n+2) { border-left: 1px solid rgba(255, 255, 255, 0.06); }

.pricing-table th,
.pricing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-table th {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(212, 165, 116, 0.1) 100%), rgba(26, 26, 46, 0.5);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}
.pricing-table th:first-child { border-top-left-radius: 10px; }
.pricing-table th:last-child { border-top-right-radius: 10px; }
.pricing-table tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.pricing-table tbody tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.pricing-table td {
    color: var(--text-primary);
}

.pricing-table td small {
    color: var(--text-muted) !important;
}

.pricing-table input {
    width: 100%;
    max-width: 90px;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-align: center;
}

/* Hide number spinner arrows */
.pricing-table input[type="number"]::-webkit-inner-spin-button,
.pricing-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pricing-table input[type="number"] {
    -moz-appearance: textfield;
}

.pricing-table input::placeholder {
    color: var(--text-muted);
}

.pricing-table input:focus {
    outline: none;
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* ==========================================================================
   SERVICES PAGE - EMPTY STATE
   ========================================================================== */

.empty-state {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    padding: 24px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================================================
   CONFIRM MODAL
   ========================================================================== */

.confirm-modal {
    max-width: 420px;
    text-align: center;
}

.confirm-icon {
    margin-bottom: 12px;
}

.confirm-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.btn-delete-confirm {
    padding: 10px 24px;
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete-confirm:hover {
    background: rgba(239, 68, 68, 0.5);
    color: #fee2e2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   SERVICES PAGE - TEMPLATE CARDS
   ========================================================================== */

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.template-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: left;
}

.template-card:hover {
    border-color: var(--violet-light);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px var(--violet-glow);
    transform: translateY(-2px);
}

.template-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--violet-light);
}

.template-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.template-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-card-price {
    font-size: 13px;
    font-weight: 600;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service list section grouping */
.services-section-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4a574;
    margin: 20px 0 8px;
    padding-left: 2px;
    width: 100%;
}

.services-section-label:first-child {
    margin-top: 0;
}

/* Template section grouping */
.template-sections {
    margin-top: 16px;
}

.template-section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 16px 0 8px;
    padding-left: 2px;
}

.template-sections .template-section-label:first-child {
    margin-top: 0;
}

/* "Start from scratch" button row */
.template-scratch-row {
    margin-top: 16px;
    text-align: center;
}

.template-scratch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.template-scratch-btn:hover {
    color: var(--text-primary);
    border-color: var(--violet-light);
    background: rgba(124, 58, 237, 0.08);
}

/* "Use Template" button variant */
.template-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: none;
}

.template-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--violet-light);
    box-shadow: 0 4px 15px var(--violet-glow);
}

/* Templates panel (dropdown panel when groomers have existing services) */
.templates-panel {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow);
}

.templates-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.templates-panel-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Services page responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pet-checkboxes {
        flex-direction: column;
    }

    .pet-checkbox-item {
        width: 100%;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   AVAILABILITY PAGE - ADDITIONAL STYLES
   ========================================================================== */

.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--violet-glow);
}

.save-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    box-shadow: 0 8px 25px var(--violet-glow);
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Info Card */
.info-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px 32px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Schedule Container - the containing card for all days */
.schedule-container {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* When inside settings-section, remove card styling from containers (avoid card-in-card) */
.settings-section .info-card {
    margin: 20px 24px 0;
    max-width: none;
}

#blockedSection .info-card {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.settings-section .schedule-container,
.settings-section .blocked-slots-container {
    /* Remove card styling - the settings-section is already the card */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    /* Layout */
    padding: 0 24px 24px;
    margin: 20px 0 0;
    max-width: none;
    overflow: visible;
}

#scheduleGrid,
#hoursScheduleGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.day-row {
    display: grid;
    grid-template-columns: 170px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: visible;
    position: relative;
}

.day-row .day-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-toggle {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.day-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slots {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input {
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 14px;
    width: 110px;
    transition: all 0.3s;
    background: rgba(26, 26, 46, 0.6);
    color: var(--text-primary);
}

.time-input:focus {
    outline: none;
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.time-input:disabled {
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: not-allowed;
}

.time-separator {
    color: var(--text-muted);
    font-weight: 500;
}

.closed-label {
    color: var(--text-muted);
    font-style: italic;
}

/* Button Row */
.button-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Title - 3-color gradient like main site hero */
.section-title {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#weeklySection,
#bankHolidaysSection {
    max-width: 600px;
}

#blockedSection {
    width: fit-content;
    max-width: 900px;
}

/* Blocked Slots Container - standalone fallback (overridden by .settings-section context above) */
.blocked-slots-container {
    padding: 0 24px 24px;
    margin: 20px 0 0;
}


.add-block-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 16px;
    align-items: flex-end;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
}

.block-section-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 20px 24px 12px;
}

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

/* Reason dropdown needs more width than time pickers */
.add-block-form #blockReason + .glass-dropdown {
    min-width: 190px;
}

/* Date input takes available space on first row */
.add-block-form .form-group:first-child {
    flex: 0 0 auto;
}

.add-block-form .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-block-form .form-group input[type="date"] {
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    height: 42px;
    box-sizing: border-box;
}

.add-block-form .form-group input[type="date"]:hover {
    border-color: var(--violet-light);
}

.add-block-form .form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Time picker container */
.time-picker-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-picker-separator {
    font-size: 18px;
    font-weight: 600;
    color: var(--violet-light);
}

/* Glass dropdowns inside time picker */
.time-picker-container .glass-dropdown {
    width: 58px;
    min-width: 58px;
    flex-shrink: 0;
}

.time-picker-container .glass-dropdown-trigger {
    box-sizing: border-box;
    width: 58px;
    padding: 10px 3px;
    min-height: 40px;
    gap: 4px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Ensure modal time pickers are clickable */
.modal .time-picker-container .glass-dropdown {
    position: relative;
    z-index: 20;
}

.modal .time-picker-container .glass-dropdown-trigger {
    pointer-events: auto;
    z-index: 21;
}

/* ========================================
   GLASS DROPDOWN SYSTEM
   Unified dropdown styling for all pages
======================================== */


/* ========================================
   GLASS DROPDOWN (Native Select Replacement)
   For full-width form dropdowns
======================================== */

.glass-dropdown {
    position: relative;
    min-width: 160px;
}

/* Make inline with other glass dropdowns */
.glass-dropdown.inline {
    display: inline-block;
}

.glass-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.glass-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
}

.glass-dropdown.open .glass-dropdown-trigger {
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

.glass-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.glass-dropdown.open .glass-dropdown-arrow {
    transform: rotate(180deg);
}

.glass-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.glass-dropdown.open .glass-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-dropdown-option {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown-option:last-child {
    border-bottom: none;
}

.glass-dropdown-option:hover {
    background: rgba(167, 139, 250, 0.25);
    color: white;
}

.glass-dropdown-option.selected {
    background: rgba(124, 58, 237, 0.2);
    color: var(--violet-light);
    font-weight: 500;
}

.glass-dropdown-option:first-child {
    border-radius: 11px 11px 0 0;
}

.glass-dropdown-option:last-child {
    border-radius: 0 0 11px 11px;
}

.glass-dropdown-option:only-child {
    border-radius: 11px;
}

/* Scrollbar styling for glass dropdown */
.glass-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.glass-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0; /* Keep scrollbar within rounded corners */
}

.glass-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 3px;
}

.glass-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.5);
}

/* Hide original selects when replaced */
select.glass-replaced {
    display: none !important;
}

/* Limit dropdown width in form groups for cleaner appearance */
.form-group .glass-dropdown {
    max-width: 280px;
}

/* Slot interval dropdown needs more room for longer option text */
/* Ensure containers allow dropdown menus to overflow */
.card,
.service-card,
.profile-section,
.form-section-card {
    overflow: visible !important;
}

.form-group,
.form-row,
.time-picker-container {
    overflow: visible;
}

/* ========================================
   GLASS CALENDAR (Native Date Input Replacement)
   Custom glassmorphic date picker
======================================== */

.glass-calendar {
    position: relative;
    display: inline-block;
    min-width: 160px;
}

.glass-calendar-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 160px;
}

.glass-calendar-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--violet-light);
}

.glass-calendar.open .glass-calendar-trigger {
    border-color: var(--violet-light);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

.glass-calendar-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.glass-calendar-popup {
    width: 280px;
    background: rgba(10, 10, 25, 0.2);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.15);
    overflow: hidden;
    animation: glassCalendarFadeIn 0.2s ease;
}

@keyframes glassCalendarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 46, 0.5);
}

.glass-calendar-month-year {
    font-weight: 600;
    font-size: 15px;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-calendar-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.glass-calendar-nav:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--violet-light);
    color: var(--cream);
}

.glass-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px 12px 8px;
    gap: 4px;
}

.glass-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.glass-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 12px 12px;
    gap: 4px;
}

.glass-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.glass-calendar-day:not(.disabled):hover {
    background: rgba(167, 139, 250, 0.25);
    color: white;
}

.glass-calendar-day.disabled {
    color: transparent;
    cursor: default;
}

.glass-calendar-day.today {
    border: 1px solid var(--violet-light);
    color: var(--violet-light);
}

.glass-calendar-day.selected {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    color: white;
    font-weight: 600;
    border: 1px solid var(--violet-light);
    box-shadow: 0 2px 8px var(--violet-glow);
}

.glass-calendar-day.today.selected {
    background: linear-gradient(135deg, var(--violet-deep), var(--violet-light));
}

.glass-calendar-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 46, 0.4);
}

.glass-calendar-today,
.glass-calendar-clear {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.glass-calendar-today {
    background: rgba(167, 139, 250, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: white;
}

.glass-calendar-today:hover {
    background: rgba(167, 139, 250, 0.35);
}

.glass-calendar-clear {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.glass-calendar-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Hide original date inputs when replaced */
input[type="date"].glass-replaced {
    display: none !important;
}

/* Limit calendar width in form groups */
.form-group .glass-calendar {
    max-width: 200px;
}

.blocked-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
}

.blocked-slots-list:empty {
    display: none;
}

.blocked-slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.blocked-slot-item:hover {
    border-color: var(--violet-light);
}

.blocked-slot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blocked-slot-date {
    font-weight: 600;
    color: var(--text-primary);
}

.blocked-slot-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.blocked-slot-title {
    color: var(--violet-light);
    font-size: 14px;
    font-style: italic;
}

.delete-block-btn {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-block-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.no-blocked-slots {
    text-align: center;
    padding: 12px 16px;
    color: var(--text-muted);
    font-style: italic;
}

/* Unsaved Changes Banner */
.unsaved-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: var(--text-primary);
    padding: 12px 28px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(167, 139, 250, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.unsaved-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tighten horizontal padding on availability cards */
.page-availability .settings-section .info-card {
    margin: 16px 16px 0;
    padding: 12px 16px;
}

.page-availability .schedule-container {
    padding: 16px 24px 24px;
}

.page-availability .blocked-slots-container {
    padding: 0 16px 16px;
}

/* Availability responsive */
@media (max-width: 768px) {
    .page-availability .settings-section .info-card {
        margin: 12px 10px 0;
        padding: 10px 12px;
    }

    .page-availability .schedule-container {
        padding: 10px;
    }

    .page-availability .blocked-slots-container {
        padding: 0 10px 10px;
    }

    .day-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .day-row .day-name {
        justify-content: flex-start;
    }

    .time-slots {
        padding-left: 0;
    }

    .time-input-group {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .time-picker-container .glass-dropdown {
        width: 52px;
        min-width: 52px;
    }

    .time-picker-container .glass-dropdown-trigger {
        width: 52px;
        padding: 8px 2px;
        min-height: 36px;
        font-size: 13px;
    }

    .add-block-form {
        flex-wrap: wrap;
    }

    .add-block-form .form-group {
        width: 100%;
    }

    /* Start Time and End Time side by side on mobile */
    .add-block-form .form-group:nth-child(3),
    .add-block-form .form-group:nth-child(4) {
        width: auto;
        flex: 1;
    }

    .blocked-slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .delete-block-btn {
        align-self: flex-end;
    }

}

/* Bank holidays: remove the outer wrapper card, keep individual holiday cards */
.bank-holidays-content {
    padding: 16px 24px;
}

#bankHolidaysList {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .bank-holiday-item {
        flex-direction: row;
        align-items: center;
    }

    .bank-holiday-item .blocked-slot-info {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bank-holiday-item .delete-block-btn {
        align-self: auto;
    }
}



@media (max-width: 768px) {
    .bank-holidays-content {
        padding: 10px;
    }
}

/* ==========================================================================
   PAGE-SPECIFIC SETTINGS SECTION OVERRIDES
   ========================================================================== */

.page-profile .settings-section,
.page-settings .settings-section,
.page-availability .settings-section,
.page-customers .settings-section,
.page-marketing .settings-section,
.page-textback .settings-section,
.page-staff .settings-section,
.page-reviews .settings-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-reviews #content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-profile .settings-section:last-of-type,
.page-settings .settings-section:last-of-type,
.page-availability .settings-section:last-of-type {
    margin-bottom: 48px;
}

.section-save-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-save-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.section-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-save-btn.saving {
    opacity: 0.7;
}

.settings-section-content {
    padding: 24px;
    margin: 24px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: visible;
}

/* Flatten inner card - content sits directly in the section */
.page-profile .settings-section-content,
.page-settings .settings-section-content {
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Toggle Group - Settings Page */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.toggle-group > div:first-child {
    flex: 1;
    min-width: 0;
}

.toggle-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-group:first-child {
    padding-top: 0;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
}

.toggle-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pricing-display-group {
    padding-bottom: 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-display-group .toggle-description {
    margin-top: 8px;
}

.toggle-group.danger .toggle-label {
    color: #fca5a5;
}

.toggle-group.danger .toggle-slider {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.toggle-group.danger input:checked + .toggle-slider {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.3));
    border-color: rgba(239, 68, 68, 0.5);
}

/* Business Info Section */
.business-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-name {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard Tier Badges */
.dash-tier-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.dash-tier-basic {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.dash-tier-pro {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(232, 201, 160, 0.15));
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--gold-light);
}

.dash-tier-premium {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(212, 165, 116, 0.15));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: var(--violet-light);
}

/* Short URL Box / Profile URL Box */
.short-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 10px;
    margin-top: 8px;
}

.short-url-box .label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.short-url-box .url {
    color: var(--violet-light);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    cursor: text;
}

.short-url-box .copy-btn {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.short-url-box .copy-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
    transform: translateY(-1px);
}

.short-url-box .copy-btn svg {
    width: 14px;
    height: 14px;
}

.short-url-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* QR Code Button */
.qr-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(248, 248, 248, 0.6);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.qr-code-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}

/* Form Hints */
.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Save Section */
.save-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Preview Section */
.preview-section {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.preview-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--violet-light);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.preview-section a:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: var(--violet-light);
    box-shadow: 0 4px 20px var(--violet-glow);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Info Notice */
.info-notice {
    background: rgba(212, 165, 116, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.info-notice strong {
    color: var(--gold);
}

/* Checkbox Group (for business type) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    color: var(--text-primary);
}

.checkbox-item:hover {
    border-color: var(--violet-light);
}

.checkbox-item.checked {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--violet-light);
}

.checkbox-item input {
    display: none;
}

.checkbox-item .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-item.checked .checkmark {
    background: linear-gradient(135deg, var(--violet-deep), var(--violet-light));
    border-color: transparent;
}

.checkbox-item.checked .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Upgrade Prompt */
.upgrade-prompt {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.upgrade-prompt h4 {
    color: var(--violet-light);
    margin: 0 0 8px 0;
    font-size: 16px;
}

.upgrade-prompt p {
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    font-size: 14px;
}

.upgrade-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--violet-glow);
}

/* Tier-locked state */
.tier-locked .settings-section-content {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   PROFILE PAGE - IMAGE UPLOAD STYLES
   ========================================================================== */

.image-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 16px;
    position: relative;
}

.image-upload-area:hover {
    border-color: var(--violet-light);
    background: rgba(167, 139, 250, 0.1);
}

.image-upload-area.dragover {
    border-color: var(--violet-light);
    background: rgba(167, 139, 250, 0.15);
}

.image-upload-area.has-image {
    border-style: solid;
    padding: 16px;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-text strong {
    color: var(--violet-light);
}

.image-preview-container {
    position: relative;
    display: inline-block;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.hero-preview {
    width: 100%;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.image-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-delete-btn:hover {
    transform: scale(1.1);
    background: #ef4444;
}

/* ==========================================================================
   PROFILE PAGE - GALLERY STYLES
   ========================================================================== */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gallery-grid {
    column-count: 2;
    column-gap: 0.75rem;

}

@media (min-width: 768px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    position: relative;
    margin: 0 0 0.75rem;
    break-inside: avoid;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: grab;
}

.gallery-item:active {
    cursor: grabbing;
}

.gallery-item--ghost {
    opacity: 0.4;
    border: 2px dashed var(--violet-light);
    border-radius: 0.75rem;
}

.gallery-thumb {
    position: relative;
    cursor: pointer;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-thumb .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-thumb:hover .delete-btn {
    opacity: 1;
}

/* Tag chip overlaid at the bottom of each gallery thumb. Shows the breed/pet name
   if the photo is tagged, or a "+ Tag photo" placeholder if not. The whole thumb
   is clickable and opens the edit modal. */
.thumb-tag-chip {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 4px 8px;
    background: rgba(15, 15, 30, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.thumb-tag-chip--empty {
    background: rgba(15, 15, 30, 0.5);
    color: var(--text-muted);
    font-style: italic;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.gallery-thumb:hover .thumb-tag-chip--empty {
    opacity: 1;
}

#galleryTagsVisibleToggle {
    margin-bottom: 12px;
    gap: 16px;
}

/* Let the text column claim the available width and wrap; min-width: 0 is the
   classic flex fix that lets a flex child shrink below its content's intrinsic width. */
#galleryTagsVisibleToggle > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}


/* Gallery tag edit modal */
#galleryTagModal::before {
    /* Slightly stronger backdrop than the shared default — the gallery section
       can have light photo content behind the modal that washes out the text. */
    background: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.gallery-tag-modal {
    max-width: 420px;
    background: rgba(26, 26, 46, 0.2);
}

.gallery-tag-preview {
    width: 100%;
    aspect-ratio: 1;
    max-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.gallery-tag-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-add {
    break-inside: avoid;
    margin: 0 0 0.75rem;
    padding: 2rem 0;
    border: 2px dashed var(--glass-border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.gallery-add:hover {
    border-color: var(--violet-light);
    color: var(--violet-light);
}

.gallery-add.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-add .plus {
    font-size: 24px;
    margin-bottom: 4px;
}

.gallery-add span {
    font-size: 12px;
}

/* File input hidden */
.hidden-file-input {
    display: none;
}

/* Uploading state */
.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.uploading::after {
    content: 'Uploading...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.85);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    z-index: 1;
}

/* ==========================================================================
   PROFILE PAGE - VERIFICATION BANNER
   ========================================================================== */

.verification-banner {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-banner.pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.verification-banner.verified {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.verification-banner.rejected {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.verification-banner .status-icon {
    font-size: 20px;
}

.verification-banner .status-text {
    flex: 1;
}

.verification-banner .status-text strong {
    display: block;
    margin-bottom: 2px;
}

/* Insurance document preview */
.insurance-doc-preview {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

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

.insurance-doc-preview .remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 200px;
    color: var(--text-muted);
}

.upload-placeholder:hover {
    border-color: var(--violet-light);
    color: var(--violet-light);
}

.upload-placeholder .upload-icon {
    font-size: 32px;
}

.upload-placeholder .upload-hint {
    font-size: 12px;
}

/* ==========================================================================
   PROFILE PAGE - UNSAVED CHANGES MODAL
   ========================================================================== */

.unsaved-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.unsaved-modal {
    background: rgba(26, 26, 46, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.unsaved-modal-overlay.active .unsaved-modal {
    transform: scale(1);
}

.unsaved-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-text-3color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unsaved-modal p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.unsaved-modal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.unsaved-modal-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.unsaved-modal-btn.stay {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.unsaved-modal-btn.stay:hover {
    background: rgba(255, 255, 255, 0.12);
}

.unsaved-modal-btn.leave {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.unsaved-modal-btn.leave:hover {
    background: rgba(239, 68, 68, 0.3);
}

.unsaved-modal-btn.save {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    color: white;
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.unsaved-modal-btn.save:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.4));
}

/* Profile page responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   DASHBOARD FOOTER
   ========================================================================== */

.dashboard-footer {
    margin-top: 32px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--gold), var(--violet-light), transparent);
}

.dashboard-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-footer-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.dashboard-footer-links a:hover {
    color: var(--gold);
}

.dashboard-footer-copy {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}

.dashboard-footer-copy a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.dashboard-footer-copy a:hover {
    color: var(--gold);
}

/* ─── Verification Upgrade Progress Banner ─────────────────────────────────── */

.upgrade-progress-banner {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.upgrade-progress-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #d9a045, #7c3aed);
}

.upgrade-banner-header {
    margin-bottom: 1rem;
}

.upgrade-banner-title {
    font-size: 1rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 0.25rem;
}

.upgrade-banner-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.upgrade-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upgrade-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upgrade-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.upgrade-check-icon.status-action {
    background: rgba(217, 160, 69, 0.15);
    color: #d9a045;
}

.upgrade-check-icon.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.upgrade-check-icon.status-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.upgrade-check-icon.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.upgrade-check-content {
    flex: 1;
    min-width: 0;
}

.upgrade-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.upgrade-check-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
}

.upgrade-check-status.status-action {
    color: #d9a045;
}

.upgrade-check-status.status-pending {
    color: #fbbf24;
}

.upgrade-check-status.status-verified {
    color: #10b981;
}

.upgrade-check-status.status-rejected {
    color: #ef4444;
}

/* Live banner (shown when both verified) */
.upgrade-live-banner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    color: #34d399;
    font-size: 0.875rem;
}

.upgrade-live-banner svg {
    flex-shrink: 0;
    color: #10b981;
}

/* Service modal: dog coat-type restriction */
.coat-types-group {
    margin-top: 16px;
}

.coat-types-group .coat-types-help {
    color: var(--text-light);
    font-size: 13px;
    margin: 0 0 10px;
}

.coat-type-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.coat-type-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

/* ─── Upcoming Events (Profile dashboard, Pro/Premium) ─── */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
}

.event-row-thumb {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.event-row-thumb--placeholder {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(212, 165, 116, 0.1));
}

.event-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-row-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-row-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.event-row-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-row-edit {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .event-row {
        flex-wrap: wrap;
    }
    .event-row-edit {
        margin-left: auto;
    }
}

.event-row-interest {
    margin-top: 6px;
    font-size: 0.8rem;
}

.event-row-interest-link {
    background: transparent;
    border: 0;
    padding: 0;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.event-row-interest-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.event-row-interest-link strong {
    color: rgba(255, 255, 255, 0.95);
}

.event-row-interest-empty {
    color: rgba(255, 255, 255, 0.45);
}

.interests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.interests-table th,
.interests-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.interests-table th {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

.interests-table td {
    color: rgba(255, 255, 255, 0.85);
}

.interests-table a {
    color: #a78bfa;
    text-decoration: none;
}

.interests-table a:hover {
    text-decoration: underline;
}
