:root {
    /* Top-Class Color Palette */
    --primary-color: #0f172a; /* Sophisticated Dark Slate */
    --accent-color: #0d9488;  /* Refined Teal */
    --accent-hover: #0f766e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.125rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 2000; /* Always above backdrop and menu */
}

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

header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2100;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav.nav-menu ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

nav.nav-menu ul li a:hover {
    color: var(--accent-color);
    background: var(--bg-page);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav.nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Use percentage instead of vw */
        width: 100%;
        height: 100vh;
        background: white;
        padding: 80px 20px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 2001; /* Above header container content but inside header stacking context */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex; /* Ensure it's visible if it was hidden */
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav.nav-menu.active {
        right: 0;
    }

    nav.nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    nav.nav-menu ul li {
        width: 100%;
        text-align: center;
    }

    nav.nav-menu ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.5rem; /* Larger for mobile overlay */
        font-weight: 700;
        border-radius: 12px;
        color: var(--primary-color);
    }
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500; /* Between header and body content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

/* Time Slot Buttons */
#time_slots button {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

#time_slots button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#time_slots button[style*="background-color: var(--primary-color)"] {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
}

/* Prevent horizontal scroll on narrow devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Media defaults */
img, video {
    max-width: 100%;
    height: auto;
}

/* Text wrapping for long titles and labels */
.service-info h3,
.booking-service-info h4,
.selected-service-item span,
.review-comment {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('hero.jpg') center/cover no-repeat;
    min-height: 500px;
    height: auto;
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 4rem;
    border-radius: 0 0 40px 40px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 3rem 1rem;
        border-radius: 0 0 24px 24px;
        margin-bottom: 2rem;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.hero-content p:first-of-type {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-content p:last-of-type {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    color: var(--accent-color);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Section Headers */
section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.view-all-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--accent-hover);
}

.category-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .category-title h3 {
        font-size: 1.25rem;
    }
}

/* Specific Section Layouts */
.services-preview, .team-section, .reviews-section-wrapper {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .services-preview, .team-section, .reviews-section-wrapper {
        padding: 3rem 0;
    }
}

.services-preview {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-section p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

.btn-white {
    background: white !important;
    color: var(--primary-color) !important;
}

.btn-white:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

    .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-meta-left {
        width: 100%;
    }

    .service-meta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-info {
    margin-bottom: 2rem;
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-info .category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.service-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.service-meta-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.service-card .duration {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.8125rem;
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-info h3 {
        font-size: 1.25rem;
    }

    .service-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .service-meta-left {
        flex-direction: row;
        align-items: baseline;
        gap: 0.75rem;
    }

    .service-card .price {
        font-size: 1.25rem;
    }

    .service-card .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
}

/* Forms */
form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    form {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--bg-page);
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Contact Page */
.contact-section {
    padding: 6rem 1.5rem;
}

.contact-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .contact-title {
        margin-bottom: 2rem;
    }
}

.info-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.info-box h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 5rem 0;
    margin-top: 6rem;
    text-align: center;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
    }
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Services & Category Page */
.all-services {
    padding: 6rem 1.5rem;
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-title {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.services-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .all-services {
        padding: 4rem 1.5rem;
    }
    
    .services-header {
        margin-bottom: 3rem;
    }
    
    .services-title {
        margin-bottom: 0.75rem;
    }
}

.category-section {
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .category-section {
        margin-bottom: 4rem;
    }
}

/* Booking Details Form */
.booking-details-form {
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
}
.my-bookings-section {
    padding: 6rem 1.5rem;
}

.my-bookings-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

@media (max-width: 768px) {
    .my-bookings-section {
        padding: 4rem 1.5rem;
    }
    
    .my-bookings-title {
        margin-bottom: 2rem;
    }
}

.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.booking-card-info {
    margin-bottom: 1.5rem;
}

.appointment-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.booking-card-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.booking-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.booking-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary-color);
}

.booking-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-bookings {
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
    padding: 3rem;
}

.no-bookings a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.category-title {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .category-title {
        margin-bottom: 2rem;
    }
}

/* Success & Confirmation Pages */
.booking-success-section {
    padding: 8rem 1.5rem;
    text-align: center;
}

