/* Indobazaar.my Custom Styles */

/* Root Variables */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --smart-primary: #dc3545;
    --smart-primary-dark: #c82333;
    --smart-muted: #6c757d;
    --smart-bg: #f8f9fa;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-image {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.25s ease, transform 0.25s ease;
}

.header.scrolled .logo-image {
    height: 48px;
}

.logo-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.85rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* Dropdown Styles */
.dropdown-menu-wide {
    min-width: 280px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.75rem 0;
    background: white;
    z-index: 1100;
}

.dropdown-menu-wide .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-menu-wide .dropdown-item:hover,
.dropdown-menu-wide .dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.4rem;
    transform: none;
}

.dropdown-menu-wide .dropdown-item:active {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.dropdown-menu-wide .dropdown-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.75rem 1.2rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.dropdown-menu-wide .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

.dropdown-menu-wide .badge {
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

/* Special positioning for All Categories dropdown */
.navbar .dropdown:last-of-type {
    position: static;
}

/* Consistent positioning for regular dropdowns */
@media (min-width: 992px) {
    .navbar .dropdown:not(:last-of-type) {
        position: relative;
    }
    
    .navbar .dropdown:not(:last-of-type) .dropdown-menu-wide {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.5rem;
    }
}

/* Full Width Mega Dropdown Menu for All Categories */
.dropdown-menu-mega {
    width: min(92vw, 1200px);
    max-width: 1200px;
    padding: 1.75rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: white;
    margin-top: 0.75rem;
    overflow: hidden;
}

/* Full width mega menu positioning */
.navbar-nav .dropdown:last-child .dropdown-menu-mega {
    left: 50%;
    right: auto;
    margin-left: 0;
    transform: translateX(-50%);
}

.dropdown-menu-mega::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b00, var(--primary-color));
}

.dropdown-menu-mega .container {
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dropdown-menu-mega .row {
    margin: 0;
    justify-content: space-between;
}

.dropdown-menu-mega .col-md-3 {
    padding: 0 1.5rem;
    border-right: 1px solid #e0e0e0;
    min-height: 250px;
    flex: 1;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-menu-mega .col-md-3:last-child {
    border-right: none;
}

.dropdown-menu-mega .col-md-3:first-child {
    padding-left: 0;
}

.dropdown-menu-mega .col-md-3:last-child {
    padding-right: 0;
}

.dropdown-menu-mega .dropdown-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.dropdown-menu-mega .dropdown-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.dropdown-menu-mega .dropdown-item {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

.dropdown-menu-mega .dropdown-item:hover {
    background: none;
    color: var(--primary-color);
    padding-left: 0.5rem;
    font-weight: 500;
}

.dropdown-menu-mega .dropdown-divider {
    margin: 1rem 0 0.5rem;
    border-top: 1px solid #e9ecef;
}

.dropdown-menu-mega .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

body.dropdown-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    body.dropdown-open {
        overflow: auto;
    }
}

/* Mobile Responsive for Mega Menu */
@media (max-width: 991.98px) {
    .dropdown-menu-mega {
        width: 100%;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        margin-top: 0;
        padding: 1rem 0;
        border: none;
        background: #f8f9fa;
    }
    
    .dropdown-menu-mega .container {
        padding: 0;
    }
    
    .dropdown-menu-mega .col-md-3 {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .dropdown-menu-mega .col-md-3:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767.98px) {
    .dropdown-menu-mega {
        padding: 0.75rem;
    }
    
    .dropdown-menu-mega .dropdown-header {
        font-size: 0.85rem;
        padding: 0.25rem 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .dropdown-menu-mega .dropdown-item {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
}

/* Search Section */
.search-section {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.search-section .form-control {
    border-radius: 0;
    border-right: none;
}

.search-section .form-select {
    border-radius: 0;
    border-right: none;
}

.search-section .btn {
    border-radius: 0;
}

/* Hero Section */
.hero {
    background: #fff;
}

.action-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-2px);
}

.sell-card {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
}

.find-card {
    background: linear-gradient(135deg, var(--info-color), #2980b9);
}

/* Carousel Styles */
.promo-slide {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-overlay {
    background: linear-gradient(135deg, rgba(231,76,60,0.8), rgba(192,57,43,0.6));
}

/* Categories Grid */
.categories-grid .category-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.categories-grid .category-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    border-radius: 50%;
}

/* Listing Cards */
.listing-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.listing-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.listing-badges {
    z-index: 10;
}

.listing-price {
    color: var(--primary-color);
}

.listing-title {
    color: var(--dark-color);
    line-height: 1.4;
}

.listing-location {
    color: #6c757d;
}

/* Car Cards */
.car-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.car-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.car-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-card:hover .car-actions {
    opacity: 1;
}

.car-content {
    padding: 1rem;
}

.car-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.car-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.car-location {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.spec-item i {
    margin-right: 0.25rem;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-card {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.filter-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.filter-content .form-select,
.filter-content .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.filter-content .form-select:focus,
.filter-content .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.popular-locations .badge {
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-locations .badge:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Statistics Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    color: var(--primary-color);
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .display-6 {
        font-size: 2rem;
    }
    
    .carousel-overlay .display-5 {
        font-size: 2.5rem;
    }
    
    .categories-grid .category-item {
        margin-bottom: 1rem;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero .display-6 {
        font-size: 1.75rem;
    }
    
    .carousel-overlay .display-5 {
        font-size: 2rem;
    }
    
    .car-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .car-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Smart Post Ad Styles
   ============================================ */

.smart-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.smart-hero__panel {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.18));
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(8px);
}

.smart-score-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    margin-bottom: 1.5rem;
}

.smart-score-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--smart-primary);
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
}

.smart-hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: var(--smart-muted);
}

.smart-hero__list li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.smart-hero__list i {
    color: var(--smart-primary);
}

.smart-primary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.smart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.smart-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow: hidden;
    padding: 25px;
}

.smart-card--accent {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.18));
}

.smart-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1.25rem;
}

