@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #EF4444;
    --dark: #0F172A;
    --white: #FFFFFF;
    --bg: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-800: #1E293B;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --font-main: 'Outfit', sans-serif;
    --gap-s: 8px;
    --gap-m: 12px;
    --gap-l: 16px;
    --side-pad: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Base Container & Mobile Alignment */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--side-pad) 100px;
    /* Strict 4px horizontal padding */
}

/* Loader */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--slate-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    display: inline-block;
    position: relative;
    animation: shimmer 1s linear infinite forwards;
    border-radius: 8px;
}

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

.fade-slide-in {
    animation: fadeSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Header & Branding */
.shop-header {
    position: relative;
    margin-bottom: var(--gap-l);
}

.shop-banner {
    height: 200px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    position: relative;
}

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

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.shop-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 var(--gap-m);
}

.shop-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: white;
    padding: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 12px;
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.shop-info h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.shop-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.rating-badge {
    background: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
}

.category-tag {
    background: var(--slate-100);
    color: var(--slate-800);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.address-section {
    padding: var(--gap-m);
    background: white;
    border-radius: var(--radius);
    margin-top: var(--gap-m);
    box-shadow: var(--shadow);
}

.address-text {
    font-size: 0.85rem;
    color: var(--slate-800);
    font-weight: 500;
    text-align: center;
}

#actions-area {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 10px;
}

.navigate-pill,
.bookings-pill {
    background: white;
    border: 1.5px solid var(--primary);
    padding: 10px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.bookings-pill:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.bookings-pill svg {
    color: inherit;
}

/* Sections */
section {
    margin-top: var(--gap-l);
}

.section-header {
    margin-bottom: var(--gap-m);
    padding: 0 var(--gap-s);
}

.section-header h2 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-800);
    opacity: 0.7;
}

/* Gallery (Scrollable) */
.gallery-scroll {
    display: flex;
    gap: var(--gap-s);
    overflow-x: auto;
    padding-bottom: var(--gap-s);
    scrollbar-width: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Amenities (3-col Grid) */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-s);
}

.amenity-item {
    background: white;
    padding: var(--gap-m) var(--gap-s);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.amenity-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

/* Services (2-Col Grid) */
.category-group {
    margin-bottom: var(--gap-l);
}

.category-title {
    background: transparent;
    color: var(--dark);
    padding: 8px 4px;
    border-bottom: 2px solid var(--slate-100);
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    opacity: 0.9;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 4px;
}

.service-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--slate-100);
    transition: 0.2s;
    min-height: 100px;
    position: relative;
}

.service-card.active {
    border-color: var(--primary);
    background: #FFF1F2;
}

.service-info h4 {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}

.service-info span {
    font-size: 0.7rem;
    color: var(--slate-800);
    opacity: 0.6;
    font-weight: 600;
}

.price-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

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

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

.original-price {
    font-size: 0.75rem;
    color: var(--slate-800);
    text-decoration: line-through;
    opacity: 0.5;
    margin-left: 4px;
}

.add-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.service-card.active .add-badge {
    background: var(--primary);
}

/* Staff Selection */
.staff-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px var(--gap-s) 16px;
    scrollbar-width: none;
}

.staff-card {
    flex-shrink: 0;
    text-align: center;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.staff-card.active .staff-avatar {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    transition: 0.3s;
}

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

.staff-card span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--slate-800);
}

.staff-card.active span {
    color: var(--primary);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-header strong {
    font-size: 0.85rem;
    font-weight: 800;
}

.review-rating {
    color: #10B981;
    font-weight: 800;
    font-size: 0.85rem;
}

.review-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--slate-800);
    font-weight: 500;
    font-style: italic;
}

.load-more-btn {
    width: 100%;
    padding: 14px;
    background: var(--slate-100);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
    margin-top: 8px;
}

.app-cta-review {
    padding: 20px;
    background: #FFFBEB;
    border: 1px dashed #F59E0B;
    border-radius: 16px;
    text-align: center;
    margin-top: 12px;
}

.app-cta-review p {
    color: #92400E;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-cta-review a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Sticky CTA -> Floating Glass Pill */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 440px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: pillSlideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pillSlideUp {
    from { transform: translate(-50%, 100px) scale(0.9); opacity: 0; }
    to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.cart-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
}

.cart-info span:first-child {
    opacity: 0.7;
    font-weight: 600;
}

