:root {
    --primary: #0D1B2A;
    --accent: #FF6B00;
    --white: #FFFFFF;
    --bg: #0A1420;
    --dark-surface: rgba(13, 27, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(18, 35, 54, 0.6);
    --text-muted: #94A3B8;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --tl-header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scroll-behavior: smooth;
    overflow-wrap: break-word;
}

html {
    background-color: #0A1420 !important;
    background: #0A1420 !important;
    color-scheme: dark;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    background-color: #0A1420 !important;
    background: #0A1420 !important;
    color: var(--white);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: static;
}

body.has-fixed-nav,
body:has(> header.glass-navbar) {
    padding-top: var(--tl-header-h);
}

canvas,
.hero-bg-animation canvas,
#threeContainer canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar — fixed to the viewport (sticky fails when any ancestor clips overflow) */
.glass-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 10050;
    background: #0A1420;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    padding: 16px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-img {
    height: 32px;
    max-height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block !important;
}

.accent-dot {
    color: var(--accent);
}

.nav-search-bar {
    position: relative;
    flex: 0 1 220px;
    width: 100%;
    max-width: 220px;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.nav-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 13px;
    width: 100%;
    min-width: 0;
}

.nav-search-bar input::placeholder {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 550;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-actions .btn-text,
.nav-actions #loginBtn {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    line-height: 1;
    margin: 0 !important;
    transition: var(--transition);
}

.nav-actions .btn-text:hover,
.nav-actions #loginBtn:hover {
    color: var(--accent);
}

.nav-actions .btn-primary,
.nav-actions #registerBtn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: none;
}

.nav-actions .btn-primary:hover,
.nav-actions #registerBtn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (min-width: 1280px) {
    .nav-container {
        padding: 0 32px;
        gap: 20px;
    }
    .nav-search-bar {
        flex-basis: 260px;
        max-width: 260px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 14px;
    }
}

@media (min-width: 1440px) {
    .nav-search-bar {
        flex-basis: 280px;
        max-width: 280px;
    }
    .nav-links {
        gap: 24px;
    }
}

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-user-trigger:hover,
.nav-user-menu.open .nav-user-trigger {
    border-color: rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.1);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9E59, #FF6B00);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.nav-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
    max-width: 110px;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-user-role {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-user-chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-user-menu.open .nav-user-chevron {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: rgba(10, 20, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 1100; /* above navbar z-index:1000 */
}

.nav-user-dropdown[hidden] {
    display: none !important;
}

.nav-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-user-link:hover {
    background: rgba(255, 107, 0, 0.12);
    color: #fff;
}

.nav-user-logout {
    color: #FCA5A5;
}

.nav-user-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #FECACA;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-accent:active {
    transform: scale(0.96) translateY(0);
    filter: brightness(0.92);
}

.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100dvh - var(--tl-header-h));
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /* visible so search suggestions can overlay the stats section below */
    overflow: visible;
    z-index: 20;
    background:
        radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255, 107, 0, 0.18) 0%, rgba(255, 107, 0, 0.06) 35%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(255, 168, 0, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 15% 70%, rgba(255, 107, 0, 0.07) 0%, transparent 50%),
        #0A1420;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 12px;
    overflow: visible;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    text-align: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.hero-content h1 {
    font-size: clamp(28px, 6.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.gradient-text,
.hero-content .gradient-text,
#heroHighlight {
    background-image: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%) !important;
    background-size: 100% 100%;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block !important;
    /* transform/filter on this node (or parent) breaks background-clip text — keep none */
    transform: none !important;
    filter: none !important;
}

.hero-headline-main {
    display: inline-block;
    color: #FFFFFF;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-box {
    position: relative;
    z-index: 30;
    background: rgba(18, 35, 54, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    min-width: 0;
}

/* Live Search Autocomplete Suggestions Dropdown */
.search-suggestions-box {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 20, 32, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 107, 0, 0.15);
    z-index: 999999;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-suggestions-box.active {
    display: block !important;
    animation: dropdownFadeIn 0.25s ease-out forwards;
}

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

.suggestion-section-header,
.suggestion-group-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    padding: 8px 12px 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
    margin-top: 4px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

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

.suggestion-item:hover {
    background: rgba(255, 107, 0, 0.18);
    color: #FFFFFF;
    transform: translateX(4px);
}

.suggestion-item .item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    transition: all 0.2s ease;
}

