/* Import Inter Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color variables & Design tokens */
:root {
    --bg-dark: #0F172A; /* Dark slate blue */
    --bg-dark-accent: #1E293B; /* Slightly lighter slate */
    --accent-orange: #F97316; /* Vibrant Orange */
    --accent-orange-hover: #EA580C; /* Deeper orange */
    --bg-light: #F8FAFC; /* Slate background light */
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    
    --color-success: #22C55E; /* Emerald green */
    --color-danger: #EF4444; /* Rose red */
    --color-warning: #F59E0B; /* Amber yellow */
    --color-info: #3B82F6; /* Sky blue */
    
    --border-color: #E2E8F0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --box-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--bg-dark);
}

/* Dark mode section headers */
.text-light-headers h1, .text-light-headers h2, .text-light-headers h3 {
    color: var(--text-light) !important;
}

/* Layout modifications */
.container-wide {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Custom premium navigation */
.navbar-custom {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.navbar-brand-custom {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-custom span {
    color: var(--accent-orange);
}

.nav-link-custom {
    color: #CBD5E1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--accent-orange) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dynamic role switcher badge */
.role-switcher-container {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-switcher-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.role-switcher-select {
    background-color: var(--bg-dark-accent);
    color: var(--text-light);
    border: 1px solid var(--accent-orange);
    border-radius: 50px;
    padding: 0.15rem 1.5rem 0.15rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F97316'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.8rem;
}

/* Notifications center */
.notification-bell-btn {
    color: #CBD5E1;
    font-size: 1.25rem;
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.notification-bell-btn:hover {
    color: var(--accent-orange);
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-hover);
    z-index: 1050;
    display: none;
    margin-top: 0.5rem;
    overflow: hidden;
    transform-origin: top right;
    animation: notifSlideDown 0.2s ease forwards;
}

@keyframes notifSlideDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.notifications-dropdown-header {
    background-color: var(--bg-dark);
    color: white;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    word-break: break-word;
    overflow-wrap: break-word;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: normal;
    word-break: break-word;
}

.notification-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
    white-space: normal;
    word-break: break-word;
}

.notification-time {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.notification-item:hover {
    background-color: var(--bg-light);
}

.notification-item.unread {
    background-color: rgba(249, 115, 22, 0.04);
}

.notification-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-wrapper.bid { background-color: rgba(34, 197, 94, 0.1); color: var(--color-success); }
.notification-icon-wrapper.auction { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.notification-icon-wrapper.system { background-color: rgba(59, 130, 246, 0.1); color: var(--color-info); }
.notification-icon-wrapper.payment { background-color: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

.notification-content {
    font-size: 0.85rem;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--bg-dark);
}

.notification-desc {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Common premium components */
.btn-primary-orange {
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    border: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transition: var(--transition);
}

.btn-primary-orange:hover {
    background-color: var(--accent-orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary-dark {
    background-color: var(--bg-dark);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.btn-secondary-dark:hover {
    background-color: var(--bg-dark-accent);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-orange {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn-outline-orange:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* Glassmorphism effects */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Vehicle card components */
.vehicle-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(249, 115, 22, 0.3);
}

.vehicle-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.vehicle-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-card-img {
    transform: scale(1.08);
}

/* Custom badges */
.badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-premium {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #6f42c1;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(255,255,255,0.25);
}

.badge-relisted {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #0dcaf0;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(255,255,255,0.25);
}

.badge-live-timer {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.timer-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

.timer-dot.warning { background-color: var(--color-warning); }
.timer-dot.danger { background-color: var(--color-danger); }

.vehicle-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bg-dark);
}

.vehicle-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.vehicle-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-orange);
}

/* Home hero search style with background image slider */
.hero-section {
    position: relative;
    padding: 7.5rem 0;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider-bg .carousel,
.hero-slider-bg .carousel-inner,
.hero-slider-bg .carousel-item {
    height: 100%;
    width: 100%;
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 35%, rgba(15, 23, 42, 0.8) 65%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
}

/* Ambient glow in hero */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-search-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.hero-search-box:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

/* Custom steps */
.step-card {
    padding: 2.5rem;
    background-color: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(249, 115, 22, 0.25);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(249, 115, 22, 0.08);
    color: var(--accent-orange);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-weight: 700;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.05);
    font-family: 'Outfit', sans-serif;
}

/* Category grid browser */
.category-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    border-color: var(--accent-orange);
    background-color: rgba(249, 115, 22, 0.02);
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.category-label {
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

/* Bid panel styling */
.bid-panel {
    background-color: var(--bg-dark);
    color: white;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bid-input-group {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bid-input-field {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem;
    width: 60%;
    outline: none;
}

.bid-increment-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    margin-left: 0.25rem;
    transition: var(--transition);
}

.bid-increment-btn:hover {
    background-color: var(--accent-orange);
}

/* Tab Panel specs detail */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border-color);
    gap: 1rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-tabs-custom .nav-link:hover {
    color: var(--accent-orange);
}

.nav-tabs-custom .nav-link.active {
    color: var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    background: none;
}

/* Chat Room Layout styles */
.chat-container {
    height: 650px;
    background-color: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-active-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-thread-list {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-thread-item {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.chat-thread-item:hover, .chat-thread-item.active {
    background-color: rgba(249, 115, 22, 0.03);
}

.chat-thread-item.active {
    border-left: 4px solid var(--accent-orange);
}

.chat-messages-scroll {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #F8FAFC;
}

.chat-bubble {
    max-width: 70%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-bubble.sent {
    margin-left: auto;
    align-items: flex-end;
}

.chat-bubble-content {
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-bubble.sent .chat-bubble-content {
    background-color: var(--bg-dark);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received .chat-bubble-content {
    background-color: white;
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

/* Invoices Printable container styling */
.invoice-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    color: #334155;
}

.invoice-header-line {
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

/* Animation keyframes */
@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Media Queries for custom tablet/mobile responsive viewports */
@media(max-width: 991px) {
    .chat-container {
        height: 550px;
    }
    .chat-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
    }
    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .hero-section {
        padding: 3.5rem 0;
        text-align: center;
    }
    .hero-search-box {
        margin-top: 2rem;
    }
    .cta-banner-section {
        padding: 3.5rem 0;
        text-align: center;
    }
    .step-connector {
        display: none;
    }
    .step-card-premium {
        text-align: center;
    }
}

/* =============================================
   SECTION EYEBROWS (labels above headings)
   ============================================= */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    padding: 0.3rem 1rem;
}

.section-eyebrow-light {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.3rem 1rem;
}

/* =============================================
   PREMIUM CATEGORY CARDS
   ============================================= */
.category-section {
    background-color: #fff;
}

.category-card-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card-premium::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.category-card-premium:hover::before {
    transform: scaleX(1);
}

.category-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.cat-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    color: var(--cat-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border: 2px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
    transition: var(--transition);
}

.category-card-premium:hover .cat-icon-ring {
    transform: scale(1.1) rotate(-5deg);
}

.cat-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-dark);
    margin-bottom: 0.25rem;
}

.cat-count {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
}

.category-card-premium:hover .cat-count {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HOW IT WORKS — PREMIUM STEPS
   ============================================= */
.how-it-works-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
}

.step-card-premium {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.step-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(249, 115, 22, 0.25);
}

.step-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.step-icon-premium {
    width: 68px;
    height: 68px;
    border-radius: var(--border-radius-md);
    background: rgba(249, 115, 22, 0.08);
    color: var(--accent-orange);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-card-premium:hover .step-icon-premium {
    transform: scale(1.08);
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), rgba(249,115,22,0.1));
    z-index: 1;
}

.col-md-4:last-child .step-connector {
    display: none;
}

.step-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-feature-list li {
    margin-bottom: 0.35rem;
}

/* =============================================
   TRUST BADGES BAR
   ============================================= */
.trust-bar {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    color: rgba(255,255,255,0.85);
}

.trust-badge-item .fw-bold {
    color: white;
}

/* =============================================
   TESTIMONIALS — PREMIUM CARDS
   ============================================= */
.testimonials-section {
    background: white;
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.testimonial-featured {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.08);
    background: linear-gradient(135deg, #fff 80%, rgba(249,115,22,0.03) 100%);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex-grow: 1;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.25rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-orange);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-dark);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.testimonial-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(249,115,22,0.2);
}

/* =============================================
   CTA BANNER SECTION
   ============================================= */
.cta-banner-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--bg-dark);
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&q=80');
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
}

.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.97) 40%, rgba(15,23,42,0.88) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* max-w utility */
.max-w-xl {
    max-width: 600px;
}

/* animate-pulse utility */
.animate-pulse {
    animation: pulse-dot 1.5s infinite;
}

/* =============================================
   SPINNY-STYLE SPLIT HERO
   ============================================= */
.spinny-hero {
    display: flex;
    min-height: 580px;
    background: var(--bg-dark);
}

.spinny-hero-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 4rem 3rem 4rem 5%;
    background: var(--bg-dark);
}

.spinny-hero-inner {
    width: 100%;
    max-width: 560px;
}

.spinny-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.spinny-hero-sub {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

/* Search card in hero */
.spinny-search-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.spinny-search-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.spinny-search-field {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    min-width: 130px;
}

.spinny-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.spinny-field-input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-dark);
    background: transparent;
    padding: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.spinny-search-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    flex-shrink: 0;
}

.spinny-search-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin: 0.25rem;
}

.spinny-search-btn:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.05);
}

/* Popular chips */
.spinny-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spinny-chip-label {
    color: #64748B;
    font-size: 0.82rem;
    font-weight: 500;
}

.spinny-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.spinny-chip:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Right side car image - NO overlay darkening */
.spinny-hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.spinny-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.carousel-item.active .spinny-car-img {
    transform: scale(1.03);
}

/* Caption overlay on the right image - subtle bottom gradient only */
.spinny-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, transparent 100%);
    color: white;
}

.spinny-caption-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.spinny-caption-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* Carousel dots */
.spinny-carousel-dots {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.spinny-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.spinny-dot.active,
.spinny-dot:hover {
    background: var(--accent-orange);
    width: 20px;
    border-radius: 4px;
}

/* =============================================
   STATS BAR
   ============================================= */
.spinny-stats-bar {
    background: var(--bg-dark-accent);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.spinny-stat-item {
    padding: 1.25rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.spinny-stat-item:last-child {
    border-right: none;
}

.spinny-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.spinny-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.1rem;
}

.header-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =============================================
   BUDGET CARDS
   ============================================= */
.budget-card {
    display: block;
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.budget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    border-color: var(--accent-orange);
}

.budget-range {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-dark);
    padding: 0.85rem 1rem 0.5rem;
}

.budget-img-wrap {
    height: 130px;
    overflow: hidden;
}

.budget-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.budget-card:hover .budget-img {
    transform: scale(1.08);
}

.budget-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-orange);
    padding: 0.5rem 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =============================================
   SPINNY-STYLE VEHICLE CARDS
   ============================================= */
.spinny-vehicle-card {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spinny-vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(249,115,22,0.3);
}

.spinny-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.spinny-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spinny-vehicle-card:hover .spinny-card-img {
    transform: scale(1.06);
}

/* Very subtle gradient at bottom of image only */
.spinny-card-img-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.spinny-live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 5;
    letter-spacing: 0.04em;
}

.spinny-featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.spinny-premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #6f42c1;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.spinny-relisted-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #0dcaf0;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.spinny-timer-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.75rem;
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Live dot animation */
.live-dot-anim {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    animation: pulse-dot 1.4s infinite;
    vertical-align: middle;
}

.spinny-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.spinny-card-year-make {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.spinny-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Outfit', sans-serif;
}

.spinny-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 0.75rem;
}

