@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   DASHBOARD SIDEBAR & LAYOUT IMPROVEMENTS
   ======================================== */

/* Layout Core */
body.page-template-page-dashboard {
    background: #f8fafc;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

body.admin-bar .dashboard-wrapper {
    min-height: calc(100vh - 32px);
}

/* Dashboard Header */
.dashboard-header {
    padding-left: 260px;
    /* Default Sidebar Width */
    transition: all 0.3s ease;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 998;
    height: 70px;
    display: flex;
    align-items: center;
}

body.admin-bar .dashboard-header {
    top: 0px;
}

.dashboard-header .container-fluid {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    width: 100%;
}

.dashboard-header .site-nav {
    margin-right: auto;
    margin-left: 2rem;
}

.dashboard-content {
    flex-grow: 1;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 100px);
    /* Standard views will scroll with the main body */
    transition: margin-left var(--transition-base);
    padding: 70px 0 30px;
    /* Added 70px top padding for fixed header */
    max-width: 100%;
}

body.admin-bar .dashboard-content {
    min-height: calc(100vh - 132px);
}

/* Global Themed Scrollbars for Dashboard Content moved to style.css */

/* Sidebar Scrollbar */
.dashboard-sidebar .sidebar-nav {
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.dashboard-sidebar .sidebar-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

/* Sidebar Toggle / Collapse */
.dashboard-sidebar {
    transition: width var(--transition-base), transform var(--transition-base);
    width: 260px;
    /* Restored width */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: hidden;
    /* Handle inner scroll in .sidebar-nav */
}

body.admin-bar .dashboard-sidebar {
    top: 32px;
}

.dashboard-sidebar.collapsed {
    width: 80px;
}

/* Dynamic Content Margin */
.dashboard-content {
    margin-left: 260px;
    /* Match sidebar width */
    width: auto;
    /* Allow full width minus margin */
    max-width: none;
    /* Reset max-width if set */
    transition: margin-left var(--transition-base);
    /* Smooth transition matching sidebar */
    flex-grow: 1;
    /* Keep if wrapper is flex, but mostly cosmetic now for this item */
}

.dashboard-inner-container {
    padding: 2rem 2rem 0rem;
    width: 100%;
    min-height: 100%;

}

.dashboard-inner-container.inbox-view {
    padding: 0;
}

@media (max-width: 1199px) {
    .dashboard-inner-container {
        padding: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .dashboard-inner-container {
        padding: 1rem !important;
    }
}

aside#dashboardSidebar span.sidebar-alert-badge {
    position: absolute;
    top: 8px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50% !important;
    opacity: 1;

}

/* Adjust Content when Sidebar is Collapsed */
/* Adjust Content when Sidebar is Collapsed */
/* Adjust Content when Sidebar is Collapsed */
.dashboard-sidebar.collapsed~.dashboard-content,
.dashboard-wrapper.sidebar-closed .dashboard-content,
.dashboard-sidebar.collapsed~.dashboard-header,
.dashboard-wrapper.sidebar-closed .dashboard-header {
    margin-left: 80px;
    padding-left: 0px;
}

.dashboard-sidebar.collapsed .logo-text,
.dashboard-sidebar.collapsed .nav-link .text,
.dashboard-sidebar.collapsed .sidebar-footer .user-info {
    display: none;
    opacity: 0;
}

.dashboard-sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: var(--space-3);
}

.dashboard-sidebar.collapsed .sidebar-nav .nav-link .icon {
    margin-right: 0;
    font-size: 1.5rem;
}

/* Logo in Sidebar */
.dashboard-sidebar .sidebar-header {
    display: flex;
    justify-content: center;
    padding: 1.25rem;
    /* Slightly tighter header */
    overflow: hidden;
}

.dashboard-sidebar .logo-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.dashboard-sidebar.collapsed .logo-toggle {
    justify-content: center;
}

/* Premium Stats Cards */
.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .stats-grid-premium {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }
}