.suggestion-item:hover .item-icon {
    background: var(--accent);
    color: #FFFFFF;
}

.suggestion-item .item-title {
    font-weight: 600;
    color: #FFFFFF;
}

.suggestion-item .item-type {
    font-size: 11px;
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 0, 0.4);
}

.suggestion-item .item-type.is-sub {
    background: rgba(56, 189, 248, 0.14);
    color: #7DD3FC;
    border-color: rgba(56, 189, 248, 0.35);
}

.suggestion-item .item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--text-muted);
    min-width: 0;
}

.search-input-group > i {
    flex: 0 0 auto;
    width: 1.1em;
    text-align: center;
    line-height: 1;
}

.search-input-group.flex-grow {
    flex: 1 1 38%;
    min-width: 0;
}

.search-input-group select, .search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 15px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
    text-overflow: ellipsis;
}

.search-location-group {
    flex: 1 1 46%;
    min-width: 0;
    max-width: none;
}

.search-location-group input#locationInput {
    /* Long Places addresses: clip with ellipsis instead of overflowing the pin / divider */
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .search-location-group {
        min-width: 0 !important;
        width: 100%;
        flex: 1 1 100%;
    }
}

.location-suggestions-box {
    max-width: 320px;
    left: 12px;
    right: auto;
    width: min(320px, calc(100% - 24px));
}

/* Native Google Places dropdown over hero search */
.pac-container {
    z-index: 2147483000 !important;
    background: #0d1b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
    margin-top: 4px !important;
}
.pac-item {
    display: block !important;
    float: none !important;
    clear: both !important;
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    white-space: normal !important;
    cursor: pointer !important;
}
.pac-item:hover,
.pac-item-selected {
    background: rgba(255, 107, 0, 0.14) !important;
}
.pac-item-query,
.pac-item span {
    color: #fff !important;
    font-size: 13px !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.pac-matched {
    color: #ff6b00 !important;
}
.pac-icon,
.pac-icon-marker,
.pac-item > img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

select option,
.search-input-group select option {
    background-color: #0A1420 !important;
    color: #FFFFFF !important;
    padding: 10px !important;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
    flex: 0 0 auto;
}

.hero-search-box > .btn-accent {
    flex: 0 0 auto;
    white-space: nowrap;
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 1;
    padding: 40px 32px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 20, 32, 0.5);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Sections Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Categories Section — compact horizontal slider */
.categories-section {
    position: relative;
    padding: 80px 24px 72px;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 107, 0, 0.1), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.categories-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.categories-header {
    text-align: center;
    margin-bottom: 28px;
}

.categories-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.categories-header h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.categories-header p {
    max-width: 440px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.categories-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-track-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.categories-track-wrap::before,
.categories-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
}

.categories-track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #0A1420, transparent);
}

.categories-track-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #0A1420, transparent);
}

.categories-grid,
.categories-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    justify-content: flex-start;
}

.categories-track.is-centered {
    justify-content: center;
    cursor: default;
}

.categories-slider.is-centered .cat-slider-btn {
    opacity: 0;
    pointer-events: none;
}

.categories-slider.is-centered .categories-track-wrap::before,
.categories-slider.is-centered .categories-track-wrap::after {
    display: none;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.categories-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.categories-empty {
    width: 100%;
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.cat-slider-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 35, 54, 0.85);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cat-slider-btn:hover:not(:disabled) {
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent);
}

.cat-slider-btn:disabled,
.cat-slider-btn.is-disabled {
    opacity: 0.35;
    cursor: default;
}