.spinny-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.spinny-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spinny-price-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-orange);
    font-family: 'Outfit', sans-serif;
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 991px) {
    .spinny-hero {
        flex-direction: column;
        min-height: auto;
    }
    .spinny-hero-left {
        flex: none;
        padding: 2.5rem 1.25rem;
    }
    .spinny-hero-right {
        min-height: 260px;
    }
    .spinny-hero-title {
        font-size: 1.75rem;
    }
    .spinny-search-row {
        flex-wrap: wrap;
    }
    .spinny-search-field {
        min-width: 0;
        flex: 1 1 120px;
    }
    .spinny-search-divider {
        display: none;
    }
    .spinny-search-btn {
        flex: 0 0 100%;
        width: 100%;
        height: 42px;
        border-radius: var(--border-radius-sm);
        margin: 0.25rem 0.25rem 0.25rem;
    }
}

@media (max-width: 576px) {
    .budget-img-wrap { height: 100px; }
    .spinny-card-img-wrap { height: 170px; }
    .spinny-stat-value { font-size: 1.35rem; }
}

/* =============================================
   NEW SPINNY STYLE NAV & MORE DROPDOWN STYLES
   ============================================= */
.btn-city-selector {
    background-color: var(--bg-dark-accent);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-city-selector:hover, .btn-city-selector:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange);
    color: #fff !important;
}

