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

/* ==========================================
   DESAIN SISTEM & VARIABEL (Light/Dark Mode)
   ========================================== */
:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transition Speed */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadow Styles */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Light Theme Palette (Default) */
    --bg-primary: hsl(220, 30%, 97%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(220, 20%, 92%);
    --text-primary: hsl(222, 47%, 12%);
    --text-secondary: hsl(220, 15%, 40%);
    --text-tertiary: hsl(220, 13%, 60%);
    
    --color-accent: hsl(262, 83%, 58%);      /* Indigo/Violet */
    --color-accent-light: hsl(262, 83%, 95%);
    --color-secondary: hsl(190, 90%, 45%);   /* Electric Blue/Teal */
    --color-success: hsl(142, 72%, 40%);     /* Emerald Green */
    --color-warning: hsl(38, 92%, 50%);      /* Amber/Yellow */
    --color-danger: hsl(350, 89%, 60%);      /* Red */
    
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 225, 240, 0.85));
}

/* Dark Theme Palette override */
[data-theme="dark"] {
    --bg-primary: hsl(222, 47%, 9%);
    --bg-secondary: hsl(222, 47%, 13%);
    --bg-tertiary: hsl(222, 47%, 18%);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-tertiary: hsl(215, 15%, 55%);
    
    --color-accent: hsl(262, 85%, 65%);
    --color-accent-light: hsl(262, 40%, 20%);
    --color-secondary: hsl(190, 85%, 55%);
    --color-success: hsl(142, 68%, 45%);
    --color-warning: hsl(38, 92%, 55%);
    --color-danger: hsl(350, 89%, 65%);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    --hero-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.85));
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

button:active {
    transform: scale(0.97);
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   HEADER & NAVBAR (Glassmorphism)
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-normal);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Role Selector Badge */
.role-badge {
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border-color);
}

.role-badge i {
    font-size: 0.6rem;
    color: var(--color-accent);
}

/* Dark Mode Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================
   BUTTON TEMPLATES
   ========================================== */
.btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, hsl(262, 83%, 63%), var(--color-accent));
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary));
    color: white;
}

.btn-accent:hover {
    filter: brightness(1.1);
}

/* ==========================================
   SECTIONS & VIEWS (SPA Layout)
   ========================================== */
main {
    margin-top: 76px;
    min-height: calc(100vh - 76px - 200px); /* Adjust based on footer */
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeInUp var(--transition-slow);
}

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding: 80px 0 100px 0;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

/* Search Bar on Hero */
.search-container {
    background-color: var(--bg-secondary);
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* ==========================================
   CATEGORIES SECTION
   ========================================== */
.categories-section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.category-card:hover .category-icon {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ==========================================
   POPULAR PROVIDERS SECTION
   ========================================== */
.providers-section {
    padding: 20px 0 80px 0;
}

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

.provider-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-normal);
}

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

.provider-card-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
}

.provider-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.provider-avatar-wrapper {
    position: absolute;
    bottom: -32px;
    left: 20px;
    border-radius: var(--radius-full);
    padding: 4px;
    background-color: var(--bg-secondary);
}

.provider-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.provider-card-body {
    padding: 44px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.provider-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.provider-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 700;
}

.provider-rating .stars {
    color: var(--color-warning);
}

.provider-rating .count {
    color: var(--text-tertiary);
    font-weight: 500;
}

.provider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tag {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.provider-price {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.provider-price span {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-accent);
}

/* ==========================================
   EXPLORE / SEARCH PAGE
   ========================================== */
.explore-container {
    padding: 40px 0 80px 0;
}

.explore-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 96px;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Checkbox/Radio */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-option input {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

.filter-option:hover {
    color: var(--text-primary);
}

/* Price Range Input slider style */
.price-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-slider-group span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    outline: none;
    accent-color: var(--color-accent);
}

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

.results-count {
    font-size: 1.1rem;
    font-weight: 700;
}

.results-sort select {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

/* ==========================================
   PROVIDER DETAILS PAGE
   ========================================== */
.detail-container {
    padding: 40px 0 80px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-header-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.detail-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    position: relative;
}

.detail-profile {
    display: flex;
    padding: 0 30px 30px 30px;
    position: relative;
    margin-top: -50px;
    gap: 24px;
    align-items: flex-end;
}

.detail-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-secondary);
    object-fit: cover;
    background-color: var(--bg-secondary);
}

