html, body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
}

/* Remove top margin/padding from main containers */
.container, .discover-search-section, .profile-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Center container content on desktop */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Money Green Theme Color Palette - DARK FOREST POWER */
:root {
    --money-primary: #059669;           /* Droply green - primary brand color */
    --money-secondary: #047857;         /* Darker Droply green - secondary actions */
    --money-accent: #10B981;            /* Lighter Droply green - accents */
    --money-dark: #064E3B;              /* Darkest Droply green - authority */
    --money-light: #34D399;             /* Light Droply green - growth */
    --money-lighter: #ECFDF5;           /* Very light Droply green - subtle background */
    --money-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --money-gradient-alt: linear-gradient(135deg, #047857 0%, #10B981 100%);
    --money-gradient-dark: linear-gradient(135deg, #064E3B 0%, #059669 100%);
    --money-gradient-premium: linear-gradient(135deg, #D4AF37 0%, #1B4332 100%);
}

/* Ensure discover-search-section gradient starts at the very top */
.discover-search-section {
    background: linear-gradient(135deg, #1B4332 0%, #2D5A3D 100%) !important;
    background-position: top;
}

/* Ensure profile-hero gradient starts at the very top */
.profile-hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D5A3D 100%) !important;
    background-position: top;
}

/* Remove any border or shadow from the very top of the page */
body, html {
    border-top: none !important;
    box-shadow: none !important;
    height: 100%;
    min-height: 100vh;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation - Floating Oval */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 229, 229, 0.3);
    border-radius: 50px;
    padding: 1rem 2rem;
    position: fixed;
    top: 20px;
    left: 10%;
    right: 10%;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin: 0 auto;
}

.navbar.navbar-hidden {
    transform: translateY(-100px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #059669;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: #047857;
}

.navbar-brand-icon {
    width: 32px;
    height: 32px;
    background: #059669;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--money-primary);
    background: rgba(5, 150, 105, 0.1);
}

.nav-link.active {
    color: var(--money-primary);
    background: rgba(5, 150, 105, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 300px;
}

.btn-primary {
    background: var(--money-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--money-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.4);
}

.btn-secondary {
    background: var(--money-lighter);
    color: var(--money-primary);
    border: 2px solid var(--money-light);
}

.btn-secondary:hover {
    background: var(--money-light);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--money-primary);
    border: 2px solid var(--money-primary);
}

.btn-outline:hover {
    background: var(--money-primary);
    color: white;
}

/* Hero Sections with Better Colors and Spacing */
.hero-section {
    padding: 2rem 0 8rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    padding: 0 4rem;
    width: 100%;
    justify-content: center;
}
.hero-content-unified {
    justify-content: center;
    align-items: center;
    gap: 0;
}

.hero-section:nth-child(1) {
    background: #fff;
    color: #1a1a1a;
}

.hero-section:nth-child(2) {
    background: #fff;
    color: #1a1a1a;
}

.hero-section:nth-child(3) {
    background: #fff;
    color: #1a1a1a;
}

.hero-text {
    flex: 1;
}

.hero-animation {
    flex: 1;
    text-align: center;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
}

.hero-buttons .btn {
    font-size: 1.2rem;
    padding: 20px 40px;
    min-width: 300px;
}

/* Section 1: Feature Reveal Animation (8 images in a circle) */
.hero-images-features {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.main-feature {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: transform 0.3s ease;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff) border-box;
    animation: wiggle-border 8s ease-in-out infinite;
}

.main-feature:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

@keyframes wiggle-border {
    0% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff) border-box;
    }
    16.66% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(60deg, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b) border-box;
    }
    33.33% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(120deg, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4) border-box;
    }
    50% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(180deg, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1) border-box;
    }
    66.66% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(240deg, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4) border-box;
    }
    83.33% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(300deg, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57) border-box;
    }
    100% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(360deg, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) border-box;
    }
}

.feature-item {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 18px;
    border: 3px solid transparent;
    object-fit: cover;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 5;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: feature-pop 6s ease-in-out infinite, wiggle-border-small 10s ease-in-out infinite;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff) border-box;
}

.feature-item:nth-child(1) { animation-delay: 0s, 0s; }
.feature-item:nth-child(2) { animation-delay: 0s, 0.5s; }
.feature-item:nth-child(3) { animation-delay: 0s, 1s; }
.feature-item:nth-child(4) { animation-delay: 0s, 1.5s; }
.feature-item:nth-child(5) { animation-delay: 0s, 2s; }
.feature-item:nth-child(6) { animation-delay: 0s, 2.5s; }
.feature-item:nth-child(7) { animation-delay: 0s, 3s; }
.feature-item:nth-child(8) { animation-delay: 0s, 3.5s; }

