/* ============================================
   DatosTrabajo – Design System
   Modern, vibrant CSS with dark mode support
   ============================================ */

/* ---- CSS Variables / Tokens ---- */
:root {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --info: #3B82F6;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-alt: #F1F5F9;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .05);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font);
    --nav-h: 72px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.main-content {
    min-height: calc(100vh - var(--nav-h) - 200px);
    padding-top: var(--nav-h);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, .4);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-glass {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: .8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 18px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-card {
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.text-muted {
    color: var(--text-muted);
    font-size: .85rem;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* ---- Alerts ---- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: .9rem;
    animation: slideDown .3s ease;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: auto;
    opacity: .6;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--text);
}

.brand-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.brand-text strong {
    color: var(--primary);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    font-size: .9rem;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, .08);
}

.nav-link-pro {
    color: var(--accent);
}

.nav-link-pro:hover {
    background: rgba(245, 158, 11, .08);
    color: var(--accent);
}

.nav-cta {
    margin-left: 8px;
}

.nav-notif {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    transition: all var(--transition);
}

.nav-user-btn:hover {
    border-color: var(--primary);
}

.nav-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pro-badge-sm {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.pro-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 8px;
    display: none;
    animation: fadeIn .2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: .9rem;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.dropdown-item i {
    width: 18px;
    color: var(--text-muted);
}

.dropdown-item-danger {
    color: var(--danger);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all .3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-cta {
        margin-left: 0;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-alt);
        border-radius: var(--radius);
    }

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #312E81 0%, #4F46E5 50%, #6366F1 100%);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(236, 72, 153, .3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, .2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero .gradient-text {
    background: linear-gradient(135deg, #FDE68A, #F59E0B, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: .85;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
    margin-bottom: 40px;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-full);
    padding: 6px;
    overflow: hidden;
}

.search-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: rgba(255, 255, 255, .7);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px 0;
    font-family: var(--font);
    min-width: 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.search-input:focus {
    outline: none;
}

.search-select {
    border: none;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font);
    cursor: pointer;
    margin-right: 6px;
}

.search-select option {
    color: var(--text);
    background: var(--bg-card);
}

.search-btn {
    border-radius: var(--radius-full) !important;
    padding: 12px 28px !important;
}

@media (max-width: 768px) {
    .search-wrapper {
        flex-wrap: wrap;
        border-radius: var(--radius);
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 12px 16px;
    }

    .search-select {
        width: 100%;
        margin: 4px 0;
        border-radius: var(--radius);
    }

    .search-btn {
        width: 100%;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: .85rem;
    opacity: .7;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all var(--transition);
    color: var(--text);
}

.category-card:hover {
    border-color: var(--cat-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    color: var(--text);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
}

.category-name {
    font-weight: 600;
    font-size: .9rem;
}

.category-count {
    font-size: .8rem;
    color: var(--text-muted);
}

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

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    color: var(--text);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--text);
}

.service-card-featured {
    border-color: var(--accent);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent), #D97706);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-badge-lg {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent), #D97706);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

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

.service-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-placeholder i {
    font-size: 3.5rem;
    opacity: .6;
}

.service-card-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 12px;
    flex: 1;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    color: var(--text-muted);
}

.service-card-rating i {
    color: var(--accent);
    font-size: .8rem;
}

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