.header-search-form .input-group {
    transition: var(--transition);
}

.header-search-form .input-group:focus-within {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* More Dropdown Premium Menu styling (Second Image style) */
.dropdown-menu-more-premium {
    min-width: 280px;
    background-color: var(--bg-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem 0;
}

.dropdown-menu-more-premium .dropdown-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-menu-more-premium .dropdown-item:hover {
    background-color: rgba(249, 115, 22, 0.1) !important;
    color: var(--accent-orange) !important;
}

.dropdown-menu-more-premium .dropdown-item i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}

/* Submenu layout (How it Works) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
    min-width: 220px;
    background-color: var(--bg-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
}

.dropdown-submenu:hover > .dropdown-item {
    background-color: rgba(249, 115, 22, 0.1) !important;
    color: var(--accent-orange) !important;
}

.dropdown-subtext {
    font-size: 0.7rem;
    color: #94A3B8 !important;
    font-weight: 400;
}


/* =============================================
   SECONDARY SUBNAV BAR (Spinny-style)
   ============================================= */
.subnav-bar {
    background-color: var(--bg-dark-accent);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    position: sticky;
    top: 73px; /* height of the main navbar */
}

.subnav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 44px;
    overflow: visible;
}

.subnav-explore {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-right: 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.1);
    margin-right: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.subnav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0 1rem;
    height: 100%;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.subnav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--accent-orange);
}