.stat-card-premium {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-premium:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.stat-card-premium.primary-brand {
    background: var(--color-primary);
    color: #ffffff;
}

.stat-card-premium.primary-brand h4 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-card-premium.primary-brand .stat-number {
    color: #ffffff !important;
}

.stat-card-premium .card-top-bg {
    position: absolute;
    top: -35px;
    right: -52px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 0;
}

/* Card Specific Decorative Backgrounds */
.stat-card-premium.card-1 .card-top-bg {
    background: color-mix(in oklab, var(--color-white) 10%, transparent);
}

.stat-card-premium.card-2 .card-top-bg {
    background: color-mix(in oklab, #E38E49 5%, transparent);
}

.stat-card-premium.card-3 .card-top-bg {
    background: color-mix(in oklab, #1F509A 5%, transparent);
}

.stat-card-premium.card-4 .card-top-bg {
    background: color-mix(in oklab, #0A3981 5%, transparent);
}

.stat-card-premium .card-content {
    position: relative;
    z-index: 1;
}

.stat-card-premium h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.stat-card-premium .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: #0f172a;
}

.stat-card-premium .stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-card-premium .trend-up {
    color: #10b981;
}

.stat-card-premium .trend-down {
    color: #ef4444;
}

.stat-card-premium .trend-neutral {
    color: #94a3b8;
}




.stat-card-premium .card-icon-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(infinity * 1px);
    z-index: 1;
}

.stat-card-premium.card-1 .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.stat-card-premium.card-2 .card-icon-wrapper {
    background: rgba(227, 142, 73, 0.1);
    color: #E38E49;
}

.stat-card-premium.card-3 .card-icon-wrapper {
    background: rgba(31, 80, 154, 0.1);
    color: #1F509A;
}

.stat-card-premium.card-4 .card-icon-wrapper {
    background: rgba(10, 57, 129, 0.1);
    color: #0A3981;
}

/* Stats Grid Responsiveness handled above in the main definition */

/* Original stat-card override for legacy views if needed */
.stat-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    /* Less bold */
    margin: 0;
    line-height: 1.2;
}

.stat-card.active-listings .stat-number {
    color: var(--color-primary);
}

.stat-card.pending-listings .stat-number {
    color: var(--color-warning);
}

.stat-card.total-views .stat-number {
    color: var(--color-success);
}

/* Notifications / Top Bar Actions */
.dashboard-header-main .header-actions-group {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 0.5rem;
    border-radius: 50%;
}

.notification-bell:hover,
.notification-bell.active {
    background-color: var(--bg-tertiary);
    color: var(--color-primary);
}

.btn-action:active {}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-error);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color-light);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
    margin-top: 10px;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.notification-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: var(--space-3);
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.notification-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    /* Keep text color */
}

.notification-item.unread {
    background-color: var(--bg-tertiary);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-content {
    flex: 1;
    font-size: 0.9rem;
}

/* ========================================
   CRITICAL OVERRIDES (From User Verification)
   ======================================== */

/* 1. Lighter Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
}

h1 {
    font-weight: 700 !important;
    color: var(--color-gray-800) !important;
}

/* 2. Select2 Border Radius 8px */
.select2-container .select2-selection--single {
    border-radius: 8px !important;
}

.select2-container--open .select2-selection--single {
    border-radius: 8px 8px 0 0 !important;
}

/* 3. Dropzone File Upload Styles (Ensure Visibility) */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--color-primary);
    background: #eff6ff;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Pricing Plans Components */
.pricing-plans-container {
    padding-bottom: 4rem;
}

.modern-pricing-header {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
}

.modern-pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark, #0A3981);
    font-weight: 800;
}

.modern-pricing-header h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark, #0A3981);
    font-weight: 700;
}

