:root {
    --primary: #5ba4e5;
    --primary-hover: #4a8dc7;
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #cbd5e1;
    --success: #10b981;
    --error: #ef4444;
    --accent: #fcd34d;
    --nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Fredoka', -apple-system, sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

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

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

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

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.nav-logo { height: 50px; margin-right: 12px; }
.logo-group { display: flex; align-items: center; }
.logo { font-weight: 700; font-size: 20px; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.social-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.social-link:hover { color: var(--primary); }

/* Buttons */
.cta-button, .cta-button-small {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button { padding: 16px 32px; font-size: 18px; }
.cta-button-small { padding: 10px 20px; font-size: 14px; }

.cta-button:hover, .cta-button-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 164, 229, 0.3);
}

.secondary-button {
    padding: 16px 32px;
    font-size: 18px;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
}

.secondary-button:hover {
    background: rgba(91, 164, 229, 0.05);
    transform: translateY(-2px);
}

/* Hero Section - Full Page Impact */
.hero-section {
    background: var(--bg-gradient);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 { font-size: 64px; line-height: 1.1; margin-bottom: 24px; color: #1e293b; }
.hero-content .highlight { color: var(--primary); }
.hero-content p { font-size: 22px; color: var(--text-muted); margin-bottom: 48px; max-width: 550px; line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; }
.hero-main-img { width: 100%; max-width: 500px; border-radius: 40px; box-shadow: 0 25px 50px rgba(0,0,0,0.12); border: 10px solid white; height: auto; }

/* Pricing Section - Asset Styling */
.pricing-section { background: white; }
.pricing-container { max-width: 800px; margin: 40px auto 0; text-align: center; }
.pricing-img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
    border: 4px solid #fff;
    object-fit: contain;
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #fffafb 0%, #fdf2f8 100%);
    position: relative;
    overflow: hidden;
}

.reviews-carousel-container {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.reviews-carousel {
    flex: 1;
    min-height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-card {
    background: white;
    padding: 50px;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 4px solid #fff;
    text-align: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.review-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quote-mark {
    font-size: 80px;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: serif;
    line-height: 1;
}

.review-text {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 9em;
}

.review-text.expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    text-decoration: underline;
    display: inline-block;
}

.read-more-btn:hover {
    opacity: 0.75;
}

.review-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.star-rating {
    color: var(--accent);
    font-size: 20px;
    letter-spacing: 4px;
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.review-loading {
    color: var(--text-muted);
    font-style: italic;
}

/* Contact Section */
.contact-section { background: #f8fafc; }
.contact-card-container { max-width: 500px; margin: 40px auto 0; }
.contact-card { background: white; padding: 48px; border-radius: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 4px solid #fff; }
.contact-info-box h3 { font-size: 28px; color: var(--primary); margin-bottom: 24px; }
.phone-number { font-size: 24px; font-weight: 700; margin-bottom: 32px; }
.phone-number a { color: var(--text-main); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.location-text { margin-top: 32px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }

.social-grid { display: flex; flex-direction: column; gap: 16px; }
.social-btn { padding: 18px 24px; border-radius: 16px; text-decoration: none; font-weight: 700; color: white; text-align: center; transition: all 0.2s; font-size: 18px; }
.social-btn.ig { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-btn.tt { background: #000000; }
.social-btn.fb { background: #1877F2; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* Gallery Section Refresh */
.gallery-section { background: white; }

.gallery-carousel-container {
    max-width: 1000px;
    margin: 50px auto 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-viewport {
    flex: 1;
    position: relative;
    min-height: 580px; /* Increased to accommodate content without overlap */
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-pair-card {
    background: white;
    padding: 20px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-sizing: border-box;
}

.gallery-pair-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    border: 4px solid #fff;
    position: relative;
}

.gallery-img-wrapper {
    position: relative;
    height: 450px;
}

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

.img-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-caption {
    margin-top: 20px;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    text-align: center;
}

/* Info Sections (Old) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Treats */
.treats-section { background: #fdf2f8; }
.treats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.recipe-img { width: 100%; border-radius: 20px; transition: transform 0.3s; }
.recipe-img:hover { transform: scale(1.02); }

/* Footer */
.main-footer { background: white; padding: 60px 0; border-top: 1px solid var(--border); }
.footer-logo { max-width: 150px; margin-bottom: 20px; }
.footer-socials { margin-top: 20px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.footer-socials a { color: var(--primary); text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.footer-socials a:hover { opacity: 0.8; }

/* Modal & Form */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: white;
    margin: 40px auto;
    max-width: 560px;
    width: 100%;
    position: relative;
    animation: modalSlide 0.3s ease-out;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: none;
}

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

@media (max-width: 768px) {
    .modal { padding: 20px 10px; }
    .modal-content { 
        margin: 0; 
        max-width: 100%; 
        border-radius: 20px; 
    }
}

.close-modal, .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 1010;
    padding: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.close-modal:hover, .close-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-content.form-card { padding: 0 !important; border: none; overflow: hidden; }

.form-logo { max-width: 120px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.required { color: var(--error); }

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
}

textarea {
    resize: vertical;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 164, 229, 0.1);
}

#submitBtn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}
.status-message.success { display: block; background: #ecfdf5; color: var(--success); }
.status-message.error { display: block; background: #fef2f2; color: var(--error); }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Admin Layout & Sidebar */
.admin-body { background: #f8fafc; height: 100vh; overflow: hidden; }

#dashboardSection { height: 100vh; }

.admin-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-header img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.2;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
    text-align: left;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item .icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.sidebar-footer .user-email {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

.admin-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Fredoka', sans-serif;
}

.admin-btn:hover {
    background: var(--primary-hover);
}

.logout-btn {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    background: #e53e3e;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    display: block;
    width: 100%;
}

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

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    background: #f8fafc;
}

/* Mobile Header */
.mobile-top-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* Panels */
.admin-panel {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-panel.active {
    display: block;
    animation: panelFade 0.3s ease-out;
}

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

/* Sidebar Rail (Mobile only) */
.sidebar-collapsed-rail {
    display: none;
}

/* Overlay when sidebar is expanded */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 950;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Calendar & Scheduler Styles */
.scheduler-container {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

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

.calendar-header h3 {
    font-size: 24px;
    color: var(--text-main);
}

.calendar-nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background: #f8fafc;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.calendar-day-label {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 600;
}

.calendar-day:hover:not(.empty-day) {
    background: #f1f5f9;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.calendar-day.empty-day {
    cursor: default;
    border: none;
    background: transparent;
}

.calendar-day.today {
    color: var(--primary);
    background: rgba(91, 164, 229, 0.05);
    border: 2px solid var(--primary);
}

.calendar-day.blocked {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.calendar-day.blocked::before {
    content: '🚫';
    font-size: 10px;
    position: absolute;
    top: 6px;
    right: 6px;
}

.calendar-day.has-appointment::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f8fafc;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Scheduler Popover/Modal */
.day-modal-content {
    padding: 32px;
}

.day-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.day-modal-header h4 {
    font-size: 20px;
    color: var(--text-main);
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

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

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

input:checked + .slider {
    background-color: var(--error);
}

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

/* Public Date Picker Specifics */
.public-datepicker {
    margin-bottom: 32px;
}

.public-datepicker label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Site Management Panel & Tabs */
.mgmt-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.mgmt-panel {
    display: none;
}

.mgmt-panel.active {
    display: block;
    animation: panelFade 0.3s ease-out;
}

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

/* Mgmt Cards (Gallery & Reviews) */
.mgmt-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mgmt-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    gap: 24px;
    position: relative;
    transition: transform 0.2s;
}

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

.card-order-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.order-btn {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.order-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-slot {
    aspect-ratio: 4/3;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
}

.upload-slot:hover { border-color: var(--primary); background: #f0f9ff; }

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

.slot-actions {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.upload-slot:hover .slot-actions { opacity: 1; }

.slot-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.slot-btn:hover { background: var(--primary); }

.slot-placeholder { text-align: center; color: var(--text-muted); font-size: 13px; }
.slot-placeholder span { display: block; font-size: 24px; margin-bottom: 4px; }

.incomplete-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.delete-card-btn {
    color: var(--error);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.delete-card-btn:hover { text-decoration: underline; }

.order-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border);
}

.stats-row { display: flex; gap: 20px; }
.stat-card { background: #fff; padding: 16px 24px; border-radius: 12px; border: 1px solid var(--border); text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.stat-card span { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card label { color: var(--text-muted); margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.table-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8fafc; padding: 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }

.status-select { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 8px; border: 2px solid transparent; font-weight: 600; cursor: pointer; transition: all 0.2s; }

.status-pending { background: #fee2e2; color: #991b1b; }
.status-select.status-pending { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.status-new_lead { background: #fee2e2; color: #991b1b; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-booked, .status-confirmed { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-completed { background: #e0f2fe; color: #075985; }

.service-badge { font-weight: 600; font-size: 12px; padding: 6px 12px; border-radius: 20px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.5px; }
.service-full-groom { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.service-bath-brush { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.service-nail-trim { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.service-puppy-first-groom { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.service-de-shedding { background: #faf5ff; color: #7e22ce; border-color: #f3e8ff; }

/* New services */
.service-bath { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.service-haircut { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.service-bath-and-deshed { background: #faf5ff; color: #7e22ce; border-color: #f3e8ff; }
.service-face-feet-and-sani { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.service-de-shedding-treatment { background: #faf5ff; color: #7e22ce; border-color: #f3e8ff; }
.service-puppy-s-first-groom { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }

.view-btn { 
    width: auto; 
    padding: 8px 16px; 
    font-size: 12px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.view-btn:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Lively Modal Styles */
.lively-modal { border-radius: 20px; overflow: hidden; }

.modal-hero { padding: 40px 24px; text-align: center; color: white; position: relative; }
.modal-hero.status-pending { background: #ef4444; }
.modal-hero.status-new_lead { background: #ef4444; }
.modal-hero.status-contacted { background: #f59e0b; }
.modal-hero.status-booked { background: #10b981; }
.modal-hero.status-completed { background: #3b82f6; }

.hero-icon { font-size: 48px; margin-bottom: 12px; }
.modal-hero h2 { font-size: 28px; margin-bottom: 8px; }
.hero-status { font-size: 12px; font-weight: 700; letter-spacing: 2px; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 50px; }

.modal-sections { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; }
.modal-section h3 { font-size: 18px; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-icon { font-size: 20px; }

.info-group { margin-bottom: 16px; }
.info-group label { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 600; }
.info-group p { font-size: 16px; font-weight: 500; color: var(--text-main); }
.info-group a { color: var(--primary); text-decoration: none; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.notes-box { background: #f8fafc; padding: 20px; border-radius: 16px; border: 2px dashed var(--border); line-height: 1.6; color: var(--text-muted); }

/* Mobile Responsiveness for Sidebar */
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }

    .sidebar.expanded {
        transform: translateX(0);
    }

    /* Icon rail on mobile */
    .sidebar-collapsed-rail {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        background: white;
        border-right: 1px solid var(--border);
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        gap: 20px;
        z-index: 850;
    }

    .main-content {
        padding: 20px;
        margin-left: 60px; /* Space for the rail */
    }

    .mobile-top-bar { 
        display: flex;
        margin-left: -20px; /* Offset main-content padding */
        margin-right: -20px;
        margin-top: -20px;
        margin-bottom: 20px;
    }

    .sidebar-overlay.active {
        display: block;
    }
    
    .close-sidebar {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .section-container { padding: 40px 20px; }
    
    .nav-links { gap: 12px; }
    .logo { font-size: 16px; }
    .nav-logo { height: 40px; }

    .hero-section { min-height: auto; padding: 40px 0; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-content h1 { font-size: 42px; }
    .hero-content p { margin: 0 auto 32px; font-size: 18px; }
    .hero-actions { flex-direction: column; width: 100%; align-items: stretch; gap: 12px; }
    .hero-actions .cta-button, .hero-actions .secondary-button { width: 100%; min-height: 48px; }
    .hero-image-wrapper { order: -1; max-width: 450px; margin: 0 auto; }
    
    .gallery-grid, .treats-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
    .pricing-img { max-width: 100%; }

    .contact-card { padding: 32px 20px; }
    .social-btn { padding: 16px 20px; font-size: 16px; min-height: 48px; }

    /* Modal Mobile Fixes */
    .modal { padding: 20px 10px; }
    .modal-content { width: 100%; max-width: 100%; margin: 0; border-radius: 20px; }
    .form-card { padding: 32px 20px; }

    /* Admin mobile fixes */
    .admin-layout { flex-direction: column; }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }

    .sidebar.expanded {
        transform: translateX(0);
    }

    /* Icon rail on mobile */
    .sidebar-collapsed-rail {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        background: white;
        border-right: 1px solid var(--border);
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        gap: 20px;
        z-index: 850;
    }

    .rail-item {
        font-size: 24px;
        cursor: pointer;
        padding: 12px;
        border-radius: 12px;
        color: var(--text-muted);
        transition: all 0.2s;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rail-item.active {
        color: var(--primary);
        background: #f1f5f9;
    }

    .main-content {
        padding: 20px;
        margin-left: 60px; /* Space for the rail */
    }

    .mobile-top-bar { 
        display: flex;
        margin-left: -20px; 
        margin-right: -20px;
        margin-top: -20px;
        margin-bottom: 20px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-header { flex-direction: column; align-items: stretch; text-align: left; gap: 20px; }
    .stats-row { display: grid; grid-template-columns: 1fr; width: 100%; gap: 12px; }
    .stat-card { padding: 16px; }
    
    /* Table to Card Transformation */
    .table-card { background: transparent; border: none; box-shadow: none; }
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    
    tr { 
        background: #fff; 
        margin-bottom: 20px; 
        border-radius: 20px; 
        padding: 20px; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid var(--border);
    }
    
    td { 
        border: none !important; 
        padding: 0 !important; 
        margin-bottom: 12px; 
        position: relative;
    }
    
    td:last-child { margin-bottom: 0; }
    
    .status-select { width: 100% !important; min-height: 44px; padding: 10px !important; }
    .view-btn { width: 100% !important; min-height: 44px; padding: 12px !important; }
    .date-cell { text-align: right; }

    .detail-grid { grid-template-columns: 1fr; }
    .login-card { margin: 40px 10px; padding: 32px 20px; }
    
    /* Gallery Mobile */
    .gallery-viewport { min-height: 800px; }
    .gallery-img-wrapper { height: 350px; }
    .before-after-container { grid-template-columns: 1fr; }
    .gallery-carousel-container { gap: 8px; }
    .gallery-caption { font-size: 20px; }
    
    /* Reviews Mobile */
    .review-card { padding: 40px 20px; min-height: 280px; }
    .review-text { font-size: 18px; }
    .quote-mark { left: 20px; top: 10px; font-size: 60px; }
    .carousel-btn { width: 44px; height: 44px; font-size: 24px; }
    .reviews-carousel-container { gap: 8px; }
    
    /* Admin Nav Mobile */
    .nav-container { flex-direction: column; gap: 12px; padding: 12px 20px; }
    .main-nav, .admin-nav { height: auto; }
    
    /* Scheduler Mobile */
    .calendar-container,
    .scheduler-container {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding: 0 8px;
    }

    .calendar-card { 
        padding: 20px 12px; 
        width: 100%; 
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .calendar-day-names,
    .calendar-grid { 
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        width: 100%;
        box-sizing: border-box;
        gap: 0;
    }

    .calendar-day-names span,
    .calendar-day-names div,
    .calendar-day-label {
        text-align: center;
        overflow: hidden;
        font-size: 0.75rem;
        padding: 4px 0;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
    }

    .calendar-day { 
        border-radius: 8px; 
        min-height: 40px; 
        font-size: 14px; 
        min-width: 0;
        box-sizing: border-box;
    }
    .day-modal-content { padding: 24px 16px; }

    /* Site Mgmt Mobile */
    .mgmt-card { flex-direction: column; gap: 16px; padding: 20px; }
    .card-order-actions { flex-direction: row; order: 2; justify-content: flex-start; }
    .gallery-slots { grid-template-columns: 1fr; }
    .upload-slot { aspect-ratio: 3/2; }
    .order-btn { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 36px; }
    .section-container h2 { font-size: 28px; }
    
    .logo-group .logo { display: none; }
    
    .pet-name { font-size: 18px; }
    .modal-hero h2 { font-size: 22px; }
    .modal-hero { padding: 32px 20px; }
    .modal-sections { padding: 20px; gap: 24px; }
}

/* --- Scheduler Overhaul Styles --- */

/* Month View Indicators */
.calendar-day .day-number {
    font-size: 14px;
    z-index: 2;
}

.appt-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-day.fully-blocked {
    background-color: #cbd5e1 !important;
    color: #475569 !important;
}

.calendar-day.partially-blocked {
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 50%, #e2e8f0 50%, #e2e8f0 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    background-color: #f8fafc;
}

/* Day View Modal */
.day-view-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 85vh;
}

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

.day-info h2 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.day-grid-layout {
    display: flex;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    position: relative;
    overflow-y: auto;
    min-height: 500px;
}

.day-grid-layout.full-day-blocked::after {
    content: "FULLY BLOCKED";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(203, 213, 225, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #475569;
    z-index: 100;
    border-radius: 16px;
}

.time-column {
    display: grid;
    grid-template-rows: repeat(18, 48px);
    width: 80px;
}

.time-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.time-label.half-hour { height: 48px; }

.appointments-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(18, 48px);
    position: relative;
    gap: 0 4px;
}

.grid-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-rows: repeat(18, 48px);
    pointer-events: none;
}

.grid-row {
    border-top: 1px solid #f1f5f9;
}

/* Appointment Cards */
.appt-card {
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.appt-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.appt-card.confirmed {
    background: var(--primary);
    color: white;
}

.appt-card.pending {
    background: white;
    color: var(--text-main);
    border: 2px dashed var(--primary);
}

.appt-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appt-pet { font-weight: 700; font-size: 14px; }
.appt-owner { opacity: 0.9; }
.appt-service { font-style: italic; font-size: 11px; margin-top: 4px; }
.appt-status-badge {
    align-self: flex-start;
    font-size: 9px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    margin-top: 4px;
}

/* Blocked Slots in Grid */
.blocked-slot-bar {
    background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%, transparent 50%, #f1f5f9 50%, #f1f5f9 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    background-color: #e2e8f0;
    border-radius: 4px;
    grid-column: 1;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.delete-block-x {
    position: absolute;
    top: 4px; right: 8px;
    font-size: 18px;
    color: var(--error);
    display: none;
}

.blocked-slot-bar:hover .delete-block-x { display: block; }

/* Pending Requests List */
.pending-requests-section {
    border-top: 2px solid #f1f5f9;
    padding-top: 24px;
}

.pending-requests-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-main);
}

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

.pending-row {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.pending-info strong { color: var(--primary); }
.req-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Popover Modals */
.popover-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.popover-content {
    background: white;
    padding: 32px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.popover-content h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--primary);
}

.popover-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Public Booking Time Picker */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.time-slot-btn {
    background: #f8fafc;
    border: 2px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: center;
}

.time-slot-btn:hover:not(.unavailable) {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.time-slot-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot-btn.unavailable {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #cbd5e1;
    opacity: 0.6;
}


.form-helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* --- Fur Index Styles --- */

.profile-pic-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-pic-preview.large {
    width: 120px;
    height: 120px;
    font-size: 48px;
}

.client-id-badge {
    font-family: monospace;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.private-notes-container textarea {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.private-notes-container textarea:focus {
    background-color: #fff9db;
    border-color: #fbbf24;
}

/* Fur Index Profile Cards */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.profile-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.profile-card .profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid #f1f5f9;
    object-fit: cover;
}

.profile-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-card .owner-name {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-card .pet-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.profile-card .last-service-box {
    width: 100%;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 12px;
}

.profile-card .last-service-box strong {
    display: block;
    color: var(--primary);
    margin-bottom: 2px;
}

.profile-card .card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-card .action-btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: white;
    transition: all 0.2s;
}

.profile-card .action-btn:hover {
    background: #f1f5f9;
}

.profile-card .action-btn.book {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.profile-card .action-btn.delete {
    color: var(--error);
}

.profile-card .action-btn.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Household-Centric Fur Index Styles */
.household-card {
    text-align: left !important;
    align-items: flex-start !important;
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
    min-height: 250px;
}

.household-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.household-header {
    width: 100%;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.household-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
    text-align: left;
}

.owner-contact {
    font-size: 13px;
    color: var(--text-muted);
}

.household-pets-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pet-mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pet-mini-row:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.pet-mini-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.pet-mini-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pet-mini-info .pet-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-mini-info .pet-breed {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-book-btn {
    background: white;
    border: 1px solid var(--border);
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mini-book-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.no-pets-msg {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

.card-actions-row {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.action-btn-outline {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-outline:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.action-btn-primary {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(91, 164, 229, 0.3);
}

@media (min-width: 600px) {
    .mgmt-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}


/* --- Public Booking: Client Lookup Styles --- */

.client-type-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    margin: 0 auto 32px;
    max-width: 320px;
}

.toggle-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.toggle-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 164, 229, 0.3);
}

.lookup-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    border: 2px dashed var(--border);
    margin-bottom: 32px;
    animation: fadeIn 0.3s ease-out;
}

.lookup-input-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.lookup-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.lookup-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.pet-selection-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    margin-bottom: 32px;
    animation: fadeIn 0.3s ease-out;
}

.pet-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pet-choice-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.pet-choice-btn:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}

.pet-choice-btn.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(91, 164, 229, 0.2);
}

.pet-choice-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.pet-choice-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.profile-summary-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid var(--primary);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(91, 164, 229, 0.1);
    animation: modalSlide 0.4s ease-out;
    position: relative;
}

.profile-summary-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-summary-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f1f5f9;
}

.profile-summary-info h3 {
    font-size: 24px;
    color: var(--text-main);
    margin: 0;
}

.profile-summary-info .owner-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-summary-details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    text-align: left;
}

.profile-detail-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 2px;
    font-weight: 700;
}

.profile-detail-item p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
}

.change-client-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.change-client-btn:hover {
    background: var(--border);
    color: var(--text-main);
}

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

/* Task 1: Appointment History Styles */
.profile-history-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    background: #f8fafc;
}
.history-entry {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}
.history-entry:last-child { border-bottom: none; }
.history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.history-date { font-weight: 600; color: var(--text-main); }
.history-time { color: var(--text-muted); }
.history-notes {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}
.history-loading, .history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 16px;
    font-size: 0.875rem;
}

/* Task 2: Scheduler Indicator Styles */
.dot-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 4px;
    position: absolute;
    bottom: 8px;
    width: 100%;
}
.scheduler-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin: 1px;
}
.confirmed-dot {
    background: #22c55e;
}
.pending-dot {
    background: transparent;
    border: 2px solid #f59e0b;
}
.blocked-dot {
    background: #94a3b8;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    align-items: center;
}
.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fur-index-search {
    margin-bottom: 16px;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

#saveProfileBtn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

/* Extras CTA */
.extras-cta {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 18px;
  color: var(--text-dark);
}

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

.extras-cta a:hover {
  text-decoration: underline;
}