.subnav-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.subnav-item:hover .subnav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown menu */
.subnav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    min-width: 220px;
    z-index: 2000;
    border: 1px solid rgba(0,0,0,0.08);
    border-top: none;
    padding: 0.5rem 0;
    animation: subnav-fadein 0.15s ease;
}

@keyframes subnav-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.subnav-item:hover .subnav-drop-menu {
    display: flex;
    flex-direction: column;
}

/* Wide dropdown for "More" — 3-column grid */
.subnav-drop-menu--wide {
    min-width: 620px;
    display: none;
    flex-direction: row !important;
    padding: 1rem;
    gap: 0;
}

.subnav-item:hover .subnav-drop-menu--wide {
    display: flex !important;
}

.subnav-drop-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f1f5f9;
    padding: 0 0.5rem;
}

.subnav-drop-col:last-child {
    border-right: none;
}

.subnav-drop-item {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 500;
}

.subnav-drop-item i {
    color: var(--accent-orange);
}

.subnav-drop-item:hover {
    background: rgba(249,115,22,0.06);
    color: var(--accent-orange);
}

.subnav-drop-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.1rem;
}

/* EC quick link styling */
.subnav-ec-link {
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.25);
    color: var(--accent-orange) !important;
    border-radius: 50px;
    padding: 0.2rem 0.9rem !important;
    height: auto !important;
    margin-left: 0.5rem;
    font-weight: 600;
}

.subnav-ec-link:hover {
    background: var(--accent-orange) !important;
    color: #fff !important;
    border-color: var(--accent-orange) !important;
}

/* =============================================
   FULL-WIDTH SPINNY BANNER HERO
   ============================================= */
