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

/* Live background canvas sits behind everything */
#liveBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* All main content above the canvas */
.navbar, .hero, .services, .gallery, .contact, .footer,
.booking-container, .success-container, .auth-container,
.profile-container, .admin-calendar-container, .admin-dash-container,
.toast-container {
    position: relative;
    z-index: 1;
}

:root {
    --primary-color: #D4AF37;
    --secondary-color: #1a1a1a;
    --accent-color: #8B4513;
    --text-color: #2a2a2a;
    --light-bg: #e4ded6;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    --heading-color: #111;
    --nav-bg: #1a1a1a;
    --card-border: #c9c1b6;
    --input-border: #b5b0a8;
    --muted-text: #555;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #D4AF37;
    --secondary-color: #f5f5f5;
    --accent-color: #c4783e;
    --text-color: #e0e0e0;
    --light-bg: #1e1e1e;
    --white: #121212;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --heading-color: #f5f5f5;
    --nav-bg: #0d0d0d;
    --card-border: #333;
    --input-border: #444;
    --muted-text: #aaa;
}

[data-theme="dark"] body {
    background: #121212;
}

[data-theme="dark"] .logo,
[data-theme="dark"] .logo-text {
    color: #f5f5f5;
}

[data-theme="dark"] .logo {
    animation: neonPulseBright 2s ease-in-out infinite;
}

@keyframes neonPulseBright {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(212, 175, 55, 0.5),
            0 0 12px rgba(212, 175, 55, 0.3),
            0 0 24px rgba(212, 175, 55, 0.15);
    }
    50% {
        text-shadow:
            0 0 8px rgba(212, 175, 55, 0.8),
            0 0 20px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3),
            0 0 60px rgba(212, 175, 55, 0.15);
    }
}

[data-theme="dark"] .navbar::after {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6), 0 0 24px rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .nav-menu a {
    color: #f5f5f5;
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
    color: var(--primary-color);
}

[data-theme="dark"] .hamburger span {
    background: #f5f5f5;
}

[data-theme="dark"] .service-card {
    border-color: var(--card-border);
}

[data-theme="dark"] .service-card-booking {
    border-color: var(--card-border);
}

[data-theme="dark"] .service-card-booking:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

[data-theme="dark"] .service-option input[type="radio"]:checked + label .service-card-booking {
    background: #2a2518;
}

[data-theme="dark"] .calendar-day.available:hover {
    background: #2a2518;
}

[data-theme="dark"] .time-slot:hover:not(.booked) {
    background: #2a2518;
}