.category-card {
    position: relative;
    flex: 0 0 auto;
    width: 108px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    padding: 14px 10px 12px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background: linear-gradient(180deg, #F7EDE4 0%, #F0E2D4 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    color: #1a1a1a;
    font: inherit;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.category-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover,
.category-card:focus-visible,
.category-card.is-active {
    border-color: var(--accent);
    background: linear-gradient(180deg, #FFE4CC 0%, #F7D4B0 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.2);
    outline: none;
}

.category-card.is-active {
    transform: translateY(-2px);
}

.category-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff 0%, #F3E8DE 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--accent);
    font-size: 26px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

/* Dark plate so light/white uploaded icons stay visible */
.category-icon-wrap.has-image {
    background: linear-gradient(160deg, #1A2B3F 0%, #0F1C2C 100%);
    border-color: rgba(255, 107, 0, 0.35);
    padding: 11px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 14px rgba(0,0,0,0.18);
}

.category-icon-wrap .category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.category-icon-wrap .category-icon-fallback {
    display: none; /* Stays hidden until JS error handler reveals it */
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
}

.category-card:hover .category-icon-wrap,
.category-card:focus-visible .category-icon-wrap {
    transform: scale(1.06);
}

.category-card-body {
    width: 100%;
    min-width: 0;
}

.category-card h3 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: #1c2430;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count,
.category-cta,
.category-card-glow,
.category-meta,
.category-icon {
    display: none !important;
}

/* Marketplace Section */
.marketplace-section {
    padding: 48px 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

#services {
    scroll-margin-top: 100px;
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.filter-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.filter-options, .rating-options, .checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.filter-cat-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-sub-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 4px 22px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-sub-option {
    font-size: 12px !important;
    color: #94A3B8 !important;
}

.filter-options label, .rating-options label, .checkbox-options label {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-options label:hover, .rating-options label:hover, .checkbox-options label:hover {
    color: var(--white);
}

.filter-options input, .rating-options input, .checkbox-options input {
    accent-color: var(--accent);
}

#priceRange {
    width: 100%;
    accent-color: var(--accent);
}

.price-range-label {
    font-size: 13px;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 600;
}

/* Services Content Area */
.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 16px;
}

.active-category-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: -16px 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.25);
    color: #fff;
    font-size: 13px;
}

.active-category-hint[hidden] {
    display: none !important;
}

.active-category-hint strong {
    color: var(--accent);
}

.active-category-hint .btn-link {
    color: #7DD3FC;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.tabs-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sort-dropdown select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.sort-dropdown select option {
    background: var(--primary);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.service-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.card-action-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--accent);
}

.service-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.service-rating {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-rating i {
    color: #F59E0B;
}

.service-reviews {
    color: var(--text-muted);
    font-weight: 400;
}

.service-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.card-footer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 20px 20px;
}

.btn-card-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-card-primary {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-primary:hover {
    opacity: 0.9;
}

/* Why Choose Us — modern feature grid */
.why-us-section {
    position: relative;
    padding: 64px 32px 88px;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255, 107, 0, 0.1), transparent 65%),
        radial-gradient(ellipse 35% 40% at 100% 80%, rgba(56, 189, 248, 0.04), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.why-us-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.why-us-header {
    text-align: center;
    margin-bottom: 40px;
}

.why-us-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.22);
}