.smart-card__body {
    padding: 0 1.75rem 1.75rem;
}

.smart-card__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.smart-step {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.12);
    color: var(--smart-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.smart-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.smart-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.smart-subcategory {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
}

.smart-subcategory:hover {
    border-color: var(--smart-primary);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.1);
}

.smart-subcategory.selected {
    border-color: var(--smart-primary);
    background: rgba(220, 53, 69, 0.05);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.15);
}

.smart-subcategory__content h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.smart-subcategory.selected .smart-subcategory__content h5 {
    color: var(--smart-primary);
}

.smart-subcategory__check {
    display: none;
    align-items: center;
    color: var(--smart-primary);
    font-size: 1rem;
}

.smart-subcategory.selected .smart-subcategory__check {
    display: flex;
}

.smart-category {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
}

.smart-category:hover {
    border-color: var(--smart-primary);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.12);
}

.smart-category.selected {
    border-color: var(--smart-primary);
    background: rgba(220, 53, 69, 0.05);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.15);
}

.smart-category__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--smart-primary);
    font-size: 1.4rem;
}

.smart-category.selected .smart-category__icon {
    background: var(--smart-primary);
    color: #ffffff;
}

.smart-category__content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.smart-category__content p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--smart-muted);
}

.smart-category__check {
    display: none;
    align-items: center;
    color: var(--smart-primary);
}

.smart-category.selected .smart-category__check {
    display: none;
}

.smart-ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .smart-ai-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

.smart-ai-block {
    border: 1px dashed rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.04);
}

.smart-ai-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.smart-ai-block__content {
    background: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 90px;
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.12);
    font-size: 0.95rem;
    line-height: 1.5;
}

.smart-ai-primary {
    background: #fef2f2;
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.smart-ai-primary__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2937;
}

.smart-ai-alt {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.smart-ai-alt button {
    border: 1px solid rgba(220, 53, 69, 0.4);
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--smart-primary);
    transition: all 0.2s ease;
}

.smart-ai-alt button:hover {
    background: var(--smart-primary);
    color: #ffffff;
}

.smart-ai-meta {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.smart-ai-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.smart-ai-pill,
.smart-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(220, 53, 69, 0.12);
    color: var(--smart-primary);
}