.modern-pricing-header p {
    font-size: 1.15rem;
    color: var(--text-secondary, #475569);
    max-width: 650px;
    margin: 0 auto;
}

.modern-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 1400px) {
    .modern-pricing-grid.plans-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .modern-pricing-grid.plans-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure pricing cards always fill their column */
.pricing-card {
    max-width: 100% !important;
}

.modal-content-wrapper {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .modal-content-wrapper {
    opacity: 1;
}

.pricing-card {
    background: #ffffff !important;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    position: relative;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: left !important;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary-light, #1F509A20);
}

.popular-badge {
    position: absolute;
    top: 14px;
    right: 1.5rem;
    background: var(--color-brand-accent, #E38E49);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(227, 142, 73, 0.3);
    z-index: 10;
}

.pricing-card-header {
    margin-bottom: 2.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark, #0A3981);
    line-height: 1;
}

.price-period {
    color: var(--text-light, #94a3b8);
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.plan-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #0f172a);
    text-align: left !important;
}

.plan-desc {
    font-size: 1.05rem;
    color: var(--text-secondary, #475569);
    line-height: 1.5;
    margin: 0;
    text-align: left !important;
    min-height: auto;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary, #475569);
    font-size: 1rem;
}

.feature-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--color-primary) 10%, white);
    color: var(--color-primary, #1F509A);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.popular .feature-icon-wrapper {
    background: color-mix(in oklab, var(--color-brand-accent) 15%, white);
    color: var(--color-brand-accent);
}

.feature-icon-wrapper.feature-disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

.plan-features li .text-muted {
    color: #cbd5e1 !important;
    text-decoration: line-through;
}

.plan-action {
    margin-top: auto;
}

.buy-plan-btn {
    border-radius: 100px !important;
    padding: 1.2rem !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    background: var(--color-gray-600, #475569) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.pricing-card:hover .buy-plan-btn {
    background: var(--color-brand-accent, #E38E49) !important;
    /* Gray/Blue -> Orange */
    box-shadow: 0 12px 24px -6px rgba(227, 142, 73, 0.4) !important;

}

.popular .buy-plan-btn {
    background: var(--color-brand-accent, #E38E49) !important;
}

.popular:hover .buy-plan-btn {
    background: var(--color-primary, #1F509A) !important;
    /* Orange -> Blue */
    box-shadow: 0 12px 24px -6px rgba(31, 80, 154, 0.4) !important;

}

.pricing-card.current-active {
    border: 2px solid var(--color-success, #10b981) !important;
    background: #f0fdf4 !important;
}

.active-plan-grid-badge {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: var(--color-success, #10b981);
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    z-index: 10;
}

.buy-plan-btn.btn-current {
    background: var(--color-success, #10b981) !important;
    opacity: 0.8;
    cursor: default;
}

/* My Plan Card Components */
.kiwi-modern-plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    position: relative;
    /* overflow: hidden; */
    text-align: left;
}

.kiwi-modern-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-primary);
}

.active-badge-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success, #10b981);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.plan-card-header h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--color-primary-dark, #0A3981);
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.account-type-subtext {
    color: var(--text-secondary, #475569);
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 500;
    margin-bottom: 0
}

.upgrade-btn-premium {
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--color-primary) !important;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(31, 80, 154, 0.3);
}

.upgrade-btn-premium:hover {
    background: var(--color-brand-accent) !important;
    /* Blue -> Orange */

    box-shadow: 0 15px 30px -8px rgba(227, 142, 73, 0.4);
}

.plan-stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color-light, #f1f5f9);
}

.stat-item-premium {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon-wrapper {
    width: 54px;
    height: 54px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.stat-label-premium {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary, #94a3b8);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value-premium {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.stat-dropdown-wrapper {
    position: relative;
}

.unit-text {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-usage-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-remaining-premium {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
}

.premium-progress-container {
    margin-top: 1.5rem;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.progress-bar-container-premium {
    background: var(--bg-tertiary, #f1f5f9);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill-premium {
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill-premium.safe {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.progress-bar-fill-premium.danger {
    background: linear-gradient(90deg, var(--color-brand-accent) 0%, var(--color-error) 100%);
}

.modern-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 320px;
    z-index: 100;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .plan-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .plan-card-header h2 {
        font-size: 2rem;
    }
}

/* ========================================
   CONSOLIDATED SIDEBAR & ICON FIXES
   ======================================== */
.nav-link .icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-radius: 10px !important;
    padding: 7px !important;
    color: #64748b !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.nav-link .icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    fill: currentColor !important;
}

.nav-link:hover .icon,
.nav-link.active .icon {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2) !important;

}

.logo-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.logo-icon {
    width: 40px !important;
    height: 40px !important;
    background: #1e3a8a !important;
    color: white !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
}

.free-feat {
    font-size: 14px !important;
}

.logo-text {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.025em !important;
}

.dashboard-sidebar.collapsed .logo-text,
.dashboard-sidebar.collapsed .nav-link .text {
    display: none !important;
}

.dashboard-sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dashboard-sidebar.collapsed .nav-link .icon {
    margin: 0 !important;
}

/* ========================================
   

/* Modern Dashboard Table */
.modern-table-container {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.modern-table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color-light, #f1f5f9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary, #f8fafc);
}

.modern-table-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-primary-dark, #0A3981);
    font-weight: 700;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-table th {
    padding: 1.5rem 2rem;
    color: var(--text-light, #94a3b8);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color-light, #f1f5f9);
    background: white;
}

.modern-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color-light, #f1f5f9);
    transition: background 0.2s;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover td {
    background: var(--bg-secondary, #f8fafc);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.publish {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success, #10b981);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning, #f59e0b);
}

.status-badge.sold {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info, #3b82f6);
}

.status-badge.draft {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-light, #94a3b8);
}

/* Dealer Specific */
.dealer-plan-container {
    width: 100%;
}

.plan-hero-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.plan-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-brand-accent));
}

.stat-item-bordered {
    padding-right: 2rem;
    border-right: 1px solid var(--border-color-light, #f1f5f9);
}

@media (max-width: 1024px) {
    .stat-item-bordered {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color-light, #f1f5f9);
        padding-bottom: 1.5rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   DASHBOARD MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 1199px) {
    body.page-template-page-dashboard {
        overflow: auto !important;
        height: auto !important;
    }

    .dashboard-wrapper {
        height: auto !important;
        display: block;
    }

    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        transform: translateX(-100%);
        width: 280px !important;
        background: white !important;
        border-right: 1px solid #e2e8f0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        display: flex !important;
        flex-direction: column !important;
        transition: transform 0.3s ease !important;
        overflow: hidden !important;
    }

    .dashboard-sidebar.mobile-active {
        transform: translateX(0) !important;
    }

    /* Force horizontal layout for nav links on mobile */
    .dashboard-sidebar .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 2rem 0 !important;
        overflow-y: auto !important;
        flex: 1 !important;
    }

    .dashboard-sidebar .sidebar-nav .nav {
        margin: auto 0 !important;
        width: 100% !important;
    }

    .dashboard-sidebar .nav-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.85rem 1.5rem !important;
        width: 100% !important;
        text-align: left !important;
        gap: 15px !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        border-right: 3px solid transparent !important;
        transition: all 0.2s ease !important;
    }

    .dashboard-sidebar .nav-link.active {
        background: rgba(31, 80, 154, 0.04) !important;
        border-right: 3px solid #1e3a8a !important;
        color: #1e3a8a !important;
    }

    .dashboard-sidebar .nav-link .icon {
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .dashboard-sidebar .nav-link .text {
        display: block !important;
        opacity: 1 !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* Force show text elements on mobile even if collapsed on desktop */
    .dashboard-sidebar.collapsed .logo-text,
    .dashboard-sidebar.collapsed .nav-link .text,
    .dashboard-sidebar.collapsed .sidebar-footer .user-info {
        display: block !important;
        opacity: 1 !important;
    }

    .dashboard-sidebar .sidebar-footer {
        padding: 1.25rem 1.5rem !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
        margin-top: auto !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    .dashboard-sidebar .user-avatar {
        width: 45px !important;
        height: 45px !important;
        background: #1e3a8a !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .dashboard-sidebar .user-profile-snippet {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
    }

    .dashboard-sidebar .user-info {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: hidden !important;
    }

    .dashboard-sidebar .user-name {
        font-weight: 700 !important;
        color: #1e293b !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .dashboard-sidebar .user-plan-badge-sidebar {
        font-size: 0.75rem !important;
        color: #1e3a8a !important;
        font-weight: 600 !important;
        margin: 2px 0 !important;
    }

    .dashboard-sidebar .user-action-link {
        font-size: 0.8rem !important;
        color: #ef4444 !important;
        text-decoration: none !important;
        margin-top: 4px !important;
    }

    .dashboard-sidebar.collapsed .sidebar-nav .nav-link {
        justify-content: flex-start !important;
        padding: 0.75rem 1.25rem !important;
    }

    .dashboard-sidebar.collapsed .sidebar-nav .nav-link .icon {
        margin-right: 12px !important;
    }

    .dashboard-content {
        margin-left: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .dashboard-inner-container {
        padding: 1.5rem !important;
        margin-top: 5rem !important;
        /* Space for the floating toggle */
    }

    .dashboard-inner-container.inbox-view {
        padding: 0 !important;
        margin-top: 0rem !important;
    }

    .listings-tabs::-webkit-scrollbar {
        display: none;
    }

    .listings-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .dashboard-header-main {
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .dashboard-header-divider {
        margin: 1.5rem 0 !important;
    }

    .sidebar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1.5rem !important;
        flex-shrink: 0 !important;
        background: white !important;
    }
}

/* Ensure mobile toggles are hidden on desktop */
.sidebar-close-mobile,
#sidebarCloseMobile,
.dashboard-header-main .header-actions-group,
#bulkActionsBar {
    display: none !important;
}

@media (max-width: 1199px) {
    .dashboard-header {
        padding-left: 0 !important;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .dashboard-header .container-fluid {
        padding: 0 !important;
        height: 64px !important;
        justify-content: space-between;
    }

    .dashboard-header .site-nav {
        display: none;
        /* Hide nav menu in top bar on mobile, it's in the sidebar */
    }

    .dashboard-header .header-actions {
        margin-left: auto;
    }

    .sidebar-close-mobile,
    #sidebarCloseMobile {
        display: flex !important;
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 1rem;
        cursor: pointer;
    }

    .mobile-menu-toggle,
    #mobileMenuToggle {
        display: flex;
        position: fixed;
        top: 0.75rem;
        /* Adjusted from 1.25rem */
        left: 1rem;
        /* Adjusted from 1.25rem */
        z-index: 10000;
        background: white;
        width: 40px;
        /* Reduced from 45px */
        height: 40px;
        /* Reduced from 45px */
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        color: var(--color-primary-dark);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    /* Hide burger when sidebar is active */
    .dashboard-sidebar.mobile-active~.dashboard-content #mobileMenuToggle {
        display: none !important;
    }

    .modern-pricing-header h2 {
        font-size: 2rem;
    }

    .mobile-menu-toggle:active,
    #mobileMenuToggle:active {}

    .header-title h1 {
        font-size: 1.5rem !important;
        /* Reduced from 1.75rem */
    }

    .header-title p {
        font-size: 0.9rem !important;
        /* Reduced from 0.95rem */
    }

    .dashboard-header-main .header-actions-group {
        display: flex !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    .dashboard-header-main .header-actions-group .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px !important;
    }
}

@media (max-width: 768px) {
    .dashboard-header-main {
        margin-top: 0rem;
    }

    .dashboard-inner-container {
        padding: 1rem !important;
        margin: 2rem 0 !important;
    }
}

/* Responsive Grid Utilities for Dashboard Overview */
.dashboard-grid-row {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1200px) {
    .dashboard-grid-2-1 {
        grid-template-columns: 2fr 1fr;
    }

    .dashboard-grid-1-3-1 {
        grid-template-columns: 2fr 1fr;
    }

    .dashboard-grid-1-6-1 {
        grid-template-columns: 1.6fr 1fr;
    }
}

@media (max-width: 1199px) {
    .dashboard-grid-row {
        grid-template-columns: 1fr;
        /* Stack everything on iPad/Mobile for cleaner dashboard */
        gap: 1.5rem;
    }

    /* Exceptions for grids that look good in 2 columns on iPad */
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .stats-grid-premium {
        grid-template-columns: 1fr !important;
    }
}

/* Recent Listings Table Responsiveness */
.recent-listings-table-header,
.recent-listing-row {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 1200px) {

    .recent-listings-table-header,
    .recent-listing-row {
        grid-template-columns: 1.5fr 1fr 0.8fr 1fr 1fr !important;
    }
}

@media (max-width: 1199px) {
    .recent-listings-table-header {
        display: none !important;
    }

    .recent-listing-row {
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "vehicle vehicle"
            "price status"
            "views date";
        gap: 1rem !important;
        padding: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .recent-listing-row>div:first-child {
        grid-area: vehicle;
    }

    .recent-listing-row>span:nth-child(2) {
        grid-area: price;
    }

    .recent-listing-row>span:nth-child(3) {
        grid-area: views;
    }

    .recent-listing-row>span:nth-child(4) {
        grid-area: date;
    }

    .recent-listing-row>span:nth-child(5) {
        grid-area: status;
        justify-self: end;
    }
}

/* Modal Responsiveness Improvements */
.kiwi-modal-content.horizontal-layout {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .kiwi-modal-content.horizontal-layout {
        flex-direction: column !important;
    }

    .kiwi-modal-content.horizontal-layout>div:first-child {
        width: 100% !important;
        min-width: 100% !important;
        height: 100px !important;
        padding: 1.5rem !important;
    }

    .kiwi-modal-content.horizontal-layout>div:last-child {
        padding: 1.5rem !important;
    }
}

/* Listing Card Styles */
.listings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.listing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.listing-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.listing-img {
    width: 240px;
    /* Larger image for desktop */
    height: 160px;
    /* Taller image */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.bulk-select-all-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 40px;
    width: 40px;
}

/* Premium Selection Checkbox */
.listing-select {
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
    z-index: 10;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.listing-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.listing-checkbox:hover {
    border-color: #3b82f6;
    background: white;
    transform: scale(1.1);
}

/* Bulk Actions Bar */
#bulkActionsBar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1e293b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
}

#bulkActionsBar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Selected Card Highlight */
.listing-card.selected-card {
    border-color: #3b82f6 !important;
    background: #f0f7ff !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15) !important;
}

.listing-card.selected-card .listing-checkbox {
    background: #3b82f6;
    border-color: #3b82f6;
}

.listing-info {
    flex: 1;
    min-width: 0;
}

.listing-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.listing-title a {
    text-decoration: none;
    color: #1e293b;
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.listing-right-col {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-direction: column;
    height: 100%;
    align-items: end;
}

.price-amount {
    font-weight: 800;
    color: #1e3a8a;
    white-space: nowrap;
}

@media (min-width: 768px) and (max-width:1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1199px) {
    .listing-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .listing-img {
        width: 100%;
        height: 200px;
    }

    .listing-info {
        width: 100%;
    }

    .listing-right-col {
        width: 100%;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
        flex-wrap: wrap;
    }

    /* Removed redundant listing-select as it is now global */
}

/* Widget Extracted Styles */
.team-member-banner {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-header-main {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.dealer-credits-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dealer-credits-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dealer-credits-icon {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.dealer-credits-title {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.dealer-credits-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.dealer-credits-right {
    text-align: right;
}

.dealer-credits-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
}

.dealer-credits-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listings-filter-row {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.listings-search {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.listings-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.limit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.limit-popup {
    background: white;
    width: 95%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.limit-popup-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: bounceAnimation 2s infinite;
}

.limit-popup-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.limit-popup-badge {
    background: #ecfdf5;
    color: #059669;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.limit-popup-text {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-limit-popup {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

#bulkActionsBar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.listing-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.listing-info-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}

.listings-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-limit-popup-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.5rem;
}

.listing-tab {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-base, 0.2s);
    color: #64748b;
    background: transparent;
}

.listing-tab.active {
    background: #e38e49;
    color: white;
}

.listings-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.bulk-select-all-wrapper {
    padding-right: 0rem;
    border-right: 1px solid #e2e8f0;
}

.listing-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#selectAllListings {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dashboard Widgets Extracted Styles */
.dashboard-widget-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.dashboard-widget-card-col-h100 {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
}

.dashboard-widget-card-col {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.dashboard-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dashboard-widget-header-lg {
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard-widget-header-md {
    margin-bottom: 1.5rem;
}

.dashboard-widget-title {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.dashboard-widget-title-mb {
    margin: 0 0 2rem;
}

.dashboard-widget-title-sm {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

.dashboard-widget-title-sm-nomb {
    margin: 0;
    font-size: 1.25rem;
}

.dashboard-widget-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.dashboard-widget-subtitle-lg {
    color: #94a3b8;
    font-size: 1rem;
}

.dashboard-widget-subtitle-md {
    font-size: 0.95rem;
}

.period-toggle-group {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.period-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.metrics-toggle-wrapper {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #f1f5f9;
}

.metrics-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
}

.metrics-toggle-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base, all 0.2s);
}

.badge-action-needed {
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.recent-listings-table-header {
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.recent-listings-th {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-listing-row {
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}

.recent-listing-car-col {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.recent-listing-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.recent-listing-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-listing-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

.recent-listing-views {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-listing-date {
    font-size: 0.85rem;
    color: #64748b;
}

.recent-listing-status {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: inline-block;
    width: fit-content;
}

/* Dashboard Widgets Additional Extracted Styles */
.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.empty-state-box-sm {
    color: #64748b;
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.widget-list-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-list-125 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.expiring-title {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.expiring-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expiring-date {
    font-size: 0.75rem;
    color: #64748b;
}

.inquiry-content {
    flex: 1;
    min-width: 0;
}

.inquiry-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.inquiry-subtitle {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-date {
    margin: 1px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.inquiry-fuzzy {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.widget-footer-link-wrapper {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.widget-footer-link {
    color: #E38E49;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.expiring-item {
    border: 1px solid transparent;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-renew {
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}

.inquiry-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Individual Dashboard Extracted Styles */
.dashboard-widget-card-light {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
}

.dashboard-widget-card-col-light {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.widget-action-link {
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-listing-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: var(--transition-base, all 0.2s);
    border: 1px solid transparent;
}

.recent-listing-item:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.recent-listing-icon-lg {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.recent-listing-title-lg {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-listing-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-listing-status-sm {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.recent-listing-price-lg {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-icon-light {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(30, 58, 138, 0.08);
    transition: var(--transition-base, all 0.2s);
}

.btn-icon-light:hover {
    background: #dbeafe;
}

.empty-text-sm {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.empty-text-pd {
    color: #64748b;
    text-align: center;
    padding: 2rem;
}

/* ========================================
   TYPOGRAPHY CONSISTENCY OVERRIDES
   ======================================== */
.dashboard-wrapper p,
.dashboard-wrapper span,
.dashboard-wrapper label,
.dashboard-wrapper input,
.dashboard-wrapper textarea,
.dashboard-wrapper select,
.dashboard-wrapper button,
.recent-listing-title-lg,
.stat-card-premium h4,
.widget-title,
.card-title,
.dropdown-item,
.nav-link,
.btn,
.plan-title,
.price-amount {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.dashboard-wrapper h1,
.dashboard-wrapper h2,
.dashboard-wrapper h3,
.dashboard-wrapper h4,
.dashboard-wrapper h5,
.dashboard-wrapper h6,
.dashboard-inner-container h1,
.dashboard-inner-container h2,
.dashboard-inner-container h3,
.dashboard-inner-container h4,
.dashboard-inner-container h5,
.dashboard-inner-container h6 {
    font-family: 'Darker Grotesque', sans-serif !important;
}