:root {
    --bg-dark: #0a0a14;
    --text-light: #f5f5f7;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    scroll-snap-type: y mandatory;
    
    /* Anti-Theft: Metin kopyalamayı engelle */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Görsellerin sürüklenerek masaüstüne alınmasını engelle */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Sadece form alanlarında metin seçimine/kopyalamaya izin ver */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

html {
    scroll-behavior: smooth;
}

/* Background animated blobs */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: float 20s infinite alternate linear;
}

.blob-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(236, 72, 153, 0) 70%);
    opacity: 0.15;
    animation: float-rev 15s infinite alternate linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

@keyframes float-rev {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-100px, -150px) scale(1.1);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.glassmorphism-heavy {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, #ffc107, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.mt-2 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #f72585);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1160px;
    z-index: 100;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links-left {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.header-category-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-category-icons i {
    width: 38px;
    height: 38px;
    background: rgba(99, 102, 241, 0.15);
    /* Soft primary background */
    color: var(--primary);
    /* Primary icon color */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-category-icons i:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6c63ff, #f72585);
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(108, 99, 255, 0.35);
    flex-shrink: 0;
}

.logo span {
    font-weight: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    /* Aligns content to bottom */
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 50px;
    /* Space from bottom edge */
    overflow: hidden;
    /* Accounts for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 40px;
    z-index: 2;
    max-width: 320px;
    padding: 0;
    text-align: left;
    margin: 0;
}

.hero-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Search Box Overlay */
.search-box-container {
    max-width: 700px;
    margin: 0 auto 20px;
}

.ai-search-box-new {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 10px 10px 20px;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.ai-search-box-new:focus-within {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.ai-avatar-new {
    position: relative;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffc107;
    font-size: 1.55rem;
    /* Bigger house icon */
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    flex-shrink: 0;
}

/* Pulse ring hidden since we use outline ring */
.pulse-ring-new {
    display: none;
}

@keyframes newPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.ai-search-box-new input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.15rem;
    font-family: var(--font-main);
    outline: none;
}

.ai-search-box-new input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-ai-new {
    background: white;
    color: var(--bg-dark);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ai-new:hover {
    background: var(--primary);
    color: white;
}



.ai-suggestion {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.popular-searches-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.popular-searches-dropdown .nav-icon-link {
    font-size: 1.8rem;
    background: linear-gradient(0deg, #f97316, #ef4444, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: 0.3s;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

.popular-searches-dropdown .nav-icon-link:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.7));
}

.popular-searches-dropdown .dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-searches-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu span {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.dropdown-menu a {
    color: #e2e2e2;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-badge {
    font-size: 1rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Categories Setup */
.categories {
    padding: 100px 20px 60px;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.1);
    color: var(--secondary);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Near You / Providers */
.near-you {
    padding: 100px 20px 80px;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.providers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.provider-card {
    padding: 25px;
    transition: all 0.3s;
}

.provider-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.provider-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.provider-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.95rem;
}

.reviews {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.85rem;
}

.eta {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.provider-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.stat {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat i {
    color: var(--accent);
    width: 20px;
}

/* Provider Promo Section */
.provider-promo {
    padding: 100px 20px;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
    align-items: center;
}

.promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.promo-features {
    list-style: none;
    margin-bottom: 30px;
}

.promo-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-features i {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.promo-image img {
    width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    padding: 60px 0 0;
    min-height: 100vh;
    scroll-snap-align: start;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-desc {
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ec4899);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.88rem;
}

.footer-col ul li a:hover {
    color: #ffc107;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

.footer-contact li i {
    color: #ffc107;
    width: 16px;
    text-align: center;
}

.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.newsletter-input {
    display: flex;
    gap: 0;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: white;
    font-size: 0.85rem;
    font-family: var(--font-main);
    outline: none;
}

.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-input button {
    background: linear-gradient(135deg, #ffc107, #ec4899);
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.newsletter-input button:hover {
    opacity: 0.85;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffc107;
}

/* Prevent iOS Zoom on Inputs */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .ai-search-box {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
    }

    .btn-ai {
        width: 100%;
        margin-top: 10px;
    }

    .promo-box {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }

    .promo-features li {
        justify-content: center;
    }

    .eta {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* ===== MODAL SYSTEM ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box.wide {
    max-width: 650px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.modal-box .modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-main);
}

.modal-tab.active {
    color: white;
    border-bottom-color: #ffc107;
}

.modal-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Modal Form Inputs */
.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 500;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: rgba(255, 193, 7, 0.5);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.modal-form select option {
    background: #1a1a2e;
    color: white;
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== WIZARD MULTI-STEP FORM ===== */
.checkout-wizard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wizard-progress {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.progress-bar.active {
    background: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.wizard-step-container {
    flex: 1;
    min-height: 250px;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Webkit Scrollbar for Wizard */
.wizard-step-container::-webkit-scrollbar {
    width: 6px;
}

.wizard-step-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.wizard-step-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.wizard-step-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.4);
}

/* Base Styles for Wizard Inputs (Address step) */
.wizard-step input[type="text"],
.wizard-step input[type="number"],
.wizard-step input[type="date"],
.wizard-step select,
.wizard-step textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.wizard-step select option {
    background: #1a1a2e;
    /* Dark background for dropdown options */
    color: white;
}

.wizard-step input:focus,
.wizard-step select:focus,
.wizard-step textarea:focus {
    outline: none;
    border-color: #ffc107;
    background: rgba(255, 255, 255, 0.08);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.wizard-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.wizard-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-options-grid.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wizard-option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.wizard-option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 193, 7, 0.4);
}

.wizard-option-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #ffc107;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.wizard-option-card.selected::after {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffc107;
    font-size: 1.2rem;
}

.wizard-option-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #06b6d4;
}

.wizard-option-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Wizard Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-wizard-prev,
.btn-wizard-next {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.btn-wizard-prev {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-wizard-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-wizard-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-wizard-next {
    background: linear-gradient(135deg, #ffc107, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-wizard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn-wizard-next:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Hide scrollbar for wizad mode */
.modal-box.wizard-mode {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom Selection Inputs (Date Slider & Counter) */
.wizard-date-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
}

.wizard-date-slider::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.wizard-date-card {
    min-width: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wizard-date-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #ffc107;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.1);
}

.wizard-date-card .date-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.wizard-date-card .date-day {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.wizard-date-card.selected .date-day {
    color: rgba(255, 193, 7, 0.8);
}

.wizard-section-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 320px;
}

.btn-counter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-counter:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.5);
    transform: scale(1.05);
}

.btn-counter:active {
    transform: scale(0.95);
}

.counter-display {
    text-align: center;
    min-width: 90px;
}

.counter-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #06b6d4;
    line-height: 1;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Success State */
.modal-success {
    text-align: center;
    padding: 30px 0;
}

.modal-success i {
    font-size: 3.5rem;
    color: #4ade80;
    margin-bottom: 16px;
}

.modal-success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.modal-success p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modal List Items (for category details, search results) */
.modal-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateX(4px);
}

.modal-list-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.modal-list-item .item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.modal-list-item .item-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.modal-list-item .item-price {
    margin-left: auto;
    font-size: 0.85rem;
    color: #ffc107;
    font-weight: 600;
    white-space: nowrap;
}

/* Policy Modal Content */
.policy-content {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.policy-content h3 {
    color: white;
    font-size: 1.1rem;
    margin: 20px 0 8px;
}

.policy-content h3:first-child {
    margin-top: 0;
}

/* Payment Method Cards */
.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-option {
    flex: 1;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-main);
    font-size: 0.85rem;
}

.payment-option:hover,
.payment-option.selected {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
    color: white;
}

.payment-option i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #ffc107;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 28px;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-main);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

.toast-notification i {
    color: #4ade80;
    font-size: 1.1rem;
}

/* Scrollbar for modals */
.modal-box::-webkit-scrollbar {
    width: 4px;
}

.modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* --- Tablet / Medium Screen Adjustments (769px - 1100px) --- */
@media (max-width: 1100px) and (min-width: 769px) {
    .navbar {
        width: 95%;
        padding: 10px 15px;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .btn-primary {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* --- Desktop overrides for Mobile Navigation --- */
.mobile-nav-icons, .mobile-menu-overlay {
    display: none;
}

/* --- ENFORCED UNIVERSAL MOBILE WIDTH FIX --- */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important; /* Force no horizontal scrolling on root */
    }
    
    /* Stop flex and grid children from blowing out containers */
    * {
        min-width: 0;
    }

    /* Force containers to stay within viewport */
    .main-content, .main-scroll, .tab-content, .dashboard-grid, .container, .categories, .near-you, .hero-section {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Prevent inputs, textareas, forms, cards from overflowing */
    input, select, textarea, button, .stat-card, .card, .profile-panel, .glassmorphism, .glassmorphism-heavy, .job-item, .promo-box, .erp-tools, form, .form-group {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* specifically for internal flex/grid wrappers */
    .tools-grid > div, .erp-tools > div, .job-desc, .job-actions {
        width: 100% !important;
        word-wrap: break-word !important;
    }
    
    /* Make sure charts shrink too, but do not break map cover */
    canvas, img:not(.map-img), iframe {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .map-img {
        height: 100dvh !important;
        object-fit: cover !important;
    }

    /* Exception for tables - they should scroll horizontally inside their wrapper, but the wrapper shouldn't stretch page */
    .table-wrapper, .table-container, .table-responsive {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    /* Allow table to stretch ONLY inside wrapper */
    .table-wrapper table, .table-container table {
        min-width: 600px;
    }
    
    /* Specific Home Page Mobile Adjustments */
    .hero-section {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
    .hero-content {
        left: 20px !important;
        bottom: 55px !important; /* User strictly requested 55px exactly */
        max-width: calc(100vw - 40px) !important;
        text-align: center !important;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .hero-section h1 {
        font-size: 2.2rem !important;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    }
    .hero-section p {
        font-size: 1rem !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    }
    .navbar {
        width: 95% !important;
        padding: 10px 15px !important;
        top: 10px !important;
        left: 2.5% !important; /* Proper margin relative to 95% width instead of 50% translation */
        transform: none !important;
        display: flex !important;
        box-sizing: border-box !important;
    }
    .logo {
        font-size: 1.4rem !important;
    }
    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    .blob-bg {
        display: none !important; /* Hide background blobs to save performance and reduce visual clutter */
    }
    
    /* ── Mobile Navigation Menu Elements ── */
    .nav-links {
        display: none !important; /* Hide original nav links */
    }
    .mobile-nav-icons {
        display: flex !important;
        align-items: center;
        gap: 15px;
    }
    .mobile-login-icon, .mobile-hamburger-icon {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.4rem;
        cursor: pointer;
        padding: 5px;
    }
    .mobile-login-icon {
        color: var(--primary);
    }
    
    /* Mobile Accordion Overlay */
    /* By default on mobile, keep it hidden entirely until active to prevent ghosting or blocking interaction */
    .mobile-menu-overlay {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 99999;
        transition: top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: none !important; /* Hidden completely when not active */
        flex-direction: column;
        padding: 80px 30px 40px;
        overflow-y: auto;
    }
    .mobile-menu-overlay.active {
        display: flex !important;
        top: 0;
    }
    
    .close-mobile-menu {
        position: absolute;
        top: 25px;
        right: 25px;
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
    }
    
    .accordion-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 18px 0;
    }
    .accordion-head, .accordion-link {
        display: flex;
        align-items: center;
        width: 100%;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        font-weight: 500;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
        gap: 15px;
        font-family: inherit;
    }
    .accordion-link, .accordion-head {
        padding: 5px 0;
    }
    .acc-arrow {
        margin-left: auto;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.5);
        transition: transform 0.3s;
    }
    .accordion-head.open .acc-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }
    
    .accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-left: 40px;
    }
    .accordion-body.open {
        max-height: 250px;
        padding-top: 15px;
        padding-bottom: 5px;
    }
    .accordion-body a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .accordion-body a i {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.4);
    }
}