.spinny-fullbanner {
    position: relative;
    width: 100%;
    height: calc(100vh - 117px);
    min-height: 450px;
    overflow: hidden;
}

.spinny-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1s ease;
}

.carousel-item.active .spinny-banner-img {
    transform: scale(1.04);
}

/* Semi-transparent left-side gradient overlay (removed as requested) */
.spinny-banner-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Promo text block */
.spinny-banner-content {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 520px;
}

.spinny-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.spinny-banner-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.spinny-banner-cta {
    background: #e63363;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(230,51,99,0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.spinny-banner-cta:hover {
    background: #c02050;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230,51,99,0.5);
}

/* Carousel nav arrows */
.spinny-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.spinny-banner-arrow--right {
    left: auto;
    right: 1rem;
}

.spinny-banner-arrow:hover {
    background: rgba(255,255,255,0.28);
    opacity: 1;
}

/* Banner dot indicators */
.spinny-banner-dots {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.spinny-bdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.spinny-bdot.active,
.spinny-bdot:hover {
    background: var(--accent-orange);
    width: 22px;
    border-radius: 4px;
}

/* =============================================
   SEARCH STRIP BELOW BANNER
   ============================================= */
.spinny-search-strip {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
}

.spinny-strip-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.spinny-strip-field {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1.25rem;
    min-width: 160px;
}

.spinny-strip-field--grow {
    flex: 1;
}

.spinny-strip-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
}

.spinny-strip-input {
    border: none;
    outline: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--bg-dark);
    background: transparent;
    padding: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.spinny-strip-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

.spinny-strip-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0 1.75rem;
    height: 100%;
    min-height: 56px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    border-radius: 0;
}

.spinny-strip-btn:hover {
    background: var(--accent-orange-hover);
}

/* Chips in the search strip — use dark theme on light bg */
.spinny-search-strip .spinny-chip {
    background: rgba(15,23,42,0.06);
    border-color: rgba(15,23,42,0.12);
    color: var(--text-secondary);
}

.spinny-search-strip .spinny-chip:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.spinny-search-strip .spinny-chip-label {
    color: var(--text-secondary);
}

/* =============================================
   RESPONSIVE — COMPREHENSIVE MOBILE & DESKTOP
   ============================================= */

/* ---------- Large tablets / small desktops (≤ 1199px) ---------- */
@media (max-width: 1199px) {
    .container-wide { width: 95%; }

    /* Banner */
    .spinny-banner-title { font-size: 2.5rem; }
    .spinny-banner-content { max-width: 55%; }

    /* Notification dropdown narrower */
    .notifications-dropdown { width: 320px; }
}

/* ---------- Tablets / collapsed nav (≤ 991px) ---------- */
@media (max-width: 991px) {
    /* Subnav */
    .subnav-bar { display: none; }

    /* Banner hero */
    .spinny-fullbanner {
        height: 65vw;
        min-height: 320px;
        max-height: 600px;
    }
    .spinny-banner-title { font-size: 2rem; }
    .spinny-banner-sub  { font-size: 0.95rem; }
    .spinny-banner-content { left: 5%; max-width: 78%; top: 50%; }
    .spinny-banner-cta { font-size: 0.9rem; padding: 0.6rem 1.5rem; }

    /* Search strip */
    .spinny-strip-form  { flex-wrap: wrap; border-radius: var(--border-radius-sm); }
    .spinny-strip-field { min-width: 0; flex: 1 1 140px; }
    .spinny-strip-divider { display: none; }
    .spinny-strip-btn   { flex: 0 0 100%; min-height: 44px; justify-content: center; border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm); }

    /* Stats bar — 2 columns on tablet */
    .spinny-stats-bar .row { --bs-gutter-x: 0; }
    .spinny-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .spinny-stat-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.06); }
    .spinny-stat-value { font-size: 1.5rem; }

    /* Budget cards — 2 columns */
    .budget-img-wrap { height: 115px; }

    /* Category cards — 3 per row */
    .category-card-premium { padding: 1.25rem 0.75rem; }
    .cat-icon-ring { width: 54px; height: 54px; font-size: 1.3rem; }

    /* How it works — stack */
    .step-card-premium { padding: 2rem; }
    .step-connector { display: none; }

    /* CTA Banner */
    .cta-banner-section { padding: 4rem 0; text-align: center; }

    /* Chat */
    .chat-container { height: 550px; }
    .chat-sidebar { width: 240px; }

    /* Notification dropdown */
    .notifications-dropdown { width: 300px; right: 0; }
}