@keyframes wiggle-border-small {
    0% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff) border-box;
    }
    16.66% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(60deg, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b) border-box;
    }
    33.33% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(120deg, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4) border-box;
    }
    50% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(180deg, #96ceb4, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1) border-box;
    }
    66.66% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(240deg, #feca57, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4) border-box;
    }
    83.33% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(300deg, #ff9ff3, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57) border-box;
    }
    100% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(360deg, #54a0ff, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) border-box;
    }
}

/* 8 positions around a circle (every 45deg, radius 220px for horizontal, 320px for diagonal, 270px for vertical) */
.feature-item.pos1 { --angle: 0deg; --radius: 220px; }
.feature-item.pos2 { --angle: 45deg; --radius: 320px; }
.feature-item.pos3 { --angle: 90deg; --radius: 270px; }
.feature-item.pos4 { --angle: 135deg; --radius: 320px; }
.feature-item.pos5 { --angle: 180deg; --radius: 220px; }
.feature-item.pos6 { --angle: 225deg; --radius: 320px; }
.feature-item.pos7 { --angle: 270deg; --radius: 270px; }
.feature-item.pos8 { --angle: 315deg; --radius: 320px; }

@keyframes feature-pop {
    0%, 100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    20%, 80% {
        /* 250px radius for horizontal/vertical, 320px for diagonal positions */
        top: calc(40% + var(--radius, 250px) * sin(var(--angle)));
        left: calc(50% + var(--radius, 250px) * cos(var(--angle)));
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* --- Hero Section 2: Stepper with Animated Image --- */
.hero-stepper {
    flex: 0 0 320px;
    margin-right: 4rem;
}
.stepper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stepper-tab {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, border 0.2s, color 0.2s;
}
.stepper-tab.active {
    background: #fff;
    border: 2px solid #059669;
    color: #333;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
}
.stepper-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}
.hero-step-image-wrapper {
    position: relative;
    width: 420px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.animated-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 32px;
    z-index: 1;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    overflow: hidden;
    animation: bgMove 6s ease-in-out infinite alternate;
}
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.step-image {
    position: relative;
    z-index: 2;
    width: 320px;
    height: 240px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.15);
    background: #fff;
    transition: box-shadow 0.2s;
}
.pop-in {
    animation: popIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    80% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Remove old spinning animation styles */
.hero-images-spin, .spin-image { display: none !important; }

/* Section 3: Staggered Cards Animation */
.hero-images-cube {
    position: relative;
    width: 600px;
    height: 450px;
    margin: 0 auto;
    will-change: transform;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.cube-face {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    will-change: transform;
    transition: all 0.3s ease;
}

.cube-face:nth-child(1) { 
    top: 5%;
    left: 5%;
    animation: stagger1 6s ease-in-out infinite;
}
.cube-face:nth-child(2) { 
    top: 25%;
    left: 60%;
    animation: stagger2 6s ease-in-out infinite;
    animation-delay: -1s;
}
.cube-face:nth-child(3) { 
    top: 60%;
    left: 20%;
    animation: stagger3 6s ease-in-out infinite;
    animation-delay: -2s;
}
.cube-face:nth-child(4) { 
    top: 70%;
    left: 60%;
    animation: stagger4 6s ease-in-out infinite;
    animation-delay: -3s;
}
.cube-face:nth-child(5) { 
    top: 40%;
    left: 40%;
    animation: stagger5 6s ease-in-out infinite;
    animation-delay: -4s;
}
.cube-face:nth-child(6) { 
    top: 15%;
    left: 65%;
    animation: stagger6 6s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes stagger1 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes stagger2 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes stagger3 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

@keyframes stagger4 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-4deg); }
}

@keyframes stagger5 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

