/* =============================================
   RDV - Main Stylesheet
   Futuristic Light Theme
   ============================================= */

/* --- Base --- */
* { box-sizing: border-box; }

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

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

a { text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; }

::selection {
    background: var(--violet);
    color: #fff;
}

/* --- Top Bar --- */
.top-bar {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: none;
}

.top-bar a { color: #cbd5e1; }
.top-bar a:hover { color: #fff; }

/* --- Navbar --- */
#mainNavbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

#mainNavbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
}

#mainNavbar.scrolled {
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .brand-icon {
    font-size: 1.6rem;
    color: var(--violet);
    filter: drop-shadow(0 2px 4px rgba(124,58,237,0.3));
    animation: pulse-glow 3s ease-in-out infinite;
    border-radius: 50%;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mainNavbar .nav-link {
    color: #475569;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s;
}

#mainNavbar .nav-link {
    position: relative;
}

#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 14px; right: 14px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-spring);
    transform-origin: center;
}

#mainNavbar .nav-link:hover {
    color: var(--violet);
    background: rgba(124,58,237,0.06);
}

#mainNavbar .nav-link:hover::after {
    transform: scaleX(1);
}

#mainNavbar .nav-link.active {
    color: var(--violet);
    font-weight: 600;
}

#mainNavbar .dropdown-menu {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    padding: 8px;
}

#mainNavbar .dropdown-item {
    color: #475569;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.88rem;
}

#mainNavbar .dropdown-item:hover {
    background: rgba(124,58,237,0.06);
    color: var(--violet);
}

.navbar-toggler {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2871, 85, 105, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.nav-right .btn-outline-light {
    color: #475569;
    border-color: #e2e8f0;
}

.nav-right .btn-outline-light:hover {
    color: var(--violet);
    border-color: var(--violet);
    background: rgba(124,58,237,0.06);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 30%, #e0f2fe 60%, #fce7f3 100%);
    background-size: 300% 300%;
    animation: gradient-shift 12s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

/* Floating decorative blobs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    animation: blob-move-1 15s ease-in-out infinite;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    animation: blob-move-2 18s ease-in-out infinite;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-section h1 .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-width: 280px;
    min-height: 1.2em;
}

.hero-section p.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124,58,237,0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(124,58,237,0.1);
    animation: scale-bounce 0.6s var(--ease-spring) both;
}

.hero-badge .badge-flag { font-size: 1.2rem; }

/* Hero Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration .hero-shape {
    width: 320px;
    height: 320px;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.15) 50%, rgba(236,72,153,0.1) 100%);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 8s ease-in-out infinite, gradient-shift 6s ease infinite;
    position: relative;
    box-shadow: 0 20px 60px rgba(124,58,237,0.1);
}

.hero-illustration .hero-shape::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(6,182,212,0.08) 100%);
}

.hero-shape-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-shape-content i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(124,58,237,0.2));
}

.hero-shape-content p {
    color: var(--violet);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    50% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
}

/* --- Search Box --- */
.hero-search-box {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 12px 40px rgba(124,58,237,0.08), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(124,58,237,0.1);
    transition: all 0.4s var(--ease-smooth);
}

.hero-search-box:hover,
.hero-search-box:focus-within {
    box-shadow: 0 16px 50px rgba(124,58,237,0.15), 0 6px 16px rgba(0,0,0,0.06);
    border-color: rgba(124,58,237,0.2);
    transform: translateY(-2px);
}

.hero-search-box .input-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.hero-search-box .input-group:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.hero-search-box .input-group-text {
    background: transparent;
    border: none;
    color: var(--violet);
}

.hero-search-box .form-control,
.hero-search-box .form-select {
    border: none;
    background: transparent;
}

.hero-search-box .form-control:focus,
.hero-search-box .form-select:focus {
    box-shadow: none;
}

.hero-search {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.hero-search .search-input-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 8px;
}

.hero-search .search-input-group i { color: var(--violet); font-size: 0.95rem; }

.hero-search .search-input-group input,
.hero-search .search-input-group select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.92rem;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.hero-search .search-input-group input::placeholder,
.hero-search .search-input-group select { color: var(--text-muted); }

.hero-search .search-input-group select option { background: #fff; color: var(--text-primary); }

.hero-search .search-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
}

.hero-search .btn-moroccan {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124,58,237,0.1);
    transition: all 0.3s var(--ease-spring);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.2);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   SECTIONS
   ============================================= */
.section-badge {
    display: inline-block;
    background: rgba(124,58,237,0.08);
    color: var(--violet);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(124,58,237,0.15);
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.1), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.categories-section {
    padding: 70px 0;
    background: #fff;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), border-color 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899, #7c3aed);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: #fff;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.category-card:hover::before {
    opacity: 1;
    animation: gradient-shift 4s ease infinite;
}

.category-card:hover .category-pattern {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease-spring);
}