/* ---------- Mobile landscape / large phones (≤ 768px) ---------- */
@media (max-width: 768px) {
    /* Navbar mobile collapse */
    .navbar-collapse {
        background: var(--bg-dark-accent);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }
    .navbar-nav { gap: 0.25rem !important; }
    .nav-link-custom { padding: 0.6rem 0.75rem !important; }

    /* Banner hero */
    .spinny-fullbanner { height: 70vw; min-height: 260px; }
    .spinny-banner-content { left: 4%; max-width: 86%; }
    .spinny-banner-title { font-size: 1.65rem; }
    .spinny-banner-sub  { font-size: 0.9rem; margin-bottom: 1rem; }

    /* Stats bar stack to 2 col */
    .spinny-stat-value { font-size: 1.35rem; }

    /* Vehicle cards — 1 column on xs, already 2-col via Bootstrap on sm */
    .spinny-card-img-wrap { height: 185px; }

    /* Budget section */
    .budget-img-wrap { height: 100px; }

    /* Testimonials — stack */
    .testimonial-card { padding: 1.5rem; }

    /* Chat layout — stack */
    .chat-container { flex-direction: column; height: auto; }
    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* Hero (old hero-section) */
    .hero-section { padding: 3.5rem 0; text-align: center; }
    .hero-search-box { margin-top: 2rem; }

    /* CTA Banner */
    .cta-banner-section { padding: 3.5rem 0; text-align: center; }
    .step-card-premium  { text-align: center; }

    /* Notification dropdown — fixed to viewport on mobile to prevent off-screen overflow */
    .notifications-dropdown {
        position: fixed !important;
        top: 64px;
        right: 10px;
        left: auto;
        width: 90vw;
        max-width: 350px;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 9999;
        margin-top: 0;
    }
    .notifications-dropdown-list { max-height: calc(70vh - 110px); }

    /* Footer columns */
    .main-footer .col-lg-4 { text-align: center; }
    .main-footer .col-lg-4 .d-flex { justify-content: center; }
}

/* ---------- Small phones (≤ 576px) ---------- */
@media (max-width: 576px) {
    /* Base spacing */
    .container-wide { width: 96%; }

    /* Navbar brand */
    .navbar-brand-custom { font-size: 1.3rem; }

    /* Banner hero */
    .spinny-fullbanner { height: auto; min-height: 240px; }
    .spinny-banner-content {
        left: 0;
        right: 0;
        padding: 0 1.25rem;
        max-width: 100%;
        text-align: center;
        transform: translateY(-50%);
    }
    .spinny-banner-title { font-size: 1.4rem; line-height: 1.25; }
    .spinny-banner-sub  { font-size: 0.82rem; margin-bottom: 0.85rem; }
    .spinny-banner-cta  { font-size: 0.82rem; padding: 0.55rem 1.25rem; }
    .spinny-banner-dots { bottom: 0.6rem; right: 50%; transform: translateX(50%); }

    /* Search strip stack */
    .spinny-search-strip { padding: 0.85rem 0 0.7rem; }
    .spinny-strip-field { flex: 0 0 100%; padding: 0.5rem 1rem; }

    /* Stats — 2 per row already via Bootstrap; shrink values */
    .spinny-stat-value { font-size: 1.2rem; }
    .spinny-stat-label { font-size: 0.68rem; }

    /* Budget cards — 2 col via Bootstrap; reduce image */
    .budget-img-wrap { height: 85px; }
    .budget-range    { font-size: 0.85rem; padding: 0.65rem 0.75rem 0.35rem; }

    /* Category cards — 3 per row small */
    .cat-icon-ring { width: 46px; height: 46px; font-size: 1.1rem; }
    .cat-label     { font-size: 0.82rem; }

    /* Vehicle cards */
    .spinny-card-img-wrap { height: 165px; }
    .spinny-card-title    { font-size: 0.92rem; }
    .spinny-price-val     { font-size: 1.05rem; }

    /* Steps */
    .step-card-premium  { padding: 1.5rem 1.25rem; }
    .step-icon-premium  { width: 56px; height: 56px; font-size: 1.5rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem; }
    .testimonial-avatar { width: 40px; height: 40px; }

    /* CTA Banner */
    .cta-banner-section { padding: 3rem 0; }

    /* Section headings */
    .section-eyebrow { font-size: 0.7rem; }

    /* How it works section */
    .how-it-works-section { padding: 3rem 0; }

    /* Trust bar items */
    .trust-badge-item { padding: 0.75rem 0.25rem; }

    /* Notifications — already fixed on ≤768px; tighten for very small phones */
    .notifications-dropdown {
        right: 6px;
        width: calc(100vw - 12px);
        max-width: 340px;
    }

    /* Footer */
    .main-footer { text-align: center; }
    .main-footer .col-md-3 { text-align: left; }
}

