/* css/custom/home.css */

/* ==================== Root Variables ==================== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.rtl-menu-item,
.rtl-menu-item>li {
    list-style: none;
}

/* ==================== Base Styles ==================== */
body {
    font-family: var(--app-font-family);
    background-color: #ffffff;
    color: #374151;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* ==================== Page Header (Global) ==================== */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
}

.page-header .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 2rem;
    }
}

/* ==================== Navbar ==================== */
.navbar-brand {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: var(--gradient-primary);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Form */
.search-form .form-control {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.search-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.hero-section .search-form .hero-search-input {
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
}

.hero-section .search-form .hero-search-btn {
    border-radius: 0 50px 50px 0;
}

[dir="rtl"] .hero-section .search-form .hero-search-input {
    border-radius: 0 50px 50px 0;
}

[dir="rtl"] .hero-section .search-form .hero-search-btn {
    border-radius: 50px 0 0 50px;
}

.hero-demo-card {
    transform: rotate(3deg);
}

.hero-demo-icon {
    width: 50px;
    height: 50px;
}

.hero-floating-card {
    width: 200px;
    transform: rotate(-5deg) translateX(-30%);
}

[dir="rtl"] .hero-floating-card {
    transform: rotate(5deg) translateX(30%);
}

.home-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.home-card-img-placeholder {
    height: 160px;
}

.home-freelancer-avatar-lg {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.home-freelancer-avatar-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ==================== Buttons ==================== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ==================== Section Titles ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== Feature Cards ==================== */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-text {
    color: #6b7280;
    line-height: 1.7;
}

/* ==================== Stats Section ==================== */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(115deg, #ffffff 0%, #e9bc61 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================== Cards (Project, Product, Freelancer) ==================== */
.card-project,
.card-product,
.card-freelancer,
.page-card {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card-project:hover,
.card-product:hover,
.card-freelancer:hover,
.page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.featured-page:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Price Tag & Badges ==================== */
.price-tag {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
}

.badge {
    transition: all 0.2s ease;
}

.badge.bg-light {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* ==================== Freelancer Specific ==================== */
.freelancer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rating-stars {
    color: #fbbf24;
}

/* ==================== Image Placeholders ==================== */
.image-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.project-image-placeholder {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.product-image-placeholder {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* ==================== Hover Effects ==================== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.bg-white.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.bg-white.bg-opacity-20:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
    z-index: -1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section .btn {
    position: relative;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==================== Footer ==================== */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 30px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* ==================== Auth Pages ==================== */
.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-header h3 {
    margin-bottom: 10px;
}

.auth-body {
    padding: 30px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* ==================== Billing Toggle ==================== */
.billing-toggle {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.billing-toggle .btn-toggle {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    border: none;
    color: #6c757d;
    transition: all 0.3s ease;
}

.billing-toggle .btn-toggle.active {
    background: white;
    color: var(--gradient-start);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== Plan Cards ==================== */
.plan-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--gradient-start);
}

.plan-card.popular {
    border-color: var(--gradient-start);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.popular-badge .badge {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.saving-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.saving-badge .badge {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
}

/* Plan Icon */
.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gradient-start);
    transition: all 0.3s ease;
}

.plan-card:hover .icon-circle {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

/* Plan Price */
.plan-price {
    text-align: center;
}

.old-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 1.1rem;
    margin-right: 10px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gradient-start);
}

.price-period {
    color: #6c757d;
    font-size: 1rem;
}

.monthly-equivalent {
    background: rgba(40, 167, 69, 0.1);
    padding: 8px;
    border-radius: 20px;
    text-align: center;
}

/* Plan Features */
.plan-features {
    margin-top: 1.5rem;
}

.plan-features li {
    font-size: 0.95rem;
}

.plan-features i {
    font-size: 1.1rem;
}

/* Credits Info */
.credits-info {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.2) 100%);
    padding: 10px;
    border-radius: 30px;
    text-align: center;
    color: #856404;
}

/* ==================== Comparison Table ==================== */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comparison-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
    padding: 20px;
}

.comparison-table th {
    border-top: none;
}

.comparison-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
}

.comparison-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.plan-name {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.plan-price-sm {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==================== Wallet Card ==================== */
.wallet-card {
    transition: all 0.3s ease;
}

.wallet-card:hover {
    transform: scale(1.02);
}

.wallet-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Purchase Modal ==================== */
.purchase-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ==================== Accordion ==================== */
.accordion-item {
    border-radius: 15px !important;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--gradient-start);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(102, 126, 234, 0.2);
}

/* ==================== Empty State ==================== */
.empty-state {
    padding: 40px;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
}

/* ==================== Tooltip ==================== */
.bi-info-circle {
    cursor: help;
}

/* ==================== Animations ==================== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

/* ==================== RTL Support ==================== */
[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .popular-badge {
    right: auto;
    left: 20px;
}

[dir="rtl"] .saving-badge {
    left: auto;
    right: 20px;
}

[dir="rtl"] .badge-featured {
    right: auto;
    left: 15px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .billing-toggle .btn-toggle {
        padding: 0.5rem 1.5rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .plan-name {
        font-size: 1rem;
    }
}

/* ==================== Search Page Extras ==================== */
.search-page .search-form-wrap {
    min-width: 300px;
}

.search-page .search-sidebar-sticky {
    top: 20px;
}


/* ==================== Blog Category Page ==================== */
.blog-category-page.post-card,
.blog-category-page .post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-category-page.post-card:hover,
.blog-category-page .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== Blog Index Page ==================== */
.blog-index-page.post-card,
.blog-index-page .post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-index-page.post-card:hover,
.blog-index-page .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-index-page.featured-post .card-img-top,
.blog-index-page .featured-post .card-img-top {
    transition: transform 0.3s ease;
}

.blog-index-page.featured-post:hover .card-img-top,
.blog-index-page .featured-post:hover .card-img-top {
    transform: scale(1.05);
}

.blog-index-page.badge,
.blog-index-page .badge {
    transition: all 0.2s ease;
}

.blog-index-page.badge:hover,
.blog-index-page .badge:hover {
    transform: translateY(-2px);
}

.blog-index-page[dir="rtl"] .me-1,
.blog-index-page [dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

.blog-index-page[dir="rtl"] .me-2,
.blog-index-page [dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}


/* ==================== Blog Tag Page ==================== */
.blog-tag-page.post-card,
.blog-tag-page .post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-tag-page.post-card:hover,
.blog-tag-page .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-tag-page.badge,
.blog-tag-page .badge {
    transition: all 0.2s ease;
}

.blog-tag-page.badge:hover,
.blog-tag-page .badge:hover {
    transform: translateY(-2px);
    background-color: var(--bs-primary) !important;
    color: white !important;
}


/* ==================== Freelancers Index Page ==================== */
.freelancers-index-page.page-header,
.freelancers-index-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.freelancers-index-page.page-title,
.freelancers-index-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.freelancers-index-page.page-subtitle,
.freelancers-index-page .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.freelancers-index-page.freelancer-card,
.freelancers-index-page .freelancer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.freelancers-index-page .freelancer-card-avatar,
.freelancers-index-page .media-frame--avatar-lg {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.freelancers-index-page .online-status-dot {
    width: 14px;
    height: 14px;
    padding: 0 !important;
    border: 2px solid #fff;
}

.freelancers-index-page.freelancer-card:hover,
.freelancers-index-page .freelancer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.freelancers-index-page.freelancer-card .card-header,
.freelancers-index-page .freelancer-card .card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.freelancers-index-page.rating-stars,
.freelancers-index-page .rating-stars {
    font-size: 0.9rem;
}

.freelancers-index-page.badge,
.freelancers-index-page .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.freelancers-index-page.freelancer-card:hover .btn-outline-primary,
.freelancers-index-page .freelancer-card:hover .btn-outline-primary {
    background-color: var(--bs-primary);
    color: white;
}

.freelancers-index-page.list-view .freelancer-item,
.freelancers-index-page .list-view .freelancer-item {
    width: 100% !important;
}

.freelancers-index-page.list-view .freelancer-card,
.freelancers-index-page .list-view .freelancer-card {
    display: flex;
    flex-direction: row;
}

.freelancers-index-page.list-view .freelancer-card .card-header,
.freelancers-index-page .list-view .freelancer-card .card-header {
    width: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.freelancers-index-page.list-view .freelancer-card .card-body,
.freelancers-index-page .list-view .freelancer-card .card-body {
    flex: 1;
}

.freelancers-index-page.list-view .freelancer-card .card-footer,
.freelancers-index-page .list-view .freelancer-card .card-footer {
    width: 200px;
    background: transparent;
}

@media (max-width: 768px) {

    .freelancers-index-page.list-view .freelancer-card,
    .freelancers-index-page .list-view .freelancer-card {
        flex-direction: column;
    }

    .freelancers-index-page.list-view .freelancer-card .card-header,
    .freelancers-index-page .list-view .freelancer-card .card-header,
    .freelancers-index-page.list-view .freelancer-card .card-footer,
    .freelancers-index-page .list-view .freelancer-card .card-footer {
        width: 100%;
    }
}


/* ==================== Plans Show Page ==================== */
.plans-show-page.plan-icon-large,
.plans-show-page .plan-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
}

.plans-show-page.plan-icon-large i,
.plans-show-page .plan-icon-large i {
    transform: rotate(-45deg);
}

.plans-show-page.feature-card,
.plans-show-page .feature-card {
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.plans-show-page.feature-card:hover,
.plans-show-page .feature-card:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.plans-show-page.feature-icon,
.plans-show-page .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plans-show-page.bg-gradient-soft,
.plans-show-page .bg-gradient-soft {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.2) 100%);
}

.plans-show-page.credits-icon,
.plans-show-page .credits-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plans-show-page.price-box,
.plans-show-page .price-box {
    border-left: 4px solid #667eea;
}

.plans-show-page.purchase-icon,
.plans-show-page .purchase-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.plans-show-page[dir="rtl"] .me-2,
.plans-show-page [dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.plans-show-page[dir="rtl"] .ms-2,
.plans-show-page [dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.plans-show-page[dir="rtl"] .border-start,
.plans-show-page [dir="rtl"] .border-start {
    border-right: 1px solid #dee2e6 !important;
    border-left: none !important;
}


/* ==================== Products Category Page ==================== */
.products-category-page.page-header,
.products-category-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.products-category-page.page-title,
.products-category-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.products-category-page.page-subtitle,
.products-category-page .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.products-category-page.product-card,
.products-category-page .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.products-category-page.product-card:hover,
.products-category-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.products-category-page.product-card .card-img-top,
.products-category-page .product-card .card-img-top {
    transition: transform 0.5s ease;
}

.products-category-page.product-card:hover .card-img-top,
.products-category-page .product-card:hover .card-img-top {
    transform: scale(1.05);
}

.products-category-page.rating-stars,
.products-category-page .rating-stars {
    white-space: nowrap;
}

.products-category-page.rating-stars i,
.products-category-page .rating-stars i {
    margin-right: 2px;
}


/* ==================== Products Index Page ==================== */
.products-index-page.page-header,
.products-index-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.products-index-page.page-title,
.products-index-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.products-index-page.page-subtitle,
.products-index-page .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.products-index-page.product-card,
.products-index-page .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.products-index-page.product-card:hover,
.products-index-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.products-index-page.product-card .card-img-top,
.products-index-page .product-card .card-img-top {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

.products-index-page.product-card:hover .card-img-top,
.products-index-page .product-card:hover .card-img-top {
    transform: scale(1.05);
}

.products-index-page.rating-stars,
.products-index-page .rating-stars {
    white-space: nowrap;
}

.products-index-page.rating-stars i,
.products-index-page .rating-stars i {
    margin-right: 2px;
}

.products-index-page.category-scroll::-webkit-scrollbar,
.products-index-page .category-scroll::-webkit-scrollbar,
.products-index-page.seller-scroll::-webkit-scrollbar,
.products-index-page .seller-scroll::-webkit-scrollbar {
    width: 5px;
}

.products-index-page.category-scroll::-webkit-scrollbar-track,
.products-index-page .category-scroll::-webkit-scrollbar-track,
.products-index-page.seller-scroll::-webkit-scrollbar-track,
.products-index-page .seller-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-index-page.category-scroll::-webkit-scrollbar-thumb,
.products-index-page .category-scroll::-webkit-scrollbar-thumb,
.products-index-page.seller-scroll::-webkit-scrollbar-thumb,
.products-index-page .seller-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.products-index-page.category-scroll::-webkit-scrollbar-thumb:hover,
.products-index-page .category-scroll::-webkit-scrollbar-thumb:hover,
.products-index-page.seller-scroll::-webkit-scrollbar-thumb:hover,
.products-index-page .seller-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.products-index-page.badge a,
.products-index-page .badge a {
    text-decoration: none;
}

@media (max-width: 768px) {

    .products-index-page.page-title,
    .products-index-page .page-title {
        font-size: 2rem;
    }

    .products-index-page.product-card .card-img-top,
    .products-index-page .product-card .card-img-top {
        height: 160px;
    }
}


/* ==================== Products Seller Page ==================== */
.products-seller-page.page-header,
.products-seller-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.products-seller-page.page-title,
.products-seller-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.products-seller-page.page-subtitle,
.products-seller-page .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.products-seller-page.product-card,
.products-seller-page .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.products-seller-page.product-card:hover,
.products-seller-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.products-seller-page.product-card .card-img-top,
.products-seller-page .product-card .card-img-top {
    transition: transform 0.5s ease;
}

.products-seller-page.product-card:hover .card-img-top,
.products-seller-page .product-card:hover .card-img-top {
    transform: scale(1.05);
}

.products-seller-page.rating-stars,
.products-seller-page .rating-stars {
    white-space: nowrap;
}

.products-seller-page.rating-stars i,
.products-seller-page .rating-stars i {
    margin-right: 2px;
}


/* ==================== Products Show Page ==================== */
.products-show-page.gallery-thumbnail,
.products-show-page .gallery-thumbnail {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.products-show-page.gallery-thumbnail:hover,
.products-show-page .gallery-thumbnail:hover,
.products-show-page.gallery-thumbnail.active,
.products-show-page .gallery-thumbnail.active {
    border-color: #6366f1;
}

.products-show-page.star-rating,
.products-show-page .star-rating {
    font-size: 24px;
    cursor: pointer;
}

.products-show-page.star-rating .star,
.products-show-page .star-rating .star {
    color: #e4e5e9;
    transition: color 0.2s;
}

.products-show-page.star-rating .star:hover,
.products-show-page .star-rating .star:hover,
.products-show-page.star-rating .star.active,
.products-show-page .star-rating .star.active {
    color: #ffc107;
}

.products-show-page.product-description,
.products-show-page .product-description {
    line-height: 1.8;
}

.products-show-page.product-description p,
.products-show-page .product-description p {
    margin-bottom: 1rem;
}

.products-show-page.breadcrumb,
.products-show-page .breadcrumb {
    background-color: transparent;
    padding: 0;
}


/* ==================== Products Tag Page ==================== */
.products-tag-page.page-header,
.products-tag-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.products-tag-page.page-title,
.products-tag-page .page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.products-tag-page.page-subtitle,
.products-tag-page .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.products-tag-page.product-card,
.products-tag-page .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.products-tag-page.product-card:hover,
.products-tag-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.products-tag-page.product-card .card-img-top,
.products-tag-page .product-card .card-img-top {
    transition: transform 0.5s ease;
}

.products-tag-page.product-card:hover .card-img-top,
.products-tag-page .product-card:hover .card-img-top {
    transform: scale(1.05);
}


/* ==================== Search Index Page ==================== */
.search-index-page.nav-tabs .nav-link,
.search-index-page .nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.search-index-page.nav-tabs .nav-link:hover,
.search-index-page .nav-tabs .nav-link:hover {
    color: #667eea;
    border: none;
}

.search-index-page.nav-tabs .nav-link.active,
.search-index-page .nav-tabs .nav-link.active {
    color: #667eea;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid #667eea;
    background: transparent;
}

.search-index-page.sticky-top,
.search-index-page .sticky-top {
    z-index: 100;
}

.search-index-page[dir="rtl"] .ms-2,
.search-index-page [dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.search-index-page[dir="rtl"] .me-2,
.search-index-page [dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}


/* ==================== Search Results Portfolio Page ==================== */
.search-results-portfolio-page.portfolio-card,
.search-results-portfolio-page .portfolio-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results-portfolio-page.portfolio-card:hover,
.search-results-portfolio-page .portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== Search Results Products Page ==================== */
.search-results-products-page.product-card,
.search-results-products-page .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results-products-page.product-card:hover,
.search-results-products-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== Search Results Projects Page ==================== */
.search-results-projects-page.project-card,
.search-results-projects-page .project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results-projects-page.project-card:hover,
.search-results-projects-page .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== Search Results Users Page ==================== */
.search-results-users-page.user-card,
.search-results-users-page .user-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results-users-page.user-card:hover,
.search-results-users-page .user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== User Profile Page ==================== */
.user-profile-page.profile-header,
.user-profile-page .profile-header {
    margin-top: -1.5rem;
}

.user-profile-page.avatar-wrapper,
.user-profile-page .avatar-wrapper {
    margin-bottom: -1rem;
}

.user-profile-page.object-fit-cover,
.user-profile-page .object-fit-cover {
    object-fit: cover;
}

.user-profile-page.portfolio-card,
.user-profile-page .portfolio-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-page.portfolio-card:hover,
.user-profile-page .portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.user-profile-page.skills-cloud,
.user-profile-page .skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-profile-page.skill-badge,
.user-profile-page .skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.user-profile-page.skill-badge[data-level="5"],
.user-profile-page .skill-badge[data-level="5"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.user-profile-page.skill-badge[data-level="4"],
.user-profile-page .skill-badge[data-level="4"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.user-profile-page.skill-badge[data-level="3"],
.user-profile-page .skill-badge[data-level="3"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.user-profile-page.skill-badge:hover,
.user-profile-page .skill-badge:hover {
    transform: scale(1.05);
}

.user-profile-page.skill-level,
.user-profile-page .skill-level {
    display: inline-flex;
    margin-left: 0.5rem;
}

.user-profile-page.skill-level i,
.user-profile-page .skill-level i {
    font-size: 0.7rem;
}

.user-profile-page.stat-item,
.user-profile-page .stat-item {
    transition: transform 0.2s ease;
}

.user-profile-page.stat-item:hover,
.user-profile-page .stat-item:hover {
    transform: translateY(-3px);
}

.user-profile-page.contact-icon,
.user-profile-page .contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-page.badge,
.user-profile-page .badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.user-profile-page.bio-content,
.user-profile-page .bio-content {
    line-height: 1.8;
    color: #4a5568;
}

.user-profile-page.stars,
.user-profile-page .stars {
    display: inline-flex;
    gap: 2px;
}

.user-profile-page.stars i,
.user-profile-page .stars i {
    font-size: 0.8rem;
}

.user-profile-page.review-item,
.user-profile-page .review-item {
    transition: background-color 0.2s ease;
}

.user-profile-page.review-item:hover,
.user-profile-page .review-item:hover {
    background-color: #f8f9fa;
}

.user-profile-page.review-avatar,
.user-profile-page .review-avatar {
    flex-shrink: 0;
}

.user-profile-page.review-box,
.user-profile-page .review-box {
    border-left: 3px solid #667eea;
}

.user-profile-page.progress,
.user-profile-page .progress {
    border-radius: 10px;
}

.user-profile-page.progress-bar,
.user-profile-page .progress-bar {
    border-radius: 10px;
}

.user-profile-page.product-card,
.user-profile-page .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-page.product-card:hover,
.user-profile-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.user-profile-page.cover-image,
.user-profile-page .cover-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-profile-page.profile-avatar,
.user-profile-page .profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.user-profile-page.profile-avatar-placeholder,
.user-profile-page .profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    font-size: 4rem;
    font-weight: bold;
}

.user-profile-page.brand-logo-sm,
.user-profile-page .brand-logo-sm {
    height: 36px;
    max-width: 120px;
    object-fit: contain;
}

.user-profile-page.portfolio-media,
.user-profile-page .portfolio-media {
    height: 200px;
    overflow: hidden;
}

.user-profile-page.portfolio-media-modal,
.user-profile-page .portfolio-media-modal {
    height: 220px;
    overflow: hidden;
}

.user-profile-page.portfolio-media-modal img,
.user-profile-page .portfolio-media-modal img,
.user-profile-page.portfolio-media-modal video,
.user-profile-page .portfolio-media-modal video {
    height: 220px;
    object-fit: cover;
}

.user-profile-page.video-play-btn,
.user-profile-page .video-play-btn {
    cursor: pointer;
    z-index: 10;
}

.user-profile-page.bg-gradient-dark,
.user-profile-page .bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.user-profile-page.portfolio-audio,
.user-profile-page .portfolio-audio {
    height: 40px;
}

.user-profile-page.review-avatar-placeholder,
.user-profile-page .review-avatar-placeholder {
    width: 40px;
    height: 40px;
}

.user-profile-page.progress-xs,
.user-profile-page .progress-xs {
    height: 5px;
}

.user-profile-page.progress-sm,
.user-profile-page .progress-sm {
    height: 6px;
}

.user-profile-page.product-image,
.user-profile-page .product-image {
    height: 140px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.user-profile-page.bg-light-hover:hover,
.user-profile-page .bg-light-hover:hover {
    background-color: #f8f9fa;
}


/* ==================== Users Page ==================== */
.users-page.user-card,
.users-page .user-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.users-page.user-card:hover,
.users-page .user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.users-page.bg-gradient-primary,
.users-page .bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.users-page.text-white-50,
.users-page .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.users-page.search-wrapper .form-control:focus,
.users-page .search-wrapper .form-control:focus {
    box-shadow: none;
    border-color: #667eea;
}

.users-page.badge,
.users-page .badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.users-page[dir="rtl"] .ms-2,
.users-page [dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.users-page[dir="rtl"] .ms-3,
.users-page [dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

.users-page[dir="rtl"] .me-1,
.users-page [dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

.users-page[dir="rtl"] .me-2,
.users-page [dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* ==================== Portfolio Show Page ==================== */
.portfolio-show-page.bg-gradient-dark,
.portfolio-show-page .bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.portfolio-show-page.meta-icon,
.portfolio-show-page .meta-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-show-page.related-card,
.portfolio-show-page .related-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-show-page.related-card:hover,
.portfolio-show-page .related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Utility classes replacing common inline styles (shared: en + fa via custom/customfa) */
.product-hero-img {
    max-height: 400px;
    object-fit: contain;
}

.product-hero-placeholder {
    height: 400px;
}

.product-thumb-sm {
    cursor: pointer;
    height: 80px;
    object-fit: cover;
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-img-placeholder {
    height: 200px;
}

.product-related-img {
    height: 150px;
    object-fit: cover;
}

.product-related-placeholder {
    height: 150px;
}

.seller-avatar-lg {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.seller-avatar-initial {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    font-weight: bold;
}

.seller-avatar-md {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
}

.filter-scroll-md {
    max-height: 200px;
    overflow-y: auto;
}

.filter-scroll-sm {
    max-height: 150px;
    overflow-y: auto;
}

.thumb-md-box {
    width: 50px;
    height: 50px;
}

.thumb-sm-box {
    width: 40px;
    height: 40px;
}

.plan-icon-box {
    width: 80px;
    height: 80px;
}

.wallet-card-narrow {
    max-width: 400px;
}

.alert-narrow {
    max-width: 500px;
}

.progress-thin {
    height: 5px;
}

.icon-xs {
    font-size: 0.8rem;
}

.w-250 {
    width: 250px;
}

.media-thumb-square {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Extended utilities — replaces inline styles across blades */
.w-auto {
    width: auto !important;
}

.max-w-120 {
    max-width: 120px;
}

.w-120 {
    width: 120px;
}

.progress-h-4 {
    height: 4px;
}

.progress-h-5 {
    height: 5px;
}

.progress-h-6 {
    height: 6px;
}

.progress-h-8 {
    height: 8px;
}

.progress-h-10 {
    height: 10px;
}

.progress-h-20 {
    height: 20px;
}

.progress-w-80 {
    width: 80px;
}

.progress-bar-fill {
    width: var(--progress-width, 0%);
}

.progress-bar-full {
    --progress-width: 100%;
    width: 100%;
}

.progress-bar-zero {
    --progress-width: 0%;
    width: 0%;
}

.chart-h-250 {
    height: 250px;
}

.chart-h-300 {
    height: 300px;
}

.chart-h-320 {
    height: 320px;
}

.chart-h-400 {
    height: 400px;
}

.z-overlay {
    z-index: 9999;
}

.min-w-320 {
    min-width: 320px;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
}

.th-col-80 {
    width: 80px;
}

.th-col-150 {
    width: 150px;
}

.font-11 {
    font-size: 11px;
}

.icon-w-20 {
    width: 20px;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.avatar-initial-sm {
    width: 32px;
    height: 32px;
}

.avatar-initial-xs {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avatar-initial-sm-fs {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.avatar-initial-xs-fs {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

.banner-cover-sm {
    height: 150px;
    overflow: hidden;
}

.color-swatch-xs {
    width: 15px;
    height: 15px;
    background-color: var(--swatch-color, #ccc);
}

.color-swatch-sm {
    width: 20px;
    height: 20px;
    background-color: var(--swatch-color, #ccc);
}

.color-swatch-md {
    width: 30px;
    height: 30px;
    background-color: var(--swatch-color, #ccc);
}

.icon-color-dynamic {
    color: var(--icon-color, inherit);
}

.text-break-all {
    word-break: break-all;
}

.text-left-list {
    text-align: left;
}

.img-max-h-500 {
    max-height: 500px;
    object-fit: cover;
}

.img-max-h-400 {
    max-height: 400px;
    object-fit: cover;
}

.img-max-w-200 {
    max-width: 200px;
}

.card-img-h-180 {
    height: 180px;
    object-fit: cover;
}

.card-img-h-160 {
    height: 160px;
    object-fit: cover;
}

.card-img-placeholder-h-160 {
    height: 160px;
}

.card-img-h-200 {
    height: 200px;
    object-fit: cover;
}

.card-img-h-300 {
    height: 300px;
    object-fit: cover;
}

.card-img-placeholder-h-200 {
    height: 200px;
}

.channel-cover {
    height: 180px;
    object-fit: cover;
}

.channel-logo-overlap {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-top: -40px;
    border: 3px solid #fff;
}

.channel-banner {
    width: 100%;
    height: 75px;
    object-fit: cover;
}

.channel-logo-md {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.z-2 {
    z-index: 2;
}

.status-color-dot {
    background-color: var(--status-color, #000);
}

.w-100p {
    width: 100%;
}

.is-hidden {
    display: none !important;
}

.is-visible-block {
    display: block !important;
}

.w-dynamic {
    width: var(--el-width, auto);
}

.h-dynamic {
    height: var(--el-height, auto);
}

.stat-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-gradient-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.progress-h-3 {
    height: 3px;
}

.th-col-120 {
    width: 120px;
}

.th-col-100 {
    width: 100px;
}

.th-col-200 {
    width: 200px;
}

.text-truncate-max-200 {
    max-width: 200px;
}

.img-max-h-80 {
    max-height: 80px;
}

.thumb-80-rounded {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.avatar-70 {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.avatar-70.rounded-circle.d-flex {
    font-size: 2rem;
}

.icon-dot-sm {
    width: 12px;
    height: 12px;
}

.font-8 {
    font-size: 8px;
}

.related-media-h {
    height: 120px;
    overflow: hidden;
}

.portfolio-media-contain {
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
}

.portfolio-video {
    max-height: 500px;
    background: #000;
}

.sticky-top-20 {
    top: 20px;
}

.object-fit-cover {
    object-fit: cover;
}

.progress-fill.progress-bar-fill {
    width: var(--progress-width, 0%);
}

/* ==================== Homepage Enhancements ==================== */
.hero-section-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-shape-1 {
    width: 320px;
    height: 320px;
    background: #8b5cf6;
    top: -80px;
    right: 10%;
}

.hero-shape-2 {
    width: 260px;
    height: 260px;
    background: #06b6d4;
    bottom: -60px;
    left: 5%;
}

.hero-shape-3 {
    width: 180px;
    height: 180px;
    background: #f59e0b;
    top: 40%;
    left: 45%;
}

.stat-item-modern {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-item-modern .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.home-trust-band .trust-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08);
}

/* ==================== Public User Profile ==================== */
.cover-image-enhanced {
    min-height: 220px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

.cover-image-enhanced .cover-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 60%);
    pointer-events: none;
}

.user-profile-page .profile-header {
    border-radius: 20px;
}

.user-profile-page .profile-avatar,
.user-profile-page .profile-avatar-placeholder {
    width: 140px;
    height: 140px;
}

.user-profile-page .card {
    border-radius: 16px;
}

.user-profile-page .portfolio-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-profile-page .portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

/* ==================== Homepage V2 Redesign ==================== */
.home-hero {
    position: relative;
    padding: 110px 0 90px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #6366f1 100%);
    color: #fff;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.home-hero__orb--1 {
    width: 420px;
    height: 420px;
    background: #a855f7;
    top: -120px;
    right: -80px;
}

.home-hero__orb--2 {
    width: 320px;
    height: 320px;
    background: #06b6d4;
    bottom: -80px;
    left: -60px;
}

.home-hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #f59e0b;
    top: 40%;
    left: 42%;
    opacity: 0.25;
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.home-hero__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.home-hero__title-accent {
    display: block;
    background: linear-gradient(90deg, #fde68a, #f472b6, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__lead {
    font-size: 1.125rem;
    opacity: 0.92;
    max-width: 540px;
    line-height: 1.7;
}

.home-hero__search .input-group {
    border-radius: 999px;
    overflow: hidden;
}

.home-hero__search .form-control:focus {
    box-shadow: none;
}

.home-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.home-hero__tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    border: 1px solid rgba(255, 255, 255, .15);
    transition: background 0.2s;
}

.home-hero__tag:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.875rem;
    opacity: 0.88;
}

.home-hero__visual {
    position: relative;
    min-height: 380px;
}

.home-preview {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    color: #1f2937;
}

.home-preview--main {
    padding: 0;
    transform: rotate(2deg);
}

.home-preview__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 20px 20px 0 0;
}

.home-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.home-preview__dot:first-child {
    background: #ef4444;
}

.home-preview__dot:nth-child(2) {
    background: #f59e0b;
}

.home-preview__dot:nth-child(3) {
    background: #22c55e;
}

.home-preview__label {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.home-preview__body {
    padding: 1.25rem;
}

.home-preview__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-preview--float {
    position: absolute;
    top: 12%;
    left: -8%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    width: min(260px, 90%);
    transform: rotate(-4deg);
    animation: homeFloat 6s ease-in-out infinite;
}

[dir="rtl"] .home-preview--float {
    left: auto;
    right: -8%;
    transform: rotate(4deg);
    animation-name: homeFloatRtl;
}

.home-preview__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.home-preview--stat {
    position: absolute;
    bottom: 8%;
    right: -4%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    transform: rotate(3deg);
}

[dir="rtl"] .home-preview--stat {
    right: auto;
    left: -4%;
}

@keyframes homeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-10px) rotate(-4deg);
    }
}

@keyframes homeFloatRtl {

    0%,
    100% {
        transform: translateY(0) rotate(4deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

.home-stats-bar {
    background: #0f172a;
    color: #fff;
    padding: 1.75rem 0;
    margin-top: -1px;
}

.home-stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
}

.home-stats-bar__item i {
    font-size: 1.25rem;
    color: #818cf8;
    margin-bottom: 0.25rem;
}

.home-stats-bar__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
}

.home-stats-bar__item span {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.home-section {
    padding: 5rem 0;
}

.home-section__head {
    margin-bottom: 2.5rem;
}

.home-section__head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-section__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.home-section__title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 800;
    color: #0f172a;
}

.home-category-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.22s;
    height: 100%;
}

.home-category-chip:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
    transform: translateY(-3px);
    color: #4338ca;
}

.home-category-chip__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-category-chip__label {
    font-weight: 600;
    font-size: 0.9375rem;
    flex: 1;
}

.home-category-chip__count {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.home-step-card {
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

.home-step-card__num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
}

[dir="rtl"] .home-step-card__num {
    right: auto;
    left: 1rem;
}

.home-step-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.home-step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-step-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.65;
}

.home-highlight-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
}

.home-highlight-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.1);
}

.home-highlight-card i {
    font-size: 1.75rem;
    color: #6366f1;
    margin-bottom: 1rem;
    display: block;
}

.home-highlight-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.home-highlight-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.home-card-v2 {
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.home-card-v2__media {
    display: block;
    height: 168px;
    overflow: hidden;
    background: #f1f5f9;
}

.home-card-v2__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.home-card-v2:hover .home-card-v2__img {
    transform: scale(1.05);
}

.home-card-v2__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.home-card-v2__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.home-card-v2__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 0.65rem;
}

.home-card-v2__badge--info {
    background: #ecfeff;
    color: #0891b2;
}

.home-card-v2__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-card-v2__title a {
    color: #0f172a;
    text-decoration: none;
}

.home-card-v2__title a:hover {
    color: #6366f1;
}

.home-card-v2__desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-v2__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.home-card-v2__price strong {
    color: #6366f1;
}

.home-card-v2__price span,
.home-card-v2__price small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.home-freelancer-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-freelancer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.12);
}

.home-freelancer-card__avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.home-freelancer-card__status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

[dir="rtl"] .home-freelancer-card__status {
    right: auto;
    left: 4px;
}

.home-freelancer-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-freelancer-card__title {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.home-freelancer-card__rating {
    color: #f59e0b;
    font-size: 0.8125rem;
}

.home-freelancer-card__rating span {
    color: #64748b;
    margin-left: 0.25rem;
}

.home-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
}

.home-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    color: #fff;
}

.home-cta__inner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0.75rem 0 1rem;
}

.home-cta__inner p {
    opacity: 0.9;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-categories {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background: #f8fafc;
}

/* --- Hero search (glass) --- */
.home-hero__search-group {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.home-hero__search-icon {
    background: transparent !important;
    color: #fff;
}

.home-hero__search-icon i {
    color: #fff;
}

.home-hero__search-input {
    background: transparent !important;
    color: #fff;
}

.home-hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.home-hero__search-btn {
    background: #fff;
    color: #4338ca;
    border: none;
    font-weight: 700;
}

.home-hero__search-btn:hover {
    background: #eef2ff;
    color: #312e81;
}

/* --- Hero action buttons --- */
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.home-hero-btn__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.home-hero-btn--solid {
    background: #fff;
    color: #312e81;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.home-hero-btn--solid .home-hero-btn__icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.home-hero-btn--solid:hover {
    transform: translateY(-2px);
    color: #1e1b4b;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.home-hero-btn--glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.home-hero-btn--glass .home-hero-btn__icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.home-hero-btn--glass:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Nav auth buttons (home layout) --- */
.home-nav-auth__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-auth__btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .home-nav-actions {
        width: 100%;
        margin-top: 0.75rem !important;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }

    .home-nav-auth {
        width: 100%;
        margin: 0 !important;
        padding: 0.25rem 0 0.5rem;
    }

    .home-nav-auth__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
    }

    .home-nav-auth__btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-weight: 600;
    }

    .home-nav-user-item {
        width: 100%;
        margin: 0 !important;
        padding: 0.25rem 0 0.5rem;
    }

    .home-nav-user {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem !important;
    }

    .home-nav-user__name {
        max-width: none;
        flex: 1;
    }
}

/* --- Nav user (home layout) --- */
.home-nav-user {
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.home-nav-user__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.home-nav-user__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-nav-user__name {
    font-weight: 600;
    color: #0f172a;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Stats v2 --- */
.home-stats-bar--v2 {
    position: relative;
    padding: 3rem 0 3.5rem;
    margin-top: 0;
    background: linear-gradient(180deg, #0b1220 0%, #111827 40%, #1e1b4b 100%);
    overflow: hidden;
}

.home-stats-bar__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(99, 102, 241, 0.35), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.25), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.18), transparent 50%);
    pointer-events: none;
}

.home-stat-card {
    position: relative;
    padding: 1.35rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.home-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.home-stat-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.home-stat-card--violet .home-stat-card__icon {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
}

.home-stat-card--cyan .home-stat-card__icon {
    background: rgba(6, 182, 212, 0.22);
    color: #67e8f9;
}

.home-stat-card--amber .home-stat-card__icon {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

.home-stat-card--rose .home-stat-card__icon {
    background: rgba(244, 114, 182, 0.22);
    color: #f9a8d4;
}

.home-stat-card__value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.home-stat-card__label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.68);
}

/* --- Categories v2 --- */
.home-categories-v2 {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 148px;
    padding: 1.25rem 1.15rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-cat-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-accent, #6366f1);
}

.home-cat-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.home-cat-tile--1 {
    --cat-accent: #6366f1;
}

.home-cat-tile--2 {
    --cat-accent: #0891b2;
}

.home-cat-tile--3 {
    --cat-accent: #7c3aed;
}

.home-cat-tile--4 {
    --cat-accent: #db2777;
}

.home-cat-tile--5 {
    --cat-accent: #059669;
}

.home-cat-tile--6 {
    --cat-accent: #d97706;
}

.home-cat-tile__index {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.home-cat-tile__label {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
}

.home-cat-tile__meta {
    font-size: 0.75rem;
    color: #64748b;
}

.home-cat-tile__arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s;
}

[dir="rtl"] .home-cat-tile__arrow {
    right: auto;
    left: 1rem;
    transform: scaleX(-1);
}

.home-cat-tile:hover .home-cat-tile__arrow {
    background: #eef2ff;
}

/* --- Talent cards v2 --- */
.home-talent-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.home-talent-card {
    display: block;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-talent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(99, 102, 241, 0.14);
    color: #0f172a;
}

.home-talent-card__cover {
    height: 88px;
    background: linear-gradient(135deg, var(--talent-a, #6366f1), var(--talent-b, #8b5cf6));
}

.home-talent-card--accent-0 {
    --talent-a: #6366f1;
    --talent-b: #8b5cf6;
}

.home-talent-card--accent-1 {
    --talent-a: #0891b2;
    --talent-b: #06b6d4;
}

.home-talent-card--accent-2 {
    --talent-a: #7c3aed;
    --talent-b: #a855f7;
}

.home-talent-card--accent-3 {
    --talent-a: #db2777;
    --talent-b: #f472b6;
}

.home-talent-card__body {
    position: relative;
    padding: 0 1.25rem 1.35rem;
    margin-top: -36px;
    text-align: center;
}

.home-talent-card__avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.home-talent-card__avatar,
img.home-talent-card__avatar {
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.home-talent-card__status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

[dir="rtl"] .home-talent-card__status {
    right: auto;
    left: 4px;
}

.home-talent-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.home-talent-card__title {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.home-talent-card__rating {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-talent-card__rating span {
    color: #64748b;
    margin-left: 0.25rem;
}

.home-talent-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6366f1;
}

[dir="rtl"] .home-talent-card__link i {
    transform: scaleX(-1);
}

@media (max-width: 991px) {
    .home-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .home-cat-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 991px) {
    .home-hero {
        padding: 80px 0 60px;
    }

    .home-hero__visual {
        min-height: 300px;
        margin-top: 1rem;
    }

    .home-preview--float,
    .home-preview--stat {
        position: relative;
        left: auto;
        right: auto;
        margin-top: 1rem;
        transform: none;
        animation: none;
        width: 100%;
    }

    .home-section {
        padding: 3.5rem 0;
    }
}