[data-theme="dark"] .extra-option:hover {
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .extra-option:has(input:checked) {
    background: #2a2518;
}

[data-theme="dark"] .service-option input[type="radio"]:checked + label .service-card-booking {
    background: #2a2518;
}

[data-theme="dark"] .extra-option:has(input:checked) {
    background: #2a2518;
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #1e1e1e;
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .form-group label {
    color: var(--heading-color);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-description {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 0 0 35px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .hero-description {
    color: #e0e0e0;
}

[data-theme="dark"] .calendar-container {
    background: #1a1a1a;
}

[data-theme="dark"] .calendar-day.header {
    color: var(--heading-color);
}

[data-theme="dark"] .time-slot {
    background: #1e1e1e;
    color: var(--text-color);
}

[data-theme="dark"] .time-slot:hover {
    background: #2a2518;
}

[data-theme="dark"] .time-slot.booked {
    background: #2a2a2a;
    color: #666;
}

[data-theme="dark"] .booking-summary {
    background: #1e1e1e;
}

[data-theme="dark"] .booking-summary h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .summary-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .price-summary {
    background: #1a1a1a;
    color: #f5f5f5;
}

[data-theme="dark"] .price-row.deposit {
    color: #f0e6c8;
    border-top-color: #555;
}

[data-theme="dark"] .deposit-note {
    color: #f0e6c8;
}

[data-theme="dark"] .deposit-reminder {
    background: #2a2518;
}

[data-theme="dark"] .payment-note {
    background: #1a2332;
}

[data-theme="dark"] .contact-confirmation {
    background: #1e1e1e;
}

[data-theme="dark"] .contact-confirmation h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .booking-details-copy {
    background: #2a2a2a;
}

[data-theme="dark"] .gallery-placeholder {
    background: #1e1e1e;
    border-color: #444;
}

[data-theme="dark"] .ba-handle-circle svg {
    fill: #fff;
    color: #fff;
}
[data-theme="dark"] .ba-labels span {
    color: var(--muted-text);
}

[data-theme="dark"] .modal-content {
    background: #1e1e1e;
}

[data-theme="dark"] .modal-content h2 {
    color: var(--heading-color);
}

[data-theme="dark"] .modal-content input {
    background: #2a2a2a !important;
    border-color: var(--input-border) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .admin-info {
    background: #1a1a1a;
}

[data-theme="dark"] .admin-section {
    background: #1a1a1a;
}

[data-theme="dark"] .admin-section h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .availability-section,
[data-theme="dark"] .appointments-section {
    background: #1a1a1a;
}

[data-theme="dark"] .blocked-dates-section {
    background: #1a1a1a;
    border-color: rgba(231, 76, 60, 0.3);
}

[data-theme="dark"] .day-schedule {
    background: #222;
}

[data-theme="dark"] .time-inputs input[type="time"] {
    background: #2a2a2a;
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .blocked-date-item {
    background: #222;
}

[data-theme="dark"] .appointment-card {
    background: #222;
}

[data-theme="dark"] .appointment-card h4 {
    color: var(--heading-color);
}

[data-theme="dark"] .appointment-card p {
    color: var(--muted-text);
}

[data-theme="dark"] .appointment-actions {
    background: #1e1e1e !important;
}

[data-theme="dark"] .block-date-form input[type="date"],
[data-theme="dark"] .block-date-form input[type="text"] {
    background: #2a2a2a;
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .step-number {
    background: #333;
    color: #888;
}

[data-theme="dark"] .step-label {
    color: var(--muted-text);
}

[data-theme="dark"] .step.active .step-label {
    color: var(--heading-color);
}

[data-theme="dark"] .prev-btn {
    background: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .prev-btn:hover {
    background: #444;
}

[data-theme="dark"] .next-btn:disabled {
    background: #333;
    color: #666;
}

[data-theme="dark"] .google-signin-btn {
    background: #1e1e1e;
    border-color: #444;
}

[data-theme="dark"] .close {
    color: #888;
}

[data-theme="dark"] .close:hover {
    color: #fff;
}

/* Light Mode Enhancements */
:root:not([data-theme="dark"]) .service-card {
    border-top: 3px solid var(--primary-color);
}

:root:not([data-theme="dark"]) .service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .extra-card {
    border-left: 3px solid var(--primary-color);
    background: #f7f4ef;
}

.about-barber {
    position: relative;
    overflow: hidden;
}

:root:not([data-theme="dark"]) .about-barber {
    background: var(--light-bg);
}

.about-barber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    animation: barberStripeScroll 16s linear infinite;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

:root:not([data-theme="dark"]) .about-barber::before {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(200, 30, 30, 0.04) 0px 12px,
            transparent 12px 24px,
            rgba(30, 60, 180, 0.04) 24px 36px,
            transparent 36px 48px
        );
}

[data-theme="dark"] .about-barber::before {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(200, 50, 50, 0.06) 0px 12px,
            transparent 12px 24px,
            rgba(60, 90, 200, 0.06) 24px 36px,
            rgba(160, 160, 160, 0.03) 36px 48px
        );
}

@keyframes barberStripeScroll {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.about-barber > .container {
    position: relative;
    z-index: 1;
}

:root:not([data-theme="dark"]) .section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

:root:not([data-theme="dark"]) .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}


:root:not([data-theme="dark"]) .reviews {
    background: #f7f4ef;
}

.barber-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: #f5f2ed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.loading-k,
.loading-ng {
    color: #f5f5f5;
}

.loading-i {
    color: #D4AF37;
    font-style: italic;
}

.loading-cuts {
    color: #D4AF37;
    font-style: italic;
}

.loading-bar {
    width: 180px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #f0d060);
    border-radius: 3px;
    animation: loadingFill 2.4s ease-out forwards;
}

@keyframes loadingFill {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4), 0 0 16px rgba(212, 175, 55, 0.2);
    animation: neonSweep 3s ease-in-out infinite;
}

@keyframes neonSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--white);
    cursor: pointer;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 4px rgba(212, 175, 55, 0.3),
            0 0 8px rgba(212, 175, 55, 0.2),
            0 0 16px rgba(212, 175, 55, 0.1);
    }
    50% {
        text-shadow:
            0 0 6px rgba(212, 175, 55, 0.6),
            0 0 14px rgba(212, 175, 55, 0.4),
            0 0 28px rgba(212, 175, 55, 0.2),
            0 0 40px rgba(212, 175, 55, 0.1);
    }
}

.logo-text {
    color: var(--white);
}

.barber-pole {
    display: inline-block;
    background: linear-gradient(
        45deg,
        #FF0000 0%, #FF0000 20%,
        #FFFFFF 27%, #FFFFFF 45%,
        #0000FF 52%, #0000FF 70%,
        #FFFFFF 77%, #FFFFFF 100%
    );
    background-size: 14px 14px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: barberPoleRotate 4s linear infinite;
    will-change: background-position;
    font-style: normal;
    font-weight: 900;
}

@keyframes barberPoleRotate {
    0% { background-position: 0 0; }
    100% { background-position: 14px 14px; }
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.admin-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
}

.k-letter, .ng-text, .cuts-text {
    color: var(--white);
}

.barber-pole-hero {
    display: inline-block;
    background: linear-gradient(
        45deg,
        #FF0000 0%, #FF0000 20%,
        #FFFFFF 27%, #FFFFFF 45%,
        #0000FF 52%, #0000FF 70%,
        #FFFFFF 77%, #FFFFFF 100%
    );
    background-size: 20px 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: barberPoleHeroRotate 4s linear infinite;
    will-change: background-position;
    font-style: normal;
    font-weight: 900;
}

@keyframes barberPoleHeroRotate {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
}

.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.price {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.includes {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-style: italic;
}

.extras-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
    color: var(--heading-color);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.extra-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.extra-card:hover {
    transform: translateX(5px);
}

.cursor-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover .cursor-glow,
.extra-card:hover .cursor-glow {
    opacity: 1;
}

.service-card > *:not(.cursor-glow),
.extra-card > *:not(.cursor-glow) {
    position: relative;
    z-index: 1;
}

.extra-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Barber Bio */
.about-barber {
    padding: 5rem 0;
}

.barber-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.barber-photo {
    width: 200px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.barber-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.barber-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.barber-bio {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.barber-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted-text);
}

@media (max-width: 768px) {
    .barber-card {
        flex-direction: column;
        text-align: center;
    }

    .barber-photo {
        width: 160px;
        height: 190px;
    }

    .barber-stats {
        justify-content: center;
    }
}

/* Gallery */
.gallery {
    padding: 5rem 0;
    background: var(--light-bg);
}

.gallery-subtitle {
    text-align: center;
    color: var(--muted-text);
    margin-bottom: 2rem;
}

.gallery-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed var(--card-border);
}

.admin-note {
    color: #999;
    font-style: italic;
    margin-top: 1rem;
}

/* ==================== PHOTO ALBUM (2-PAGE OPEN BOOK) ==================== */

.album-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Category tabs — vertical bookmarks on the left edge */
.album-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    z-index: 5;
    flex-shrink: 0;
}

.album-tab {
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 0.5rem 0.55rem 0.5rem 0.65rem;
    border-radius: 4px 0 0 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    color: #fff;
    margin-right: -2px;
}

.album-tab:nth-child(1) { background: #D4AF37; }
.album-tab:nth-child(2) { background: #e07b5a; }
.album-tab:nth-child(3) { background: #5ba3e0; }
.album-tab:nth-child(4) { background: #6dc06d; }
.album-tab:nth-child(5) { background: #c06dc0; }
.album-tab:nth-child(6) { background: #e0c55b; }
.album-tab:nth-child(7) { background: #5bbcd4; }

.album-tab.active {
    padding-right: 0.9rem;
    transform: translateX(-4px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.album-tab:not(.active):hover {
    transform: translateX(-2px);
    opacity: 0.9;
}

/* The open 2-page album */
.album {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 780px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 14px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    user-select: none;
    -webkit-user-select: none;
}

/* Center spine */
.album-spine {
    width: 16px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #2a2a2a 0%, #111 30%, #111 70%, #2a2a2a 100%);
    border-radius: 2px;
    box-shadow:
        inset 2px 0 4px rgba(0, 0, 0, 0.4),
        inset -2px 0 4px rgba(0, 0, 0, 0.4);
    position: relative;
}
.album-spine::before,
.album-spine::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #222;
}
.album-spine::before { top: 20px; }
.album-spine::after { bottom: 20px; }

/* Shared page styles */
.album-page {
    position: relative;
    background: #faf8f4;
    flex: 1;
    min-height: 380px;
    overflow: hidden;
}

.album-page--left {
    border-radius: 6px 0 0 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-page--right {
    border-radius: 0 6px 6px 0;
    padding: 20px;
    perspective: 1200px;
}

/* Lined paper */
.album-page-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 27px,
        rgba(0, 0, 0, 0.05) 27px,
        rgba(0, 0, 0, 0.05) 28px
    );
    background-position: 0 19px;
    z-index: 0;
}

/* Left page content */
.album-left-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-left-deco {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    opacity: 0.12;
}

.album-left-deco .album-deco {
    width: 100px;
    height: 100px;
    position: static;
    color: currentColor;
}

.album-left-info {
    text-align: center;
    padding-bottom: 0.5rem;
}

.flipbook-label {
    display: block;
    color: #444;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.album-left-category {
    display: block;
    color: #999;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flipbook-counter {
    text-align: center;
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    z-index: 1;
}

/* Right page: flipbook stage */
.album-page--right .flipbook-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Polaroid photo frame */
.flipbook-page {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #fff;
    padding: 8px 8px 48px 8px;
    border-radius: 2px;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transform-origin: left center;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.flipbook-page--current {
    z-index: 2;
    transform: rotateY(0deg);
}

.flipbook-page--next {
    z-index: 1;
    transform: rotateY(0deg);
    opacity: 0;
}

/* Back-of-page face for seamless rotation */
.flipbook-page.flip-out-forward::after,
.flipbook-page.flip-in-backward::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f3ef 0%, #ebe8e2 100%);
    border-radius: 2px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
}

/* Shadow cast on the revealed page underneath */
.flipbook-page.flip-in-forward::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.12), transparent);
    z-index: 10;
    pointer-events: none;
    animation: pageShadowFade 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
@keyframes pageShadowFade {
    0%   { opacity: 1; }
    60%  { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ---- FORWARD: page turns right-to-left ---- */
.flipbook-page.flip-out-forward {
    z-index: 3;
    animation: pageTurnFwd 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.flipbook-page.flip-in-forward {
    opacity: 1;
    z-index: 1;
}

@keyframes pageTurnFwd {
    0%   { transform: rotateY(0deg);
           box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
    50%  { transform: rotateY(-90deg);
           box-shadow: -15px 0 30px rgba(0,0,0,0.25); }
    100% { transform: rotateY(-180deg);
           box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
}

/* ---- BACKWARD: page returns left-to-right ---- */
.flipbook-page.flip-out-backward {
    z-index: 1;
    opacity: 1;
}
.flipbook-page.flip-in-backward {
    opacity: 1;
    z-index: 3;
    transform: rotateY(-180deg);
    animation: pageTurnBwd 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes pageTurnBwd {
    0%   { transform: rotateY(-180deg);
           box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
    50%  { transform: rotateY(-90deg);
           box-shadow: -15px 0 30px rgba(0,0,0,0.25); }
    100% { transform: rotateY(0deg);
           box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
}

/* Photo inside polaroid */
.flipbook-page img,
.flipbook-page video {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
    border-radius: 1px;
    min-height: 0;
}

.flipbook-page .ba-slider {
    width: 100%;
    flex: 1;
    min-height: 0;
}
.flipbook-page .ba-after,
.flipbook-page .ba-before-clip img {
    height: 100%;
    object-fit: cover;
}

/* "Book This Cut" button in polaroid footer */
.flipbook-book-btn {
    display: block;
    text-align: center;
    background: #D4AF37;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 0;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 6px;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
.flipbook-book-btn:hover {
    background: #e5c243;
    transform: scale(1.02);
}

/* Empty state inside flipbook */
.flipbook-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}
.flipbook-empty-msg {
    color: #888;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.flipbook-empty-sub {
    color: #bbb;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
}

/* Nav arrows — on the right page */
.flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0.7;
}

.flipbook-nav:hover {
    background: #fff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flipbook-nav:disabled {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}

.flipbook-nav--prev { left: calc(50% + 24px); }
.flipbook-nav--next { right: 22px; }

/* ---- Dark mode album ---- */
[data-theme="dark"] .album {
    background: #111;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .album-spine {
    background: linear-gradient(90deg, #1a1a1a 0%, #000 30%, #000 70%, #1a1a1a 100%);
}
[data-theme="dark"] .album-page {
    background: #1e1e1e;
}
[data-theme="dark"] .album-page-lines {
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 27px, rgba(255,255,255,0.04) 27px, rgba(255,255,255,0.04) 28px);
    background-position: 0 19px;
}
[data-theme="dark"] .flipbook-page {
    background: #2a2a2a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .flipbook-page.flip-out-forward::after,
[data-theme="dark"] .flipbook-page.flip-in-backward::after {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
}
[data-theme="dark"] .flipbook-nav {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
    color: #ddd;
}
[data-theme="dark"] .flipbook-nav:hover {
    background: rgba(255,255,255,0.2);
}
[data-theme="dark"] .flipbook-label { color: #ccc; }
[data-theme="dark"] .flipbook-counter { color: #666; }
[data-theme="dark"] .album-left-category { color: #666; }
[data-theme="dark"] .album-left-deco { opacity: 0.06; }
[data-theme="dark"] .album-tab {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .flipbook-book-btn {
    background: #D4AF37;
    color: #000;
}
[data-theme="dark"] .flipbook-empty-msg { color: #777; }
[data-theme="dark"] .flipbook-empty-sub { color: #555; }

/* Before/After slider */
.ba-slider {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.ba-after {
    width: 100%;
    height: auto;
    display: block;
}

.ba-before-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 50%;
}

.ba-before-clip img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.ba-handle-line {
    flex: 1;
    width: 2px;
    background: var(--primary-color);
}

.ba-handle-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.ba-handle-circle svg {
    width: 18px;
    height: 18px;
    fill: #1a1a1a;
    color: #1a1a1a;
}

.ba-labels {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ba-label-before { color: var(--muted-text); }
.ba-label-after { color: var(--primary-color); }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    animation: confirmFadeIn 0.2s ease;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: confirmScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-info {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #fff;
}

.lightbox-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Infinite scroll loader */
.gallery-loader {
    text-align: center;
    padding: 2rem;
}

.gallery-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--card-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: gallerySpinnerSpin 0.8s linear infinite;
}

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

/* Gallery responsive */
@media (max-width: 768px) {
    .album-wrapper {
        max-width: 100%;
    }
    .album {
        max-width: 480px;
    }
    .album-page--left {
        display: none;
    }
    .album-spine {
        display: none;
    }
    .album-page--right {
        border-radius: 6px;
    }
    .album-tab {
        font-size: 0.6rem;
        padding: 0.45rem 0.5rem 0.45rem 0.55rem;
    }
    .flipbook-nav--prev { left: 18px; right: auto; }
    .flipbook-nav--next { right: 18px; }
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .album-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .album-tabs {
        flex-direction: row;
        padding-top: 0;
        margin-bottom: -2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        justify-content: center;
    }
    .album-tabs::-webkit-scrollbar { display: none; }
    .album-tab {
        border-radius: 4px 4px 0 0;
        margin-right: 0;
        margin-bottom: -2px;
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }
    .album-tab.active {
        transform: translateY(-2px);
        padding-right: 0.6rem;
    }
    .album-tab:not(.active):hover {
        transform: translateY(-1px);
    }
    .album {
        max-width: 100%;
        border-radius: 0 0 8px 8px;
        padding: 10px;
    }
    .album-page--right {
        border-radius: 0 0 6px 6px;
        padding: 14px;
        min-height: 320px;
    }
    .flipbook-nav {
        width: 30px;
        height: 30px;
    }
    .flipbook-nav--prev { left: 10px; }
    .flipbook-nav--next { right: 10px; }
}

.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.admin-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reviews */
.reviews {
    padding: 5rem 0;
    background: var(--bg-color);
}

.reviews-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

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

.reviews-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    object-fit: cover;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.review-stars {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.review-comment {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

[data-theme="dark"] .review-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .review-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.contact-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; }
}

.contact .section-title.contact-title {
    color: #f5f5f5;
}

.contact-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Glass contact card */
.contact-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #e0e0e0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.05));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--card-delay, 0) * 0.1s);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: conic-gradient(from 0deg, transparent, var(--card-accent), transparent, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: glowSpin 3s linear infinite;
    animation-play-state: paused;
}

@keyframes glowSpin {
    to { rotate: 360deg; }
}

.contact-card:hover .contact-card-glow {
    opacity: 0.6;
    animation-play-state: running;
}

.contact-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-icon-ring {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover .contact-icon-ring {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.contact-card-text {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #D4AF37;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    transform: translateX(4px);
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.contact-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.08);
}

.contact-card:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 0.1s;
}

/* Map wrapper */
.contact-map-wrapper {
    position: relative;
    animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.contact-map-frame {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 175, 55, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-map-frame:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(212, 175, 55, 0.1);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

/* Contact responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-map-frame {
        min-height: 280px;
    }
    .contact-map-frame iframe {
        min-height: 280px;
    }
    .contact {
        padding: 4rem 0;
    }
}

/* Light mode contact overrides */
:root .contact {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0d0d0d 100%);
}

/* Footer */
.footer {
    background: var(--nav-bg);
    color: #f5f5f5;
    text-align: center;
    padding: 2rem 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    animation: slideDown 0.3s;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

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

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--secondary-color);
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid #ddd;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2rem 0;
}

.google-signin-btn:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.google-signin-btn img {
    width: 24px;
    height: 24px;
}

.modal-note {
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.logout-btn {
    background: #e74c3c;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-section {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.admin-section h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.upload-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.upload-btn:hover {
    transform: translateY(-2px);
}

#imageUpload {
    display: block;
    margin-top: 0.5rem;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.admin-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.delete-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: var(--white);
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.admin-link-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.3s;
}

.admin-link-btn:hover {
    transform: translateY(-2px);
}

/* Booking Page */
.booking-container {
    max-width: 900px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.booking-layout {
    display: flex;
    gap: 2rem;
}

.booking-form {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.booking-sidebar {
    display: none;
}

@media (min-width: 1025px) {
    .booking-container {
        max-width: 1200px;
    }

    .booking-sidebar {
        display: block;
        width: 300px;
        flex-shrink: 0;
    }

    .sidebar-sticky {
        position: sticky;
        top: 100px;
        background: var(--white);
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--card-border);
    }

    .sidebar-sticky h3 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 1rem;
        color: var(--heading-color);
        font-size: 1.2rem;
    }

    .sidebar-item {
        display: flex;
        justify-content: space-between;
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }

    .sidebar-label {
        color: var(--muted-text);
    }

    .sidebar-value {
        font-weight: 600;
        color: var(--heading-color);
        text-align: right;
    }

    .sidebar-divider {
        height: 1px;
        background: var(--card-border);
        margin: 0.5rem 0;
    }

    .sidebar-total .sidebar-value {
        font-size: 1.2rem;
        color: var(--primary-color);
        font-weight: 700;
    }

    .sidebar-deposit {
        text-align: center;
        font-size: 0.8rem;
        color: var(--muted-text);
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #fffbf0;
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    [data-theme="dark"] .sidebar-sticky {
        background: #1a1a1a;
        border-color: #333;
    }

    [data-theme="dark"] .sidebar-deposit {
        background: #2a2518;
        border-color: rgba(212, 175, 55, 0.15);
    }
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.shop-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.shop-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.shop-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.shop-info-item a:hover {
    text-decoration: underline;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.booking-steps::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    z-index: -1;
    width: var(--progress-width, 0%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .booking-steps::before {
    background: #444;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.step.completed .step-number {
    background: #27ae60;
    color: var(--white);
}

.step-label {
    font-size: 0.9rem;
    color: var(--muted-text);
}

.step.active .step-label {
    color: var(--heading-color);
    font-weight: 600;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-step.step-animating {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.form-step.exit-left {
    transform: translateX(-40px);
    opacity: 0;
}

.form-step.exit-right {
    transform: translateX(40px);
    opacity: 0;
}

/* Service Selection */
.service-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-option input[type="radio"] {
    display: none;
}

.service-option label {
    cursor: pointer;
    display: block;
}

.service-card-booking {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-check-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-option input[type="radio"]:checked + label .service-check-indicator {
    transform: scale(1);
}

.service-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.service-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--muted-text);
}

.service-option input[type="radio"]:checked + label .service-card-booking {
    border-color: var(--primary-color);
    background: #fffbf0;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.service-card-booking .service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.includes-small {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-text);
    font-style: italic;
    margin-top: 0.5rem;
}

.extras-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.extra-option {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.extra-option:hover {
    transform: translateX(4px);
    border-left: 3px solid var(--primary-color);
}

.extra-option input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.extra-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.extra-option input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.extra-option:has(input:checked) {
    background: #fffbf0;
    border: 2px solid var(--primary-color);
}

.price-summary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.price-row.total {
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.deposit-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.deposit-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.deposit-breakdown-row.deposit-now {
    color: var(--primary-color);
    font-weight: 600;
}

.deposit-breakdown-row.deposit-later {
    color: #aaa;
}

/* Calendar */
.calendar-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.month-nav {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s;
}

.month-nav:hover {
    transform: scale(1.1);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.calendar-day.header {
    font-weight: 700;
    color: var(--heading-color);
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.available {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.calendar-day.available:hover {
    background: #fffbf0;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.calendar-day.available:active {
    transform: scale(0.95);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    animation: calendarPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes calendarPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.time-slots {
    margin: 2rem 0;
}

.time-slots h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.time-grid,
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.time-slot {
    background: var(--light-bg);
    border: 2px solid transparent;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.time-slot:hover:not(.booked) {
    border-color: var(--primary-color);
    background: #fffbf0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.time-slot:active:not(.booked) {
    transform: translateY(0) scale(0.97);
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    font-weight: 700;
    animation: slotSelect 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slotSelect {
    0% { transform: scale(0.9); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.time-slot.booked {
    background: #eee;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Urgency Badge */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.urgency-badge.urgency-full {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
    animation: none;
}

[data-theme="dark"] .urgency-badge {
    background: #3e2723;
    border-color: #8d6e63;
}

[data-theme="dark"] .urgency-badge.urgency-full {
    background: #3b1515;
    border-color: #795548;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--input-border);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Inline Validation */
.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-right: 40px;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.validation-icon.valid {
    opacity: 1;
}

.validation-icon.invalid {
    opacity: 1;
}

.validation-hint {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s;
}

.validation-hint.show {
    opacity: 1;
}

.validation-hint.error {
    color: #e74c3c;
}

.form-group input.valid {
    border-color: #27ae60;
}

.form-group input.valid:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group input.invalid {
    border-color: #e74c3c;
}

.form-group input.invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.booking-summary {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.booking-summary h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--input-border);
}

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

.summary-item.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
}

/* Payment */
.payment-info {
    margin: 2rem 0;
}

.deposit-reminder {
    background: #fffbf0;
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.deposit-reminder h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-option {
    background: var(--white);
    border: 3px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: #fffbf0;
}

.payment-option img,
.payment-option svg {
    width: 50px;
    height: 50px;
}

.payment-processor {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Stripe Payment Form */
.payment-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    margin: 2rem 0;
}

.payment-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

#payment-form {
    max-width: 500px;
    margin: 0 auto;
}

.stripe-card-element {
    background: var(--light-bg);
    padding: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.stripe-card-element:hover {
    border-color: var(--primary-color);
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.stripe-error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.stripe-payment-request-btn {
    margin-bottom: 0.5rem;
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: #888;
    font-size: 0.85rem;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

#submit-payment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#submit-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#submit-payment .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.terms {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.next-btn,
.prev-btn,
.submit-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.next-btn,
.submit-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    flex: 1;
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.next-btn:disabled,
.submit-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.prev-btn {
    background: #ddd;
    color: var(--secondary-color);
}

.prev-btn:hover {
    background: #ccc;
}

/* Admin Calendar Page */
.admin-calendar-container {
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.back-to-dash {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.back-to-dash:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.calendar-management {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==================== ADMIN CALENDAR WORKSPACE ==================== */
.calendar-workspace {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.workspace-left,
.workspace-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.availability-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.blocked-dates-section {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1.5px solid rgba(231, 76, 60, 0.2);
}

.blocked-dates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blocked-dates-header h3 {
    font-size: 1.05rem;
    color: var(--heading-color);
    margin: 0;
}

.weekly-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-schedule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    flex-wrap: wrap;
}

.day-schedule label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.day-toggle {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.day-name {
    font-weight: 600;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.time-inputs input[type="time"] {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.time-inputs input[type="time"]:disabled {
    background: #f5f5f5;
    color: #999;
}

.save-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}

.save-btn:hover {
    transform: translateY(-2px);
}

.block-date-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.block-date-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.block-date-form input[type="date"],
.block-date-form input[type="text"] {
    padding: 0.55rem 0.7rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    width: 100%;
}

#addBlockBtn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s;
    align-self: stretch;
}

#addBlockBtn:hover {
    background: #c0392b;
}

.blocked-dates-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 200px;
    overflow-y: auto;
}

.blocked-date-item {
    background: var(--light-bg);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #e74c3c;
}

.blocked-date-item strong {
    font-size: 0.85rem;
}

.blocked-date-item p {
    font-size: 0.78rem !important;
    margin-top: 0.15rem !important;
}

.remove-block-btn {
    background: none;
    color: #e74c3c;
    border: 1.5px solid #e74c3c;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.remove-block-btn:hover {
    background: #e74c3c;
    color: white;
}

.appointments-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.appointment-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.appointment-card h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.appointment-card p {
    color: var(--muted-text);
    margin: 0.3rem 0;
}

.no-appointments {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 1.5rem;
        gap: 0.6rem;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.8rem 1.25rem;
        background: #2a2a2a;
        border-radius: 10px;
        color: #f5f5f5;
        font-weight: 600;
        transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        background: var(--primary-color);
        color: #1a1a1a;
        transform: scale(1.03);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    .nav-menu a.active {
        background: var(--primary-color);
        color: #1a1a1a;
    }

    .nav-menu .admin-btn {
        width: 100%;
        padding: 0.8rem 1.25rem;
        border-radius: 4px;
        font-size: 1rem;
        transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    }

    .nav-menu .admin-btn:hover {
        transform: scale(1.03);
    }

    [data-theme="dark"] .nav-menu a {
        background: #2a2a2a;
        color: #f5f5f5;
    }

    [data-theme="dark"] .nav-menu a:hover,
    [data-theme="dark"] .nav-menu a:active,
    [data-theme="dark"] .nav-menu a.active {
        background: var(--primary-color);
        color: #1a1a1a;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .booking-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step-label {
        display: none;
    }

    .service-selection {
        grid-template-columns: 1fr;
    }

    .calendar-management {
        grid-template-columns: 1fr;
    }

    .calendar {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 8px;
    }

    .month-nav {
        padding: 0.75rem 1.25rem;
        font-size: 1.1rem;
    }

    .form-navigation {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .booking-header h1 {
        font-size: 2rem;
    }
}

/* Success Animations */
.success-message {
    background: #27ae60;
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    animation: slideDown 0.3s;
}

.error-message {
    background: #e74c3c;
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    animation: slideDown 0.3s;
}

/* Static Payment Buttons */
.payment-options-static {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cashapp-btn {
    background: linear-gradient(135deg, #00D632 0%, #00B82A 100%);
    color: white;
}

.cashapp-btn:hover {
    border-color: #00D632;
}

.venmo-btn {
    background: linear-gradient(135deg, #008CFF 0%, #0074D9 100%);
    color: white;
}

.venmo-btn:hover {
    border-color: #008CFF;
}

.payment-button-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-button-text strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-button-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.payment-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    color: var(--text-color);
}

.payment-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-confirmation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.contact-confirmation h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.booking-details-copy {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.booking-details-copy p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.copy-details-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-details-btn:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .payment-button {
        padding: 1.25rem;
    }

    .payment-button-text strong {
        font-size: 1rem;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.toast-error {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.toast-info {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #d68910 0%, #f39c12 100%);
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon System */
.service-icon,
.stat-icon,
.confirm-modal-icon {
    line-height: 1;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #fff;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Calendar Day Names */
.calendar-day-name {
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--muted-text);
    padding: 0.5rem 0;
    letter-spacing: 0.05em;
}

/* Calendar Day States */
.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: rgba(212, 175, 55, 0.08);
}

.calendar-day.past {
    color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}

[data-theme="dark"] .calendar-day.past {
    color: #555;
}

.calendar-day.blocked {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    text-decoration: line-through;
    cursor: not-allowed;
    position: relative;
}

[data-theme="dark"] .calendar-day.blocked {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.calendar-day.blocked[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    text-decoration: none;
}

.calendar-day.blocked[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 100;
    pointer-events: none;
}

.calendar-day.closed {
    color: #999;
    cursor: not-allowed;
    position: relative;
}

[data-theme="dark"] .calendar-day.closed {
    color: #555;
}

.calendar-day.closed[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

.calendar-day.closed[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 100;
    pointer-events: none;
}

/* Time Slot Groups */
.time-slot-group {
    margin-bottom: 1.5rem;
}

.time-slot-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--input-border);
}

/* Calendar Loading Spinner */
.calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--muted-text);
}

.calendar-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--input-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: calendarSpin 0.8s linear infinite;
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.1);
}

/* Confirmation Modal */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmFadeIn 0.2s ease;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes confirmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.confirm-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: confirmScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmScaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-modal h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.confirm-modal p {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-btn-cancel,
.confirm-btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    min-width: 100px;
}

.confirm-btn-cancel {
    background: var(--light-bg);
    color: var(--text-color);
}

.confirm-btn-cancel:hover {
    background: var(--input-border);
}

.confirm-btn-danger {
    background: #e74c3c;
    color: #fff;
}

.confirm-btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

[data-theme="dark"] .confirm-modal {
    background: #1e1e1e;
}

/* Contact section animated styles are defined inline with the contact block above */

/* ==================== ADMIN DASHBOARD ==================== */

.admin-dash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 1.5rem 3rem;
}

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

.admin-dash-welcome {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-dash-welcome h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--heading-color);
    margin: 0;
}

.admin-dash-welcome h1 span {
    color: var(--primary-color);
}

.admin-dash-subtitle {
    color: var(--muted-text);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

/* Animated Clipper Icon */
.clipper-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: clipperFloat 3s ease-in-out infinite;
}

.clipper-svg {
    width: 52px;
    height: 52px;
}

.clipper-body {
    fill: var(--primary-color);
}

.clipper-blade-top {
    animation: bladeVibrate 0.15s linear infinite;
    transform-origin: left center;
}

.clipper-blade-bottom {
    animation: bladeVibrate 0.15s linear infinite 0.075s;
    transform-origin: left center;
}

.blade-teeth {
    animation: bladeVibrate 0.15s linear infinite;
}

@keyframes clipperFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(1deg); }
    75% { transform: translateY(2px) rotate(-1deg); }
}

@keyframes bladeVibrate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.5px); }
}

/* Stats Cards */
.admin-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Grid */
.admin-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.dash-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dash-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.dash-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--heading-color);
    margin: 0;
}

.dash-card-body {
    padding: 1.25rem;
}

.dash-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-color);
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.dash-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.dash-file-input {
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    box-sizing: border-box;
}

.dash-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    margin-top: 0.75rem;
}

.upload-mode-tabs {
    display: flex;
    gap: 0;
    margin-top: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 4px;
}

.upload-mode-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.upload-mode-tab.active {
    background: var(--primary-color);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.ba-upload-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.ba-upload-col {
    flex: 1;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.category-chip {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.category-chip input[type="checkbox"] {
    display: none;
}

.category-chip span {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--input-border);
    background: var(--white);
    color: var(--text-color);
    transition: all 0.2s;
}

.category-chip input:checked + span {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
    font-weight: 600;
}

.category-chip:hover span {
    border-color: var(--primary-color);
}

[data-theme="dark"] .category-chip span {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .category-chip input:checked + span {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
}

.admin-gallery-category {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

[data-theme="dark"] .upload-mode-tabs {
    background: #2a2a2a;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.dash-btn:active {
    transform: scale(0.97);
}

.dash-btn-primary {
    background: var(--primary-color);
    color: #1a1a1a;
}

.dash-btn-primary:hover {
    background: #c5a030;
}

.dash-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dash-btn-danger {
    background: #e74c3c;
    color: #fff;
}

.dash-btn-danger:hover {
    background: #c0392b;
}

/* Admin Reviews */
.admin-reviews {
    max-height: 400px;
    overflow-y: auto;
}

.admin-review-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border: 1px solid transparent;
}

.admin-review-pending {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

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

.admin-review-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

[data-theme="dark"] .admin-review-card {
    background: #2a2a2a;
}

[data-theme="dark"] .admin-review-pending {
    background: rgba(212, 175, 55, 0.08);
}

/* Hero Preview */
.hero-preview-box {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 0.75rem;
}

.hero-btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Admin Gallery Grid */
.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
}

.admin-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.admin-gallery-item.dragging {
    opacity: 0.35;
    transform: scale(0.95);
}

.admin-gallery-item.drag-over {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transform: scale(1.03);
}

.gallery-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.admin-gallery-item:hover .gallery-drag-handle {
    opacity: 1;
}

.drag-clone {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    opacity: 0.9;
    transform: rotate(2deg);
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.2rem 0.4rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
}

.gallery-item-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
}

.delete-img-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.15s;
}

.admin-gallery-item:hover .delete-img-btn {
    opacity: 1;
}

.delete-img-btn:hover {
    transform: scale(1.15);
}

.edit-img-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 0.3rem 0;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.3px;
    transition: background 0.2s, padding 0.2s;
    z-index: 2;
}

.edit-img-btn:hover {
    background: #c5a030;
    padding: 0.4rem 0;
}

/* Save Order Button */
.save-order-btn {
    margin-top: 1rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeSlideIn 0.3s ease;
}

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

/* Quick Links */
.dash-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dash-link-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dash-link-btn:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateX(4px);
}

.dash-link-icon {
    font-size: 1.3rem;
    line-height: 1;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .admin-dash-container {
        padding: 80px 1rem 2rem;
    }

    .admin-dash-welcome {
        flex-direction: column;
        text-align: center;
    }

    .admin-dash-welcome h1 {
        font-size: 1.4rem;
    }

    .admin-dash-grid {
        grid-template-columns: 1fr;
    }

    .admin-dash-stats {
        grid-template-columns: 1fr;
    }

    .hero-btn-row {
        flex-direction: column;
    }

    .hero-btn-row .dash-btn {
        width: 100%;
    }
}

/* Dashboard Dark Mode Overrides */
[data-theme="dark"] .stat-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dash-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .dash-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dash-card-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .dash-input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .hero-preview-box {
    background-color: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .dash-link-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .dash-link-btn:hover {
    border-color: var(--primary-color);
    background: #1e1e1e;
}

[data-theme="dark"] .clipper-icon {
    background: #2a2a2a;
    border-color: var(--primary-color);
}

[data-theme="dark"] .delete-img-btn {
    background: rgba(231, 76, 60, 0.95);
}

[data-theme="dark"] .admin-gallery-item {
    border: 1px solid #333;
}

[data-theme="dark"] .admin-gallery-item.drag-over {
    outline-color: var(--primary-color);
}

[data-theme="dark"] .gallery-drag-handle {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== APPOINTMENT ACCORDION ==================== */

.dash-card-wide {
    grid-column: 1 / -1;
}

.appointments-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appt-card {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.appt-card:hover {
    border-color: var(--primary-color);
}

.appt-card.expanded {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.appt-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    gap: 0.75rem;
}

.appt-summary:hover {
    background: var(--light-bg);
}

.appt-summary-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.appt-name {
    font-weight: 600;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.appt-service {
    display: inline-block;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.appt-date,
.appt-time {
    font-size: 0.85rem;
    color: var(--muted-text);
    white-space: nowrap;
}

.appt-toggle {
    font-size: 0.7rem;
    color: var(--muted-text);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.appt-card.expanded .appt-toggle {
    transform: rotate(180deg);
}

.appt-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.appt-card.expanded .appt-details {
    max-height: 500px;
}

.appt-details-inner {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--card-border);
}

.appt-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--card-border);
}

.appt-detail-row:last-of-type {
    border-bottom: none;
}

.appt-detail-label {
    font-weight: 600;
    color: var(--heading-color);
    margin-right: 1rem;
}

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

.appt-actions .dash-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Appointment Accordion — Dark Mode */
[data-theme="dark"] .appt-card {
    border-color: #333;
}

[data-theme="dark"] .appt-card:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .appt-card.expanded {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .appt-summary:hover {
    background: #2a2a2a;
}

[data-theme="dark"] .appt-details-inner {
    border-top-color: #333;
}

[data-theme="dark"] .appt-detail-row {
    border-bottom-color: #333;
}

[data-theme="dark"] .appt-actions {
    border-top-color: #333;
}

/* Appointment Accordion — Responsive */
@media (max-width: 768px) {
    .appt-summary-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .appt-name {
        max-width: 100%;
    }

    .appt-detail-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .appt-detail-row span:last-child {
        color: var(--muted-text);
    }
}

/* ==================== EDIT APPOINTMENT MODAL ==================== */

.edit-modal {
    max-width: 460px;
    text-align: left;
}

.edit-modal .confirm-modal-icon,
.edit-modal h3 {
    text-align: center;
}

.edit-modal-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.25rem !important;
    font-size: 0.95rem;
}

.edit-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.edit-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.edit-modal-field label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-modal-field input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.edit-modal-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Save Button (shared across modals) */
.confirm-btn-save {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    min-width: 100px;
    background: var(--primary-color);
    color: #1a1a1a;
}

.confirm-btn-save:hover {
    background: #c5a030;
    transform: translateY(-1px);
}

/* ==================== SUCCESS POPUP ==================== */

.success-popup {
    max-width: 380px;
}

.success-popup h3 {
    color: #27ae60;
    margin-top: 0.25rem;
}

.success-popup-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    width: 72px;
    height: 72px;
}

.success-checkmark {
    width: 72px;
    height: 72px;
}

.success-checkmark-circle {
    stroke: #27ae60;
    stroke-width: 2;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: successCircle 0.6s ease-in-out forwards;
}

.success-checkmark-check {
    stroke: #27ae60;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successCheck 0.4s 0.4s ease-in-out forwards;
}

@keyframes successCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
    to { stroke-dashoffset: 0; }
}

.success-popup-ok {
    min-width: 120px;
}

/* ==================== MODAL DARK MODE ==================== */

[data-theme="dark"] .edit-modal-field input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .edit-modal-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .success-popup h3 {
    color: #2ecc71;
}

[data-theme="dark"] .success-checkmark-circle,
[data-theme="dark"] .success-checkmark-check {
    stroke: #2ecc71;
}

/* ==================== AUTH PAGE ==================== */

.auth-container {
    max-width: 480px;
    margin: 100px auto 2rem;
    padding: 0 1.5rem;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted-text);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted-text);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--primary-color);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.oauth-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.oauth-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

.oauth-btn.apple-oauth {
    color: var(--text-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--input-border);
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--muted-text);
    white-space: nowrap;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-error {
    color: #e74c3c;
    font-size: 0.9rem;
    display: none;
    margin-bottom: 0.75rem;
}

.forgot-password-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary-color);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

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

/* Auth Page Dark Mode */
[data-theme="dark"] .auth-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .auth-tabs {
    background: #2a2a2a;
}

[data-theme="dark"] .oauth-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .oauth-btn:hover {
    border-color: var(--primary-color);
}

/* ==================== NAV AUTH UI ==================== */

.nav-auth-btn {
    background: var(--primary-color);
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.nav-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.user-menu-toggle:hover {
    border-color: var(--primary-color);
}

.user-menu-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-menu-avatar-img {
    object-fit: cover;
    background: none;
}

.user-menu-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--card-border);
}

.user-dropdown.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.user-dropdown .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.user-dropdown .user-dropdown-item:hover {
    background: var(--light-bg);
    color: #333;
}

.user-dropdown .user-dropdown-signout {
    border-top: 1px solid var(--card-border);
    color: #e74c3c;
}

/* Nav Auth Dark Mode */
[data-theme="dark"] .user-dropdown {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .user-dropdown .user-dropdown-item {
    color: #f5f5f5;
}

[data-theme="dark"] .user-dropdown .user-dropdown-item:hover {
    background: #2a2a2a;
    color: #f5f5f5;
}

[data-theme="dark"] .user-dropdown .user-dropdown-signout {
    border-top-color: #333;
    color: #e74c3c;
}

/* Nav Auth Mobile */
@media (max-width: 768px) {
    .user-menu-toggle {
        width: 100%;
        justify-content: center;
        background: #2a2a2a;
        border-radius: 10px;
        padding: 0.8rem 1.25rem;
        border-color: transparent;
    }

    .user-menu-toggle:hover {
        background: var(--primary-color);
        color: #1a1a1a;
    }

    .user-menu-toggle:hover .user-menu-avatar {
        background: #1a1a1a;
        color: var(--primary-color);
    }

    .user-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        border-radius: 10px;
        overflow: hidden;
    }

    .user-dropdown.active {
        display: flex;
        flex-direction: column;
    }

    .user-dropdown-item {
        justify-content: center;
        background: #2a2a2a;
        color: #f5f5f5;
        border-radius: 10px;
        margin: 0.15rem 0;
    }

    .user-dropdown-item:hover {
        background: var(--primary-color);
        color: #1a1a1a;
    }

    .user-dropdown-signout {
        border-top: none;
        color: #e74c3c;
    }

    .nav-auth-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.25rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    .user-menu-name {
        max-width: none;
    }
}

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

.profile-container {
    max-width: 800px;
    margin: 100px auto 2rem;
    padding: 0 1.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: var(--primary-color);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
}

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

.profile-avatar-upload {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--card-bg);
    transition: transform 0.2s, background 0.2s;
}

.profile-avatar-upload:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--secondary-color);
}

.profile-avatar-upload svg {
    width: 14px;
    height: 14px;
}

.profile-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--heading-color);
    margin: 0;
}

.profile-email {
    color: var(--muted-text);
    margin: 0.25rem 0;
}

.profile-since {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin: 0;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.profile-appointments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-appt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary-color);
    transition: box-shadow 0.2s;
}

.profile-appt-card:hover {
    box-shadow: var(--shadow);
}

.profile-appt-card.profile-appt-past {
    border-left-color: var(--muted-text);
    opacity: 0.8;
}

.profile-appt-card.profile-appt-cancelled {
    border-left-color: #e74c3c;
    opacity: 0.6;
}

.profile-appt-service {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.profile-appt-datetime {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.profile-appt-extras {
    color: var(--muted-text);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.profile-appt-total {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.status-confirmed {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.cancel-appt-btn {
    background: none;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cancel-appt-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.leave-review-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    align-self: center;
}

.leave-review-btn:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.reviewed-badge {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    align-self: center;
    white-space: nowrap;
}

.review-stars-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.review-star {
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.review-star:hover,
.review-star.active {
    color: var(--primary-color);
    transform: scale(1.15);
}

.review-comment-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    background: var(--white);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.review-comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme="dark"] .review-comment-input {
    background: #2a2a2a;
    border-color: #444;
    color: #f5f5f5;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-section-header h2 {
    margin: 0;
}

.profile-edit-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-edit-btn:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.profile-details {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.profile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

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

.profile-detail-label {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.profile-detail-value {
    font-weight: 600;
    color: var(--heading-color);
}

[data-theme="dark"] .profile-details {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .profile-detail-row {
    border-bottom-color: #333;
}

.profile-empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted-text);
    background: var(--light-bg);
    border-radius: 12px;
}

.profile-empty a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.profile-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted-text);
}

.profile-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Profile Dark Mode */
[data-theme="dark"] .profile-header {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .profile-appt-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .profile-appt-card.profile-appt-past {
    border-left-color: #555;
}

[data-theme="dark"] .profile-empty {
    background: #1e1e1e;
}

/* Avatar Crop Modal */
.crop-modal {
    max-width: 360px;
}

.crop-canvas-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.crop-canvas-wrapper canvas {
    cursor: grab;
    display: block;
}

.crop-canvas-wrapper canvas:active {
    cursor: grabbing;
}

.crop-circle-guide {
    display: none;
}

.crop-zoom-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem auto 0.5rem;
    max-width: 280px;
    color: var(--muted-text);
}

.crop-zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.crop-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #1a1a1a;
}

.crop-zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #1a1a1a;
}

[data-theme="dark"] .crop-zoom-slider {
    background: #444;
}

/* Profile Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-appt-card {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .cancel-appt-btn {
        width: 100%;
    }
}

/* ==================== DISCLAIMER MODAL ==================== */

.disclaimer-modal {
    max-width: 440px;
}

.disclaimer-modal h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

.disclaimer-modal p {
    color: var(--muted-text);
    line-height: 1.6;
}

.disclaimer-modal p strong {
    color: var(--primary-color);
}

/* ==================== BREAK TIME CONTROLS ==================== */
.break-time-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.break-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--muted-text);
    cursor: pointer;
    white-space: nowrap;
}

.break-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.break-time-inputs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.break-time-inputs input[type="time"] {
    padding: 0.3rem;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    width: 100px;
}

.break-time-inputs input[type="time"]:disabled {
    background: #f5f5f5;
    color: #bbb;
    border-color: #eee;
}

.break-time-inputs span {
    font-size: 0.8rem;
    color: var(--muted-text);
}

[data-theme="dark"] .break-time-inputs input[type="time"] {
    background: #2a2a2a;
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .break-time-inputs input[type="time"]:disabled {
    background: #1a1a1a;
    color: #555;
    border-color: #333;
}

/* ==================== ADMIN VISUAL CALENDAR ==================== */
.admin-visual-calendar,
.client-preview-panel {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.admin-visual-calendar h2,
.client-preview-panel h2 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.admin-calendar-nav,
.preview-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-calendar-nav span,
.preview-calendar-nav span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--heading-color);
}

.cal-nav-btn {
    background: none;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

.admin-calendar-grid,
.preview-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.admin-cal-header,
.preview-cal-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
    padding: 0.25rem 0;
    text-transform: uppercase;
}

.admin-cal-day,
.preview-cal-day {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
}

.admin-cal-day.empty,
.preview-cal-day.empty {
    visibility: hidden;
}

/* Admin calendar day states */
.admin-cal-day.open {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.admin-cal-day.closed {
    background: #f0f0f0;
    color: #999;
}

.admin-cal-day.blocked {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
    text-decoration: line-through;
}

.admin-cal-day.past {
    color: #ccc;
    pointer-events: none;
}

.admin-cal-day.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.admin-cal-day.clickable {
    cursor: pointer;
}

.admin-cal-day.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.admin-cal-day.open.clickable:hover {
    background: rgba(231, 76, 60, 0.25);
    color: #c0392b;
}

.admin-cal-day.blocked.clickable:hover {
    background: rgba(46, 204, 113, 0.25);
    color: #27ae60;
    text-decoration: none;
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-open {
    background: #27ae60;
}

.legend-closed {
    background: #ccc;
}

.legend-blocked {
    background: #e74c3c;
}

.legend-past {
    background: #eee;
    border: 1px solid #ddd;
}

/* ==================== CLIENT PREVIEW ==================== */
.client-preview-panel {
    border: 2px dashed var(--primary-color);
    position: relative;
}

.preview-subtitle {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Preview calendar day states — mirror booking calendar */
.preview-cal-day.available {
    background: var(--light-bg);
    color: var(--heading-color);
    cursor: pointer;
}

.preview-cal-day.available:hover {
    background: var(--primary-color);
    color: #1a1a1a;
    transform: scale(1.05);
}

.preview-cal-day.selected {
    background: var(--primary-color);
    color: #1a1a1a;
    font-weight: 700;
}

.preview-cal-day.disabled {
    color: #ccc;
    pointer-events: none;
}

.preview-cal-day.closed {
    color: #bbb;
}

.preview-cal-day.blocked {
    color: #ccc;
}

.preview-cal-day.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.preview-cal-day.past {
    color: #ddd;
}

/* Preview time slots */
.preview-time-slots {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.preview-time-slots h4 {
    font-size: 0.95rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.preview-hint {
    text-align: center;
    color: var(--muted-text);
    font-size: 0.85rem;
    padding: 1rem 0;
    font-style: italic;
}

.preview-slot-group {
    margin-bottom: 0.75rem;
}

.preview-slot-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.preview-slots-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.preview-time-slot {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--light-bg);
    color: var(--heading-color);
    border: 1px solid var(--card-border);
}

.preview-time-slot.booked {
    background: #f0f0f0;
    color: #999;
    text-decoration: line-through;
    border-color: #e0e0e0;
}

.preview-time-slot.booked small {
    text-decoration: none;
}

.preview-loading {
    text-align: center;
    padding: 1rem;
}

.preview-loading .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--input-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: calendarSpin 0.8s linear infinite;
    margin: 0 auto;
}

.preview-loading p {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 0.5rem;
}

/* ==================== BLOCK REASON POPUP ==================== */
.block-reason-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: confirmFadeIn 0.2s ease;
}

.block-reason-modal {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    width: 90%;
    text-align: center;
}

.block-reason-modal h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.block-reason-modal p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.block-reason-modal input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: var(--light-bg);
    color: var(--text-color);
}

.block-reason-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.block-reason-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.block-reason-actions button {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* ==================== DARK MODE — ADMIN CALENDAR ==================== */
[data-theme="dark"] .admin-visual-calendar,
[data-theme="dark"] .client-preview-panel {
    background: #1a1a1a;
}

[data-theme="dark"] .client-preview-panel {
    border-color: var(--primary-color);
}

[data-theme="dark"] .admin-cal-day.open {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

[data-theme="dark"] .admin-cal-day.closed {
    background: #222;
    color: #666;
}

[data-theme="dark"] .admin-cal-day.blocked {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

[data-theme="dark"] .admin-cal-day.past {
    color: #444;
}

[data-theme="dark"] .legend-closed {
    background: #555;
}

[data-theme="dark"] .legend-past {
    background: #333;
    border-color: #444;
}

[data-theme="dark"] .preview-cal-day.available {
    background: #222;
    color: var(--heading-color);
}

[data-theme="dark"] .preview-cal-day.disabled {
    color: #444;
}

[data-theme="dark"] .preview-cal-day.closed,
[data-theme="dark"] .preview-cal-day.blocked {
    color: #444;
}

[data-theme="dark"] .preview-cal-day.past {
    color: #333;
}

[data-theme="dark"] .preview-time-slot {
    background: #222;
    color: #ddd;
    border-color: #333;
}

[data-theme="dark"] .preview-time-slot.booked {
    background: #1a1a1a;
    color: #555;
    border-color: #2a2a2a;
}

[data-theme="dark"] .block-reason-modal {
    background: #1a1a1a;
}

[data-theme="dark"] .block-reason-modal input[type="text"] {
    background: #222;
    border-color: var(--input-border);
    color: var(--text-color);
}

/* ==================== RESPONSIVE — ADMIN CALENDAR ==================== */
@media (max-width: 1024px) {
    .calendar-workspace {
        grid-template-columns: 1fr;
    }
}

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

    .day-schedule {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .break-time-controls {
        margin-left: 0;
        width: 100%;
    }

    .time-inputs {
        width: 100%;
    }

    .admin-calendar-grid,
    .preview-calendar-grid {
        gap: 2px;
    }

    .admin-cal-day,
    .preview-cal-day {
        font-size: 0.75rem;
        padding: 0.4rem 0.15rem;
    }

    .admin-cal-header,
    .preview-cal-header {
        font-size: 0.65rem;
    }

    .calendar-legend {
        gap: 0.5rem;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .preview-slots-row {
        gap: 0.25rem;
    }

    .preview-time-slot {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .block-date-form {
        flex-direction: column;
    }
}