.why-us-header h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.why-us-header p {
    max-width: 480px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

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

/* Lone card on the last row spans full width */
.features-grid .feature-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(28, 44, 66, 0.9) 0%, rgba(14, 26, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 22px 22px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    right: -40%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

.feature-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.feature-icon {
    font-size: 18px;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.22);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(255, 107, 0, 0.2);
}

.feature-index {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: #fff;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid .feature-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
    .features-grid .feature-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .why-us-section {
        padding: 48px 16px 64px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .features-grid .feature-card:last-child:nth-child(2n + 1),
    .features-grid .feature-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
    .feature-card {
        padding: 20px 18px;
    }
}

/* Testimonials */
.testimonials-section {
    padding: 100px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

@media (max-width: 560px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-section {
        padding: 64px 16px;
    }
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(20px);
}

.stars {
    color: #F59E0B;
    font-size: 16px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 24px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.client-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 15px;
    font-weight: 700;
}

.client-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal Drawer */
.modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11000; /* above fixed homepage navbar (10050) */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: max(16px, env(safe-area-inset-top, 16px));
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tailwind-style centering shell: flex min-h-full items-center justify-center p-* */
.modal-dialog-center {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    padding:
        max(16px, env(safe-area-inset-top, 0px))
        max(12px, env(safe-area-inset-right, 0px))
        max(16px, env(safe-area-inset-bottom, 0px))
        max(12px, env(safe-area-inset-left, 0px));
}

.modal-container {
    width: min(90%, 900px) !important;
    max-width: 900px !important;
    height: auto !important;
    max-height: min(90dvh, 90vh) !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

.modal-header {
    flex-shrink: 0 !important;
    position: relative !important;
    top: 0 !important;
    z-index: 30 !important;
    background: #0D1B2A !important;
    padding: 20px 28px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px 28px !important;
}

.modal-footer {
    flex-shrink: 0 !important;
    position: relative !important;
    bottom: 0 !important;
    z-index: 30 !important;
    background: #0D1B2A !important;
    padding: 16px 28px !important;
    border-top: 1px solid var(--glass-border) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.modal-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.modal-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-details ul {
    list-style: none;
    margin-bottom: 24px;
}

.modal-details ul li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-details ul li i {
    color: var(--accent);
}

/* Footer */
.footer-section {
    background: rgba(8, 16, 26, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 80px 32px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 20px 0;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.social-icons a,
.footer-col .social-icons a,
.footer-section .social-icons a,
.social-icons a.social-link {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1)) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-main, #F1F5F9) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: var(--transition, all 0.25s cubic-bezier(0.16, 1, 0.3, 1)) !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

.social-icons a i,
.footer-col .social-icons a i,
.footer-section .social-icons a i,
.social-icons a.social-link i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 15px !important;
    width: 1em !important;
    height: 1em !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    vertical-align: middle !important;
}

.social-icons a:hover,
.footer-col .social-icons a:hover,
.footer-section .social-icons a:hover,
.social-icons a.social-link:hover {
    background: var(--accent, #FF6B00) !important;
    border-color: var(--accent, #FF6B00) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.social-icons a:hover i,
.footer-col .social-icons a:hover i,
.footer-section .social-icons a:hover i,
.social-icons a.social-link:hover i {
    color: #FFFFFF !important;
}

.social-icons a:active,
.footer-col .social-icons a:active,
.footer-section .social-icons a:active,
.social-icons a.social-link:active {
    transform: translateY(0);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col a:not(.btn-accent):not(.logo):not(.btn-primary):not(.social-link):not([aria-label="Social link"]) {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-col a:not(.btn-accent):not(.logo):not(.btn-primary):not(.social-link):not([aria-label="Social link"]):hover {
    color: var(--white);
}

.footer-col a.btn-accent,
.footer-section a.btn-accent,
.footer-section .btn-accent,
a.btn-accent,
.btn-accent {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
}

.footer-col a.btn-accent *,
.footer-section a.btn-accent *,
.footer-section .btn-accent *,
a.btn-accent *,
.btn-accent * {
    color: #FFFFFF !important;
}

.newsletter-col p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.newsletter-input {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 6px;
}

.newsletter-input input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 0 16px;
    font-size: 13px;
    width: 100%;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(10, 20, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 20px;
    display: none !important;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

@media (max-width: 1024px) {
    .mobile-menu-drawer.active {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-drawer,
    .mobile-menu-drawer.active,
    .mobile-menu-toggle {
        display: none !important;
    }
}

.mobile-menu-drawer a {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.mobile-menu-drawer a:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.4);
    color: var(--accent);
}

.mobile-menu-drawer .drawer-btn-primary {
    background: linear-gradient(135deg, #FF6B00 0%, #E05D00 100%);
    border: none;
    color: #FFF !important;
    justify-content: center;
    font-weight: 700;
    margin-top: 8px;
}

/* Comprehensive Responsive Media Queries */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    /* Hide text nav links and search bar on tablet; show hamburger */
    .nav-links, .nav-search-bar {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--glass-border);
        color: #FFFFFF;
        font-size: 18px;
        cursor: pointer;
    }
    /* On tablet, keep nav-actions (user avatar) but hide verbose user-meta text */
    .nav-user-meta, .nav-user-chevron {
        display: none !important;
    }
    .nav-user-trigger {
        padding: 5px;
    }
    /* Ensure dropdown stays above navbar */
    .nav-user-dropdown {
        z-index: 1100;
    }
    .categories-grid {
        /* keep horizontal slider on tablet */
        grid-template-columns: unset;
    }
    .marketplace-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* On mobile hide both nav and the avatar button — drawer handles all navigation */
    .nav-links, .nav-search-bar, .nav-actions {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--glass-border);
        color: #FFFFFF;
        font-size: 18px;
        cursor: pointer;
    }
    .nav-container {
        padding: 0 16px;
    }
    .logo {
        font-size: 20px;
        max-width: 70%;
    }
    .logo-img {
        height: 30px;
        max-height: 30px;
    }
    .hero-section {
        padding: 40px 16px 40px;
        min-height: auto;
        height: auto;
    }
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
        width: 100%;
        gap: 12px;
    }
    .search-input-group {
        width: 100%;
        padding: 10px 12px;
        background: rgba(255,255,255,0.04);
        border-radius: 12px;
    }
    .search-location-group {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }
    .search-input-group.flex-grow {
        flex: 1 1 100%;
    }
    .search-input-group select,
    .search-input-group input {
        font-size: 14px;
    }
    .location-suggestions-box {
        max-width: none;
        left: 0;
        width: 100%;
    }
    .search-divider {
        display: none;
    }
    .btn-accent {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    .popular-searches {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
    }
    .categories-section {
        padding: 56px 12px 48px;
    }
    .categories-slider {
        gap: 6px;
    }
    .cat-slider-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    .category-card {
        width: 96px;
        min-height: 118px;
        padding: 12px 8px 10px;
        gap: 8px;
        border-radius: 14px;
    }
    .category-icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }
    .category-card h3 {
        font-size: 11px;
    }
    .marketplace-section {
        padding: 24px 12px 28px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .marketplace-layout {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 20px;
        box-sizing: border-box;
    }
    .services-content-area {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    .content-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .tabs-list {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .sort-dropdown select {
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .service-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .service-details {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-item h3 {
        font-size: 24px;
    }
    .stat-item p {
        font-size: 12px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cat-slider-btn {
        display: none;
    }
    .categories-track-wrap::before,
    .categories-track-wrap::after {
        width: 16px;
    }
    .hero-content h1 {
        font-size: 26px;
    }
    .logo {
        font-size: 18px;
    }
    .logo-img {
        height: 26px;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ── Smart service detail preview ───────────────────────────────────── */
.modal-overlay.smart-detail-mode .modal-container {
    max-width: 560px !important;
    height: auto !important;
    max-height: 92vh !important;
    padding: 0 !important;
    overflow: hidden;
}

.modal-overlay.smart-detail-mode .modal-content {
    padding: 0;
    overflow-y: auto;
    max-height: 92vh;
}

.modal-overlay.smart-detail-mode .modal-close {
    z-index: 5;
    background: rgba(8, 16, 26, 0.65);
    backdrop-filter: blur(8px);
}

.smart-detail {
    display: flex;
    flex-direction: column;
}

.sd-hero {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0b1524;
}

.sd-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,16,26,0.15) 0%, rgba(8,16,26,0.55) 45%, rgba(8,16,26,0.96) 100%);
    pointer-events: none;
}

.sd-hero-meta {
    position: absolute;
    left: 24px;
    right: 56px;
    bottom: 20px;
    z-index: 1;
}

.sd-hero-meta .service-category {
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
}

.sd-hero-meta h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    color: #fff;
}

.sd-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.sd-rating i { color: #FBBF24; }
.sd-rating span { color: rgba(255,255,255,0.55); font-weight: 500; }

.sd-body {
    padding: 22px 24px 24px;
}

.sd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.sd-chip i { font-size: 11px; color: var(--accent); }
.sd-chip-ok { color: #34D399; border-color: rgba(52,211,153,0.25); background: rgba(52,211,153,0.08); }
.sd-chip-ok i { color: #34D399; }
.sd-chip-alert { color: #FBBF24; border-color: rgba(251,191,36,0.25); background: rgba(251,191,36,0.08); }
.sd-chip-alert i { color: #FBBF24; }

.sd-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.sd-desc strong { color: #fff; font-weight: 700; }

.sd-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin: 0 0 10px;
    font-weight: 700;
}

.sd-includes {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sd-includes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    line-height: 1.45;
}

.sd-includes li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 122, 26, 0.12);
    color: var(--accent);
    font-size: 12px;
}

.sd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.sd-price span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sd-price strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.sd-price small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.sd-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .sd-hero { height: 180px; }
    .sd-hero-meta h2 { font-size: 22px; }
    .sd-body { padding: 18px 18px 20px; }
    .sd-footer { flex-direction: column; align-items: stretch; }
    .sd-book-btn { width: 100%; justify-content: center; }
}

/* ── Smart conversational booking / homepage survey wizard ─────────────
   Structure (Tailwind equivalent):
   overlay: fixed inset-0 z-[11000] overflow-y-auto bg-black/80 backdrop-blur-sm
   shell:   flex min-h-full items-center justify-center p-3 sm:p-6
   card:    relative w-full max-w-lg max-h-[90vh] flex flex-col overflow-hidden
*/
.modal-overlay.smart-book-mode,
.modal-overlay.hero-survey-mode {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: block;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-overlay.smart-book-mode .modal-dialog-center,
.modal-overlay.hero-survey-mode .modal-dialog-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px))
        max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.modal-overlay.smart-book-mode .modal-container,
.modal-overlay.hero-survey-mode .modal-container {
    position: relative !important;
    width: min(100%, 32rem) !important; /* max-w-lg */
    max-width: 32rem !important;
    height: auto !important;
    max-height: min(90dvh, 90vh) !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 1rem !important; /* rounded-2xl */
    border: 1px solid rgba(31, 41, 55, 0.95) !important;
    background: #111827 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55) !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

.modal-overlay.smart-book-mode .modal-content,
.modal-overlay.hero-survey-mode .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem; /* p-4 */
    overflow: hidden;
}

.modal-overlay.smart-book-mode .modal-close,
.modal-overlay.hero-survey-mode .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    z-index: 8;
    flex-shrink: 0;
}

.smart-book {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    max-height: 100%;
    flex: 1 1 auto;
    height: 100%;
}

.smart-book-top {
    margin-bottom: 0.25rem;
    flex-shrink: 0;
    padding-right: 2.5rem; /* room for close button */
}

.smart-book-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.smart-book-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 0.125rem;
    scrollbar-gutter: stable;
}

.smart-book-service {
    font-size: clamp(1.125rem, 2.6vw, 1.375rem) !important;
    font-weight: 800;
    margin: 0.25rem 0 0.625rem !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.smart-book-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.smart-dot {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.35s ease, transform 0.35s ease;
}

.smart-dot.active {
    background: linear-gradient(90deg, #FF6B00, #FFA800);
    transform: scaleY(1.35);
}

.smart-dot.done {
    background: rgba(255, 107, 0, 0.55);
}

.smart-step-in {
    animation: smartStepIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.smart-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.smart-question {
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: #fff;
}

.smart-hint {
    font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.smart-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smart-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.smart-field label .optional {
    font-weight: 400;
    opacity: 0.7;
}

.smart-field input,
.smart-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.smart-field input:focus,
.smart-field textarea:focus {
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.smart-phone-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.smart-phone-row:focus-within {
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.smart-country-code {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 130px;
    padding: 14px 28px 14px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.smart-country-code option {
    background: #0D1B2A;
    color: #fff;
}

.smart-phone-row input[type="tel"] {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.smart-country-code:focus {
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.smart-field-hint {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.smart-field input.smart-invalid,
.smart-field textarea.smart-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.smart-error {
    margin: 12px 0 0;
    font-size: 13px;
    color: #FCA5A5;
}

.smart-summary {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.smart-summary-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.smart-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.smart-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.smart-summary li span {
    color: var(--text-muted);
}

.smart-summary li strong {
    color: #fff;
    text-align: right;
    font-weight: 600;
}

.smart-book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.smart-book-price span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.smart-book-price strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.smart-book-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-smart-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-smart-back:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-smart-next {
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.smart-success {
    text-align: center;
    padding: 48px 20px 36px;
}

.smart-success .btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.smart-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.smart-success h2 {
    margin-bottom: 8px !important;
}

.smart-success-ref {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.smart-success-ref strong {
    color: var(--accent);
}

.smart-success-copy {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto 24px;
}

@media (max-width: 560px) {
    .modal-overlay.smart-book-mode .modal-dialog-center,
    .modal-overlay.hero-survey-mode .modal-dialog-center {
        padding:
            max(10px, env(safe-area-inset-top, 0px))
            10px
            max(10px, env(safe-area-inset-bottom, 0px));
        align-items: flex-start; /* prefer top-aligned on short phones so X is always reachable */
        padding-top: max(12px, env(safe-area-inset-top, 0px));
    }

    .modal-overlay.smart-book-mode .modal-container,
    .modal-overlay.hero-survey-mode .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(92dvh, 92vh) !important;
        border-radius: 0.875rem !important;
    }

    .modal-overlay.smart-book-mode .modal-content,
    .modal-overlay.hero-survey-mode .modal-content {
        padding: 0.875rem;
    }

    .smart-book-top {
        padding-right: 2.25rem;
    }

    .smart-field input,
    .smart-field textarea {
        padding: 12px 14px;
        font-size: 16px; /* avoid iOS zoom */
    }

    .smart-book-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .smart-book-actions {
        margin-left: 0;
        width: 100%;
        gap: 8px;
    }

    .btn-smart-back,
    .btn-smart-next,
    .btn-accent.btn-smart-next {
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }

    .smart-book-price strong {
        font-size: 18px;
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .modal-overlay.smart-book-mode .modal-dialog-center,
    .modal-overlay.hero-survey-mode .modal-dialog-center {
        padding:
            max(20px, env(safe-area-inset-top, 0px))
            20px
            max(20px, env(safe-area-inset-bottom, 0px));
    }

    .modal-overlay.smart-book-mode .modal-container,
    .modal-overlay.hero-survey-mode .modal-container {
        max-height: min(88dvh, 88vh) !important;
    }

    .modal-overlay.smart-book-mode .modal-content,
    .modal-overlay.hero-survey-mode .modal-content {
        padding: 1.25rem; /* ~p-5 */
    }
}

@media (min-width: 901px) {
    .modal-overlay.smart-book-mode .modal-dialog-center,
    .modal-overlay.hero-survey-mode .modal-dialog-center {
        padding:
            max(24px, env(safe-area-inset-top, 0px))
            24px
            max(24px, env(safe-area-inset-bottom, 0px));
    }

    .modal-overlay.smart-book-mode .modal-container,
    .modal-overlay.hero-survey-mode .modal-container {
        max-height: min(85dvh, 85vh) !important;
        border-radius: 1.25rem !important;
    }

    .modal-overlay.smart-book-mode .modal-content,
    .modal-overlay.hero-survey-mode .modal-content {
        padding: 1.75rem; /* ~p-7 / sm:p-8 feel */
    }

    .smart-book-footer {
        margin-top: 18px;
        padding-top: 16px;
        gap: 16px;
    }
}

/* ── Booking email OTP quick view ───────────────────────────────────── */
.booking-otp-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 10, 18, 0.72);
    backdrop-filter: blur(8px);
}

.booking-otp-overlay.active,
.booking-otp-overlay:not([hidden]) {
    display: flex;
}

.booking-otp-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #132033 0%, #0c1522 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    text-align: center;
    animation: bookingOtpPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.booking-otp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}

.booking-otp-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent);
    font-size: 22px;
}

.booking-otp-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.booking-otp-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-otp-sub strong { color: #fff; }

.booking-otp-alert {
    display: none;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.booking-otp-alert:not([hidden]) {
    display: flex;
}

.booking-otp-alert[hidden] {
    display: none !important;
}

.booking-otp-debug {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7DD3FC;
    font-size: 13px;
}

.booking-otp-debug:not([hidden]) {
    display: block;
}

.booking-otp-debug[hidden] {
    display: none !important;
}

.booking-otp-debug strong { color: #fff; letter-spacing: 0.12em; }

.booking-otp-digits {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 18px;
}

.booking-otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: inherit;
    outline: none;
}

.booking-otp-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.booking-otp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #CBD5E1;
}

.booking-otp-meta strong { color: var(--accent); }

.booking-otp-resend {
    border: none;
    background: transparent;
    color: #38BDF8;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.booking-otp-submit {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
}

@media (max-width: 480px) {
    .booking-otp-box {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }
    .booking-otp-digits { gap: 6px; }
}

/* —— Number inputs: hide browser spinner arrows (price / rate / qty) —— */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* —— Homepage hero search → lead survey —— */
.hero-search-hint {
    margin: 10px auto 0;
    max-width: 720px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 90, 70, 0.12);
    border: 1px solid rgba(255, 90, 70, 0.35);
    color: #ffd4cc;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.hero-search-box .hero-field-error,
.smart-field .hero-field-error {
    border-color: rgba(255, 90, 70, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(255, 90, 70, 0.18);
}

.hero-urgency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hero-urgency-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.hero-urgency-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-urgency-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-urgency-option input:checked + span {
    border-color: rgba(255, 107, 0, 0.7);
    background: rgba(255, 107, 0, 0.14);
    color: #fff;
}

.hero-survey-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-survey-meta i {
    color: var(--accent);
    margin-right: 6px;
}

.hero-survey-summary {
    margin-top: 8px;
}

.hero-lead-success {
    text-align: center;
    padding: 12px 8px 8px;
    min-height: 280px;
    justify-content: center;
}

.hero-lead-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    font-size: 28px;
}

.hero-lead-success h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
}

.hero-lead-success > p {
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

.hero-survey-foot-note strong {
    font-size: 18px;
}

.hs-email-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.hs-email-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.hs-email-input-wrap input,
.hs-email-row input {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 14px;
}

.hs-email-input-wrap.is-verified input {
    padding-right: 6.75rem;
}

.hs-email-verify-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 0, 0.55);
    background: rgba(255, 107, 0, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.hs-email-verify-btn:hover:not(:disabled) {
    background: rgba(255, 107, 0, 0.28);
}

.hs-email-verify-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hs-email-verified {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #2ecc71;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.hs-email-verified i {
    font-size: 14px;
}

.hs-email-verified[hidden] {
    display: none !important;
}

#heroSurveyNext:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 560px) {
    .hero-urgency-grid {
        grid-template-columns: 1fr;
    }

    .hs-email-row {
        flex-direction: column;
    }

    .hs-email-verify-btn {
        width: 100%;
        min-height: 44px;
    }

    .hs-email-input-wrap.is-verified input {
        padding-right: 5.75rem;
    }

    .hs-email-verified {
        right: 10px;
        font-size: 11px;
        gap: 5px;
    }

    .hs-email-verified i {
        font-size: 13px;
    }
}