.smart-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.smart-tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: var(--smart-muted);
    font-size: 0.95rem;
}

.smart-tip-list strong {
    color: #0f172a;
}

.smart-field-applied {
    animation: smartPulse 1.2s ease;
}

@keyframes smartPulse {
    0%,
    100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    }
}

.smart-form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.smart-form-group.span-2 {
    grid-column: span 2;
}

.smart-dropzone {
    padding: 1.5rem;
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    text-align: center;
    background: rgba(248, 249, 250, 0.6);
    transition: all 0.3s ease;
}

.smart-dropzone.dragover {
    border-color: var(--primary-color, #e74c3c);
    background: rgba(231, 76, 60, 0.1);
}

.smart-dropzone input[type="file"] {
    margin-bottom: 0.75rem;
}

.smart-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.smart-image-preview__item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.smart-image-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-image-preview__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.location-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.location-suggestion:hover {
    background-color: #f8f9fa;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-suggestion .main-text {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.location-suggestion .secondary-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.location-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #6c757d;
}

.location-selected {
    background-color: #eef7ff !important;
    border-left: 3px solid #0d6efd;
}

.map-preview {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.map-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.auto-filled {
    animation: autoFillHighlight 1.4s ease;
    border-color: #0d6efd !important;
}

.auto-filled-indicator {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@keyframes autoFillHighlight {
    0% {
        background-color: #ffffff;
    }
    40% {
        background-color: #e9f5ff;
    }
    100% {
        background-color: #ffffff;
    }
}

.smart-loader {
    display: flex;
    align-items: center;
}

/* Smart Post Ad Responsive */
@media (max-width: 992px) {
    .smart-hero__content {
        grid-template-columns: 1fr;
    }

    .smart-form-grid {
        grid-template-columns: 1fr;
    }

    .smart-form-group.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .smart-card__header,
    .smart-card__body {
        padding: 1.25rem;
    }

    .smart-step {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .smart-category-grid {
        grid-template-columns: 1fr;
    }
    
    .smart-subcategory-grid {
        grid-template-columns: 1fr;
    }
}

/* Account Profile */
.profile-card {
    border-radius: 20px;
    overflow: hidden;
}

.profile-card-cover {
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    padding: 2.75rem 1.5rem 3.5rem;
    position: relative;
}

.profile-card-cover::before,
.profile-card-cover::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    z-index: 0;
}

.profile-card-cover::before {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -50px;
}

.profile-card-cover::after {
    width: 110px;
    height: 110px;
    bottom: -55px;
    left: -35px;
}

.profile-card-cover > * {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2.75rem;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.25);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-badge-success {
    background: rgba(31, 200, 123, 0.18);
    color: #0f9d68;
}

.profile-badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #b17b00;
}

.profile-badge-warning:hover {
    background: rgba(255, 193, 7, 0.3);
    color: #8a5f00;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
}

.profile-card-body {
    margin-top: -2.2rem;
    padding-top: 3.4rem !important;
}

.profile-card-body .form-control[type="file"] {
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
}

.profile-stat {
    background: #f7f7fb;
    border-radius: 18px;
    padding: 1.1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 100%;
}

.profile-stat-value {
    font-weight: 600;
    font-size: 1.45rem;
    color: #1f2937;
}

.profile-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.profile-meta {
    border: 1px dashed #e2e6f3;
    border-radius: 14px;
    padding: 0.9rem;
}

.profile-meta strong {
    font-size: 1.05rem;
}

/* Current Plan Section */
.current-plan-section {
    padding-top: 1rem;
}

.current-plan-section h6 {
    color: #212529;
    font-size: 0.95rem;
}

.plan-badge .badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.plan-usage {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.usage-item {
    font-size: 0.875rem;
}

.usage-item .progress {
    border-radius: 4px;
    background-color: #e9ecef;
}

.usage-item .progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

.current-plan-section .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.current-plan-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Toast Notifications */
#toastContainer {
    z-index: 9999;
}

.toast {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
    padding: 10px !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.toast-body {
    font-weight: 500;
    line-height: 1.5;
}

.toast.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.toast.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
}

.toast.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

@media (max-width: 575.98px) {
    #toastContainer {
        top: 0;
        left: 0;
        right: 0;
        padding: 1rem;
    }

    .toast {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/* Listing Toggle Switches */
.listing-card__toggles {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.listing-card__toggles .form-check-label {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
}

.listing-card__toggles .form-check-label i {
    color: #6c757d;
}

.listing-card__toggles .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.listing-card__toggles .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.listing-card__toggles .form-check-input:focus {
    border-color: #28a745;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.listing-card__toggles .form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.listing-card__toggles .form-check-input[data-field="is_featured"]:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.listing-card__toggles .form-check-input[data-field="is_featured"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

@media (max-width: 575.98px) {
    .listing-card__toggles {
        padding: 0.75rem;
    }
    
    .listing-card__toggles .form-check-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 991.98px) {
    .profile-card-body {
        margin-top: -1.5rem;
        padding-top: 3rem !important;
    }

    .profile-card-cover {
        padding-bottom: 3rem;
    }
}

/* Favorites */
.favorites-hero {
    border-radius: 22px;
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    color: #ffffff;
    overflow: hidden;
}

.favorites-hero__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 2.25rem;
}

.favorites-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

.favorites-hero__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.favorites-hero__subtitle {
    max-width: 28rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.favorites-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.favorites-hero__stat {
    min-width: 140px;
}

.favorites-hero__stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 600;
}

.favorites-hero__stat-label {
    font-size: 0.85rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.favorites-empty__icon,
.listings-empty__icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #b0b6d1;
    margin: 0 auto;
}

.favorites-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf0f9;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.favorites-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.favorites-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.favorites-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorites-card:hover .favorites-card__media img {
    transform: scale(1.05);
}

.favorites-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f4f6fb;
    color: #b0b6d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.favorites-card__time {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(17, 24, 39, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.favorites-card__body {
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.favorites-card__title a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.favorites-card__title a:hover {
    color: #dc3545;
}

.favorites-card__meta span + span {
    margin-left: 0.6rem;
}

.favorites-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc3545;
}

.favorites-card__actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
}

.favorites-card__actions .btn {
    flex: 1 1 auto;
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .favorites-hero__content {
        padding: 2rem 1.8rem;
    }

    .favorites-hero__stats {
        gap: 1rem;
    }

    .favorites-card__body {
        padding: 1.4rem 1.5rem;
    }
}

/* Listings */
.listings-hero {
    border-radius: 22px;
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    color: #ffffff;
    overflow: hidden;
}

.listings-hero__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2.25rem;
}

.listings-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.listings-hero__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.listings-hero__subtitle {
    max-width: 28rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.listings-hero__cta .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.35);
}

