:root {
    --primary: #e61c4c;
    /* Vibrant Pinkish-Red */
    --primary-dark: #b8163c;
    --primary-light: #fef0f3;
    --secondary: #fcd2db;
    --background: #ffffff;
    --surface: #f9fafb;
    /* Light cool grey */
    --text: #111827;
    --text-light: #6b7280;
    --border: #f3f4f6;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --radius: 16px;
    /* Softer rounded corners */
}

/* Dark Mode Variables */
body.dark-mode {
    --background: #111827;
    --surface: #1f2937;
    --text: #f3f4f6;
    --text-light: #9ca3af;
    --border: #374151;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.1s ease;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    /* Works for light */
}

body.dark-mode .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Works for dark */
}

.dropdown-item.danger {
    color: #ef4444;
}

/* Dark Mode Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.theme-switch input {
    display: none;
}

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

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 18px;
}

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

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

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

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Dev Toolbar */
#dev-toolbar {
    background: #1f2937;
    color: white;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}

.dev-btn {
    background: #374151;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.dev-btn.active {
    background: var(--primary);
}

/* Header */
header {
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 28, 76, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(230, 28, 76, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.full-width {
    width: 100%;
}

/* Hero */
.serenity-hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    animation: cardFadeIn 0.8s ease forwards;
    position: relative;
    /* Ensure content is above overlay */
    z-index: 3;
    /* Ensure content is above overlay */
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    box-shadow: var(--shadow);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

/* Content */
.content-section {
    padding: 40px 0;
}

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

.filters {
    display: flex;
    gap: 10px;
}

.filter-chip {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards */
.merchant-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.merchant-card:hover {
    transform: translateY(-4px);
}

.card-img-top {
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-body {
    padding: 20px;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f3e8ff;
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.auth-box {
    max-width: 400px;
    text-align: center;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.close,
.close-booking {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

/* Owner Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius);
    color: var(--text-light);
}

/* Card Image - Support for photos */
.card-img-top {
    height: 180px;
    background-color: #f3e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

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

.card-img-top .emoji-fallback {
    font-size: 4rem;
}

/* Map Modal */
#map-modal {
    z-index: 2000 !important;
}

.map-modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e0aaff 100%);
    border-bottom: 1px solid var(--border);
}

.map-header h2 {
    margin: 0;
    color: #3c096c;
    font-size: 1.3rem;
}

.close-map {
    font-size: 1.8rem;
    cursor: pointer;
    color: #5a189a;
    line-height: 1;
}

.close-map:hover {
    color: #3c096c;
}

#map-container {
    flex: 1;
    width: 100%;
}

/* Map info window */
.map-info-window {
    padding: 8px;
    max-width: 250px;
}

.map-info-window h3 {
    margin: 0 0 8px 0;
    color: var(--primary-dark);
    font-size: 1rem;
}

.map-info-window p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.map-info-window .btn-primary {
    margin-top: 10px;
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* View on Map button */
.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.btn-map-link:hover {
    color: var(--primary-dark);
}

/* ========== SKELETON LOADING ========== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 8px;
}

.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg,
            #e8e8e8 25%,
            #d8d8d8 50%,
            #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 12px;
    margin: 10px 20px;
    border-radius: 6px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.skeleton-text.title {
    height: 20px;
    width: 85%;
    margin-top: 15px;
}

/* ========== ENHANCED CARD ANIMATIONS ========== */
.merchant-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.merchant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.merchant-card:hover .card-img-top img {
    transform: scale(1.08);
}

.card-img-top img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FILTER CHIP ANIMATIONS ========== */
.filter-chip {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.15);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

/* ========== MODAL ANIMATIONS ========== */
/* Global Close Button Styling */
.close,
.close-modal,
.close-booking,
.close-map {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    text-align: center;
    z-index: 10;
}

.close:hover,
.close-modal:hover,
.close-booking:hover,
.close-map:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Photo Upload Styling */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-container .divider {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    font-weight: 600;
}

.file-input {
    border: 1px dashed var(--border);
    padding: 8px;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal[style*="flex"] {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content,
.map-modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading-spinner::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== CARD STAGGER ANIMATION ========== */
.merchant-card:nth-child(1) {
    animation-delay: 0.05s;
}

.merchant-card:nth-child(2) {
    animation-delay: 0.1s;
}

.merchant-card:nth-child(3) {
    animation-delay: 0.15s;
}

.merchant-card:nth-child(4) {
    animation-delay: 0.2s;
}

.merchant-card:nth-child(5) {
    animation-delay: 0.25s;
}

.merchant-card:nth-child(6) {
    animation-delay: 0.3s;
}

.merchant-card:nth-child(7) {
    animation-delay: 0.35s;
}

.merchant-card:nth-child(8) {
    animation-delay: 0.4s;
}

.merchant-card:nth-child(9) {
    animation-delay: 0.45s;
}

/* ========== NAV LINK ANIMATIONS ========== */
.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== SEARCH BAR ANIMATION ========== */
.search-bar {
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

.search-bar input:focus {
    outline: none;
}

/* ========== STORE OWNER TABS (Per Screenshot) ========== */
.owner-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.owner-tab {
    background-color: #f9f9f9;
    border: 1px solid #767676; /* Standard generic button border */
    border-radius: 2px;
    padding: 4px 8px; /* Tighter padding to match the photo */
    font-size: 14px;
    font-family: system-ui, -apple-system, sans-serif;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.owner-tab:hover {
    background-color: #e6e6e6;
}

.owner-tab.active {
    background-color: #e0e0e0;
    border-color: #4d4d4d;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== ADMIN DASHBOARD ========== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 8px 8px 0 0;
    transition: all 0.25s ease;
}

.admin-tab:hover {
    background: rgba(157, 78, 221, 0.1);
    color: var(--primary);
}

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

.admin-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.panel-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: linear-gradient(135deg, #f8f4ff 0%, #f3e8ff 100%);
    font-weight: 600;
    color: var(--text);
}

.admin-table tr:hover {
    background: rgba(157, 78, 221, 0.05);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.suspended {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.expired {
    background: #f3f4f6;
    color: #6b7280;
}

/* Action Buttons */
.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 6px;
    transition: all 0.2s ease;
}

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

.action-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}

.action-btn.danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Sponsor Sections */
.sponsor-type-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sponsor-type-section h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.sponsor-type-section p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.sponsored-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sponsored-item-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

.sponsored-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sponsored-item-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sponsored-item-info {
    flex: 1;
}

.sponsored-item-info h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.sponsored-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== SPONSOR BANNER (Customer Side) ========== */
.sponsor-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.sponsor-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sponsor-carousel::-webkit-scrollbar {
    height: 6px;
}

.sponsor-carousel::-webkit-scrollbar-track {
    background: rgba(157, 78, 221, 0.1);
    border-radius: 3px;
}

.sponsor-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.sponsor-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sponsor-card::before {
    content: 'SPONSORED';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.2);
}

.sponsor-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.sponsor-card-body {
    padding: 16px;
}

.sponsor-card-body h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.sponsor-card-body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Empty State for Sponsors */
.sponsor-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
}

/* ========== ADMIN MODAL ========== */
.admin-modal {
    max-width: 500px;
}

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

/* Form Enhancements */
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

/* ========== DISCOUNT BADGES ========== */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 2;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card-img-top {
    position: relative;
}

.service-discount-tag {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========== SORTABLE SERVICES LIST ========== */
.services-reorder-section {
    margin-top: 20px;
    padding-top: 20px;
}

.services-reorder-section h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.services-reorder-section .hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.sortable-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.sortable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
}

.sortable-item:hover {
    background: linear-gradient(135deg, #e8ecff 0%, #e0e8ff 100%);
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item.dragging {
    opacity: 0.5;
    background: var(--primary-light);
    border-color: var(--primary);
    transform: rotate(2deg);
}

.sortable-item .drag-handle {
    font-size: 1.2rem;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drag-handle-bar {
    width: 18px;
    height: 3px;
    background: #ccc;
    border-radius: 2px;
}

.sortable-item .service-info {
    flex: 1;
}

.sortable-item .service-name {
    font-weight: 600;
    color: var(--text);
}

.sortable-item .service-meta {
    font-size: 0.8rem;
    color: #888;
}

.sortable-item .service-order {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Service Actions Container */
.services-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

/* Add New Service Button */
.btn-add-service {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-service:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Service Item Actions */
.service-actions {
    display: flex;
    gap: 6px;
}

.service-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-action-btn.edit {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.service-action-btn.edit:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.1);
}

.service-action-btn.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.service-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
}

.sortable-item.drag-over {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* ========== FINANCIAL SECTION ========== */
.financial-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: #f1f3f5;
    border: none;
    padding: 8px 18px;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e9ecef;
}

.filter-btn.active {
    background: #e31a4c;
    color: white;
}

.financial-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.financial-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.financial-stat-card:hover {
    transform: translateY(-2px);
}

.financial-stat-card.highlight {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.financial-stat-card.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.financial-stat-card .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.financial-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.financial-stat-card.highlight .stat-value {
    color: #059669;
}

.financial-stat-card.warning .stat-value {
    color: #d97706;
}

.financial-stat-card .stat-trend {
    font-size: 0.75rem;
    color: #9ca3af;
}

.financial-stat-card .stat-trend.up {
    color: #10b981;
}

/* Status Badge for Financials */
.status-badge.paid {
    background: #d1fae5;
    color: #059669;
}

.status-badge.pending-payment {
    background: #fef3c7;
    color: #d97706;
}

/* Responsive Financial Stats */
@media (max-width: 1024px) {
    .financial-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .financial-filters {
        flex-wrap: wrap;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== INVOICE GENERATOR ========== */
.invoice-generator {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.invoice-generator h3 {
    margin-bottom: 16px;
    color: #1f2937;
}

.invoice-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.invoice-controls .form-group {
    flex: 1;
    min-width: 200px;
}

.invoice-controls select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
}

.invoice-controls input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
}

.invoice-controls .btn-primary {
    height: 42px;
    white-space: nowrap;
}

/* Invoice Sections */
.invoices-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.invoices-section h3 {
    margin-bottom: 4px;
    color: #1f2937;
}

.invoices-section .section-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.invoices-section.paid {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

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

.invoice-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.invoices-section.paid .invoice-card {
    background: #dcfce7;
    border-color: #86efac;
}

.invoice-card-info h4 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 4px;
}

.invoice-card-info p {
    font-size: 0.85rem;
    color: #6b7280;
}

.invoice-card-amount {
    text-align: right;
}

.invoice-card-amount .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.invoice-card-amount .date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.invoice-card-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.invoice-card-actions .action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.invoices-list .empty-state {
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ========== INVOICE STYLES ========== */
.invoice-modal {
    max-width: 700px;
    padding: 0;
}

.invoice {
    background: white;
    padding: 40px;
    position: relative;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.invoice-logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.invoice-logo p {
    color: #6b7280;
    font-size: 0.9rem;
}

.invoice-title {
    text-align: right;
}

.invoice-title h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 4px;
}

.invoice-title p {
    color: #6b7280;
    font-size: 0.9rem;
}

.invoice-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.invoice-from,
.invoice-to {
    flex: 1;
}

.invoice-from strong,
.invoice-to strong {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.invoice-from p,
.invoice-to p {
    color: #1f2937;
    margin: 2px 0;
}

.invoice-to {
    text-align: right;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.invoice-table th {
    background: #f9fafb;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
    text-align: right;
}

.invoice-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-totals {
    margin-left: auto;
    width: 280px;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-total-row.commission {
    color: var(--primary);
    font-weight: 500;
}

.invoice-total-row.grand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #059669;
    border-bottom: none;
    padding-top: 12px;
}

.invoice-paid-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.15);
    border: 8px solid rgba(16, 185, 129, 0.15);
    padding: 10px 40px;
    border-radius: 12px;
    pointer-events: none;
}

.invoice-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.invoice-footer p {
    color: #6b7280;
}

.invoice-footer .invoice-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

.invoice-actions {
    display: flex;
    gap: 12px;
    padding: 20px 40px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #invoice-content,
    #invoice-content * {
        visibility: visible;
    }

    #invoice-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .invoice-actions {
        display: none;
    }

    .close-modal {
        display: none;
    }
}

/* ========== CUSTOM TOAST NOTIFICATIONS ========== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #ccc;
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.toast.fade-out {
    animation: toastFadeOut 0.3s forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }

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

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Toast Variants */
.toast.success {
    border-left-color: #10b981;
    /* Green */
}

.toast.success::before {
    content: '✓';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    font-size: 14px;
}

.toast.error {
    border-left-color: #ef4444;
    /* Red */
}

.toast.error::before {
    content: '!';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    font-weight: bold;
}

.toast.info {
    border-left-color: var(--primary);
    /* Purple */
}

.toast.info::before {
    content: 'i';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: #f3e8ff;
    color: var(--primary);
    border-radius: 50%;
    font-weight: bold;
    font-family: serif;
}


/* ========== CUSTOM CONFIRMATION MODAL ========== */
.confirm-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.confirm-modal-buttons button {
    min-width: 100px;
}

/* =========================================
   CUSTOM ALERTS & TOASTS
   ========================================= */

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    /* Above everything */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Item */
.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out forwards;
    cursor: pointer;
    min-width: 250px;
    max-width: 350px;
}

.toast.success {
    background-color: #059669;
    border-left: 5px solid #047857;
}

.toast.error {
    background-color: #dc2626;
    border-left: 5px solid #b91c1c;
}

.toast.info {
    background-color: #3b82f6;
    border-left: 5px solid #2563eb;
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Custom Confirmation Modal */
#custom-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Calendar Styles */
.calendar-container {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-top: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.calendar-day .day-number {
    font-weight: 600;
    font-size: 1rem;
}

.calendar-day:hover {
    background: var(--background);
    border-color: var(--primary);
    transform: scale(1.02);
}

.calendar-day.active {
    background: var(--secondary);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

.calendar-day.today .day-number {
    color: white;
}

.calendar-day.today .booking-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.calendar-day.has-bookings {
    background: #f0fdf4;
    border-color: #22c55e;
}

.calendar-day.has-bookings.today {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.booking-count-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-controls button {
    padding: 6px 12px;
}

.booking-detail-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Booking Wizard Styles */
.booking-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.booking-step.active {
    display: block;
}

.service-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-select-item:hover {
    background: var(--background);
}

.service-select-item.selected {
    border-color: var(--primary);
    background: #f3e8ff;
}

.checkbox-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-select-item.selected .checkbox-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.service-select-item.selected .checkbox-circle::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.date-picker-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.date-card {
    min-width: 60px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.date-card.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.time-slot {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: var(--surface);
}

.time-slot:hover {
    border-color: var(--primary);
}

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

.time-slot.booked {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.time-slot.partial {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
    cursor: pointer;
}

.time-slot.partial:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

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

/* ===== CUSTOMER BOOKING CALENDAR ===== */
.booking-calendar-wrapper {
    margin-bottom: 20px;
}

.booking-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-month-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.cal-nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.cal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.booking-cal-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 6px 0;
    text-transform: uppercase;
}

.booking-cal-cell {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 2px solid transparent;
}

.booking-cal-cell.empty {
    cursor: default;
}

.booking-cal-cell:not(.empty):not(.past):hover {
    background: #f0f4ff;
    border-color: var(--primary);
}

.booking-cal-cell.past {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-cal-cell.today {
    background: #eef2ff;
    border-color: var(--primary);
}

.booking-cal-cell.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.booking-cal-cell.selected .cal-booked-badge {
    background: rgba(255,255,255,0.3);
    color: white;
}

.cal-day-num {
    font-weight: 600;
    font-size: 0.9rem;
}

.cal-booked-badge {
    font-size: 0.55rem;
    background: #fee2e2;
    color: #dc2626;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* Time slot panel */
.booking-times-panel {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.booking-times-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-times-header h4 {
    margin: 0;
    font-size: 1rem;
}

.slots-summary {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.slots-available {
    color: #059669;
}

.slots-booked {
    color: #dc2626;
}

.booking-times-loading {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.booking-times-placeholder {
    text-align: center;
    padding: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.booking-summary {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.booking-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* --- FIXES FOR BOOKING WIZARD --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    /* Flexbox for centering */
    align-items: center;
    justify-content: center;
}

.modal-content.booking-box {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    /* Fallback */
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s ease;
}

#booking-modal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
    /* Space for scrollbar */
}

#booking-modal-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    z-index: 10;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* --- ROBUST FOOTER FIXES --- */
#booking-modal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 60px !important;
    padding: 15px !important;
    border-top: 1px solid #eee !important;
    background: white !important;
    width: 100% !important;
    margin-top: auto !important;
    /* Push to bottom */
    z-index: 9999 !important;
    position: relative !important;
}

#booking-modal-footer button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure modal content expands */
.modal-content.booking-box {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    /* Allow footer to be seen if outside */
    padding-bottom: 0 !important;
    /* Let footer handle padding */
}

/* Photo Slider - Crossfade Slideshow */
.photo-slider-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    padding: 0;
    z-index: 1;
}

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

.photo-slider-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    animation: fadeSlide 36s infinite;
    transform: scale(1);
}

/* Stagger each image's animation start */
.photo-slider-track img:nth-child(1) {
    animation-delay: 0s;
    opacity: 1;
}

.photo-slider-track img:nth-child(2) {
    animation-delay: 6s;
}

.photo-slider-track img:nth-child(3) {
    animation-delay: 12s;
}

.photo-slider-track img:nth-child(4) {
    animation-delay: 18s;
}

.photo-slider-track img:nth-child(5) {
    animation-delay: 24s;
}

.photo-slider-track img:nth-child(6) {
    animation-delay: 30s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
        transform: scale(1.08);
    }

    25% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* ========== SERVICE BUDGET SEARCH ========== */
.service-search-box {
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
    position: relative;
}

/* Category Grid */
.service-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 500px) {
    .service-category-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    background: var(--surface);
    transition: all 0.2s;
    text-align: center;
}

.service-category-card:hover {
    border-color: var(--primary);
    background: #fff0f3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 28, 76, 0.12);
}

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

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

/* Sub-service List */
.service-subservice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-subservice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    background: var(--surface);
    transition: all 0.18s;
    color: var(--text);
}

.service-subservice-item:hover {
    border-color: var(--primary);
    background: #fff0f3;
    padding-left: 24px;
}

/* Budget Input */
.budget-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.budget-input-wrapper:focus-within {
    border-color: var(--primary);
}

.budget-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
}

.budget-currency {
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--background);
    border-left: 2px solid var(--border);
    height: 100%;
    display: flex;
    align-items: center;
    align-self: stretch;
}

/* Results List */
.service-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
}

.service-result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(230, 28, 76, 0.1);
    transform: translateY(-1px);
}

.service-result-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.service-result-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-result-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.service-result-service {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text);
}

.service-result-price {
    background: #fff0f3;
    color: var(--primary);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.service-result-action {
    flex-shrink: 0;
}

/* Back button */
.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    font-family: inherit;
}

.btn-back:hover { opacity: 0.7; }

/* Dashboard Hide Options */
.hidden-nav {
    display: none !important;
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

.about-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(212, 165, 116, 0.12);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* About Hero */
.about-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #fdfbf9 0%, #f7f0e8 100%);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-hero-text p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* About Story */
.about-story {
    padding: 80px 0;
    background: #fff;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.about-story-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.about-story-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-story-text p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* About Values */
.about-values {
    padding: 80px 0;
    background: #fafafa;
}

.about-values-header {
    text-align: center;
    margin-bottom: 48px;
}

.about-values-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-values-header p {
    font-size: 1.1rem;
    color: #888;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-value-card {
    background: #fff;
    border: 1px solid #f0ece6;
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.about-value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-value-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-value-card p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
}

/* About Stats */
.about-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.about-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* About CTA */
.about-cta {
    padding: 80px 0;
    background: #fff;
}

.about-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-cta-content p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 32px;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero */
.contact-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.75) 100%);
    z-index: 1;
}

.contact-hero-content {
    max-width: 600px;
}

.contact-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Contact Main */
.contact-main {
    padding: 60px 0;
    background: #fafafa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Contact Info Cards */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f0ece6;
    border-radius: 14px;
    padding: 22px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-card-body p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-card-body span {
    font-size: 0.82rem;
    color: #999;
}

/* Contact Form */
.contact-form-side {
    position: relative;
}

.contact-form-wrapper {
    background: #fff;
    border: 1px solid #f0ece6;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form-wrapper > p {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 28px;
}

.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e1ddd7;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
    background: #fafafa;
}

.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

/* FAQ Section */
.contact-faq {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fafafa;
    border: 1px solid #f0ece6;
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.92rem;
    color: #777;
    line-height: 1.6;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE: ABOUT & CONTACT
   ======================================== */

@media (max-width: 768px) {
    .about-hero-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-hero-text h1 {
        font-size: 2.2rem;
    }

    .about-hero-image img,
    .about-story-image img {
        height: 280px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-stat-number {
        font-size: 2rem;
    }

    .contact-hero-content h1 {
        font-size: 2rem;
    }

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

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

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}