/* ---------- Very small phones (≤ 400px) ---------- */
@media (max-width: 400px) {
    .spinny-banner-title { font-size: 1.2rem; }
    .spinny-banner-sub   { font-size: 0.78rem; }
    .spinny-stat-value   { font-size: 1.05rem; }
    .cat-icon-ring       { width: 40px; height: 40px; font-size: 1rem; }
    .spinny-card-img-wrap { height: 150px; }
}

/* =============================================
   PREMIUM FOOTER — HIGH CONTRAST VISIBILITY
   ============================================= */
.main-footer {
    color: #94A3B8 !important;
}
.main-footer p,
.main-footer .text-muted,
.main-footer .small {
    color: #94A3B8 !important;
}
.main-footer a {
    color: #CBD5E1 !important;
    transition: var(--transition);
}
.main-footer a:hover,
.main-footer a.hover-orange:hover {
    color: var(--accent-orange) !important;
    text-decoration: none;
}

/* ── Modal Dark Background ─────────────────────────────────────── */
.bg-dark-secondary {
    background-color: #1a2035 !important;
}

/* Letter-spacing utility */
.ls-1 { letter-spacing: 0.06em; }

/* Ensure form labels in dark modals are always clearly visible */
.modal-content.bg-dark .form-label,
.modal-content .bg-dark-secondary .form-label,
.modal-body.bg-dark-secondary .form-label,
.modal .form-label.text-white {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Fix Bootstrap text-white-50 visibility on dark modal backgrounds */
.modal-content .text-white-50.form-label {
    color: #e2e8f0 !important;
    opacity: 1 !important;
}

/* Select/dropdown arrow color override for dark bg forms */
.modal-content .form-select.bg-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Date/file input text visibility on dark backgrounds */
.modal-content input[type='date'].bg-dark,
.modal-content input[type='datetime-local'].bg-dark,
.modal-content input[type='file'].bg-dark {
    color-scheme: dark;
    color: #ffffff;
}

/* Custom utilities for orange text and translucent white background */
.text-orange {
    color: var(--accent-orange) !important;
}

.bg-white.bg-opacity-5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================
   MOTOOBID PREMIUM BLOG STYLES
   ========================================== */
.blog-hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), url('/images/blog_hero_banner.png') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    overflow: hidden;
    padding: 6rem 0;
}

.blog-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

/* Category Filter & Search Bar */
.blog-controls-wrapper {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.blog-category-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
}

.blog-category-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.blog-category-pill {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.blog-category-pill:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.blog-category-pill.active {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.blog-search-input-group {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.blog-search-input-group .fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.blog-search-input-group input {
    padding-left: 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    transition: var(--transition);
}

.blog-search-input-group input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

/* Featured Article Section */
.blog-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.blog-featured-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.blog-featured-img-wrapper {
    position: relative;
    min-height: 350px;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-featured-card:hover .blog-featured-img-wrapper img {
    transform: scale(1.03);
}

.blog-featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    z-index: 10;
}

/* Blog Article Cards */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.blog-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
}

.blog-card-img-wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.blog-card:hover .blog-card-badge {
    background: var(--accent-orange);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--accent-orange);
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

/* Blog Reader View */
.blog-reader-container {
    max-width: 820px;
    margin: 0 auto;
}

.blog-reader-hero {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--box-shadow);
}

.blog-reader-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155; /* Slate 700 for high readability */
}