.category-card:hover .category-icon {
    transform: scale(1.15) translateY(-4px);
    animation: icon-bounce 0.6s var(--ease-spring);
}

.category-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.category-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 6px 0 0;
}

.category-count {
    display: inline-block;
    background: rgba(124,58,237,0.08);
    color: var(--violet);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 12px;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
    padding: 70px 0;
    background: var(--bg-secondary);
    position: relative;
}

.step-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--ease-spring);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-spring);
    transform-origin: left;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.step-card:hover::after {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    transition: all 0.4s;
}

.step-card:hover .step-number {
    opacity: 0.25;
    transform: scale(1.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
}

.step-card:hover .step-icon {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(124,58,237,0.2);
}

.step-icon.step-1 { background: var(--gradient-ocean); }
.step-icon.step-2 { background: var(--gradient-emerald); }
.step-icon.step-3 { background: var(--gradient-accent); }

.step-card h5 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.step-card p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* =============================================
   FEATURED PROVIDERS
   ============================================= */
.featured-section {
    padding: 70px 0;
    background: #fff;
}

.provider-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.provider-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(124,58,237,0.2);
}

.provider-card-header {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.provider-card:hover .provider-card-header {
    padding: 30px 20px;
}

.provider-card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.featured-badge, .provider-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fbbf24;
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    z-index: 1;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
}
.avatar-placeholder i { font-size: 1.5rem; color: rgba(255,255,255,0.7); }
.avatar-placeholder.large i { font-size: 2.5rem; }

.provider-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-spring);
}