.success-title {
    color: var(--accent-color);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.success-message {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .booking-success-section {
        padding: 5rem 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Booking Page Layout */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

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

.booking-main h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs span.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Booking Categories */
.booking-categories {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

.booking-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Booking Service Cards */
.booking-service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.booking-service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.booking-service-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.booking-service-info .duration {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.booking-service-info .price {
    font-weight: 800;
    color: var(--accent-color);
}

.add-service-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.add-service-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.add-service-btn.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Booking Sidebar */
.booking-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md);
}

.sidebar-business-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-page);
    border-radius: 12px;
}

.sidebar-text h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.sidebar-rating {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.sidebar-rating span {
    color: #fbbf24;
}

.sidebar-address {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.selected-services-list {
    margin-bottom: 2rem;
    min-height: 100px;
}

.no-services {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.sidebar-total {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-total label {
    font-weight: 700;
    color: var(--text-muted);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    background: #cbd5e1;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: not-allowed;
    transition: all 0.3s;
}

.continue-btn.active {
    background: var(--accent-color);
    cursor: pointer;
}

.continue-btn.active:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Auth Pages */
.auth-section {
    padding: 6rem 1.5rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.auth-subtitle {
    text-align: center;
    margin: -2rem auto 2rem;
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--accent-color);
}

.auth-hint {
    margin: -0.5rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .auth-section {
        padding: 4rem 1.5rem;
    }
    
    .auth-title {
        margin-bottom: 2rem;
    }
}

.service-card {
    animation: fadeIn 0.5s ease backwards;
}

/* Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    background: none;
    box-shadow: none;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.team-img-wrapper {
    position: relative;
    height: 300px;
    background: #f3f4f6;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-img-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-rating-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
}

.team-rating-badge span {
    color: #fbbf24;
}

.team-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

/* Reviews Section */
.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.reviews-summary .stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reviews-summary .stats {
    font-size: 1rem;
    font-weight: 700;
}

.reviews-summary .stats span {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .review-card {
        padding: 0;
    }
}

.review-card {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.125rem;
    border: 1px solid var(--border-color);
}

.review-meta-info {
    display: flex;
    flex-direction: column;
}

.review-customer {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.review-comment {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 0;
    font-style: normal;
}

/* Booking Page Specific UI */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

@media (max-width: 900px) {
    .booking-layout {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .booking-main {
        width: 100%;
        margin-bottom: 2rem;
    }

    .booking-main h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .booking-sidebar {
        width: 100%;
        position: static;
        margin-top: 1rem;
        box-shadow: none;
        border-radius: 12px;
        padding: 1.25rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumbs span.active {
    color: var(--text-main);
    font-weight: 700;
}

/* Booking Categories */
.booking-categories {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

@media (max-width: 480px) {
    .booking-categories {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }
}

.booking-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
}

.category-group h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .category-group h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Booking Service Cards */
.booking-service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    gap: 1rem;
}

.booking-service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.booking-service-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.booking-service-info .duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.booking-service-info .price {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1rem;
}

.add-service-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-service-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.add-service-btn.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

@media (max-width: 480px) {
    .booking-service-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1rem;
    }

    .booking-service-info {
        width: 100%;
    }
    
    .booking-service-info h4 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .add-service-btn {
        width: 100%;
        height: 48px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .add-service-btn::after {
        content: 'Add Service';
        margin-left: 0.5rem;
        font-size: 0.9375rem;
    }
    
    .add-service-btn.selected::after {
        content: 'Selected';
    }
}

/* Booking Sidebar */
.booking-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .booking-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.sidebar-business-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #e2e8f0;
    object-fit: cover;
}

.sidebar-text h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.sidebar-rating {
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-rating span {
    color: #fbbf24;
}

.sidebar-address {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.selected-services-list {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    min-height: 100px;
}

.no-services {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.sidebar-total {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (max-width: 480px) {
    .sidebar-total {
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }
}

.sidebar-total label {
    font-weight: 800;
    font-size: 1.125rem;
}

.sidebar-total .total-amount {
    font-weight: 800;
    font-size: 1.125rem;
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    background: #cbd5e1;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s;
}

.continue-btn.active {
    background: var(--primary-color);
    cursor: pointer;
}
.auth-form {
    min-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Admin Pages */
.admin-page {
    padding: 2.5rem 0 4rem;
}

.admin-page-header {
    margin-bottom: 2rem;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.admin-back-link:hover {
    color: var(--accent-color);
}

.admin-page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.admin-page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 720px;
    line-height: 1.6;
}

.admin-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    animation: fadeIn 0.35s ease;
}

.admin-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.admin-stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
}

.admin-stat-value small {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.admin-calendar-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

.admin-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.admin-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.admin-info-box {
    display: flex;
    gap: 0.75rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 1rem 1.125rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #115e59;
    line-height: 1.5;
}

.admin-info-box strong {
    color: #0f766e;
}

.admin-page form:not(.auth-form) {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.admin-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
}

.admin-schedule-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-schedule-table tbody tr {
    transition: background 0.15s ease;
}

.admin-schedule-table tbody tr:hover {
    background: #f8fafc;
}

.admin-schedule-table tbody tr.is-closed {
    opacity: 0.72;
}

.admin-schedule-table td {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-day-name {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
}

.admin-day-short {
    display: none;
    font-weight: 800;
    color: var(--accent-color);
    width: 2rem;
}

.admin-time-range {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.admin-time-range input[type="time"] {
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-time-range input[type="time"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.admin-time-separator {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.admin-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

.admin-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.admin-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.admin-toggle input:checked + .admin-toggle-slider {
    background: var(--accent-color);
}

.admin-toggle input:checked + .admin-toggle-slider::after {
    transform: translateX(20px);
}

.admin-toggle-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 52px;
}

.admin-toggle input:checked ~ .admin-toggle-label {
    color: #ef4444;
}

.admin-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.admin-btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    border-radius: 10px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

    .admin-day-name {
        display: none;
    }

    .admin-day-short {
        display: inline-block;
    }

    .admin-card {
        padding: 1.25rem;
    }

    .admin-card-actions {
        flex-direction: column;
    }

    .admin-card-actions .btn,
    .admin-card-actions .btn-secondary {
        width: 100%;
    }
}

.admin-form-grid .form-group {
    margin-bottom: 0;
}

.admin-form-grid .form-group input[type="time"],
.admin-form-grid .form-group input[type="date"] {
    width: 100%;
}

.admin-overrides-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-top: 1rem;
}

.admin-overrides-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.admin-overrides-table th {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.875rem 1rem;
    text-align: left;
}

.admin-overrides-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.admin-overrides-table tr:last-child td {
    border-bottom: none;
}

.admin-overrides-table tr:nth-child(even) {
    background: #f8fafc;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-badge-closed {
    background: #fee2e2;
    color: #991b1b;
}

.admin-badge-open {
    background: #dcfce7;
    color: #166534;
}

.admin-btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.admin-btn-remove:hover {
    background: #fef2f2;
}

.admin-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
}

.admin-empty-state p {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.admin-empty-state small {
    font-size: 0.8125rem;
}

.admin-quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-page);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.admin-checkbox-row label {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
}

/* Visual Appointment Calendar */
.admin-visual-calendar .admin-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-calendar-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.admin-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.admin-calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.cal-nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #fff;
}

.cal-today-btn {
    text-decoration: none;
}

.cal-range-label {
    font-size: 1.0625rem;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.cal-view-toggle {
    display: inline-flex;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
}

.cal-view-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
}

.cal-view-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.admin-calendar-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cal-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.cal-legend-treatment {
    background: #fef9c3;
    border: 1px solid #eab308;
}

.cal-legend-buffer {
    background: repeating-linear-gradient(-45deg, #e2e8f0, #e2e8f0 3px, #f1f5f9 3px, #f1f5f9 6px);
    border: 1px solid #cbd5e1;
}

.cal-legend-closed {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.admin-calendar-scroll {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cal-grid {
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(132px, 1fr));
    min-width: 900px;
}

.cal-grid-week {
    min-width: 980px;
}

.admin-visual-calendar-day {
    max-width: 880px;
}

.admin-visual-calendar-week {
    max-width: 100%;
}

/* ── Conflict alert (standalone red banner) ── */
.cal-conflict-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.cal-conflict-alert strong {
    display: block;
    color: #991b1b;
    font-size: 0.9375rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cal-conflict-alert ul {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.55;
}

.cal-conflict-alert li span {
    font-weight: 700;
}

.cal-conflict-day {
    color: #991b1b;
    font-weight: 800;
}

.cal-conflict-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #b91c1c;
    line-height: 1.45;
}

/* ── Overlapping appointments panel (white card) ── */
.cal-conflict-panel {
    padding: 1.25rem 1.25rem 1.375rem;
    margin-bottom: 1rem;
}

.cal-conflict-panel-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #991b1b;
}

.cal-conflict-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.875rem;
}

.cal-conflict-panel-card {
    background: #fffbeb;
    border: 1px solid #d97706;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cal-conflict-panel-date {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #991b1b;
    margin-bottom: 0.125rem;
}

.cal-conflict-panel-time {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #92400e;
}

.cal-conflict-panel-name {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #78350f;
    line-height: 1.2;
    margin: 0.1rem 0;
}

.cal-conflict-panel-service {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a16207;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.4;
}

.cal-conflict-panel-meta {
    font-size: 0.875rem;
    font-weight: 800;
    color: #b45309;
    margin-top: 0.25rem;
}

.cal-conflict-panel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cal-panel-btn {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cal-panel-btn-client {
    background: #fff;
    color: #78350f !important;
    border: 1px solid #fcd34d;
}

.cal-panel-btn-client:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.cal-panel-btn-call {
    background: var(--accent-color);
    color: #fff !important;
}

.cal-panel-btn-call:hover {
    background: var(--accent-hover);
}

.cal-ok-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46;
}

.admin-visual-calendar-day .admin-calendar-scroll {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    min-height: 360px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    -webkit-overflow-scrolling: touch;
}

.admin-visual-calendar-week .admin-calendar-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.cal-grid-day {
    grid-template-columns: 56px 1fr;
    min-width: 100%;
    max-width: 100%;
}

.cal-grid-day .cal-day-column {
    border-right: none;
}

.cal-grid-day .cal-day-body {
    overflow: visible;
    background: #fafbfc;
}

.cal-grid-week .cal-day-body {
    background: #fafbfc;
}

.cal-grid-day .cal-appointment {
    border: 1px solid rgba(217, 119, 6, 0.35);
}

.cal-grid-week .cal-appointment {
    border: 1px solid rgba(217, 119, 6, 0.28);
}

.cal-grid-day .cal-appointment.has-conflict,
.cal-grid-week .cal-appointment.has-conflict {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}

/* Day view timeline — compact cards, full details live in conflict panel above */
.cal-day-card .cal-appt-treatment {
    overflow: hidden;
}

.cal-grid-day .cal-day-card .cal-appt-service {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.cal-grid-day .cal-day-card .cal-appt-meta {
    display: block !important;
    font-size: 0.6875rem;
    margin-top: 0.15rem;
}

.cal-grid-day .cal-day-card .cal-appt-name {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-grid-day .cal-day-card .cal-appt-time {
    font-size: 0.75rem;
    white-space: nowrap;
}

.cal-grid-day .cal-day-card .cal-appt-actions {
    display: none;
}

.cal-grid-day .cal-day-card:hover .cal-appt-actions {
    display: flex;
}

/* Call modal */
body.cal-modal-open {
    overflow: hidden;
}

.cal-call-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cal-call-modal[hidden] {
    display: none !important;
}

.cal-call-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.cal-call-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    width: min(100%, 360px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.cal-call-modal-close-x {
    position: absolute;
    top: 0.75rem;
    right: 0.875rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}

.cal-call-modal-close-x:hover {
    color: #475569;
}

.cal-call-modal-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.cal-call-modal-name {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.cal-call-modal-number {
    margin: 0 0 1.25rem;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.cal-call-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cal-call-modal-dial {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 700;
}

.cal-call-modal-dial.is-ready {
    background: #059669;
}

.cal-call-modal-cancel {
    width: 100%;
    padding: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
}

.cal-day-conflict-badge {
    color: #dc2626;
    font-weight: 700;
}

.cal-conflict-chip {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.125rem 0.35rem;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.2;
}

.cal-time-column {
    position: sticky;
    left: 0;
    z-index: 6;
    border-right: 1px solid var(--border-color);
    background: #f8fafc;
}

.cal-time-body {
    position: relative;
}

.cal-time-header {
    height: 52px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fafbfc;
    z-index: 5;
}

.cal-time-label {
    position: absolute;
    left: 0;
    right: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transform: translateY(-50%);
    line-height: 1;
}

.cal-day-column {
    border-right: 1px solid var(--border-color);
    min-width: 0;
}

.cal-day-column:last-child {
    border-right: none;
}

.cal-day-column.is-today .cal-day-header {
    background: #f0fdfa;
}

.cal-day-header {
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 4;
}

.cal-day-count {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cal-day-name {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.cal-day-date {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-day-date.today-badge {
    background: var(--accent-color);
    color: #fff;
}

.cal-day-body {
    position: relative;
    background: #fafbfc;
}

.cal-appointment {
    position: absolute;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    cursor: default;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cal-appointment:hover {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.cal-grid-day .cal-appointment:hover,
.cal-grid-week .cal-appointment:hover {
    border-color: #ea580c;
}

.cal-grid-day .cal-appointment.has-conflict:hover,
.cal-grid-week .cal-appointment.has-conflict:hover {
    box-shadow: 0 0 0 1px #ef4444, 0 2px 6px rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.cal-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #eef2f7;
    pointer-events: none;
    z-index: 0;
}

.cal-closed-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 1;
}

.cal-legend-conflict {
    background: #fff;
    border: 2px solid #ef4444;
}

.cal-appt-treatment {
    background: #fffbeb;
    border-left: 4px solid #f97316;
    padding: 0.4rem 0.5rem 0.35rem;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.cal-appt-time {
    font-size: 0.75rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.cal-appt-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: #78350f;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-appt-service {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a16207;
    line-height: 1.3;
    margin-top: 0.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-appt-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
    margin-top: 0.25rem;
}

.cal-appt-actions {
    display: flex;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.cal-action-btn {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.15s ease;
}

.cal-action-client {
    background: #fff;
    color: #78350f !important;
    border: 1px solid #fcd34d;
}

.cal-action-client:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.cal-action-call {
    background: var(--accent-color);
    color: #fff !important;
}

.cal-action-call:hover {
    background: var(--accent-hover);
}

.cal-action-call.is-revealed {
    background: #0f172a;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.cal-appt-buffer {
    background: repeating-linear-gradient(-45deg, #e2e8f0 0, #e2e8f0 5px, #f1f5f9 5px, #f1f5f9 10px);
    border-top: 1px dashed #cbd5e1;
    flex-shrink: 0;
    min-height: 4px;
}

.cal-appt-xs .cal-appt-service,
.cal-appt-xs .cal-appt-meta,
.cal-appt-xs .cal-appt-actions,
.cal-appt-sm .cal-appt-service,
.cal-appt-sm .cal-appt-meta {
    display: none;
}

.cal-appt-xs .cal-appt-name,
.cal-appt-sm .cal-appt-name {
    font-size: 0.75rem;
}

.cal-appt-xs .cal-appt-time,
.cal-appt-sm .cal-appt-time {
    font-size: 0.6875rem;
}

.cal-grid-week .cal-appt-actions {
    display: none;
}

.cal-grid-week .cal-appointment:hover .cal-appt-actions {
    display: flex;
}

.cal-grid-week .cal-appt-buffer-label {
    display: none;
}

.cal-appointment.status-pending .cal-appt-treatment {
    background: #fff7ed;
    border-left-color: #f97316;
}

.cal-appointment.status-pending .cal-appt-time,
.cal-appointment.status-pending .cal-appt-name,
.cal-appointment.status-pending .cal-appt-service,
.cal-appointment.status-pending .cal-appt-meta {
    color: #9a3412;
}

.cal-appointment.status-confirmed .cal-appt-treatment {
    background: #fef9c3;
    border-left-color: #eab308;
}

.cal-appointment.status-completed .cal-appt-treatment {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.cal-appointment.status-completed .cal-appt-time,
.cal-appointment.status-completed .cal-appt-name,
.cal-appointment.status-completed .cal-appt-service,
.cal-appointment.status-completed .cal-appt-meta {
    color: #065f46;
}

@media (max-width: 768px) {
    .admin-visual-calendar-day {
        max-width: none;
    }

    .admin-calendar-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cal-grid-week {
        min-width: 900px;
    }

    .cal-range-label {
        width: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Booking category tabs — sticky & improved */
.booking-category-bar {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: linear-gradient(var(--bg-page) 70%, transparent);
    padding: 0.5rem 0 1rem;
    margin-bottom: 0.5rem;
}

.booking-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.booking-categories::-webkit-scrollbar {
    display: none;
}

.booking-categories .category-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.booking-categories .category-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.booking-categories .category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.category-group.is-hidden {
    display: none !important;
}

.category-group.is-active .category-group-title {
    color: var(--accent-color);
}

.category-group-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.booking-category-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Services page category filter */
.services-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin: 0 auto 3rem;
    max-width: 520px;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.services-filter-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.services-filter-control {
    flex: 1;
    min-width: 220px;
}

.category-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.services-empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 1rem;
}

@media (max-width: 560px) {
    .services-filter-bar {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2rem;
    }
}