/* Service Discovery & 3-Col Grid */
.search-container {
    position: relative;
    margin: 0 var(--side-pad) var(--gap-m);
    position: sticky;
    top: 10px;
    z-index: 100;
}

#service-search {
    width: 100%;
    height: 48px;
    background: white;
    border: 2px solid var(--slate-100);
    border-radius: 14px;
    padding: 0 16px 0 44px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    transition: 0.2s;
    box-shadow: var(--shadow);
}

#service-search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1);
}

.search-container svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

.services-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 var(--side-pad);
}

.service-lite-card {
    background: white;
    border: 1.5px solid var(--slate-100);
    border-radius: 18px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    position: relative;
    transition: 0.2s;
    cursor: pointer;
}

.service-lite-card.active {
    background: #FFF1F2;
    border-color: var(--primary);
}

.service-lite-info h5 {
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--dark);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.service-lite-duration {
    font-size: 0.55rem;
    font-weight: 700;
    color: #94A3B8;
    background: #F8FAFC;
    padding: 2px 6px;
    border-radius: 6px;
}

.service-lite-price {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 8px;
}

.check-sm {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.primary-cta {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: 0.2s;
}

.primary-cta:active {
    transform: scale(0.97);
}

/* Time Grid Periods */
.time-period-group {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
}

.time-period-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--slate-800);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-period-label span {
    width: 20px;
    height: 2px;
    background: var(--slate-100);
    flex-grow: 1;
}

/* Modal Design System */
/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--dark);
    padding: 14px 22px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    animation: toastIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.toast.success {
    border-top: 4px solid #10B981;
}

.toast.error {
    border-top: 4px solid #EF4444;
}

.toast.info {
    border-top: 4px solid #3B82F6;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: white; /* Full page background */
    z-index: 2000;
    display: none;
}

.modal-content {
    background: var(--bg);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browser bars */
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 100px rgba(0,0,0,0.1);
    position: relative;
}

.bottom-sheet-content {
    background: var(--bg);
    width: 100%;
    max-width: 480px;
    margin: auto auto 0 auto;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.booking-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.modal-header {
    padding: 16px 20px 12px;
    background: white;
    border-bottom: 1px solid var(--slate-100);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 140px; /* Extra bottom padding for floating CTA */
    scrollbar-width: thin;
}

.modal-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    color: #475569;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.modal-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 4px;
}

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

.staff-item-modal {
    background: white;
    padding: 14px 8px;
    border-radius: 18px;
    border: 2px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.staff-item-modal.active {
    border-color: var(--primary);
    background: #FFF1F2;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1);
}

.staff-item-modal .staff-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--slate-100);
}

.staff-item-modal .staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

.staff-item-modal span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
}

.date-picker-container {
    padding: 2px 0;
}

.date-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-scroll::-webkit-scrollbar { display: none; }