@keyframes stagger6 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-2deg); }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: rgba(5, 150, 105, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(102, 126, 234, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Enhanced Discover Page - New Layout */
.discover-search-section {
    padding: 1.5rem 0;
    margin-top: 120px !important; /* Ensures search bar is below the nav */
    background: linear-gradient(135deg, #1B4332 0%, #2D5A3D 100%);
    color: white;
}

.search-container-enhanced {
    margin-bottom: 1rem;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-icon {
    padding: 0 1rem;
    font-size: 1.2rem;
    color: #666;
}

.search-input-enhanced {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
}

.search-input-enhanced::placeholder {
    color: #999;
}

.search-button {
    background: #4A7C59;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #2D5A3D;
}

/* Category Filters */
.category-filters {
    margin-top: 1rem;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.category-card.active {
    background: white;
    color: #4A7C59;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 1rem;
    margin: 0;
}

.category-name {
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0;
}

.discover-results {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.count-text {
    font-size: 1.1rem;
    color: #666;
}

.search-term {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.search-highlight {
    background: var(--money-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.experts-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.expert-card-enhanced {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.expert-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.expert-card-header-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

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

.expert-avatar-enhanced {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e5e5;
    transition: border-color 0.2s ease;
}

.expert-card-enhanced:hover .expert-avatar-enhanced {
    border-color: var(--money-primary);
}

.availability-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--trust-blue-primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.expert-info-enhanced {
    flex: 1;
}

.expert-name-enhanced {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.expert-title-enhanced {
    font-size: 1rem;
    color: var(--money-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.expert-industry {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.expert-bio-enhanced {
    margin-bottom: 0.75rem;
}

.expert-bio-enhanced p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.expert-tag {
    background: var(--money-lighter);
    color: var(--money-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--money-light);
}

.more-tags {
    background: #e5e5e5;
    color: #666;
    border-color: #d0d0d0;
}

.expert-footer-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.expert-rating-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.star {
    color: #ddd;
    font-size: 0.9rem;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.expert-price-enhanced {
    text-align: right;
}

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

.price-unit {
    font-size: 0.9rem;
    color: #666;
}

.expert-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.action-btn.primary {
    background: #4A7C59;
    color: white;
}

.action-btn.primary:hover {
    background: #2D5A3D;
    color: white;
    text-decoration: none;
}

.action-btn.secondary {
    background: transparent;
    color: #4A7C59;
    border: 2px solid #4A7C59;
}

.action-btn.secondary:hover {
    background: #4A7C59;
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--money-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control:invalid {
    border-color: #dc3545;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

/* Features */
.features {
    padding: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-text {
    color: #666;
    line-height: 1.6;
}

/* Dashboard */
.dashboard-header {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #e5e5e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.profile-title {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-bio {
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Booking cards */
.booking-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

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

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

.booking-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.booking-date {
    color: #666;
    font-size: 0.9rem;
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Search */
.search-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--trust-blue-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Expert cards */
.expert-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #e5e5e5;
    transition: transform 0.2s ease;
}

.expert-card:hover .expert-avatar {
    transform: scale(1.05);
}

.expert-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.expert-title {
    color: #666;
    margin-bottom: 0.5rem;
}

.expert-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.expert-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.expert-price {
    font-weight: 700;
    color: var(--trust-blue-primary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #e5e5e5;
    position: relative;
    width: 100%;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--money-primary);
}

/* Global Footer Styles - Overridden by base template */
.global-footer {
    /* Styles handled in base_signed_in.html */
}

/* Ensure content doesn't get hidden by footer */
.container, .card, .account-page {
    margin-bottom: 0;
}

.global-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.global-footer .footer-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.global-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-footer .footer-links li a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.global-footer .footer-links li a:hover {
    color: var(--money-primary);
}

.global-footer .footer-copyright {
    color: #999;
    font-size: 0.875rem;
}

.global-footer .footer-social {
    display: flex;
    gap: 1rem;
}

.global-footer .footer-social a {
    color: #666;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.global-footer .footer-social a:hover {
    color: var(--money-primary);
}

@media (max-width: 768px) {
    .global-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .global-footer .footer-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .global-footer .footer-links {
        justify-content: center;
    }
    
    .global-footer {
        padding: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .hero-images-features {
        width: 300px;
        height: 300px;
    }
    
    .main-feature {
        width: 220px;
        height: auto;
    }
    
    .feature-item {
        width: 90px;
        height: 90px;
        border: 2px solid #006400;
    }
    
    .hero-images-cube {
        width: 200px;
        height: 200px;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-link {
        display: block;
        margin: 0.5rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        min-width: 250px;
    }
    
    .navbar {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }
    
    /* Discover page responsive */
    .discover-search-section {
        padding: 1.5rem 0;
    }
    
    .category-grid {
        gap: 0.4rem;
        justify-content: center;
    }
    
    .category-card {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .category-icon {
        font-size: 0.9rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-button {
        width: 100%;
    }
    
    .quick-filters {
        gap: 0.5rem;
    }
    
    .filter-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .experts-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .expert-card-enhanced {
        padding: 0.5rem;
    }
    
    .expert-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* Mobile-specific discover page styles */
@media (max-width: 480px) {
    .discover-search-section {
        padding: 1rem 0;
    }
    
    .category-grid {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-card {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .category-icon {
        font-size: 0.8rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .expert-card-header-enhanced {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-avatar-wrapper {
        align-self: center;
    }
    
    .expert-footer-enhanced {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .expert-price-enhanced {
        text-align: left;
    }
}

/* Simple animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }

/* --- Consistent Hero Section Sizing --- */
.hero-section {
    padding: 8rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    padding: 0 4rem;
    width: 100%;
    justify-content: center;
}
.hero-content-unified {
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* --- Unified Stepper Card --- */
.hero-stepper-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 700px;
    min-height: 340px;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.10);
    overflow: hidden;
    background: transparent;
}
.hero-stepper-card .animated-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 32px;
    z-index: 1;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    animation: bgMove 6s ease-in-out infinite alternate;
}
.hero-stepper-side {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}
.hero-step-image-side {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 1rem;
    min-width: 320px;
    min-height: 240px;
}
.image-animated-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 340px;
    height: 260px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.10);
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.animated-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
/* Animate the SVG shapes */
.anim-circle {
    animation: floatCircle 4s ease-in-out infinite alternate;
}
@keyframes floatCircle {
    0% { cy: 60px; }
    100% { cy: 80px; }
}
.anim-rect {
    animation: moveRect 5s ease-in-out infinite alternate;
}
@keyframes moveRect {
    0% { x: 200px; y: 40px; }
    100% { x: 220px; y: 60px; }
}
.anim-circle2 {
    animation: floatCircle2 6s ease-in-out infinite alternate;
}
@keyframes floatCircle2 {
    0% { cy: 180px; }
    100% { cy: 160px; }
}
.anim-rect2 {
    animation: moveRect2 4.5s ease-in-out infinite alternate;
}
@keyframes moveRect2 {
    0% { x: 80px; y: 160px; }
    100% { x: 100px; y: 140px; }
}
.step-image {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 160px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.10);
    background: #fff;
    margin: 0 auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-stepper-card {
        flex-direction: column;
        width: 95vw;
        min-width: unset;
        min-height: 500px;
    }
    .hero-stepper-side, .hero-step-image-side {
        min-width: unset;
        padding: 2rem 1rem;
    }
    .step-image {
        width: 90vw;
        max-width: 320px;
        height: 180px;
    }
}

/* --- Hero Section 2: Centered, White Background, Large Animated Box --- */
.hero-section-white-bg {
    background: #fff !important;
    min-height: 700px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}
.hero-stepper-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
}
.hero-stepper-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 340px;
    margin-right: 2rem;
}
.stepper-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 340px;
}
.stepper-tab {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.04);
    transition: background 0.2s, border 0.2s, color 0.2s, box-shadow 0.2s;
}
.stepper-tab.active {
    background: #f8f9fa;
    border: 2px solid #059669;
    color: #222;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.10);
}
.stepper-tab:hover {
    background: #f3f6ff;
    color: #222;
}
.stepper-icon {
    font-size: 1.6rem;
    margin-right: 1.2rem;
}
.step-description {
    display: none;
    font-size: 0.98rem;
    color: #555;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.7rem 1rem 0.7rem 2.2rem;
    margin-top: 0.2rem;
    margin-bottom: 0.1rem;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.03);
    width: 100%;
    min-height: 0;
    transition: max-height 0.3s, padding 0.3s;
}
.stepper-tab.active .step-description {
    display: block;
}
.hero-step-image-animated-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 620px;
    min-height: 520px;
    padding-top: 2rem;
}
.step-image-wrapper {
    display: inline-block;
    border: 3px solid #059669;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.2);
    transition: all 0.3s ease-in-out, opacity 0.15s ease-in-out;
    /* Make wrapper fit the image content exactly */
    line-height: 0;
    /* Remove any padding/margin that could create extra space */
    padding: 0;
    margin: 0;
}
.step-image-large {
    max-width: 560px;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: cover;
    background: transparent !important;
    margin: 0;
    display: block;
    border: none;
    border-radius: 17px; /* Slightly smaller than wrapper to account for border */
    transition: all 0.3s ease-in-out, opacity 0.15s ease-in-out;
    /* Let the image determine its own size within max constraints */
    object-position: center;
}


@media (max-width: 1100px) {
    .hero-stepper-layout {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    .hero-stepper-side {
        align-items: center;
        margin-right: 0;
    }
}
@media (max-width: 700px) {
    .hero-stepper-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-stepper-side, .stepper-list, .step-description {
        min-width: unset;
        width: 95vw;
        max-width: 340px;
    }
    .hero-step-image-animated-box {
        min-width: unset;
        min-height: 450px;
        padding-top: 1rem;
    }
    .step-image-large {
        max-width: 90vw;
        max-height: 420px;
        width: auto;
        height: auto;
        min-width: 350px;
        min-height: 300px;
    }
    .step-image-wrapper {
        border-radius: 15px;
    }
}

/* --- Connected Stepper Sidebar (tall tabs to match image background) --- */
.connected-stepper {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.06);
    overflow: hidden;
    padding: 0;
    margin: 0;
    width: 480px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    border: none;
    gap: 0.7rem;
}
.connected-stepper .stepper-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0 2.5rem;
    font-size: 1.45rem;
    font-weight: 600;
    color: #b0b7c3;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    min-height: 72px;
    height: auto;
    box-sizing: border-box;
}
.connected-stepper .stepper-tab:first-child {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.connected-stepper .stepper-tab:last-child {
    border-bottom: none;
}
.connected-stepper .stepper-tab:first-child {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.connected-stepper .stepper-tab:last-child {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.connected-stepper .stepper-tab.active {
    background: #f8f9fa;
    color: #059669;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
.connected-stepper .stepper-tab .stepper-icon {
    font-size: 1.7rem;
    margin-right: 1.4rem;
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.7rem;
    line-height: 2.7rem;
    text-align: center;
    color: #b0b7c3;
    background: transparent !important;
    padding: 0;
    border-radius: 8px;
    transition: color 0.2s;
    display: inline-block;
    vertical-align: middle;
}
.connected-stepper .stepper-tab.active .stepper-icon {
    color: #059669;
    background: transparent !important;
}

.step-timer-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s, width 0.2s;
    z-index: 3;
    pointer-events: none;
}
.stepper-tab {
    position: relative;
    overflow: hidden;
}
.stepper-tab.active .step-timer-bar {
    width: 100%;
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
    animation: timerBarGrow 3s linear forwards;
}
@keyframes timerBarGrow {
    from { width: 0%; }
    to { width: 100%; }
}

.stepper-desc {
    display: none !important;
    font-size: 0.98rem;
    color: #888;
    line-height: 1.3;
    margin-top: 1.2rem;
    margin-bottom: 0.9rem;
    margin-left: 0;
    white-space: normal;
    word-break: break-word;
}
.stepper-tab.active > .stepper-desc {
    display: block !important;
}

.stepper-desc-container {
    margin-top: 1.1rem;
    min-height: 2.6em;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.stepper-desc {
    font-size: 0.98rem;
    color: #888;
    line-height: 1.3;
    max-width: 90%;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.stepper-label {
    display: flex;
    align-items: center;
}

.hero-section-cube {
    background: #fff !important;
}

.section-divider {
    width: 100vw;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    z-index: 1;
}
.section-divider svg {
    display: block;
    width: 100vw;
    height: 80px;
}

/* --- Consistent Card Height and Footer Alignment --- */
.expert-card-enhanced {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
    height: 100%;
}

.expert-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.expert-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expert-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.expert-actions {
    display: flex;
    gap: 0.5rem;
}

/* Remove old footer spacing */
.expert-footer-enhanced {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

/* Responsive: ensure min-height is smaller on mobile */
@media (max-width: 480px) {
    .expert-card-enhanced {
        min-height: 180px;
    }
    .expert-bio-enhanced {
        min-height: 28px;
        max-height: 36px;
    }
}

/* Auth page centering and card styles */
.auth-center-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* Compact auth card styles */
.auth-card-compact {
    padding: 2rem 2rem 1.5rem 2rem;
    max-width: 380px;
}

.form-group-compact {
    margin-bottom: 1rem;
}

.form-label-compact {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.form-control-compact {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}

.btn-compact {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
}

.btn-google-compact {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

@media (max-width: 500px) {
    .auth-card {
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
        max-width: 95vw;
    }
    
    .auth-card-compact {
        padding: 1.5rem 1rem 1rem 1rem;
        max-width: 95vw;
    }
    
    .form-group-compact {
        margin-bottom: 0.8rem;
    }
    
    .form-control-compact {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }
}

/* Google OAuth button style */
.btn-google {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    margin-bottom: 1rem;
}
.btn-google:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 16px rgba(66,133,244,0.10);
    color: #4285f4;
    text-decoration: none;
}

/* Divider styles for OAuth separation */
.divider-container {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.divider-text {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
}

/* --- Profile Hero Section Spacing Fix --- */
.profile-hero {
    padding-top: 140px !important;
    margin-top: 0 !important;
    background: linear-gradient(135deg, #1B4332 0%, #2D5A3D 100%) !important;
    background-position: top !important;
}
@media (max-width: 768px) {
    .profile-hero {
        padding-top: 110px !important;
        margin-top: 0 !important;
    }
}

/* --- Sidebar Styles with Money Green Theme --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80px;
    background: white;
    border-right: 1px solid #e5e5e5;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.sidebar-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 0.5rem auto;
    font-size: 1.2rem;
}

.sidebar-link:hover {
    background: var(--money-lighter);
    color: var(--money-primary);
    text-decoration: none;
}

.sidebar-link.active {
    background: var(--money-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.sidebar-link-icon:hover {
    background: var(--money-lighter);
    color: var(--money-primary);
    text-decoration: none;
    transform: scale(1.05);
}

.sidebar-link-icon.active {
    background: var(--money-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
    transform: scale(1.05);
}

/* Profile Dropdown Styles */
.profile-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: #666;
}

.profile-dropdown-toggle:hover {
    background: var(--money-lighter);
    color: var(--money-primary);
    transform: scale(1.05);
}

.profile-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    display: none;
    z-index: 1000;
    margin-left: 12px;
    overflow: hidden;
}

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

.profile-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 4px;
}

.profile-joined {
    color: #666;
    font-size: 0.875rem;
}

.dropdown-section {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section-title {
    padding: 12px 20px 8px 20px;
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.dropdown-item.text-danger {
    color: #dc3545;
}

.dropdown-item.text-danger:hover {
    background-color: #fee;
    color: #dc3545;
}

.dropdown-item i.fa-chevron-right {
    font-size: 0.75rem;
    color: #999;
}

.account-credit {
    background-color: #f8f9fa;
}

.credit-amount {
    font-weight: 600;
    color: var(--money-primary);
}

/* Account Page Styles */
.account-page {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
}

.account-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.account-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.account-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.account-content {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 120px); /* Subtract header height only */
    margin: 0;
    padding: 0;
}

.account-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e5e5e5;
    padding: 2rem 0.5rem 2rem 0.5rem;
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px); /* Subtract header height only */
    overflow-y: visible;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8rem;
}

.profile-summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
}

.profile-avatar-placeholder-large {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.profile-name-large {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-joined-large {
    color: #666;
    font-size: 0.875rem;
}

.account-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 300px;
}

.account-section:last-child {
    margin-bottom: 5rem;
}

.section-title {
    font-weight: 700;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: left;
    width: 100%;
    padding-left: 0.5rem;
}

.section-title.details {
    color: var(--money-primary);
}

.section-title.support {
    color: #666;
}

.section-items {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    width: 100%;
}

.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

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

.section-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: var(--money-primary);
}

.section-item.active {
    background-color: var(--money-lighter);
    color: var(--money-primary);
    font-weight: 600;
}

.section-item i.fa-chevron-right {
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.5rem;
}

.account-credit-item {
    background-color: transparent;
}

.credit-amount-large {
    font-weight: 600;
    color: var(--money-primary);
}

.account-main-content {
    flex: 1;
    padding: 0 2rem 2rem 2rem;
    background: white;
    min-height: calc(100vh - 120px - 120px); /* Subtract header and footer height */
    border-left: 1px solid #e5e5e5;
}

.content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.content-placeholder-text {
    text-align: center;
    color: #666;
}

.content-placeholder-text i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.content-placeholder-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.content-placeholder-text p {
    color: #666;
    font-size: 1rem;
}

.tab-content {
    max-width: 600px;
}

/* Make availability tab content wider to accommodate the calendar */
.tab-content[data-tab-content="availability"] {
    max-width: 100%;
}

.tab-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.account-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-form .form-group {
    margin-bottom: 1.5rem;
}

.account-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.account-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.account-form .form-control:focus {
    outline: none;
    border-color: var(--money-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.payment-method-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-info i {
    font-size: 1.5rem;
    color: var(--money-primary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info li:last-child {
    border-bottom: none;
}

.promise-content ul {
    padding-left: 1.5rem;
}

.promise-content li {
    margin-bottom: 0.5rem;
    color: #666;
}

.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.terms-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
}

.terms-section h3:first-child {
    margin-top: 0;
}

.terms-section p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.delete-account-warning {
    max-width: 600px;
    margin-bottom: 2rem;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.warning-box i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 0.5rem;
}

.warning-box ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.warning-box li {
    color: #856404;
    margin-bottom: 0.25rem;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.btn-danger:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

@media (max-width: 768px) {
    .account-content {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        align-items: flex-start;
    }
    
    .account-main-content {
        border-left: none;
        padding: 1rem;
    }
    
    .account-section {
        max-width: none;
    }
    
    .profile-summary-card {
        max-width: none;
    }
}

/* Mobile-first improvements */
@media (max-width: 768px) {
  /* Ensure proper spacing for mobile navigation */
  .main-content {
    padding-top: 80px !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Improve card layouts for mobile */
  .card {
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  /* Better button sizing for mobile */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  /* Improve form controls for mobile */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  /* Better spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Improve expert cards for mobile */
  .expert-card-enhanced {
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .expert-card-header-enhanced {
    padding: 1rem;
  }

  .expert-avatar-wrapper {
    width: 60px;
    height: 60px;
  }

  .expert-info-enhanced {
    padding: 0 1rem;
  }

  .expert-footer-enhanced {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .expert-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Improve search section for mobile */
  .discover-search-section {
    padding: 1.5rem 1rem;
  }

  .search-input-wrapper {
    margin-bottom: 1rem;
  }

  .search-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Better category grid for mobile */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .category-card {
    padding: 1rem;
    border-radius: 12px;
  }

  /* Improve dashboard stats for mobile */
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  /* Better booking cards for mobile */
  .booking-card {
    margin-bottom: 1rem;
    border-radius: 12px;
    padding: 1rem;
  }

  /* Improve account page for mobile */
  .account-content {
    flex-direction: column;
  }

  .account-sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }

  .account-main-content {
    width: 100%;
  }

  /* Better profile setup for mobile */
  .profile-setup-container {
    padding: 1rem;
  }

  .profile-setup-form {
    padding: 1rem;
  }

  /* Improve footer for mobile */
  .global-footer {
    padding: 2rem 1rem;
  }

  .global-footer .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .global-footer .footer-section {
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .main-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

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

  .expert-card-enhanced {
    margin: 0 0.5rem 1rem 0.5rem;
  }

  .booking-card {
    margin: 0 0.5rem 1rem 0.5rem;
  }

  .stat-card {
    margin: 0 0.5rem 1rem 0.5rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-link {
    min-height: 44px;
    padding: 1rem 1.5rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .action-btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .form-control {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  /* Better spacing for touch */
  .expert-card-enhanced {
    margin-bottom: 1.5rem;
  }

  .booking-card {
    margin-bottom: 1.5rem;
  }

  .stat-card {
    margin-bottom: 1.5rem;
  }
}

/* Landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-dropdown {
    max-height: 60vh;
  }

  .main-content {
    padding-top: 70px;
  }
}

/* High DPI display improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hamburger-icon,
  .hamburger-icon::before,
  .hamburger-icon::after {
    transform: scale(0.9);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .mobile-nav {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .nav-dropdown {
    background: #1a1a1a;
    color: #ffffff;
  }

  .nav-link {
    color: #cccccc;
  }

  .nav-link:hover {
    background: rgba(5, 150, 105, 0.2);
    color: #ffffff;
  }

  .nav-item {
    border-bottom-color: #333333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .hamburger-icon,
  .hamburger-icon::before,
  .hamburger-icon::after {
    transition: none;
  }
}

/* Mobile enhancement styles */
.quick-action-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}

.quick-action-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
}

.quick-action-btn {
  background: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.quick-action-btn.book-btn {
  background: #059669;
  color: white;
}

.quick-action-btn.message-btn {
  background: #667eea;
  color: white;
}

.quick-booking-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.quick-booking-actions .quick-action-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.875rem;
  min-width: auto;
}

.mobile-notification {
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
}

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

.voice-search-btn {
  transition: all 0.2s ease;
}

.voice-search-btn:hover {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
}

.voice-search-btn.recording {
  background: #ff4444 !important;
  color: white !important;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.mobile-image-preview {
  animation: fadeIn 0.3s ease;
}

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

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .quick-action-btn {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }
  
  .suggestion-item {
    min-height: 48px;
    padding: 1rem;
  }
  
  .voice-search-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .quick-action-btn {
    border: 2px solid currentColor;
  }
  
  .mobile-notification {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support for animations */
@media (prefers-reduced-motion: reduce) {
  .quick-action-overlay,
  .quick-action-btn,
  .mobile-notification,
  .mobile-image-preview,
  .voice-search-btn {
    animation: none;
    transition: none;
  }
}

/* Sidebar Logout Button */
.sidebar-logout {
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
}

.logout-icon {
  color: #dc3545 !important;
  transition: all 0.2s ease;
}

.logout-icon:hover {
  color: #c82333 !important;
  transform: scale(1.1);
}

/* Hide animations on mobile */
@media (max-width: 768px) {
    .feature-animation,
    .hero-animation,
    .hero-images-features,
    .hero-images-cube,
    .cube-face,
    .anim-circle,
    .anim-rect,
    .anim-circle2,
    .anim-rect2 {
        display: none !important;
    }
}

/* Weekly Calendar Styles - Column Layout */
.weekly-calendar {
    margin-top: 1rem;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: visible;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-width: 900px;
}

.day-column {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    min-width: 80px;
}

.day-header {
    background-color: var(--money-primary);
    color: white;
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.day-name {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.date-display {
    font-size: 10px;
    opacity: 0.9;
}

.events-section,
.availability-section,
.status-section {
    padding: 6px 4px;
    border-bottom: 1px solid #f3f4f6;
    flex: 1;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.status-section {
    background-color: #fef2f2;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px;
}

.availability-section {
    background-color: #f0fdf4;
    min-height: 140px;
    padding: 16px 8px;
}

.events-section {
    background-color: #fefce8;
    min-height: 150px;
    border-bottom: none;
}

.events-list {
    width: 100%;
}

.no-events {
    color: #9ca3af;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}

.calendar-event {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #92400e;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event .event-time {
    font-weight: 600;
    font-size: 10px;
}

.calendar-event .event-title {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.time-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.time-inputs input {
    width: 100%;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
}

.time-inputs input:focus {
    border-color: var(--money-primary);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.1);
    outline: none;
}

.time-separator {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0;
}

.form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-check-input {
    margin: 0;
    transform: scale(0.7);
}

.form-check-input:checked {
    background-color: var(--money-primary);
    border-color: var(--money-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.form-check-label {
    font-size: 10px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.calendar-navigation {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.calendar-navigation h5 {
    color: var(--money-dark);
    font-weight: 600;
}

.calendar-navigation .small {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
    display: inline-block;
}

/* Extra small button size */
.btn-xs {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.25rem;
    min-width: auto;
}

/* Navigation arrow buttons - extra compact */
.calendar-navigation .btn-xs {
    padding: 0.125rem 0.125rem;
    min-width: auto;
    width: auto;
}

.calendar-navigation #sync-calendar-events {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.calendar-navigation #sync-calendar-events:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.calendar-navigation #sync-calendar-events:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-navigation #prev-week,
.calendar-navigation #next-week {
    padding: 0.125rem 0.125rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #6b7280;
    transition: all 0.2s ease;
    min-width: auto;
    width: auto;
}

.calendar-navigation #prev-week:hover,
.calendar-navigation #next-week:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .calendar-grid {
        min-width: 800px;
    }
    
    .day-column {
        min-width: 70px;
    }
}

@media (max-width: 1000px) {
    .calendar-grid {
        min-width: 700px;
    }
    
    .day-column {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .day-column {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        min-height: auto;
    }
    
    .day-header {
        background-color: var(--money-primary);
        color: white;
        padding: 12px 16px;
    }
    
    .day-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .date-display {
        font-size: 14px;
    }
    
    .events-section,
    .availability-section,
    .status-section {
        padding: 16px;
    }
    
    .section-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .time-inputs {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .time-inputs input {
        width: 100px;
    }
    
    .calendar-event {
        font-size: 12px;
        padding: 8px;
    }
    
    .calendar-event .event-time {
        font-size: 11px;
    }
    
    .calendar-event .event-title {
        font-size: 12px;
    }
}

/* Calendar event indicators */
.calendar-event.busy {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.calendar-event.meeting {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.calendar-event.personal {
    background-color: #f3e8ff;
    border-color: #8b5cf6;
    color: #7c3aed;
}

/* Compact Google Calendar integration when connected */
#calendar-connected {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem;
}

#calendar-connected br {
    display: none;
}

.calendar-actions {
    margin-top: 0.5rem;
}