.provider-card:hover .provider-avatar {
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.provider-avatar img { width: 100%; height: 100%; object-fit: cover; }
.provider-avatar i { font-size: 1.5rem; color: rgba(255,255,255,0.7); }

.provider-category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.provider-card-body {
    padding: 20px;
    text-align: center;
}

.provider-card-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.provider-specialty, .provider-card-body .specialty {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.provider-location, .provider-card-body .location {
    font-size: 0.82rem;
    color: var(--violet);
    margin-top: 6px;
}

.provider-location i, .provider-card-body .location i { margin-right: 4px; }

.provider-rating { margin-top: 8px; }
.provider-rating .stars { color: #fbbf24; font-size: 0.82rem; }
.provider-rating .rating-text { color: var(--text-muted); font-size: 0.78rem; margin-left: 6px; }

.provider-card-footer { padding: 0 20px 20px; }
.provider-card-footer .btn { width: 100%; border-radius: var(--radius-sm); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #ec4899 100%);
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: blob-move-1 12s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: blob-move-2 15s ease-in-out infinite;
}

.cta-section h2 { color: #fff; font-size: 2rem; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.85); position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.92rem;
}

.cta-feature i { font-size: 1.2rem; color: #fff; }

.cta-section .btn-light {
    background: #fff;
    color: var(--violet);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all 0.3s;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* =============================================
   FOOTER
   ============================================= */
.footer-section {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 0;
    position: relative;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand h3 .brand-icon { color: #a78bfa; margin-right: 6px; }

.footer-brand p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-top: 10px;
    line-height: 1.7;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 0.88rem; transition: all 0.3s; }
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-spring);
}

.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-links a:hover::after { width: 100%; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}
.footer-contact li i { color: #a78bfa; width: 20px; text-align: center; }

.footer-divider { border-color: rgba(255,255,255,0.08); margin: 30px 0; }

.footer-bottom { padding-bottom: 24px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #64748b; }
.made-in-morocco { font-size: 0.82rem; color: #64748b; }

/* =============================================
   PROVIDER DETAIL PAGE
   ============================================= */
.provider-profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

@media (min-width: 992px) {
    .provider-profile-card { position: sticky; top: 100px; }
}

.profile-header {
    background: var(--gradient-primary);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.profile-body { padding: 24px; }

.provider-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.provider-specialty-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.provider-rating-lg { color: #fbbf24; font-size: 0.9rem; }
.provider-rating-lg span { color: var(--text-secondary); font-size: 0.82rem; }

.featured-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}
.info-item:last-child { border-bottom: none; }
.info-item i { color: var(--violet); width: 20px; text-align: center; }
.info-item a { color: var(--violet); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.profile-about {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
}
.profile-about h6 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.profile-about p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.profile-schedule {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
}
.profile-schedule h6 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f8fafc;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row .day-name { font-weight: 600; color: var(--text-primary); min-width: 90px; }
.schedule-row .day-hours { color: var(--text-secondary); }
.schedule-row .day-closed { color: var(--red); font-weight: 500; }
.schedule-row.today {
    background: rgba(124,58,237,0.04);
    border-radius: 6px;
    padding: 6px 8px;
    border-bottom-color: transparent;
}
.schedule-row.today .day-name { color: var(--violet); }

/* Booking Sections */
.booking-section {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.booking-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 18px 24px;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.booking-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.booking-section-title i { color: var(--violet); }

.selected-service-info {
    padding: 12px 24px;
    background: rgba(124,58,237,0.04);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
}
.selected-service-info .label { color: var(--text-secondary); }

.booking-section .form-control:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.provider-profile-header {
    background: var(--gradient-primary);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.provider-profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar i { font-size: 2.5rem; color: rgba(255,255,255,0.6); }

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.provider-profile-body { padding: 24px; }
.provider-profile-body h2 { font-size: 1.4rem; color: var(--text-primary); margin: 0; }

.provider-category-tag {
    display: inline-block;
    background: rgba(124,58,237,0.08);
    color: var(--violet);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

.provider-info-list { list-style: none; padding: 0; margin: 16px 0 0; }
.provider-info-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; color: var(--text-secondary); font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}
.provider-info-list li:last-child { border-bottom: none; }
.provider-info-list li i { color: var(--violet); width: 20px; text-align: center; }

/* Services & Cards */
.services-card, .schedule-card, .booking-card, .reviews-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.card-title-bar {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.card-title-bar h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-title-bar h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 8px;
    border-radius: 2px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s;
    flex-wrap: wrap;
    gap: 10px;
    cursor: pointer;
}

.service-item:last-child { border-bottom: none; }
.service-item:hover { background: rgba(124,58,237,0.04); transform: translateX(2px); }
.service-item.selected { background: rgba(124,58,237,0.06); border-left: 3px solid var(--violet); }

.service-name, .service-info h6 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.service-desc, .service-info p { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-secondary); }
.service-duration, .service-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--cyan); font-size: 0.78rem; }
.service-price { font-size: 1.1rem; font-weight: 700; color: var(--violet); }
.service-action .btn { border-radius: 8px; padding: 6px 18px; font-size: 0.82rem; }

/* Schedule */
.schedule-day {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 24px; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem;
}
.schedule-day:last-child { border-bottom: none; }
.schedule-day .day-name { font-weight: 600; color: var(--text-primary); min-width: 100px; }
.schedule-day .day-hours { color: var(--text-secondary); }
.schedule-day .day-closed { color: var(--red); font-weight: 500; }

/* Booking */
.booking-card .card-title-bar { background: var(--gradient-primary); }
.booking-card .card-title-bar h4 { color: #fff; }
.booking-card .card-title-bar h4::after { background: rgba(255,255,255,0.3); }

.booking-body { padding: 24px; }
.booking-step { display: none; }
.booking-step.active { display: block; }

.booking-step-title {
    font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.booking-step-title i { color: var(--violet); }

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.time-slot {
    padding: 10px; text-align: center; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; border: 1px solid #e2e8f0;
    background: #fff; color: var(--text-primary);
}

.time-slot:hover { border-color: var(--violet); color: var(--violet); background: rgba(124,58,237,0.04); }

.time-slot.selected {
    background: var(--gradient-primary); color: #fff;
    border-color: transparent; box-shadow: var(--shadow-glow-violet);
}

.time-slot.unavailable { background: #f8fafc; color: #cbd5e1; cursor: not-allowed; border-color: #f1f5f9; }

/* Booking Form */
.booking-form .form-control {
    border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; color: var(--text-primary); padding: 10px 14px;
}
.booking-form .form-control:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.booking-form .form-control::placeholder { color: var(--text-muted); }
.booking-form .form-label { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }

.booking-summary {
    background: var(--bg-secondary); border-radius: 12px; padding: 16px;
    margin-top: 16px; border: 1px solid #e2e8f0;
}
.booking-summary h6 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.82rem; color: var(--text-secondary); }
.summary-row .value { font-weight: 600; color: var(--text-primary); }

/* Reviews */
.review-item { padding: 16px 24px; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.review-item:last-child { border-bottom: none; }
.review-item:hover { background: rgba(124,58,237,0.02); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(124,58,237,0.1); display: flex; align-items: center; justify-content: center; color: var(--violet); font-weight: 700; font-size: 0.82rem; }
.review-author { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-stars { color: #fbbf24; font-size: 0.78rem; }
.review-text { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* =============================================
   PROVIDERS LIST PAGE
   ============================================= */
.page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    padding: 30px 0;
    position: relative; overflow: hidden;
}

.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.1; background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px); background-size: 24px 24px;
}

.page-header h1 { color: #fff; font-size: 1.6rem; position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.8); position: relative; z-index: 1; }

.breadcrumb { margin: 0; padding: 0; background: transparent; position: relative; z-index: 1; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

.filter-sidebar, .filter-card {
    background: #fff; border-radius: var(--radius-md); padding: 24px;
    box-shadow: var(--shadow-md); border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s;
    position: sticky;
    top: 100px;
}

.filter-sidebar:hover, .filter-card:hover {
    box-shadow: var(--shadow-lg);
}

.filter-header h5 { font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.filter-header h5 i { color: var(--violet); }

.filter-group { margin-bottom: 16px; }
.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.filter-sidebar .form-control, .filter-sidebar .form-select,
.filter-card .form-control, .filter-card .form-select {
    border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: var(--text-primary);
}
.filter-sidebar .form-control:focus, .filter-sidebar .form-select:focus,
.filter-card .form-control:focus, .filter-card .form-select:focus {
    border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.filter-sidebar .form-control::placeholder, .filter-card .form-control::placeholder { color: var(--text-muted); }

.filter-card h5 { font-weight: 700; color: var(--text-primary); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}
.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(124,58,237,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--violet);
}
.empty-state h4 { color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* =============================================
   CONFIRMATION & TRACK PAGES
   ============================================= */
.confirmation-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #e2e8f0; }
.confirmation-header { background: var(--gradient-emerald); padding: 40px; text-align: center; color: #fff; }
.confirmation-header .check-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.2); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.confirmation-body { padding: 30px; }
.confirmation-detail { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.confirmation-detail:last-child { border-bottom: none; }
.confirmation-detail i { width: 40px; height: 40px; border-radius: 12px; background: rgba(124,58,237,0.08); display: flex; align-items: center; justify-content: center; color: var(--violet); }
.confirmation-detail .detail-label { font-size: 0.78rem; color: var(--text-muted); }
.confirmation-detail .detail-value { font-weight: 600; color: var(--text-primary); }

.track-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #e2e8f0; }
.track-header { background: var(--gradient-primary); padding: 30px; text-align: center; color: #fff; }
.track-body { padding: 30px; }
.track-form .form-control { border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: var(--text-primary); padding: 12px 16px; font-size: 1rem; }
.track-form .form-control:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.track-result { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 24px; border: 1px solid #e2e8f0; }

/* Track page — search & result cards */
.track-search-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}
.track-search-card h5 { font-weight: 700; color: var(--text-primary); }
.track-search-card .input-group-text {
    background: rgba(124,58,237,0.06);
    border: 1px solid #e2e8f0;
    color: var(--violet);
    border-radius: 10px 0 0 10px;
}
.track-search-card .form-control {
    border: 1px solid #e2e8f0;
}
.track-search-card .form-control:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.track-result-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.track-status {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.track-status i { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.track-status-pending i { color: #f59e0b; }
.track-status-confirmed i { color: #10b981; }
.track-status-completed i { color: #06b6d4; }
.track-status-cancelled i { color: #ef4444; }

.confirmation-details { }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-secondary); }
.detail-label i { color: var(--violet); width: 20px; text-align: center; }
.detail-value { font-weight: 600; color: var(--text-primary); }
.reference-code {
    font-family: 'Courier New', monospace;
    background: rgba(124,58,237,0.06);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--violet);
    font-weight: 700;
}

/* =============================================
   ALERTS
   ============================================= */
.alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 12px; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; border-radius: 12px; }
.alert-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; border-radius: 12px; }
.alert-info { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; border-radius: 12px; }

/* =============================================
   CITIES
   ============================================= */
.cities-section {
    padding: 70px 0;
    background: var(--bg-secondary);
}

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

.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.4s var(--ease-spring);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.city-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-spring);
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(124,58,237,0.2);
}

.city-card:hover::before {
    transform: scaleX(1);
}

.city-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(124,58,237,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--violet);
    transition: all 0.4s var(--ease-spring);
}

.city-card:hover .city-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

.city-card h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.9rem;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    border-radius: 14px; background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    opacity: 0; visibility: hidden; transition: all 0.4s; z-index: 999;
    box-shadow: var(--shadow-glow-violet);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-6px) scale(1.1); color: #fff; box-shadow: 0 8px 30px rgba(124,58,237,0.4); }
.back-to-top { animation: pulse-glow 3s ease-in-out infinite; }

/* =============================================
   AUTH PAGES (Login, Register, Forgot Password)
   ============================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    font-family: var(--font-body);
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: var(--border-subtle);
}

.auth-card--wide { max-width: 520px; }
.auth-card--extra-wide { max-width: 640px; }

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-neon);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .brand-icon {
    font-size: 2.5rem;
    color: var(--violet);
    filter: drop-shadow(0 2px 4px var(--violet-glow));
}

.auth-logo h2 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 10px;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-card .form-floating .form-control {
    border: var(--border-subtle);
    border-radius: 12px;
    height: 56px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.auth-card .form-floating .form-control:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-glow);
    background: var(--bg-card);
    color: var(--text-primary);
}

.auth-card .form-floating label {
    color: var(--text-muted);
}

.auth-card .form-control {
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

.auth-card .form-control::placeholder { color: var(--text-muted); }

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

.auth-card .form-select {
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.auth-card .form-check-input { background-color: var(--bg-card); border-color: #e2e8f0; }
.auth-card .form-check-input:checked { background-color: var(--violet); border-color: var(--violet); }
.auth-card .form-check-label { color: var(--text-secondary); font-size: 0.85rem; }

.btn-auth {
    background: var(--gradient-primary);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
    color: #fff;
}

.btn-auth:active { transform: translateY(0); }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--violet);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration-fast);
}

.auth-footer a:hover { color: #6d28d9; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-role-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-role-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: var(--border-subtle);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--duration-normal);
    text-decoration: none;
    color: var(--text-secondary);
    background: transparent;
}

.auth-role-tab:hover,
.auth-role-tab.active {
    border-color: var(--violet);
    color: var(--violet);
    background: rgba(124,58,237,0.04);
}

.auth-link {
    font-size: 0.85rem;
    color: var(--violet);
    text-decoration: none;
}

.auth-link:hover { color: #6d28d9; }

.auth-separator { color: #cbd5e1; }

.auth-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.auth-section-title i { color: var(--violet); }

.auth-pricing-badge {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow-violet);
    position: relative;
    overflow: hidden;
}

.auth-pricing-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3.5s ease-in-out infinite;
}

.auth-pricing-badge .price { font-size: 1.5rem; font-weight: 700; }
.auth-pricing-badge .trial { font-size: 0.82rem; opacity: 0.9; }

.auth-card .alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-card .alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { gap: 4px; }

.page-link {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    transition: all 0.3s;
}

.page-link:hover {
    background: rgba(124,58,237,0.06);
    color: var(--violet);
    border-color: rgba(124,58,237,0.2);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-glow-violet);
}

.page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
}

/* =============================================
   GLOBAL POLISH
   ============================================= */
.form-control:focus,
.form-select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.4); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .hero-section { padding: 40px 0; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p.lead { margin: 0 auto; }
    .hero-stats { justify-content: center; }
    .hero-illustration { margin-top: 30px; }
    .hero-illustration .hero-shape { width: 250px; height: 250px; }
    .hero-search { flex-direction: column; }
    .hero-search .search-divider { width: 100%; height: 1px; }
    .hero-search .search-input-group { width: 100%; }
    .hero-search .btn-moroccan { width: 100%; }
    .cta-features { flex-direction: column; align-items: center; }
}

@media (max-width: 767px) {
    .hero-section h1 { font-size: 1.6rem; }
    .hero-stats { gap: 20px; }
    .hero-stat h3 { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .top-bar .top-bar-left span:nth-child(2) { display: none; }
    .time-slots { grid-template-columns: repeat(3, 1fr); }
    .auth-card { padding: 24px; border-radius: 16px; }
    .auth-logo .brand-icon { font-size: 2rem; }
    .auth-role-tabs { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 12px; }
}

/* =============================================
   NEW FEATURES - Favorites, Autocomplete,
   Reviews, Notifications, Language
   ============================================= */

/* --- Favorite Button --- */
.btn-favorite {
    color: #cbd5e1;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.btn-favorite:hover,
.btn-favorite.active { color: #ec4899; transform: scale(1.2); }
.btn-favorite-lg { position: static; font-size: 1.4rem; }

/* --- Search Autocomplete --- */
.search-autocomplete-wrapper { position: relative; }
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}
.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}
.search-autocomplete-item:hover { background: rgba(124,58,237,0.05); color: var(--text-primary); }
.search-autocomplete-item strong { display: block; font-size: 0.9rem; }
.search-autocomplete-item small { color: #64748b; font-size: 0.78rem; }
.search-ac-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.search-autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* --- Star Rating Input --- */
.star-rating-input {
    display: flex;
    gap: 4px;
    font-size: 2rem;
    cursor: pointer;
}
.star-rating-input i { color: #f59e0b; transition: transform 0.15s; }
.star-rating-input i:hover { transform: scale(1.15); }
.star-rating-input .far.fa-star { color: #cbd5e1; }

/* --- Notifications --- */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background 0.2s;
}
.notif-item:hover { background: #f8fafc; color: var(--text-primary); }
.notif-unread { background: rgba(124,58,237,0.03); }
.notif-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.notif-content { flex: 1; }
.notif-content strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.notif-content p { margin: 0; font-size: 0.82rem; color: #64748b; }
.notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    flex-shrink: 0;
    margin-top: 6px;
}

/* --- WhatsApp Button --- */
.profile-actions { padding: 0 20px 16px; }

/* --- Language Toggle (also in RTL) --- */
.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.lang-btn {
    padding: 2px 8px;
    font-size: 0.72rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