.account-stat-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #edf0f9;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-stat-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.account-stat-card__value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
}

.listing-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf0f9;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.listing-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.listing-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-card__media img {
    transform: scale(1.05);
}

.listing-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f4f6fb;
    color: #b0b6d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.listing-card__badges {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.05em;
}

.status-badge--live {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.status-badge--paused {
    background: rgba(229, 231, 235, 0.8);
    color: #4b5563;
}

.status-badge--featured {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.listing-card__time {
    position: absolute;
    bottom: 16px;
    left: 18px;
    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.listing-card__body {
    padding: 1.6rem 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listing-card__title a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.listing-card__title a:hover {
    color: #dc3545;
}

.listing-card__price {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.listing-card__price span {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.listing-card__metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.listing-card__metric-value {
    display: block;
    font-size: 1.2rem;
    color: #111827;
    letter-spacing: normal;
    margin-top: 0.15rem;
}

.listing-card__actions {
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
    margin-top: auto;
}

.listing-card__actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-width: 1.5px;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
}

.listing-card__actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.listing-card__actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.listing-card__actions .btn-outline-secondary {
    color: #495057;
    border-color: #dee2e6;
    background: #ffffff;
}

.listing-card__actions .btn-outline-secondary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25);
}

.listing-card__actions .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background: #ffffff;
}

.listing-card__actions .btn-outline-danger:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.listing-card__actions form {
    flex: 1 1 auto;
}

.listing-card__actions form .btn {
    width: 100%;
}

.listing-card__action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.listing-card__action-buttons .btn {
    flex: 1 1 auto;
    min-width: 0;
}

.listing-card__actions .btn i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.listing-card__toggles .form-check-label {
    cursor: pointer;
    user-select: none;
}

.listing-card__toggles .form-check-label:hover {
    color: #212529;
}

/* Contacted Me Page */
.contacted-phone-info {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.contacted-phone-info:hover {
    background: #f8f9fa !important;
    border-color: #28a745;
}

.contacted-phone-info strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contacted-phone-info .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Listing Metrics */
.listing-card__metric-contact {
    transition: all 0.2s ease;
}

.listing-card__metric-contact:hover {
    transform: translateY(-2px);
}

.listing-card__metric-contact:hover .listing-card__metric-value {
    color: #dc3545;
    font-weight: 700;
}

/* Contacts Modal */
#contactsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#contactsModal .modal-header {
    padding: 1.5rem 1.5rem 0;
}

#contactsModal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

#contactsModal .list-group-item {
    transition: background-color 0.2s ease;
}

#contactsModal .list-group-item:hover {
    background-color: #f8f9fa;
}