.date-item {
    flex: 0 0 54px;
    height: 70px;
    border-radius: 16px;
    border: 2.5px solid var(--slate-100);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.date-item.active {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
    transform: translateY(-4px);
}

.date-item .day {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.6;
}

.date-item .num {
    font-size: 1.15rem;
    font-weight: 900;
}

.time-grid-container {
    margin-top: 10px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.slot-item {
    height: 46px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    border: 2px solid var(--slate-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.slot-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    transform: scale(0.96);
}

.slot-item.disabled {
    opacity: 0.25;
    background: var(--slate-100);
    pointer-events: none;
}

.modal-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card {
    text-align: center;
    background: white;
}

.auth-card h2 {
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 1.3rem;
}

.auth-card p {
    font-size: 0.85rem;
    color: var(--slate-800);
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 2px solid var(--slate-100);
    padding: 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

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

.confirm-btn {
    width: 100%;
    height: 56px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.confirm-btn:active {
    transform: scale(0.98);
}

.close-modal-btn {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-800);
    opacity: 0.5;
    text-decoration: underline;
    cursor: pointer;
}

.dots-loader {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dots-loader div {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotsWave 1.4s infinite ease-in-out both;
}

.dots-loader div:nth-child(1) {
    animation-delay: -0.32s;
    width: 10px;
    height: 10px;
}

.dots-loader div:nth-child(2) {
    animation-delay: -0.16s;
    width: 8px;
    height: 8px;
}

.dots-loader div:nth-child(3) {
    animation-delay: 0s;
    width: 6px;
    height: 6px;
}

.dots-loader div:nth-child(4) {
    animation-delay: 0.16s;
    width: 4px;
    height: 4px;
}

.dots-loader div:nth-child(5) {
    animation-delay: 0.32s;
    width: 3px;
    height: 3px;
}

@keyframes dotsWave {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loader-inline {
    display: none;
    /* Hide old loader name */
}

.dots-loader.mini {
    padding: 0;
    gap: 4px;
}

.dots-loader.mini div {
    width: 4px;
    height: 4px;
}

.confirm-btn,
.primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.empty-msg {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    opacity: 0.4;
    font-style: italic;
    font-weight: 600;
}

/* Booking Stepper Classes */
.booking-step {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.step-hint {
    font-size: 0.8rem;
    color: var(--slate-800);
    opacity: 0.6;
    margin-bottom: 20px;
    font-weight: 600;
}

#selected-time-display {
    color: var(--dark);
    font-weight: 800;
}

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

.staff-item-modal {
    background: white;
    border: 2px solid var(--slate-100);
    padding: 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
}
/* Consolidated Specialist Grid */

/* Review & Lock Styles */
.review-details-card {
    background: #F8FAFC;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.review-details-card h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    text-align: center;
    border-bottom: 2px solid var(--slate-100);
    padding-bottom: 12px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.review-row strong {
    color: var(--luxury-black);
    font-weight: 700;
}

.lock-timer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
    background: #F1F5F9;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
}

#lock-countdown {
    color: #EF4444;
    font-weight: 800;
}

.pulsing {
    animation: rpulse 1.5s infinite;
}

@keyframes rpulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#recaptcha-container {
    display: none;
}

/* Phase 10: Pagination & Bookings */
.pagination-footer {
    text-align: center;
    padding: 20px 0;
}

.load-more-link {
    background: none;
    border: 1px solid var(--rizarv-gold);
    color: var(--rizarv-gold);
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.load-more-link:hover {
    background: var(--rizarv-gold);
    color: #fff;
}

.download-app-banner {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    padding: 24px;
    border-radius: 20px;
    margin-top: 10px;
    text-align: center;
}

.download-app-banner p {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--luxury-black);
    margin-bottom: 16px;
}

.app-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.store-btn {
    background: #F1F5F9;
    color: #0F172A;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-btn:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bookings-pill {
    background: #F8FAFC;
    border: 1.5px solid #F1F5F9;
    padding: 10px 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--luxury-black);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.bookings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding: 4px;
}

.booking-history-card {
    background: white;
    border: 1.5px solid var(--slate-100);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: 0.2s;
}

.bh-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--slate-100);
    flex-shrink: 0;
}

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

.bh-content {
    flex: 1;
}

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

.bh-status {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.bh-status.confirmed,
.bh-status.completed {
    color: #059669;
    background: #ECFDF5;
}

.bh-status.pending,
.bh-status.locked {
    color: #D97706;
    background: #FFFBEB;
}

.bh-status.waiting {
    color: #4F46E5;
    background: #EEF2FF;
    border: 1.5px solid #E0E7FF;
}

.bh-status.cancelled {
    color: #DC2626;
    background: #FEF2F2;
}

.bh-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--primary);
}

.bh-date {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 6px;
    margin-top: 4px;
}

.bh-specialist {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 700;
    margin-bottom: 6px;
}

.bh-specialist span {
    color: var(--dark);
    font-weight: 800;
}

.bh-services {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    border-left: 2px solid var(--slate-100);
    padding-left: 8px;
    margin-bottom: 8px;
}

.bh-address {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.bh-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
}

.bh-btn-complete {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
}

.bh-btn-complete svg {
    transition: transform 0.3s ease;
}

.bh-btn-complete:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.bh-btn-complete:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.bh-btn-complete:active:not(:disabled) {
    transform: translateY(0);
}

.bh-btn-complete:disabled {
    opacity: 0.6;
    background: #94A3B8;
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}

.bh-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s;
}

.bh-btn.call {
    background: #F1F5F9;
    color: #475569;
}

.bh-btn.navigate {
    background: #FFF1F2;
    color: var(--primary);
}

.bh-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.bh-footer {
    border-top: 1px solid #F1F5F9;
    padding-top: 8px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bh-shop {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
}

.download-note {
    font-size: 0.8rem;
    color: #94A3B8;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
    padding: 0 20px;
}

.profile-modal {
    max-width: 450px !important;
}