.blog-content-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    position: relative;
}

.blog-content-body h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.blog-content-body h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.blog-content-body p {
    margin-bottom: 1.5rem;
}

.blog-content-body blockquote {
    border-left: 4px solid var(--accent-orange);
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content-body ul, .blog-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content-body li {
    margin-bottom: 0.5rem;
}

/* Animations */
.blog-fade-in {
    animation: blogFadeIn 0.4s ease forwards;
}

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .blog-controls-wrapper {
        top: 64px;
    }
    .blog-featured-img-wrapper {
        min-height: 260px;
    }
    .blog-reader-hero {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0;
    }
    .blog-featured-card .row {
        flex-direction: column;
    }
    .blog-featured-img-wrapper {
        min-height: 220px;
    }
    .blog-reader-hero {
        height: 240px;
    }
}

/* Multi-step Wizard Custom Styles */
.wizard-tab {
    cursor: default;
    transition: var(--transition);
}

.wizard-tab.disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.wizard-tab.step-completed {
    border-bottom: 2px solid var(--color-success) !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.wizard-tab.active {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.wizard-tab:not(.disabled) {
    cursor: pointer !important;
    opacity: 1 !important;
}

.wizard-tab:not(.disabled):hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.wizard-tab.active:not(.disabled):hover {
    background-color: var(--accent-orange) !important;
    opacity: 0.95 !important;
}

/* Custom error message styling */
.invalid-feedback-custom {
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.35rem;
    display: block;
}

/* ==========================================================================
   Modern Search & Filter Layout Styles
   ========================================================================== */
.search-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 6px 4px 16px;
    flex-grow: 1;
    min-width: 280px;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: #ffffff;
}

.search-icon-left {
    color: #94a3b8;
    margin-right: 12px;
    font-size: 1rem;
}

.search-input-field {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: #0f172a;
    font-size: 0.9rem;
    padding: 8px 0;
}

.search-input-field::placeholder {
    color: #94a3b8;
}

.search-btn-inside {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.search-btn-inside:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.modern-select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-weight: 500;
    padding: 10px 36px 10px 16px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s ease;
    min-width: 140px;
}

.modern-select:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.modern-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.modern-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-weight: 500;
    padding: 10px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-filter-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #0f172a;
}

.modern-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    width: 100%;
}

.modern-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.modern-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
    outline: none;
}

.modern-tab-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.modern-tab-pill.active {
    background: #7c3aed; /* Violet from screenshot */
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.modern-tab-pill.active .modern-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modern-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 2px;
}

.modern-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modern-clear-btn:hover {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

/* ── Search & Filter Card — Mobile Responsive ── */
@media (max-width: 768px) {
    .search-filter-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .search-input-wrapper {
        min-width: 0;
        width: 100%;
    }

    .modern-select {
        min-width: 0;
        width: 100%;
    }

    .modern-clear-btn {
        width: 100%;
        justify-content: center;
    }

    .modern-tabs-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Let pills wrap — avoids parent overflow clipping */
    .modern-tabs-container {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Undo nowrap for tab pills on mobile */
    .modern-tab-pill {
        white-space: normal;
        flex-shrink: 1;
    }
}

@media (max-width: 576px) {
    .search-filter-card {
        border-radius: 12px;
    }

    /* Icon-only search button — gives input full width */
    .search-btn-inside {
        padding: 8px 10px;
        font-size: 0;
        gap: 0;
        min-width: 38px;
        justify-content: center;
        flex-shrink: 0;
    }

    .search-btn-inside i {
        font-size: 0.95rem;
    }

    .modern-tab-pill {
        padding: 5px 10px;
        font-size: 0.775rem;
        white-space: nowrap;
    }

    .modern-tab-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}