.contact-avatar img,
.contact-avatar div {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Favorite Button Styles */
.btn-favorite {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-favorite:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.btn-favorite i.fa-heart {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-favorite:hover i.fa-heart.text-muted {
    color: #dc3545 !important;
}

.btn-favorite i.fa-heart.text-danger {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.btn-favorite-listing {
    transition: all 0.3s ease;
}

.btn-favorite-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-favorite-listing i.fa-heart.text-danger {
    animation: heartBeat 0.6s ease-in-out;
}

.btn-favorite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .listings-hero__content {
        padding: 2rem 1.8rem;
    }

    .listing-card__body {
        padding: 1.4rem 1.5rem 1.2rem;
    }

    .listing-card__actions {
        padding: 1.25rem;
    }
    
    .listing-card__toggles {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .favorites-hero__content,
    .listings-hero__content {
        padding: 1.75rem 1.5rem;
    }

    .listing-card__actions {
        padding: 1rem;
    }
    
    .listing-card__action-buttons {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .listing-card__action-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .listing-card__toggles {
        padding: 0.875rem;
    }
}

.contact-cta-card {
    border-radius: 18px;
    border: 1px dashed #d7dcf0;
    padding: 1.75rem 2rem;
    background: #f7f7fb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.contact-cta-card .btn {
    border-radius: 999px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .contact-cta-card {
        padding: 1.5rem;
    }
}

/* Logout Confirmation Modal */
#logoutConfirmModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

#logoutConfirmModal .modal-body {
    padding: 2.5rem 2rem;
}

#logoutConfirmModal .modal-title {
    font-weight: 600;
    color: #1f2937;
}

#logoutConfirmModal .btn {
    min-width: 120px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#logoutConfirmModal .btn-danger {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

#logoutConfirmModal .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

#logoutConfirmModal .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

@media (max-width: 575.98px) {
    #logoutConfirmModal .modal-body {
        padding: 2rem 1.5rem;
    }

    #logoutConfirmModal .d-flex {
        flex-direction: column;
    }

    #logoutConfirmModal .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

.card-background{
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%) !important;
}
/* Modern Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.auth-card__header {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #ffffff;
}

.auth-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.auth-card__icon--verify {
    background: rgba(255, 255, 255, 0.25);
}

.auth-card__icon--reset {
    background: rgba(255, 255, 255, 0.2);
}

.auth-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.auth-card__subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-card__body {
    padding: 2.5rem 2rem;
}

.auth-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Form Styles */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-modern::placeholder {
    color: #a0aec0;
}

.form-control-modern:read-only {
    background-color: #f7fafc;
    cursor: not-allowed;
}

.form-text-modern {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* Account Type Selector */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-type-option {
    position: relative;
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.account-type-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.account-type-option input[type="radio"]:checked + .account-type-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.account-type-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.account-type-content {
    flex: 1;
}

.account-type-content strong {
    display: block;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.account-type-content small {
    display: block;
    font-size: 0.85rem;
    color: #718096;
}

/* Buttons */
.btn-auth-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-auth-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-secondary:hover {
    background: #667eea;
    color: #ffffff;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Form Check Modern */
.form-check-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.form-check-modern input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check-modern label {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.form-check-modern label a {
    color: #667eea;
    text-decoration: none;
}

.form-check-modern label a:hover {
    text-decoration: underline;
}

/* Verify Email Content */
.verify-email-content {
    text-align: center;
}

.verify-email-actions {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .auth-card__header {
        padding: 2rem 1.5rem;
    }

    .auth-card__body {
        padding: 2rem 1.5rem;
    }

    .auth-card__icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .auth-card__title {
        font-size: 1.5rem;
    }

    .account-type-selector {
        grid-template-columns: 1fr;
    }

    .account-type-label {
        flex-direction: column;
        text-align: center;
    }
}

/* Homepage Category Sections */
.car-card,
.apartment-card,
.electronics-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.car-card:hover,
.apartment-card:hover,
.electronics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.car-card.check-out,
.apartment-card.see-all,
.electronics-card.see-all,
.service-card.see-all,
.job-card.see-all {
    transition: all 0.2s ease;
    cursor: pointer;
}

.car-card.check-out:hover,
.apartment-card.see-all:hover,
.electronics-card.see-all:hover,
.service-card.see-all:hover,
.job-card.see-all:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.service-card,
.job-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.service-card:hover,
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon,
.job-icon {
    color: var(--bs-primary);
}

.electronics-card img {
    transition: transform 0.2s ease;
}

.electronics-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .car-card,
    .apartment-card,
    .electronics-card {
        height: 150px !important;
    }

    .service-card,
    .job-card {
        min-height: 160px !important;
    }
}

/* Modern Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination .page-link:hover {
    color: #dc3545;
    background-color: #f8f9fa;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    font-weight: 600;
}

.pagination .page-item.active .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-link i {
    font-size: 0.875rem;
}

/* Ellipsis styling */
.pagination .page-item:not(.active):not(.disabled) .page-link {
    position: relative;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Hide page numbers on very small screens, show only prev/next */
    .pagination .page-item:not(.prev):not(.next):not(.active) .page-link {
        display: none;
    }

    .pagination .page-item.prev,
    .pagination .page-item.next {
        display: block;
    }
}

/* Smooth transitions */
.pagination .page-link {
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.pagination .page-link:hover::before {
    width: 100%;
    height: 100%;
}

.pagination .page-item.active .page-link::before {
    display: none;
}

/* Pricing Plans Styles */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 80vh;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #dc3545;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card--popular {
    border-color: #dc3545;
    border-width: 3px;
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.15);
}

.pricing-card--popular::before {
    opacity: 1;
}

.pricing-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.pricing-card__badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card__icon {
    margin-bottom: 1rem;
}

.pricing-card__title {
    font-size: 1.75rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

.pricing-card__subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    min-height: 2.5rem;
}

.pricing-card__price {
    margin: 1.5rem 0;
}

.pricing-card__price .display-4 {
    color: #28a745;
}

.pricing-card__features {
    margin: 0;
    padding: 0;
}

.pricing-card__feature {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card__feature:last-child {
    border-bottom: none;
}

.pricing-card__feature i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-card__feature span {
    color: #495057;
    line-height: 1.6;
}

.pricing-card__footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.pricing-card__footer .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pricing-card__footer .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.current-plan-card {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

@media (max-width: 991.98px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card__title {
        font-size: 1.5rem;
    }

    .pricing-card__price .display-4 {
        font-size: 2rem;
    }
}

/* Religion & Spirituality Spotlight */
.sacred-experiences {
    background: radial-gradient(circle at top, #1f1640 0%, #0f0b1f 60%, #080510 100%);
    color: #fff;
}

.sacred-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    filter: blur(120px);
    opacity: 0.45;
    z-index: 0;
    border-radius: 50%;
}

.sacred-glow-left {
    left: -80px;
    top: -40px;
    background: #f97316;
}

.sacred-glow-right {
    right: -120px;
    bottom: -60px;
    background: #8b5cf6;
}

.sacred-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.letter-spacing-2 {
    letter-spacing: 0.2rem;
}

.sacred-chips .sacred-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s ease, transform 0.3s ease, border 0.3s ease;
}

.sacred-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-sacred {
    background: linear-gradient(120deg, #facc15, #f97316);
    color: #0f0b1f;
    border: none;
    border-radius: 999px;
    box-shadow: 0 15px 25px rgba(250, 204, 21, 0.35);
}

.btn-sacred:hover {
    color: #0f0b1f;
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(250, 204, 21, 0.45);
}

.sacred-stat {
    min-width: 110px;
}

.sacred-card {
    background: #fff;
    box-shadow: 0 25px 45px rgba(15, 11, 31, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(15, 11, 31, 0.06);
}

.sacred-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 60px rgba(15, 11, 31, 0.2);
}

.sacred-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.sacred-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,5,16,0) 0%, rgba(8,5,16,0.45) 100%);
}

.bg-gradient-sacred {
    background: linear-gradient(120deg, #f97316, #facc15);
    color: #0f0b1f;
}

@media (max-width: 767.98px) {
    .sacred-panel {
        text-align: center;
    }

    .sacred-chips {
        justify-content: center;
    }

    .btn-sacred {
        width: 100%;
        text-align: center;
    }
}

/* AI Search */
.ai-search-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 11, 31, 0.08);
    backdrop-filter: blur(12px);
}

.ai-chat-stream {
    background: #0f0b1f;
    border-radius: 20px;
    padding: 1.5rem;
    min-height: 220px;
    color: #fff;
}

.ai-chat-bubble {
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.ai-chat-bubble.user {
    background: rgba(249, 115, 22, 0.15);
}

.ai-search-card {
    border: 1px solid rgba(15, 11, 31, 0.08);
}

.ai-step {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc3545, #ff7f50);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-search-textarea {
    padding-right: 60px;
    border-radius: 16px;
}

.ai-voice-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.ai-voice-btn .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.ai-filter-toggle {
    width: 100%;
}

.ai-filter-toggle input {
    display: none;
}

.ai-filter-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 11, 31, 0.08);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.ai-filter-body i {
    color: #dc3545;
}

.ai-filter-toggle input:checked + .ai-filter-body {
    border-color: #dc3545;
    box-shadow: 0 12px 20px rgba(220, 53, 69, 0.12);
}

.ai-category-pill {
    border: 1px solid rgba(15, 11, 31, 0.08);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.ai-category-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 11, 31, 0.08);
}

.ai-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff2eb, #ffe6f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.2rem;
}