.detail-info {
    flex-grow: 1;
    margin-bottom: 6px;
}

.detail-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-badge {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-bio-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.detail-bio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

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

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 140px;
    background-color: var(--bg-tertiary);
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Reviews List */
.reviews-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.reviews-section h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

.review-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
}

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

.review-stars {
    color: var(--color-warning);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.review-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Detail Sidebar (Booking Card) */
.detail-sidebar-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    position: sticky;
    top: 96px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-price-info {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.sidebar-price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--color-success);
}

/* ==========================================
   MODALS (Booking & Checkout Flow)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    background: none;
    border: none;
}

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

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Booking Steps Indicator */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--bg-tertiary);
    z-index: 1;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    transition: all var(--transition-fast);
}

.step-indicator.active {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

.step-indicator.completed {
    background-color: var(--color-success);
    color: white;
}

.booking-form-step {
    display: none;
}

.booking-form-step.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Payment selection list */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method-card.selected {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}

.payment-method-card input {
    accent-color: var(--color-accent);
}

.payment-method-info {
    flex-grow: 1;
}

.payment-method-title {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Pricing Invoice list inside booking modal */
.invoice-list {
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.invoice-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Booking Success Screen */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-success);
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px auto;
    animation: scaleUp var(--transition-slow);
}

@keyframes scaleUp {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-screen h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-screen p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================
   DASHBOARD PAGES (Customer & Provider)
   ========================================= */
.dashboard-container {
    padding: 40px 0 80px 0;
}

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

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* Dashboard Sidebar Menu */
.dashboard-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    height: fit-content;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dashboard-menu-item:hover, .dashboard-menu-item.active {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.dashboard-menu-item:last-child {
    margin-bottom: 0;
}

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

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 800;
}

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

/* Booking Cards (Dashboard style) */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: transform var(--transition-fast);
}

.booking-card:hover {
    transform: translateX(4px);
    border-color: var(--color-accent);
}

.booking-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.booking-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.booking-meta-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.booking-meta-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.booking-meta-details .service-type {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
}

.booking-status-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending {
    background-color: hsl(38, 92%, 93%);
    color: var(--color-warning);
}
[data-theme="dark"] .status-pending {
    background-color: hsl(38, 40%, 20%);
}

.status-active {
    background-color: hsl(200, 92%, 93%);
    color: var(--color-secondary);
}
[data-theme="dark"] .status-active {
    background-color: hsl(200, 40%, 20%);
}

.status-completed {
    background-color: hsl(142, 72%, 93%);
    color: var(--color-success);
}
[data-theme="dark"] .status-completed {
    background-color: hsl(142, 40%, 20%);
}

.status-declined {
    background-color: hsl(350, 89%, 93%);
    color: var(--color-danger);
}
[data-theme="dark"] .status-declined {
    background-color: hsl(350, 40%, 20%);
}

/* Review Stars Rating Input */
.rating-input {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    margin-bottom: 16px;
}

.rating-input i:hover, .rating-input i.active {
    color: var(--color-warning);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--color-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideInRight var(--transition-fast) forwards;
}

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

.toast.toast-success {
    border-left-color: var(--color-success);
}
.toast.toast-error {
    border-left-color: var(--color-danger);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
    .explore-layout, .detail-layout, .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar, .detail-sidebar-card {
        position: static;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none; /* Can toggle with JS */
    }
    
    .navbar {
        height: 70px;
    }
    
    .hero {
        padding: 50px 0 70px 0;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .search-input {
        padding: 10px 10px 10px 36px;
    }
    
    .search-icon {
        left: 10px;
    }
    
    .detail-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px 20px;
    }
    
    .detail-avatar {
        margin-top: -60px;
    }
    
    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .booking-card button {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================
   SUPABASE AUTH & REGISTER EXTRA STYLES
   ========================================== */
#auth-modal-overlay .nav-link {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    transition: all var(--transition-fast);
}

#auth-modal-overlay .nav-link.active {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
}

#provider-extra-fields {
    animation: fadeIn var(--transition-normal);
}

#auth-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#user-role-badge {
    cursor: default;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