.price-quote {
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.service-card-provider {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
}

.provider-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.service-card-location {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ============================================
   STEPS  
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
}

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

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-card h3 {
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 40px 0 80px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 500px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-content p {
    opacity: .85;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-decoration {
    font-size: 8rem;
    opacity: .1;
}

/* ============================================
   FILTERS
   ============================================ */
.filters-bar {
    padding: 20px;
    margin-bottom: 32px;
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group i {
    color: var(--text-muted);
}

/* ============================================
   SERVICE DETAIL
   ============================================ */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-size: .9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
}

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

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

.service-detail-main>* {
    margin-bottom: 24px;
}

.service-gallery {
    overflow: hidden;
    position: relative;
}

.gallery-main {
    height: 400px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    font-size: 5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.gallery-thumbs img:hover {
    border-color: var(--primary);
}

.service-info {
    padding: 28px;
}

.service-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-detail-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.service-meta-row i {
    color: var(--accent);
}

.reviews-count,
.service-views {
    color: var(--text-muted);
    font-size: .85rem;
}

.service-price-display {
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.price-label {
    color: var(--text-muted);
    margin-right: 8px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-quote-lg {
    color: var(--text-muted);
    font-style: italic;
}

.service-description h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-description p {
    color: var(--text-muted);
    line-height: 1.8;
}

.service-location-info {
    margin-top: 20px;
}

.service-location-info h3 {
    margin-bottom: 8px;
}

.service-mini-map {
    height: 200px;
    border-radius: var(--radius);
    margin-top: 12px;
}

/* Sidebar */
.service-detail-sidebar>* {
    margin-bottom: 24px;
    padding: 24px;
}

.provider-card {}

.provider-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.provider-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.provider-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.provider-since {
    font-size: .8rem;
    color: var(--text-muted);
}

.provider-bio {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.similar-services h3 {
    margin-bottom: 16px;
}

.similar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.similar-item:last-child {
    border: none;
}

.similar-info {
    flex: 1;
}

.similar-info strong {
    display: block;
    font-size: .9rem;
}

.similar-info span {
    font-size: .8rem;
    color: var(--text-muted);
}

/* Reviews */
.reviews-section {
    padding: 28px;
}

.reviews-section h3 {
    margin-bottom: 20px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-date {
    margin-left: auto;
    font-size: .8rem;
    color: var(--text-muted);
}

.review-comment {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.review-form-wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.review-form-wrapper h4 {
    margin-bottom: 16px;
}

.star-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.star-select i {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
    transition: transform .2s;
}

.star-select i:hover {
    transform: scale(1.2);
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--accent);
    font-size: .8rem;
}

/* ============================================
   AUTH
   ============================================ */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.auth-card {
    padding: 40px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

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

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.input-password {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.role-card i {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.role-option input:checked+.role-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, .06);
}

.role-option input:checked+.role-card i {
    color: var(--primary);
}

.auth-demo {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.demo-accounts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-header {
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 28px 28px;
    margin-top: -40px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-details h1 {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-role,
.profile-location,
.profile-since {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .85rem;
    margin-right: 16px;
}

.profile-bio,
.profile-contact {
    padding: 20px;
    margin-bottom: 24px;
}

.profile-bio h3 {
    margin-bottom: 8px;
}

.profile-services {
    margin-bottom: 40px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.notification-unread {
    border-left: 4px solid var(--primary);
    background: rgba(99, 102, 241, .03);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 4px;
}

.notification-content p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 4px;
}

.notification-time {
    font-size: .8rem;
    color: var(--text-muted);
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    padding-top: 0;
}

.map-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - var(--nav-h));
}

@media (max-width: 768px) {
    .map-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.map-sidebar {
    border-radius: 0;
    overflow-y: auto;
    padding: 24px;
}

.map-sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.map-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.map-results {
    margin-top: 16px;
}

.map-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.map-result-item:hover {
    background: var(--bg-alt);
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info strong {
    display: block;
    font-size: .9rem;
}

.result-info span {
    font-size: .8rem;
    color: var(--text-muted);
}

.result-price {
    color: var(--primary);
    font-weight: 600;
}

.results-count {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.main-map {
    border-radius: 0;
}

.custom-marker .marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.custom-marker .marker-pin i {
    transform: rotate(45deg);
    font-size: .7rem;
}

.map-popup {
    min-width: 200px;
}

.map-popup strong {
    display: block;
    margin-bottom: 4px;
    font-size: .95rem;
}

.popup-category,
.popup-provider,
.popup-price {
    display: block;
    font-size: .8rem;
    color: #666;
    margin-bottom: 2px;
}

.popup-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-sm {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.empty-state-sm i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ============================================
   PLANS / PAYMENT
   ============================================ */
.plans-header {
    text-align: center;
    margin-bottom: 48px;
}

.plans-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.plan-card {
    padding: 32px;
    position: relative;
    text-align: center;
}

.plan-card-featured {
    border: 2px solid var(--primary);
    transform: scale(1.04);
}

.plan-badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-badge-pro {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.plan-badge-save {
    background: var(--success);
    color: #fff;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 24px;
}

.plan-price .price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.plan-price .price-period {
    color: var(--text-muted);
}

.plan-features {
    margin-bottom: 28px;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
}

.plan-features li i {
    width: 18px;
}

.plan-features li .fa-check {
    color: var(--success);
}

.plan-features li .fa-times {
    color: #CBD5E1;
}

.plan-features li.disabled {
    color: var(--text-muted);
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-form {
    padding: 32px;
}

.checkout-form h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.mock-payment-badge {
    background: #FEF3C7;
    color: #92400E;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .85rem;
    margin: 16px 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-summary {
    padding: 32px;
}

.checkout-summary h3 {
    margin-bottom: 20px;
}

.summary-plan {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.summary-plan-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.summary-plan strong {
    display: block;
}

.summary-plan span {
    font-size: .85rem;
    color: var(--text-muted);
}

.summary-benefits {
    margin-bottom: 24px;
}

.summary-benefits li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}

.summary-benefits li i {
    color: var(--success);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
}

.summary-total strong {
    font-size: 1.3rem;
    color: var(--primary);
}

.payment-logos {
    text-align: center;
    margin-top: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Result pages */
.result-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.result-icon-wrapper {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-success .result-icon-wrapper {
    color: var(--success);
}

.result-failure .result-icon-wrapper {
    color: var(--danger);
}

.result-card h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.result-card>p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.result-details {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   REQUESTS
   ============================================ */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-card {
    padding: 24px;
}

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

.request-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
}

.request-service {
    font-weight: 600;
    margin-bottom: 8px;
}

.request-message {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.request-phone {
    color: var(--text-muted);
    font-size: .85rem;
}

.request-date {
    font-size: .8rem;
    color: var(--text-muted);
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ============================================
   MISC
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    transition: all var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--primary);
}

.error-page p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.danger-zone {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--danger);
}

.danger-zone h4 {
    color: var(--danger);
    margin-bottom: 12px;
}

/* Create/Edit service */
.price-type-selector {
    display: flex;
    gap: 12px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card span {
    display: block;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all var(--transition);
}

.radio-card input:checked+span {
    border-color: var(--primary);
    background: rgba(99, 102, 241, .06);
    color: var(--primary);
}

.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-placeholder p {
    color: var(--text-muted);
}

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.preview-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-map {
    height: 250px;
    margin: 16px 0;
    border-radius: var(--radius);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: .9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: .95rem;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    font-size: .9rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-links p {
    font-size: .85rem;
    padding: 4px 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Smooth page transitions */
.service-card,
.category-card,
.step-card,
.plan-card,
.notification-item,
.request-card {
    animation: fadeIn .4s ease both;
}