.ai-prompt-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-prompt {
    border: 1px dashed rgba(15, 11, 31, 0.15);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
    text-align: left;
    color: #111;
    transition: border 0.2s ease, transform 0.2s ease;
}

.ai-prompt:hover {
    border-color: #dc3545;
    transform: translateX(4px);
}

.ai-journey-list li {
    padding: 0.85rem 0;
    border-bottom: 1px dashed rgba(15, 11, 31, 0.08);
}

.ai-journey-list li:last-child {
    border-bottom: none;
}

.ai-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #111, #2c2c54);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.divider-v {
    width: 1px;
    height: 40px;
    background: rgba(15, 11, 31, 0.2);
}

.ai-or-separator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #a1a1b0;
    position: relative;
    text-transform: uppercase;
}

.ai-or-separator span::before,
.ai-or-separator span::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 11, 31, 0.15);
    display: inline-block;
}

.ai-or-separator span::before {
    margin-right: 0.75rem;
}

.ai-or-separator span::after {
    margin-left: 0.75rem;
}

.ai-search-feedback {
    border: 1px dashed rgba(15, 11, 31, 0.25);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: #fff5f5;
    color: #3c2a4d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-search-feedback.d-none {
    display: none !important;
}

@media (max-width: 767.98px) {
    .ai-category-pill {
        flex-direction: column;
        text-align: center;
    }

    .ai-filter-body {
        justify-content: center;
    }

    .divider-v {
        display: none;
    }
}
