/* ==========================================================================
   ClasyAds — Self-Contained Master Production CSS Bundle
   Generated for 100% Live Server Compatibility (Ubuntu / Apache2 / XAMPP)
   ========================================================================== */

/* --- Component: base.css --- */
/* ==========================================================================
   ClasyAds - Base & Core Utility Styles (assets/css/base.css)
   ========================================================================== */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --accent-emerald: #059669;
    --accent-amber: #f59e0b;
    --accent-rose: #ef4444;
    --accent-cyan: #0891b2;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-glow: rgba(79, 70, 229, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.text-indigo-600 {
    --tw-text-opacity: 1;
    color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.brand-logo,
.signup-title,
.section-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}


.main-wrapper {
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

/* SVG Icon Helper */
.svg-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.svg-icon-sm { width: 16px; height: 16px; }
.svg-icon-lg { width: 24px; height: 24px; }
.svg-icon-gold { color: #f59e0b; }

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background-color: #fef2f2;
    color: var(--accent-rose) !important;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background-color: var(--accent-rose);
    color: #ffffff !important;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Common Keyframe Animations */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* System Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.badge-primary { background: #eef2ff; color: #4F46E5; border: 1px solid #c7d2fe; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-warning { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-info { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }

/* Button Utility Helpers */
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Data Tables System */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Modal Overlay Utility */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==========================================================================
   Modern UX Polish & Accessibility Enhancements
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Accessibility: Focus-visible rings on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile body padding when bottom nav is visible */
@media (max-width: 992px) {
    body {
        padding-bottom: 70px;
    }
}

/* Subtle page content fade-in animation without transform containing block */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-wrapper {
    animation: pageFadeIn 0.25s ease forwards;
    transform: none !important;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modern scrollbar styling (WebKit) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility: visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[x-cloak],
[style*="display: none"],
[style*="display:none"] {
    display: none !important;
}

.hidden {
    display: none;
}



/* --- Component: nav.css --- */
/* ==========================================================================
   ClasyAds - Header Navigation & Mobile Bar (assets/css/nav.css)
   Modern UI/UX — Fully Mobile Responsive
   ========================================================================== */

/* ---------- Navbar Shell ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
                0 4px 12px rgba(15, 23, 42, 0.02);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Completely hide navbar & header when ANY modal is active */
body.modal-open .navbar,
body.modal-open header,
body.writing-blog .navbar,
body.writing-blog header,
body.fin-modal-open .navbar,
body.fin-modal-open header,
body:has(#create_blog_modal[style*="display: flex"]) .navbar,
body:has(#create_blog_modal[style*="display: flex"]) header,
body:has(#full_preview_modal[style*="display: flex"]) .navbar,
body:has(#full_preview_modal[style*="display: flex"]) header,
body:has(#grievanceActionModal[style*="display: flex"]) .navbar,
body:has(#grievanceActionModal[style*="display: flex"]) header,
body:has(.admin-full-modal-overlay[style*="display: flex"]) .navbar,
body:has(.admin-full-modal-overlay[style*="display: flex"]) header,
body:has([id*="modal" i][style*="display: flex"]) .navbar,
body:has([id*="modal" i][style*="display: flex"]) header,
body:has([id*="modal" i][style*="display: block"]) .navbar,
body:has([id*="modal" i][style*="display: block"]) header,
body:has(.modal-backdrop[style*="display: flex"]) .navbar,
body:has(.modal-backdrop[style*="display: flex"]) header {
    display: none !important;
}

#create_blog_modal,
#full_preview_modal,
#grievanceActionModal,
.admin-full-modal-overlay,
.fin-modal-overlay {
    z-index: 9999999999 !important;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

/* ---------- Brand Logo ---------- */
.brand-logo {
    font-size: 1.3rem;
    line-height: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.85;
}

/* ---------- Hamburger Toggle Button ---------- */
.nav-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: none; /* shown via media query */
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    flex-shrink: 0;
}

.nav-toggle-btn:hover,
.nav-toggle-btn.active {
    background: #eef2ff;
    color: #4F46E5;
    border-color: #c7d2fe;
}

/* Hamburger lines */
.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-line + .hamburger-line {
    margin-top: 4px;
}

.nav-toggle-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ======================================================================
   Header Search Bar
   ====================================================================== */
.header-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 5px 4px 16px;
    gap: 12px;
    flex: 1 1 640px;
    max-width: 720px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: relative;
}

.header-search-form:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* Live Search Autocomplete Dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 8px;
    display: none;
    z-index: 999999;
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
}

.search-autocomplete-dropdown.show {
    display: block !important;
    animation: navSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-autocomplete-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #64748b;
    text-transform: uppercase;
    padding: 6px 10px 4px;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
    background: #f8fafc;
}

.search-autocomplete-cat-item {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4F46E5;
}

.search-autocomplete-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.search-autocomplete-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.search-autocomplete-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-autocomplete-price {
    font-weight: 800;
    color: #059669;
}

.search-autocomplete-footer {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 6px;
    text-align: center;
}

.search-autocomplete-footer-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    display: block;
    padding: 6px;
    border-radius: 8px;
}

.search-autocomplete-footer-btn:hover {
    background: #eef2ff;
}

.search-autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Search Input Wrap */
.header-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0;
}

.header-search-input-wrap .svg-icon {
    width: 17px;
    height: 17px;
    color: #64748b;
    flex-shrink: 0;
}

.header-search-input {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f172a;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.header-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 400;
}

/* Vertical Divider */
.header-search-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Location Select Wrap */
.header-search-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    flex: 0 0 155px;
    position: relative;
}

.header-search-select-wrap .svg-icon {
    width: 15px;
    height: 15px;
    color: #64748b;
    flex-shrink: 0;
}

.header-search-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    outline: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-select-wrap::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #64748b;
    pointer-events: none;
}

/* Search CTA Button */
.header-search-btn {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border: none;
    color: #ffffff;
    padding: 9px 20px;
    height: 40px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.header-search-btn:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
    transform: translateY(-1px);
}

.header-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.header-search-btn .svg-icon {
    width: 15px;
    height: 15px;
    color: #ffffff;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.header-search-btn:hover .svg-icon {
    transform: translateX(2px);
}


/* ======================================================================
   Nav Menu & Links
   ====================================================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #4F46E5;
}

.nav-link-featured {
    color: #0f172a;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


/* ======================================================================
   Action Buttons (Pills)
   ====================================================================== */
.btn-primary-pill {
    background: linear-gradient(135deg, #4F46E5, #4338ca);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary-pill:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-secondary-pill {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-secondary-pill:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-btn-link {
    color: #475569;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.nav-btn-link:hover {
    color: #4F46E5;
}


/* ======================================================================
   Notification Bell
   ====================================================================== */
.nav-notif-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-notif-btn:hover {
    background: #eef2ff;
    color: #4F46E5;
    border-color: #c7d2fe;
}

.nav-notif-btn.has-alerts {
    color: #ef4444 !important;
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

.nav-notif-btn.has-alerts svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ======================================================================
   Interactive Notification Dropdown Menu
   ====================================================================== */
.nav-notif-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.nav-notif-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-notif-dropdown-wrap.open .nav-notif-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-menu-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.notif-menu-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.notif-count-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.notif-mark-all-read {
    font-size: 0.76rem;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.notif-mark-all-read:hover {
    color: #3730a3;
    text-decoration: underline;
}

.notif-menu-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: #334155;
    transition: background 0.15s ease;
}

.notif-menu-item:hover {
    background: #f8fafc;
}

.notif-menu-item.unread {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.notif-menu-item.unread.notif-type-rejected {
    background: #fff1f2;
    border-left: 3px solid #f43f5e;
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-approve {
    background: #d1fae5;
}

.icon-reject {
    background: #ffe4e6;
}

.icon-system {
    background: #e0e7ff;
}

.icon-message {
    background: #e0f2fe;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-item-text {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    word-break: break-word;
}

.notif-item-time {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 4px;
}

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

.notif-menu-footer {
    padding: 10px 16px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.notif-view-all-btn {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4F46E5;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.notif-view-all-btn:hover {
    color: #3730a3;
    background: #eef2ff;
}


/* ======================================================================
   User Profile Nav Dropdown Pill
   ====================================================================== */
.user-nav-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.user-nav-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 4px 14px 4px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-nav-pill:hover,
.user-nav-pill.active {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #6366f1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-nav-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-nav-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.user-nav-dropdown-wrap.open .user-nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16),
                0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 12px;
    display: none;
    z-index: 99999;
}

.user-nav-dropdown-wrap:hover .user-nav-dropdown-menu,
.user-nav-dropdown-wrap:focus-within .user-nav-dropdown-menu,
.user-nav-dropdown-wrap.open .user-nav-dropdown-menu,
.user-nav-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: navSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 12px;
}

.dropdown-avatar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #6366f1);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-user-details {
    overflow: hidden;
}

.dropdown-user-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #4F46E5;
    transform: translateX(2px);
}

.dropdown-logout-btn {
    color: #ef4444 !important;
}

.dropdown-logout-btn:hover {
    background: #fef2f2 !important;
    transform: translateX(2px);
}


/* ======================================================================
   Mobile Bottom Navigation Bar — Premium Touch Design
   ====================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 9999;
    box-shadow: 0 -2px 20px rgba(15, 23, 42, 0.06);
    justify-content: space-around;
    align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    padding: 6px 2px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item .svg-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: #4F46E5;
}

.mobile-nav-item.active .svg-icon {
    stroke-width: 2.4;
}

/* Active indicator dot */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4F46E5;
}

/* Unread message indicator */
.mobile-nav-item.has-unread {
    color: #ef4444 !important;
}

.mobile-nav-item.has-unread .svg-icon {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* Post Ad center button highlight */
.mobile-nav-item--post {
    color: #4F46E5 !important;
}

.mobile-nav-item--post .svg-icon {
    background: linear-gradient(135deg, #4F46E5, #6366f1);
    color: #ffffff;
    stroke: #ffffff;
    border-radius: 12px;
    padding: 6px;
    width: 34px;
    height: 34px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item--post:active .svg-icon {
    transform: scale(0.92);
}


/* ======================================================================
   Mobile Overlay / Drawer (for admin + nav-actions on small screens)
   ====================================================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 10002;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.16);
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

.mobile-nav-drawer.show {
    display: block;
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-header .brand-logo {
    font-size: 1.15rem;
}

.mobile-drawer-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.mobile-drawer-body {
    padding: 16px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
    background: #f8fafc;
    color: #4F46E5;
}

.mobile-drawer-link .svg-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    flex-shrink: 0;
}

.mobile-drawer-link:hover .svg-icon {
    color: #4F46E5;
}

.mobile-drawer-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

.mobile-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4F46E5, #4338ca);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.mobile-drawer-cta:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.mobile-drawer-logout {
    color: #ef4444 !important;
}

.mobile-drawer-logout .svg-icon {
    color: #ef4444 !important;
}


/* ======================================================================
   RESPONSIVE — 992px (Tablets & Below)
   ====================================================================== */
@media (max-width: 992px) {
    .navbar {
        padding: 6px 0;
    }

    .navbar-inner {
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
    }

    .brand-logo {
        font-size: 1.25rem;
    }

    /* Show hamburger */
    .nav-toggle-btn {
        display: inline-flex;
    }

    /* Search goes full-width below logo row */
    .header-search-form {
        display: flex;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 2px;
    }

    /* Hide location filter on tablets */
    .header-search-select-wrap,
    .header-search-divider {
        display: none;
    }

    /* Hide desktop nav-actions, shown in drawer */
    .nav-actions {
        display: none !important;
    }

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    .user-nav-name {
        max-width: 100px;
    }

    /* Admin header inline-style overrides */
    .navbar-inner > div[style*="Admin Control Center"] {
        display: none !important;
    }
}


/* ======================================================================
   RESPONSIVE — 768px (Tablet Portrait)
   ====================================================================== */
@media (max-width: 768px) {
    .navbar-inner {
        gap: 6px;
    }

    .header-search-form {
        padding: 3px 4px 3px 14px;
        gap: 8px;
    }

    .header-search-btn span {
        display: none;
    }

    .header-search-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
    }

    .header-search-input::placeholder {
        font-size: 0.84rem;
    }
}


/* ======================================================================
   RESPONSIVE — 576px (Mobile Phones)
   ====================================================================== */
@media (max-width: 576px) {
    .navbar {
        padding: 5px 0 6px;
    }

    .brand-logo {
        font-size: 1.18rem;
    }

    .header-search-form {
        border-radius: 14px;
        padding: 3px 4px 3px 12px;
        gap: 6px;
    }

    .header-search-btn {
        width: 36px;
        height: 36px;
    }

    .header-search-input {
        font-size: 0.85rem;
    }

    /* User pill collapses to avatar only */
    .user-nav-name {
        display: none;
    }

    .user-nav-pill {
        padding: 4px;
        border-radius: 50%;
    }

    .user-nav-chevron {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .btn-primary-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .btn-secondary-pill,
    .nav-btn-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Mobile bottom nav adjustments */
    .mobile-nav-item {
        font-size: 0.62rem;
    }

    .mobile-nav-item .svg-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-item--post .svg-icon {
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    /* Mobile drawer adjustments */
    .mobile-nav-drawer {
        width: 260px;
    }

    .mobile-drawer-link {
        padding: 11px 12px;
        font-size: 0.88rem;
    }
}


/* ======================================================================
   RESPONSIVE — 400px (Ultra-Small Phones)
   ====================================================================== */
@media (max-width: 400px) {
    .brand-logo {
        font-size: 1.1rem;
    }

    .header-search-form {
        border-radius: 12px;
        padding: 2px 3px 2px 10px;
    }

    .header-search-btn {
        width: 34px;
        height: 34px;
    }

    .header-search-input {
        font-size: 0.82rem;
    }

    .mobile-nav-item {
        font-size: 0.6rem;
        gap: 1px;
    }

    .mobile-nav-item .svg-icon {
        width: 19px;
        height: 19px;
    }
}


/* ======================================================================
   Desktop-only: hide mobile elements
   ====================================================================== */
@media (min-width: 993px) {
    .mobile-bottom-nav,
    .nav-toggle-btn,
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}


/* ======================================================================
   Keyframe Animations
   ====================================================================== */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Component: sidebar.css --- */
/* ==========================================================================
   ClasyAds - Role-Based Sidebar Navigation Styles (assets/css/sidebar.css)
   Modern UI/UX — Fully Mobile Responsive
   ========================================================================== */

/* ======================================================================
   Dashboard Grid Layout
   ====================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* ======================================================================
   Sidebar Card
   ====================================================================== */
.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.02);
    position: -webkit-sticky;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-card::-webkit-scrollbar {
    width: 4px;
}

.sidebar-card::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.sidebar-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section-toggle {
    cursor: pointer;
    user-select: none;
    margin-top: 12px;
}

.sidebar-chevron {
    transition: transform 0.2s ease;
    transform: rotate(90deg);
}

.sidebar-section-toggle.collapsed + .sidebar-sub-menu {
    display: none;
}

.sidebar-section-toggle.collapsed .sidebar-chevron {
    transform: rotate(0deg);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-link:hover {
    background: #f8fafc;
    color: #4F46E5;
    transform: translateX(2px);
}

.sidebar-link.active {
    background: #eef2ff;
    color: #4F46E5;
    font-weight: 700;
    border-left: 3px solid #4F46E5;
}

.sidebar-link.active .svg-icon {
    color: #4F46E5;
}

.sidebar-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    margin-top: 2px;
}

.sidebar-sub-menu .sidebar-link {
    font-size: 0.86rem;
    padding: 7px 12px;
    color: #64748b;
}

/* Signout Buttons */
.btn-sidebar-signout:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.btn-signout-top:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Sidebar Footer */
.sidebar-user-footer {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ======================================================================
   RESPONSIVE — 992px (Desktop Sidebar Hidden on Mobile / Tablet)
   ====================================================================== */
@media (max-width: 992px) {
    .dashboard-layout {
        display: block !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    /* Desktop Sidebar is completely hidden on mobile/tablet responsive viewports */
    .sidebar-card {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .sidebar-mobile-close {
        display: none !important;
    }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 993px) {
    .sidebar-mobile-close {
        display: none !important;
    }

    .mobile-filter-toggle {
        display: none !important;
    }

    .mobile-filter-actions {
        display: none !important;
    }
}

/* ======================================================================
   Mobile Filter Toggle Button (Search Page) — Modern Design
   ====================================================================== */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #4F46E5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.mobile-filter-toggle:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

.mobile-filter-toggle:active {
    transform: translateY(0) scale(0.98);
}

.mobile-filter-toggle .svg-icon {
    width: 18px;
    height: 18px;
}

.mobile-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-filter-count:empty {
    display: none;
}

@media (max-width: 992px) {
    .mobile-filter-toggle {
        display: flex;
    }
}

/* ======================================================================
   Search Filter Title
   ====================================================================== */
.search-filter-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================================


/* ======================================================================
   Keyframes
   ====================================================================== */
@keyframes sidebarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sidebarSlideInMobile {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- Component: home.css --- */
/* ==========================================================================
   ClasyAds - Homepage Components & Carousels (assets/css/home.css)
   ========================================================================== */

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 400;
}

/* Search Box Bar */
.search-box {
    background: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    flex: 1;
    position: relative;
}

.search-field .svg-icon {
    color: #64748b;
}

.search-field .form-control {
    border: none;
    padding-left: 0;
    font-size: 0.95rem;
}

.search-field .form-control:focus {
    box-shadow: none;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

/* Category Slider & Horizontal Touch Track */
.category-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.category-grid,
.category-slider-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.category-grid:active,
.category-slider-track:active {
    cursor: grabbing;
}

.category-card {
    flex: 0 0 210px;
    min-width: 210px;
    max-width: 210px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    text-decoration: none;
    user-select: none;
    cursor: grab;
}

.category-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.category-card:nth-child(2n) .category-icon {
    background: #e6f4ea;
    color: #059669;
}

.category-card:nth-child(3n) .category-icon {
    background: #fef3c7;
    color: #d97706;
}

.category-card:hover .category-icon {
    transform: scale(1.05);
}

.category-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.category-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.category-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.green-dot {
    color: #10b981;
    font-size: 0.65rem;
}

@media (max-width: 640px) {
    .category-card {
        flex: 0 0 190px;
        min-width: 190px;
        max-width: 190px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .category-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .category-name {
        font-size: 0.84rem;
    }
}



/* Featured & Latest Ads Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.ad-card:hover {
    transform: translateY(-5px);
    border-color: #4F46E5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ad-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
}

.ad-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-card:hover .ad-image-box img {
    transform: scale(1.06);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fav-btn:hover, .fav-btn.active {
    background: #ef4444;
    color: #ffffff;
}

/* Similar Listings Grid (Matched to Latest Listings .ads-grid) */
.similar-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Search Page 3-Column Ads Grid */
.search-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 1200px) {
    .search-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .search-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.ad-body {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ad-category {
    font-size: 0.72rem;
    color: #4F46E5;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ad-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.ad-specs {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 14px;
    height: 14px;
    min-height: 14px;
}

.ad-location {
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 14px;
    height: 14px;
    min-height: 14px;
}

.ad-feature-tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    margin-bottom: 2px;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    min-height: 16px;
    height: 16px;
}

.ad-feature-tags-placeholder {
    height: 16px;
    margin-bottom: 2px;
    display: block;
}

.tag-warranty {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
}

.tag-doc {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
}

.doc-text-short {
    display: none;
}

.doc-text-full {
    display: inline;
}

.ad-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 0;
    border-top: none;
    gap: 6px;
}

.ad-date {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.condition-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
    z-index: 5;
}


.ad-title:hover {
    color: #4F46E5;
}

.ad-price {
    font-size: .875rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 0;
    line-height: 1.1;
}

.ad-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

/* Featured Slider Track */
.featured-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 48px;
}

.featured-slider-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.featured-slider-track::-webkit-scrollbar {
    display: none;
}

.featured-slider-card {
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
    max-width: calc(25% - 18px);
    scroll-snap-align: start;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Similar Recommended Ads Slider Track & Card */
.similar-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.similar-slider-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.similar-slider-track::-webkit-scrollbar {
    display: none;
}

.similar-slider-card {
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
    max-width: calc(25% - 18px);
    scroll-snap-align: start;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #4F46E5;
    color: #ffffff;
    border-color: #4F46E5;
}

/* Platform Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .ads-grid,
    .similar-ads-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .featured-slider-track,
    .similar-slider-track {
        gap: 20px;
        padding: 10px 0 16px;
    }

    .featured-slider-card,
    .similar-slider-card {
        flex: 0 0 calc(33.333% - 13.33px);
        min-width: calc(33.333% - 13.33px);
        max-width: calc(33.333% - 13.33px);
    }
}

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

    .search-box {
        flex-direction: column;
        padding: 16px;
    }

    .search-field {
        width: 100%;
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ads-grid,
    .similar-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-slider-track,
    .similar-slider-track {
        gap: 12px;
        padding: 6px 0 14px;
    }

    .featured-slider-card,
    .similar-slider-card {
        flex: 0 0 calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .ad-date {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .ads-grid,
    .similar-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .featured-slider-track,
    .similar-slider-track {
        gap: 10px;
        padding: 6px 0 14px;
    }

    .featured-slider-card,
    .similar-slider-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    .ad-feature-tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        margin-bottom: 6px !important;
        overflow: hidden !important;
    }

    .tag-warranty,
    .tag-doc {
        font-size: 0.58rem !important;
        padding: 1.5px 4px !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .doc-text-full {
        display: none !important;
    }

    .doc-text-short {
        display: inline !important;
    }

    .ad-date {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 50px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .ads-grid,
    .similar-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .featured-slider-track,
    .similar-slider-track {
        gap: 10px;
        padding: 6px 0 14px;
    }

    .featured-slider-card,
    .similar-slider-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    .ad-image-box {
        height: 160px;
    }

    .ad-body {
        padding: 8px 10px;
    }

    .ad-title {
        font-size: 0.875rem;
    }

    .ad-price {
        font-size: .875rem;
    }

    .ad-card {
        border-radius: 14px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .category-card {
        flex: 0 0 170px;
        min-width: 170px;
        max-width: 170px;
    }

    .ads-grid,
    .similar-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .featured-slider-track,
    .similar-slider-track {
        gap: 8px;
        padding: 6px 0 14px;
    }

    .featured-slider-card,
    .similar-slider-card {
        flex: 0 0 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .ad-image-box {
        height: 140px;
    }
}


/* --- Component: search.css --- */
/* ==========================================================================
   ClasyAds - Modern Classifieds Listings & Filter Directory (assets/css/search.css)
   Exact match with /listings for Desktop & Mobile Responsive
   ========================================================================== */

/* ---------- Listing Card (Grid & List View) ---------- */
.listing-card {
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #a5b4fc;
}

.listing-card.is-featured {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 2px 8px rgba(251, 191, 36, 0.08);
}

.card-image-wrap {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-title {
    font-weight: 700;
    color: #0f172a;
    transition: color 0.2s ease;
    line-height: 1.35;
}

.listing-card:hover .card-title {
    color: #4f46e5;
}

.card-location {
    font-size: 0.72rem;
    color: #64748b;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-weight: 900;
    color: #059669;
}

.card-date {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- Search Page Grid & List Layout ---------- */
.search-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.search-ads-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .search-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Responsive Ads Display: Active Grid or List mode */
    .search-ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden),
    .ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .search-ads-list:not([style*="display: none"]):not([x-cloak]):not(.hidden) {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .search-ads-list .ad-card {
        flex-direction: row !important;
        height: 145px !important;
        display: flex !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
    }

    .search-ads-list .ad-image-box {
        width: 140px !important;
        height: 100% !important;
        min-height: 100% !important;
        flex-shrink: 0 !important;
        position: relative !important;
        background: #f8fafc !important;
    }

    .search-ads-list .ad-body {
        padding: 12px 14px !important;
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    .search-ads-list .ad-date {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .search-ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden),
    .ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .search-ads-grid .ad-image-box {
        height: 145px !important;
    }

    .search-ads-list .ad-card {
        height: 140px !important;
    }

    .search-ads-list .ad-image-box {
        width: 130px !important;
        height: 100% !important;
    }
}

@media (max-width: 400px) {
    .search-ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden),
    .ads-grid:not([style*="display: none"]):not([x-cloak]):not(.hidden) {
        gap: 8px !important;
    }

    .search-ads-grid .ad-image-box {
        height: 130px !important;
    }

    .search-ads-list .ad-card {
        height: 135px !important;
    }

    .search-ads-list .ad-image-box {
        width: 115px !important;
        height: 100% !important;
    }

    .search-ads-list .ad-body {
        padding: 8px 10px !important;
    }
}

/* Mobile Filter Drawer Layering — Guarantees filter starts from top:0 above header/navbar */
body.filter-drawer-open,
body.overflow-hidden {
    overflow: hidden !important;
}

body.filter-drawer-open .navbar,
body.filter-drawer-open header,
body.overflow-hidden .navbar,
body.overflow-hidden header {
    z-index: 10 !important;
    pointer-events: none !important;
}

body.filter-drawer-open .main-wrapper,
body.overflow-hidden .main-wrapper {
    position: relative !important;
    z-index: 99999990 !important;
}

/* ==========================================================================
   Dual-Thumb Interactive Range Slider Component Styles
   ========================================================================== */
.range-slider-section {
    user-select: none;
    -webkit-user-select: none;
}

.dual-range-wrapper {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
}

.dual-range-track-bg {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
}

.dual-range-track-active {
    position: absolute;
    height: 6px;
    background: #4F46E5;
    border-radius: 9999px;
    z-index: 10;
    transition: left 0.05s ease, right 0.05s ease;
}

.dual-range-input {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    z-index: 20;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.dual-range-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4F46E5;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dual-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45);
}

.dual-range-input::-webkit-slider-thumb:active {
    transform: scale(1.25);
    background: #4338ca;
}

.dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4F46E5;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45);
}

/* Desktop Search Filter Sticky Sidebar (Keeps filters fixed while ads scroll) */
.search-sticky-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 84px !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.search-sticky-sidebar::-webkit-scrollbar {
    width: 5px;
}

.search-sticky-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.search-sticky-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.search-sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (min-width: 1024px) {
    .search-sidebar-desktop,
    aside.search-sidebar-desktop {
        display: block !important;
    }
}

@media (max-width: 1023px) {
    .search-sidebar-desktop,
    aside.search-sidebar-desktop {
        display: none !important;
    }
}




/* --- Component: dashboard.css --- */
/* ==========================================================================
   ClasyAds - Seller Console & Dashboard Components (assets/css/dashboard.css)
   Modern UI/UX — Fully Mobile Responsive
   ========================================================================== */

/* ======================================================================
   Welcome Alert Banner
   ====================================================================== */
.welcome-alert-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.welcome-alert-banner .svg-icon {
    color: #059669;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ======================================================================
   Seller Console Hero Banner
   ====================================================================== */
.seller-console-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    border-radius: 20px;
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15),
                0 4px 10px rgba(30, 27, 75, 0.1);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orb */
.seller-console-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.console-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.console-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag-console {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.tag-verified {
    background: #059669;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.tag-unverified {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.console-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.console-hero-subtitle {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    max-width: 580px;
    line-height: 1.6;
}

.btn-console-action {
    background: linear-gradient(135deg, #4F46E5, #6366f1);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-console-action:hover {
    background: linear-gradient(135deg, #4338ca, #4F46E5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.btn-console-action:active {
    transform: translateY(0);
}


/* ======================================================================
   Metrics Grid — 4-column cards
   ====================================================================== */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.metric-main {
    min-width: 0;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.metric-sub {
    font-size: 0.78rem;
    font-weight: 600;
}

.label-green { color: #059669; }
.label-blue { color: #0284c7; }
.label-red { color: #e11d48; }

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon-box {
    transform: scale(1.05);
}

.icon-purple { background: #eef2ff; color: #4F46E5; }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }


/* ======================================================================
   Recent Ads Section Card
   ====================================================================== */
.dashboard-recent-ads {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    margin-top: 24px;
}

.dashboard-recent-ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-recent-ads-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dashboard-recent-ads-header a {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #eef2ff;
    transition: all 0.2s ease;
}

.dashboard-recent-ads-header a:hover {
    background: #e0e7ff;
    color: #4338ca;
}

/* Mobile Ad Card List (hidden on desktop, shown on mobile) */
.dashboard-ads-card-list {
    display: none;
}

.dashboard-ad-card-mobile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-ad-card-mobile + .dashboard-ad-card-mobile {
    margin-top: 10px;
}

.dashboard-ad-card-mobile:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.dashboard-ad-card-mobile-img {
    width: 64px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.dashboard-ad-card-mobile-info {
    flex: 1;
    min-width: 0;
}

.dashboard-ad-card-mobile-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.dashboard-ad-card-mobile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: #64748b;
}

.dashboard-ad-card-mobile-price {
    font-weight: 800;
    color: #059669;
    font-size: 0.82rem;
}

.dashboard-ad-card-mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.dashboard-ad-card-mobile-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dashboard-ad-card-mobile-status.status-approved {
    background: #dcfce7;
    color: #166534;
}

.dashboard-ad-card-mobile-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.dashboard-ad-card-mobile-status.status-rejected {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-ad-card-mobile-status.status-inactive,
.dashboard-ad-card-mobile-status.status-sold {
    background: #f1f5f9;
    color: #64748b;
}


/* ======================================================================
   Dashboard Two-Column Layout
   ====================================================================== */
.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 20px;
}

.dash-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.dash-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dash-box-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.dash-box-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Seller Profile Card */
.badge-verified-seller {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}

.profile-card-body {
    text-align: center;
    padding: 20px 0 16px;
}

.profile-avatar-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.profile-seller-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.badge-tier-gold {
    background: #f59e0b;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}


/* ======================================================================
   Analytics Chart Box
   ====================================================================== */
.analytics-chart-wrapper {
    display: flex;
    gap: 12px;
    height: 170px;
    margin-top: 10px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: right;
    width: 24px;
    padding-bottom: 20px;
}

.chart-graph-area {
    flex: 1;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 36px;
    padding-right: 12px;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.chart-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 20px;
    text-align: center;
}


/* ======================================================================
   Mobile Sidebar Toggle Button
   ====================================================================== */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.mobile-sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    color: #4F46E5;
}

.mobile-sidebar-toggle .svg-icon {
    width: 18px;
    height: 18px;
}

.mobile-sidebar-toggle-text::after {
    content: 'Show Menu';
}

.sidebar-card.show-sidebar ~ .dashboard-content .mobile-sidebar-toggle .mobile-sidebar-toggle-text::after,
.mobile-sidebar-toggle.active .mobile-sidebar-toggle-text::after {
    content: 'Hide Menu';
}


/* ======================================================================
   Seller Console Custom Badges
   ====================================================================== */
.badge-views-pill {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-plan-purple {
    background: #eef2ff;
    color: #4F46E5;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #c7d2fe;
}


/* ======================================================================
   RESPONSIVE — 1100px (Dashboard Grid)
   ====================================================================== */
@media (max-width: 1100px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ======================================================================
   RESPONSIVE — 992px (Tablet — Sidebar collapse)
   ====================================================================== */
@media (max-width: 992px) {
    .dashboard-layout {
        display: block !important;
        width: 100% !important;
    }

    .sidebar-card,
    .mobile-sidebar-toggle {
        display: none !important;
    }

    .dashboard-two-col {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding-top: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .seller-console-hero {
        border-radius: 16px;
        padding: 24px 24px;
    }

    .console-hero-title {
        font-size: 1.4rem;
    }

    .dashboard-recent-ads {
        padding: 20px;
        border-radius: 16px;
    }
}


/* ======================================================================
   RESPONSIVE — 768px (Tablet Portrait)
   ====================================================================== */
@media (max-width: 768px) {
    .seller-console-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
        border-radius: 16px;
    }

    .console-hero-title {
        font-size: 1.3rem;
    }

    .console-hero-subtitle {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .btn-console-action {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .dashboard-metrics-grid {
        gap: 12px;
    }

    .metric-card {
        padding: 16px 18px;
        border-radius: 14px;
    }

    .metric-value {
        font-size: 1.55rem;
    }

    .metric-icon-box {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    /* Switch table to card layout on mobile */
    .dashboard-recent-ads .table-responsive {
        display: none;
    }

    .dashboard-ads-card-list {
        display: block;
    }

    .dashboard-recent-ads {
        padding: 18px;
    }
}


/* ======================================================================
   RESPONSIVE — 576px (Mobile Phones)
   ====================================================================== */
@media (max-width: 576px) {
    .welcome-alert-banner {
        padding: 12px 14px;
        font-size: 0.86rem;
        border-radius: 12px;
        gap: 8px;
    }

    .seller-console-hero {
        padding: 18px 16px;
        gap: 14px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .seller-console-hero::before {
        display: none;
    }

    .console-tags {
        gap: 6px;
        margin-bottom: 10px;
    }

    .tag-console,
    .tag-verified {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .console-hero-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .console-hero-subtitle {
        font-size: 0.8rem;
    }

    .btn-console-action {
        font-size: 0.86rem;
        padding: 12px 18px;
    }

    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .metric-card {
        padding: 14px 14px;
        border-radius: 12px;
    }

    .metric-label {
        font-size: 0.76rem;
    }

    .metric-value {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .metric-sub {
        font-size: 0.72rem;
    }

    .metric-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .metric-icon-box .svg-icon {
        width: 18px;
        height: 18px;
    }

    .dashboard-recent-ads {
        padding: 14px;
        border-radius: 14px;
        margin-top: 18px;
    }

    .dashboard-recent-ads-header {
        margin-bottom: 14px;
    }

    .dashboard-recent-ads-header h3 {
        font-size: 1rem;
    }

    .dashboard-ad-card-mobile {
        padding: 12px;
        gap: 12px;
        border-radius: 12px;
    }

    .dashboard-ad-card-mobile-img {
        width: 56px;
        height: 48px;
        border-radius: 8px;
    }

    .dashboard-ad-card-mobile-title {
        font-size: 0.84rem;
    }

    .dashboard-ad-card-mobile-meta {
        font-size: 0.72rem;
        gap: 6px;
    }

    .chart-mini-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mobile-sidebar-toggle {
        padding: 10px 14px;
        font-size: 0.84rem;
        border-radius: 10px;
        margin-bottom: 14px;
    }
}


/* ======================================================================
   RESPONSIVE — 400px (Ultra-Small Phones)
   ====================================================================== */
@media (max-width: 400px) {
    .seller-console-hero {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .console-hero-title {
        font-size: 1.05rem;
    }

    .metric-card {
        padding: 12px;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .metric-icon-box {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .metric-icon-box .svg-icon {
        width: 16px;
        height: 16px;
    }

    .dashboard-ad-card-mobile-img {
        width: 48px;
        height: 42px;
    }

    .dashboard-ad-card-mobile-title {
        font-size: 0.8rem;
    }
}


/* ======================================================================
   ======================================================================
   SUPERADMIN DASHBOARD COMPONENTS (sa- prefix)
   ======================================================================
   ====================================================================== */

/* ======================================================================
   Container Override
   ====================================================================== */
.sa-dashboard-container {
    margin-top: 28px;
    margin-bottom: 60px;
}

/* ======================================================================
   Admin Hero Banner
   ====================================================================== */
.sa-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    border-radius: 20px;
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18),
                0 4px 10px rgba(30, 27, 75, 0.1);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orb */
.sa-hero-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sa-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sa-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.sa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.sa-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: saDotPulse 2s ease-in-out infinite;
}

@keyframes saDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sa-hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sa-hero-subtitle {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

.sa-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sa-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 11px 20px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-hero-btn-primary {
    background: linear-gradient(135deg, #4F46E5, #6366f1);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.sa-hero-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.55);
    transform: translateY(-2px);
}

.sa-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0 !important;
    backdrop-filter: blur(4px);
}

.sa-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}


/* ======================================================================
   Stats Cards Grid
   ====================================================================== */
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sa-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-stat-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.sa-stat-card-alert {
    border-color: #fecaca;
}

.sa-stat-card-alert:hover {
    border-color: #fca5a5;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
}

.sa-stat-info {
    min-width: 0;
}

.sa-stat-label {
    font-size: 0.73rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sa-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sa-stat-value-red { color: #ef4444; }
.sa-stat-value-green { color: #059669; }

.sa-stat-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.sa-stat-sub-green { color: #10b981; font-weight: 600; }
.sa-stat-sub-red { color: #ef4444; font-weight: 600; }

.sa-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sa-stat-card:hover .sa-stat-icon {
    transform: scale(1.08);
}

.sa-stat-icon-default { background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; }
.sa-stat-icon-indigo { background: #eef2ff; color: #4F46E5; }
.sa-stat-icon-red { background: #fef2f2; color: #ef4444; }
.sa-stat-icon-green { background: #ecfdf5; color: #059669; }

.sa-stat-icon-text {
    font-weight: 900;
    font-size: 1rem;
}


/* ======================================================================
   Two-Column Layout
   ====================================================================== */
.sa-two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}


/* ======================================================================
   Panel Cards
   ====================================================================== */
.sa-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.sa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.sa-panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sa-panel-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    background: #eef2ff;
    transition: all 0.2s ease;
}

.sa-panel-link:hover {
    background: #e0e7ff;
    color: #4338ca;
}


/* ======================================================================
   Table Styles
   ====================================================================== */
.sa-table {
    font-size: 0.85rem;
}

.sa-table thead tr {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sa-table-title {
    font-weight: 700;
    color: #1e293b;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-table-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sa-table-title a:hover {
    color: #4F46E5;
}

.sa-table-category {
    color: #64748b;
    font-size: 0.84rem;
}

.sa-table-price {
    font-weight: 700;
    color: #059669;
}

.sa-table-empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px !important;
    font-size: 0.88rem;
}


/* ======================================================================
   Status Badges
   ====================================================================== */
.sa-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sa-badge-green { background: #dcfce7; color: #15803d; }
.sa-badge-amber { background: #fef3c7; color: #b45309; }
.sa-badge-gray { background: #f1f5f9; color: #64748b; }
.sa-badge-red { background: #fef2f2; color: #dc2626; }


/* ======================================================================
   Mobile Listing Card List (hidden on desktop)
   ====================================================================== */
.sa-panel-card-list {
    display: none;
}

.sa-listing-card-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.sa-listing-card-mobile + .sa-listing-card-mobile {
    margin-top: 8px;
}

.sa-listing-card-mobile:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.sa-listing-card-mobile-info {
    flex: 1;
    min-width: 0;
}

.sa-listing-card-mobile-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.sa-listing-card-mobile-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
}

.sa-listing-card-mobile-price {
    font-weight: 800;
    color: #059669;
}


/* ======================================================================
   Empty State
   ====================================================================== */
.sa-empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
    font-size: 0.88rem;
}

.sa-empty-state-clean {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sa-empty-state-clean .svg-icon {
    color: #10b981;
    width: 24px;
    height: 24px;
}


/* ======================================================================
   Report Cards
   ====================================================================== */
.sa-reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-report-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.sa-report-card:hover {
    border-color: #fecaca;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.06);
}

.sa-report-info {
    flex: 1;
    min-width: 0;
}

.sa-report-reason {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-report-listing {
    font-size: 0.74rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-report-btn {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sa-report-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}


/* ======================================================================
   RESPONSIVE — Superadmin 1100px
   ====================================================================== */
@media (max-width: 1100px) {
    .sa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-two-col {
        grid-template-columns: 1fr;
    }
}


/* ======================================================================
   RESPONSIVE — Superadmin 992px
   ====================================================================== */
@media (max-width: 992px) {
    .sa-dashboard-container {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .sa-hero-banner {
        border-radius: 16px;
        padding: 26px 24px;
    }

    .sa-hero-title {
        font-size: 1.4rem;
    }

    .sa-panel {
        padding: 18px;
        border-radius: 16px;
    }
}


/* ======================================================================
   RESPONSIVE — Superadmin 768px
   ====================================================================== */
@media (max-width: 768px) {
    .sa-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
        border-radius: 16px;
    }

    .sa-hero-title {
        font-size: 1.3rem;
    }

    .sa-hero-subtitle {
        font-size: 0.84rem;
    }

    .sa-hero-actions {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }

    .sa-hero-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .sa-stats-grid {
        gap: 12px;
    }

    .sa-stat-card {
        padding: 16px 18px;
        border-radius: 14px;
    }

    .sa-stat-value {
        font-size: 1.5rem;
    }

    .sa-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    /* Switch table to mobile cards */
    .sa-panel-table-wrap {
        display: none;
    }

    .sa-panel-card-list {
        display: block;
    }

    .sa-report-card {
        padding: 12px 14px;
    }
}


/* ======================================================================
   RESPONSIVE — Superadmin 576px
   ====================================================================== */
@media (max-width: 576px) {
    .sa-dashboard-container {
        margin-top: 16px;
        margin-bottom: 32px;
    }

    .sa-hero-banner {
        padding: 18px 16px;
        gap: 14px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .sa-hero-banner::before,
    .sa-hero-banner::after {
        display: none;
    }

    .sa-hero-badge {
        font-size: 0.62rem;
        padding: 4px 10px;
    }

    .sa-hero-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .sa-hero-subtitle {
        font-size: 0.8rem;
    }

    .sa-hero-actions {
        flex-direction: column;
    }

    .sa-hero-btn {
        font-size: 0.82rem;
        padding: 10px 16px;
        border-radius: 10px;
    }

    .sa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .sa-stat-card {
        padding: 14px;
        border-radius: 12px;
    }

    .sa-stat-label {
        font-size: 0.68rem;
    }

    .sa-stat-value {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }

    .sa-stat-sub {
        font-size: 0.72rem;
    }

    .sa-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .sa-panel {
        padding: 14px;
        border-radius: 14px;
    }

    .sa-panel-title {
        font-size: 0.95rem;
    }

    .sa-listing-card-mobile {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .sa-listing-card-mobile-title {
        font-size: 0.82rem;
    }

    .sa-listing-card-mobile-meta {
        font-size: 0.72rem;
    }

    .sa-report-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .sa-report-reason {
        white-space: normal;
    }

    .sa-report-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}


/* ======================================================================
   RESPONSIVE — Superadmin 400px
   ====================================================================== */
@media (max-width: 400px) {
    .sa-hero-banner {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .sa-hero-title {
        font-size: 1.05rem;
    }

    .sa-stat-card {
        padding: 12px;
    }

    .sa-stat-value {
        font-size: 1.2rem;
    }

    .sa-stat-icon {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .sa-stat-icon .svg-icon {
        width: 14px;
        height: 14px;
    }
}


/* --- Component: my-ads.css --- */
/* ==========================================================================
   ClasyAds - My Classified Listings & Kebab Actions (assets/css/my-ads.css)
   Compact Cards Layout Matching User Screenshot Dimensions Exactly
   ========================================================================== */

.my-ads-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.my-ads-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Capsule Filter Pills Bar */
.my-ads-filter-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 7px 18px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    color: #0f172a;
}

.filter-pill.active {
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* 3-Column Compact Responsive Grid */
.my-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 320px));
    gap: 16px;
    justify-content: start;
}

@media (max-width: 1100px) {
    .my-ads-grid {
        grid-template-columns: repeat(2, minmax(260px, 320px));
    }
}

@media (max-width: 768px) {
    .my-ads-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .my-ad-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Compact Horizontal Listing Card */
.my-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    overflow: visible;
    max-width: 320px;
    width: 100%;
}

.my-ad-card:hover,
.my-ad-card:focus-within,
.my-ad-card.kebab-open {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
    z-index: 100 !important;
}


/* Compact Square Image Thumbnail */
.my-ad-img-box,
.my-ad-thumb-box {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    position: relative;
}

.my-ad-img-box img,
.my-ad-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-ad-card:hover .my-ad-thumb-img,
.my-ad-card:hover .my-ad-img-box img {
    transform: scale(1.05);
}

/* Right Details Column */
.my-ad-body,
.my-ad-info-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.my-ad-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 2px;
}

.my-ad-item-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.my-ad-item-title a {
    color: #0f172a;
    text-decoration: none;
}

.my-ad-item-title a:hover {
    color: #4F46E5;
}

.my-ad-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #00966b;
    margin-bottom: 6px;
}

/* Compact Action Buttons Stack */
.my-ad-actions-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-action-cyan {
    background: #008ca3;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 140, 163, 0.2);
    transition: all 0.18s ease;
}

.btn-action-cyan:hover {
    background: #00768a;
    transform: translateY(-1px);
}

.btn-action-cyan.disabled {
    background: #e2e8f0;
    color: #64748b !important;
    box-shadow: none;
    cursor: default;
}

.btn-action-purple {
    background: #5745e5;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(87, 69, 229, 0.2);
    transition: all 0.18s ease;
}

.btn-action-purple:hover {
    background: #4534ca;
    transform: translateY(-1px);
}

.btn-action-republish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(5, 150, 105, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.2;
}

.btn-action-republish:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.38);
    color: #ffffff !important;
}

.btn-action-republish:hover .svg-icon {
    transform: rotate(180deg);
}

.btn-action-republish:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}

.btn-action-delete {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(225, 29, 72, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(244, 63, 94, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    line-height: 1.2;
}

.btn-action-delete:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.38);
    color: #ffffff !important;
}

.btn-action-delete:hover .svg-icon {
    transform: scale(1.18);
}

.btn-action-delete:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.2);
}

.btn-action-purple .svg-icon,
.btn-action-cyan .svg-icon,
.btn-action-republish .svg-icon,
.btn-action-delete .svg-icon {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.my-ad-dates-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    width: 100%;
}

.empty-bell-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Kebab 3-Dots Action Menu ("POST ACTIONS") */
.kebab-menu-wrap {
    position: relative;
    z-index: 105;
}

.kebab-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.kebab-btn .svg-icon {
    width: 16px;
    height: 16px;
}

.kebab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.kebab-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
    padding: 6px;
    display: none;
    z-index: 99999 !important;
}

.kebab-dropdown.show {
    display: block !important;
    animation: navSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.kebab-header {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.kebab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.kebab-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.kebab-item-bump {
    background: #eef2ff;
    color: #4F46E5 !important;
}

.kebab-item-bump:hover {
    background: #e0e7ff;
}

.kebab-item-edit {
    color: #059669 !important;
    font-weight: 700;
}

.kebab-item-edit:hover {
    background: #ecfdf5;
}

.kebab-item-delete {
    color: #ef4444 !important;
    font-weight: 700;
}

.kebab-item-delete:hover {
    background: #fef2f2;
}

@media (max-width: 576px) {
    .my-ads-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 12px;
    }

    .my-ad-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px;
        gap: 12px;
    }

    .my-ad-thumb-box,
    .my-ad-img-box {
        width: 80px;
        height: 80px;
        min-width: 80px;
        flex-shrink: 0;
    }

    .my-ad-info-box,
    .my-ad-body {
        flex: 1;
        min-width: 0;
    }

    .my-ad-item-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.35;
        font-size: 0.92rem;
        word-break: break-word;
    }

    .my-ad-actions-stack {
        flex-wrap: wrap;
        gap: 6px;
    }

    .my-ad-dates-row {
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 0.7rem;
    }

    .kebab-dropdown {
        max-width: calc(100vw - 32px);
    }
}



/* --- Component: storefront.css --- */
/* ==========================================================================
   ClasyAds - Public Storefront Components (assets/css/storefront.css)
   ========================================================================== */

.storefront-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    margin-bottom: 32px;
}

.storefront-cover-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    height: 140px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.tag-official-storefront {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.btn-storefront-edit {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-storefront-edit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.storefront-info-body {
    padding: 0 24px 24px;
    position: relative;
}

.storefront-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.storefront-logo-box {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    margin-top: -48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.storefront-seller-details {
    flex: 1;
    min-width: 240px;
    margin-top: 12px;
}

.storefront-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.storefront-seller-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.badge-pro-member {
    background: #fef3c7;
    color: #d97706;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fde68a;
}

.storefront-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

.storefront-metrics-pill-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 12px;
}

.storefront-metric-item {
    text-align: center;
}

.storefront-metric-item .metric-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.storefront-metric-item .metric-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* About Section */
.storefront-about-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.storefront-about-section .about-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.storefront-about-section .about-text-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* Published Storefront Ads Grid Section */
.storefront-published-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.published-ads-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.published-ads-count-badge {
    background: #eef2ff;
    color: #4F46E5;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.storefront-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.dashboard-content .ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .storefront-ads-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .dashboard-content .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .storefront-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-content .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .storefront-info-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .storefront-metrics-pill-box {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .storefront-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dashboard-content .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .storefront-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dashboard-content .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.storefront-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.storefront-ad-card:hover {
    transform: translateY(-5px);
    border-color: #4F46E5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.storefront-ad-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
}

.storefront-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.storefront-ad-body {
    padding: 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.storefront-ad-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    height: 2.8em;
}

.storefront-ad-title a {
    color: #0f172a;
    text-decoration: none;
}

.storefront-ad-title a:hover {
    color: #4F46E5;
}

.storefront-ad-loc {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 18px;
    height: 18px;
    min-height: 18px;
}

.storefront-ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.storefront-ad-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #059669;
}

.btn-view-ad-link {
    color: #4F46E5;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btn-view-ad-link:hover {
    color: #3730a3;
    text-decoration: underline;
}


/* --- Component: forms.css --- */
/* ==========================================================================
   ClasyAds - Form Controls & Photo Uploader Styles (assets/css/forms.css)
   ========================================================================== */

.form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* Custom Image Upload Dropzone */
.image-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-dropzone:hover {
    border-color: #4F46E5;
    background: #eef2ff;
}

.upload-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #4F46E5;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-thumb {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.form-control-no-icon {
    padding-left: 16px !important;
}

/* Authentication Pages (Login, Register, Forgot Password) */
/* Authentication Pages (Login, Register, Forgot Password - Matches Mockup) */
.signup-page-wrapper {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.signup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    position: relative;
}

.signup-avatar-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.signup-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 4px;
}

.signup-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

.signup-input-wrap {
    position: relative;
    width: 100%;
}

.signup-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.signup-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 46px;
    padding: 10px 14px 10px 40px;
    font-size: 0.88rem;
    color: #0f172a;
    width: 100%;
    outline: none;
    transition: all 0.15s ease;
}

.signup-input:focus {
    background: #ffffff;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.btn-toggle-password:hover,
.btn-toggle-password.active {
    color: #4F46E5;
}

.btn-primary-signup {
    width: 100%;
    background: #4F46E5;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    height: 48px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-signup:hover {
    background: #4338ca;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.signup-footer-link {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 16px;
    font-weight: 500;
}

.signup-footer-link a {
    color: #4F46E5;
    font-weight: 700;
    text-decoration: none;
}

.signup-footer-link a:hover {
    text-decoration: underline;
}

.signup-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
}

.signup-or-divider::before,
.signup-or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.signup-or-divider span {
    padding: 0 12px;
}

.btn-google-signup {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    height: 46px;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-google-signup:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.signup-security-badge {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Seller Edit Profile Layout (Matches User Mockup) */
.profile-page-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

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

.profile-avatar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.profile-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 12px;
}

.profile-avatar-img-box {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4F46E5;
    color: #ffffff;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.15s ease;
}

.profile-avatar-upload-btn:hover {
    background: #4338ca;
    transform: scale(1.05);
}

.profile-delete-photo-btn {
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.profile-delete-photo-btn:hover {
    text-decoration: underline;
}

.profile-seller-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 12px;
}

.profile-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.badge-verified-green {
    background: #dcfce7;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-helper-note {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Danger Zone Card */
.danger-zone-card {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
}

.danger-zone-rules-box {
    background: #ffffff;
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0;
}

.danger-zone-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.danger-zone-rules-list li {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
}

.danger-zone-rules-list strong {
    color: #0f172a;
}

.btn-danger-account {
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-danger-account:hover {
    background: #b91c1c;
}

/* Post / Edit Ad: Preferences Box & Featured Promo Box */
.ad-preferences-box {
    margin-top: 28px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ad-featured-promo-box {
    margin-top: 28px;
    margin-bottom: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ad-pref-inner-flex {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.ad-pref-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ad-promo-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ad-pref-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.ad-pref-heading {
    font-size: 0.98rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ad-promo-heading {
    font-size: 0.98rem;
    font-weight: 900;
    color: #92400e;
    margin: 0 0 4px 0;
}

.ad-pref-subheading {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.45;
}

.ad-promo-subheading {
    font-size: 0.82rem;
    color: #b45309;
    margin: 0 0 14px 0;
    line-height: 1.45;
}

.ad-pref-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    width: 100%;
}

.ad-pref-option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.ad-pref-option-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.ad-pref-option-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.ad-pref-option-text {
    flex: 1;
    min-width: 0;
}

.ad-pref-option-title {
    font-weight: 900;
    font-size: 0.90rem;
    color: #0f172a;
    display: block;
    line-height: 1.3;
}

.ad-pref-option-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
    margin-top: 3px;
    word-break: break-word;
}

.ad-promo-card-featured {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    width: 100%;
}

.ad-promo-card-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    box-sizing: border-box;
    width: 100%;
}

/* Mobile Responsive Adjustments for Forms */
@media (max-width: 576px) {
    .ad-preferences-box,
    .ad-featured-promo-box {
        margin-top: 20px !important;
        margin-bottom: 16px !important;
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .ad-pref-inner-flex {
        gap: 10px !important;
    }

    .ad-pref-icon-box,
    .ad-promo-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }

    .ad-pref-heading,
    .ad-promo-heading {
        font-size: 0.92rem !important;
    }

    .ad-pref-subheading,
    .ad-promo-subheading {
        font-size: 0.78rem !important;
        margin-bottom: 10px !important;
    }

    .ad-pref-options-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ad-pref-option-card {
        padding: 12px !important;
        gap: 10px !important;
    }

    .ad-pref-option-title {
        font-size: 0.86rem !important;
    }

    .ad-pref-option-desc {
        font-size: 0.74rem !important;
    }

    .ad-promo-card-featured,
    .ad-promo-card-empty {
        padding: 12px 10px !important;
    }

    .signup-page-wrapper {
        padding: 20px 12px;
    }

    .signup-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .signup-title {
        font-size: 1.3rem;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .form-control {
        height: 44px;
        font-size: 0.88rem;
    }

    .profile-page-grid {
        gap: 16px;
    }

    .profile-avatar-card {
        padding: 20px 16px;
    }

    .profile-details-card {
        padding: 20px 16px;
    }

    .danger-zone-card {
        padding: 18px 14px;
    }

    .image-upload-dropzone {
        padding: 20px 14px;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    }

    .preview-thumb {
        width: 72px;
        height: 72px;
    }
}



/* --- Component: finance.css --- */
/* ==========================================================================
   ClasyAds - Finance & Invoices Page (assets/css/finance.css)
   Modern UI/UX — Fully Desktop & Mobile Responsive Design System
   ========================================================================== */

/* ======================================================================
   Container & Layout (Desktop Fluid Responsive)
   ====================================================================== */
.sa-dashboard-container.fin-container,
.fin-container {
    max-width: 1600px !important;
    width: 100% !important;
    margin-top: 20px;
    margin-bottom: 60px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

.dashboard-content {
    min-width: 0;
    width: 100%;
}

/* ======================================================================
   Hero Header Banner (Desktop Responsive)
   ====================================================================== */
.fin-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #31104b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.fin-page-header::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
    pointer-events: none;
}

.fin-page-header-text {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.fin-header-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fin-header-badge {
    background: rgba(168, 85, 247, 0.22);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.fin-header-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.fin-header-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.fin-page-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.fin-page-subtitle {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-top: 6px;
    margin-bottom: 0;
    max-width: 650px;
    line-height: 1.5;
}

.fin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* ======================================================================
   Buttons System
   ====================================================================== */
.fin-btn {
    font-weight: 800;
    font-size: 0.84rem;
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.fin-btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fin-btn-purple:hover {
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.fin-btn-outline-purple {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.fin-btn-outline-purple:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.fin-btn-dark {
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid #1e293b;
}

.fin-btn-dark:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.fin-btn-gray {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}

.fin-btn-gray:hover {
    background: #e2e8f0;
}

.fin-btn-reset {
    background: #f1f5f9;
    color: #475569 !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.fin-btn-reset:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* ======================================================================
   Primary Stats Grid (Desktop 4-Column Layout)
   ====================================================================== */
.fin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.fin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.fin-stat-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.fin-stat-info {
    min-width: 0;
    flex: 1;
}

.fin-stat-label {
    font-size: 0.72rem;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fin-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 4px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fin-stat-sub {
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fin-stat-sub-green { color: #059669; }
.fin-stat-sub-amber { color: #d97706; }
.fin-stat-sub-purple { color: #7c3aed; }
.fin-stat-sub-blue { color: #2563eb; }

.fin-stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.fin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fin-stat-card:hover .fin-stat-icon {
    transform: scale(1.08);
}

.fin-stat-icon-green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.fin-stat-icon-amber { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.fin-stat-icon-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.fin-stat-icon-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ======================================================================
   Statutory GST Tax Breakdown (CGST, SGST, IGST) 3-Card Grid
   ====================================================================== */
.fin-gst-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.fin-gst-tax-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.fin-gst-tax-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.fin-gst-card-cgst {
    border-left: 4px solid #0284c7;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #bae6fd #e2e8f0 #e2e8f0 #0284c7;
}

.fin-gst-card-sgst {
    border-left: 4px solid #059669;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #bbf7d0 #e2e8f0 #e2e8f0 #059669;
}

.fin-gst-card-igst {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-color: #e9d5ff #e2e8f0 #e2e8f0 #7c3aed;
}

.fin-gst-tax-info {
    flex: 1;
    min-width: 0;
}

.fin-gst-tax-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fin-gst-tax-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    margin: 2px 0 3px;
}

.fin-gst-tax-sub {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.fin-gst-tax-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    flex-shrink: 0;
}

.fin-gst-icon-cgst {
    background: #e0f2fe;
    color: #0284c7;
}

.fin-gst-icon-sgst {
    background: #dcfce7;
    color: #059669;
}

.fin-gst-icon-igst {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Tax Classification Badges */
.fin-tax-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.fin-tax-badge-intra {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.fin-tax-badge-inter {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.fin-tax-badge-exempt {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Table Tax Breakdown Cell */
.fin-tax-details-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fin-tax-breakdown-sub {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: monospace;
}

.fin-tax-breakdown-sub .tax-line {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fin-tax-cgst-tag { color: #0284c7; font-weight: 700; }
.fin-tax-sgst-tag { color: #059669; font-weight: 700; }
.fin-tax-igst-tag { color: #7c3aed; font-weight: 700; }

/* ======================================================================
   Main Invoices Panel & Toolbar (Desktop)
   ====================================================================== */
.fin-invoices-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.fin-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.fin-search-wrap {
    position: relative;
    flex: 2 1 200px;
    min-width: 180px;
}

.fin-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.fin-search-input {
    border-radius: 12px;
    padding: 10px 14px 10px 40px;
    font-size: 0.86rem;
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.fin-search-input:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.fin-filter-select {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    flex: 1 1 140px;
    min-width: 130px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.fin-filter-select:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* ======================================================================
   Desktop Responsive Data Table
   ====================================================================== */
.fin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.fin-table-wrap::-webkit-scrollbar {
    height: 7px;
}

.fin-table-wrap::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.fin-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.fin-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.fin-table {
    font-size: 0.85rem;
    vertical-align: middle;
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}

.fin-table thead tr {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.fin-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 800;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    white-space: nowrap;
}

.fin-th-right { text-align: right !important; }

.fin-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.fin-table tbody tr:hover {
    background: #f8faff;
}

.fin-table tbody td {
    padding: 14px 12px;
    white-space: nowrap;
}

.fin-td-invoice-num {
    font-weight: 800;
    font-family: monospace;
}

.fin-td-invoice-num a {
    color: #7e22ce;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
    transition: color 0.15s;
    background: #f3e8ff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e9d5ff;
}

.fin-td-invoice-num a:hover {
    color: #6b21a8;
    background: #ede4ff;
}

.fin-td-customer-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fin-td-role-badge {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.fin-td-customer-email {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

.fin-service-badge {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.fin-td-amount {
    font-weight: 800;
    color: #334155;
}

.fin-td-discount {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 800;
}

.fin-td-gst {
    font-weight: 700;
    color: #64748b;
}

.fin-td-total {
    font-weight: 900;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: 'Outfit', sans-serif;
}

.fin-method-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    white-space: nowrap;
}

.fin-td-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.fin-td-actions {
    text-align: right;
}

.fin-table-empty {
    text-align: center;
    color: #94a3b8;
    padding: 48px 10px !important;
    font-size: 0.88rem;
}

/* ======================================================================
   Status Badges
   ====================================================================== */
.fin-status-badge {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.fin-status-paid { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.fin-status-pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.fin-status-failed { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fin-status-refunded { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }

/* ======================================================================
   Action Buttons (Desktop Table Row)
   ====================================================================== */
.fin-actions-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.fin-action-btn {
    font-weight: 800;
    font-size: 0.76rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.fin-action-view {
    background: #7e22ce;
    color: #ffffff !important;
}

.fin-action-view:hover {
    background: #6b21a8;
    color: #ffffff !important;
}

.fin-action-status {
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.fin-action-status:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.fin-action-delete {
    color: #ef4444 !important;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.fin-action-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ======================================================================
   Mobile Invoice Cards (hidden on desktop)
   ====================================================================== */
.fin-mobile-cards {
    display: none;
}

.fin-invoice-card-mobile {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.fin-invoice-card-mobile + .fin-invoice-card-mobile {
    margin-top: 10px;
}

.fin-invoice-card-mobile:hover {
    border-color: #d8b4fe;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.06);
}

.fin-invoice-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.fin-invoice-card-left {
    flex: 1;
    min-width: 0;
}

.fin-invoice-card-num {
    font-weight: 900;
    font-family: monospace;
    color: #7e22ce;
    font-size: 0.86rem;
    text-decoration: none;
}

.fin-invoice-card-num:hover {
    color: #6b21a8;
}

.fin-invoice-card-customer {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.88rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fin-invoice-card-email {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

.fin-invoice-card-right {
    text-align: right;
    flex-shrink: 0;
}

.fin-invoice-card-total {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 6px;
}

.fin-invoice-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.fin-invoice-card-date {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.fin-invoice-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-invoice-card-actions .fin-action-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.78rem;
}

/* ======================================================================
   Modals System (Desktop Responsive)
   ====================================================================== */
body.fin-modal-open .navbar,
body.fin-modal-open header,
body:has(.fin-modal-overlay[style*="display: flex"]) .navbar,
body:has(.fin-modal-overlay[style*="display: flex"]) header {
    z-index: 1 !important;
    pointer-events: none !important;
}

body.fin-modal-open .main-wrapper,
body:has(.fin-modal-overlay[style*="display: flex"]) .main-wrapper {
    position: relative !important;
    z-index: 999999999 !important;
}

.fin-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
}

.fin-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    margin: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.fin-modal-lg { max-width: 760px; }
.fin-modal-md { max-width: 540px; }
.fin-modal-sm { max-width: 480px; }
.fin-modal-xs { max-width: 400px; }

.fin-modal-header {
    padding: 18px 26px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.fin-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fin-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #7e22ce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 900;
    flex-shrink: 0;
}

.fin-modal-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.fin-modal-subtitle-mono {
    font-size: 0.78rem;
    color: #7e22ce;
    font-weight: 800;
    font-family: monospace;
}

.fin-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fin-modal-close:hover {
    background: #fef2f2;
    color: #ef4444;
}

.fin-modal-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

.fin-modal-close-simple {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.fin-modal-close-simple:hover {
    color: #ef4444;
}

.fin-modal-body {
    padding: 24px 26px;
    overflow-y: auto;
    flex: 1;
}

.fin-modal-footer {
    padding: 16px 26px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.fin-modal-btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 26px 20px;
}

/* ======================================================================
   Printable Invoice Inside Modal
   ====================================================================== */
.fin-inv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.fin-inv-company {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fin-inv-company-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7e22ce, #9333ea);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
}

.fin-inv-company-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.fin-inv-company-meta { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.fin-inv-gstin { color: #7e22ce; font-family: monospace; }
.fin-inv-hsn { color: #475569; font-family: monospace; }
.fin-inv-company-location { font-size: 0.75rem; color: #64748b; margin-top: 1px; }

.fin-inv-meta-right { text-align: right; }
.fin-inv-tax-badge { background: #f3e8ff; color: #7e22ce; font-size: 0.7rem; font-weight: 900; padding: 4px 12px; border-radius: 12px; letter-spacing: 0.05em; }
.fin-inv-num-big { font-size: 1.15rem; font-weight: 900; color: #0f172a; font-family: monospace; margin-top: 4px; }
.fin-inv-date { font-size: 0.78rem; color: #64748b; margin-top: 2px; }

.fin-inv-billed-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.fin-inv-label { font-size: 0.7rem; font-weight: 900; color: #64748b; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.fin-inv-cust-name { font-size: 1.02rem; font-weight: 900; color: #0f172a; font-family: 'Outfit', sans-serif; }
.fin-inv-cust-email { font-size: 0.82rem; color: #64748b; margin-top: 2px; }
.fin-inv-cust-location { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
.fin-inv-pay-right { text-align: right; }
.fin-inv-pay-method { font-size: 0.9rem; font-weight: 900; color: #7e22ce; font-family: monospace; }
.fin-inv-status-pill { margin-top: 6px; }

.fin-inv-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.fin-inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.fin-inv-table thead tr {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.fin-inv-table thead th { padding: 12px 14px; }
.fin-inv-th-left { text-align: left; }
.fin-inv-th-right { text-align: right; }
.fin-inv-table tbody td { padding: 16px 14px; }
.fin-inv-td-left { text-align: left; }
.fin-inv-td-right { text-align: right; }

.fin-inv-service-name { font-weight: 900; color: #0f172a; font-size: 0.9rem; }
.fin-inv-service-desc { font-size: 0.74rem; color: #64748b; margin-top: 2px; }
.fin-inv-amount { font-weight: 800; color: #334155; }
.fin-inv-discount { font-weight: 800; color: #ef4444; }
.fin-inv-amount-dark { font-weight: 800; color: #0f172a; }
.fin-inv-gst { font-weight: 700; color: #64748b; }
.fin-inv-total { font-weight: 900; color: #0f172a; font-size: 0.96rem; }

.fin-inv-summary-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.fin-inv-summary {
    width: 100%;
    max-width: 320px;
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fin-inv-summary-row {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-weight: 600;
}

.fin-inv-summary-val { font-weight: 800; color: #0f172a; }
.fin-inv-summary-discount { color: #ef4444; font-weight: 700; }
.fin-inv-summary-tax { color: #64748b; font-size: 0.82rem; }
.fin-inv-summary-tax span:last-child { font-weight: 700; }

.fin-inv-summary-total {
    border-top: 2px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.fin-inv-summary-total span:last-child { color: #7e22ce; }

.fin-inv-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ======================================================================
   Modal Form Inputs (Desktop 2-Column Grid)
   ====================================================================== */
.fin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.fin-form-group {
    display: flex;
    flex-direction: column;
}

.fin-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 6px;
}

.fin-input {
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 0.86rem;
    width: 100%;
    border: 1px solid #cbd5e1;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.fin-input:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}

/* ======================================================================
   Comprehensive Multi-Device Responsive System
   ====================================================================== */

/* Ultra Wide / 4K Screens (>= 1400px) */
@media (min-width: 1400px) {
    .fin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    .fin-gst-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .fin-stat-card {
        padding: 24px;
    }
    .fin-stat-value {
        font-size: 1.8rem;
    }
}

/* Standard Desktop / Laptops (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .fin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .fin-gst-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .fin-stat-card {
        padding: 18px;
    }
    .fin-stat-value {
        font-size: 1.45rem;
    }
    .fin-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Tablets Landscape & Small Laptops (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .fin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .fin-gst-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .fin-page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
    .fin-header-actions {
        width: 100%;
    }
    .fin-header-actions .fin-btn {
        flex: 1;
        justify-content: center;
    }
    .fin-filter-form {
        flex-wrap: wrap;
    }
    .fin-filter-select {
        min-width: 140px;
    }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 768px) {
    .fin-container {
        margin-top: 12px;
        margin-bottom: 40px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-content {
        min-width: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .fin-page-title {
        font-size: 1.35rem;
    }

    .fin-page-subtitle {
        font-size: 0.82rem;
    }

    .fin-page-header {
        padding: 18px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .fin-header-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .fin-header-actions .fin-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
    }

    /* 2 Columns on Tablets/Mobile for primary stats */
    .fin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .fin-stat-card {
        padding: 14px;
        border-radius: 16px;
    }

    .fin-stat-label {
        font-size: 0.68rem;
    }

    .fin-stat-value {
        font-size: 1.25rem;
        margin: 4px 0 2px;
    }

    .fin-stat-sub {
        font-size: 0.72rem;
    }

    .fin-stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    /* 1 Column for GST tax breakdown cards */
    .fin-gst-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .fin-gst-tax-card {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .fin-gst-tax-val {
        font-size: 1.25rem;
    }

    .fin-filter-form {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
        border-radius: 14px;
    }

    .fin-search-wrap,
    .fin-filter-select,
    .fin-filter-form .fin-btn,
    .fin-filter-form .fin-btn-reset {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    /* Mobile: switch table to rich touch-friendly cards */
    .fin-table-wrap {
        display: none !important;
    }

    .fin-mobile-cards {
        display: block !important;
    }

    .fin-invoices-panel {
        padding: 14px;
        border-radius: 16px;
    }

    /* Modal Mobile Adaptations */
    .fin-modal {
        border-radius: 18px;
        max-height: 94vh;
        width: 96vw;
        max-width: 96vw;
        margin: 8px auto;
    }

    .fin-modal-lg,
    .fin-modal-md,
    .fin-modal-sm,
    .fin-modal-xs {
        max-width: 96vw;
        width: 96vw;
    }

    .fin-modal-body {
        padding: 16px;
        max-height: calc(94vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fin-modal-header {
        padding: 14px 16px;
    }

    .fin-modal-header-left {
        gap: 10px;
    }

    .fin-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .fin-modal-footer .fin-btn {
        width: 100%;
        justify-content: center;
        min-width: 0;
    }

    .fin-inv-header {
        flex-direction: column;
        gap: 14px;
    }

    .fin-inv-meta-right {
        text-align: left;
    }

    .fin-inv-company-name {
        font-size: 1rem;
    }

    .fin-inv-billed-box {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .fin-inv-pay-right {
        text-align: left;
    }

    .fin-inv-summary-wrap {
        justify-content: stretch;
    }

    .fin-inv-summary {
        max-width: 100%;
        width: 100%;
    }

    .fin-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .fin-modal-btn-row {
        padding: 0 16px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .fin-modal-btn-row .fin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Smartphones (< 480px) */
@media (max-width: 480px) {
    .fin-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fin-stat-card {
        padding: 14px 16px;
    }

    .fin-stat-value {
        font-size: 1.35rem;
    }

    .fin-page-header {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .fin-page-title {
        font-size: 1.22rem;
    }

    .fin-invoice-card-mobile {
        padding: 12px;
        border-radius: 12px;
    }

    .fin-invoice-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fin-invoice-card-right {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }

    .fin-invoice-card-total {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .fin-invoice-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .fin-invoice-card-actions .fin-action-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
}

/* ======================================================================
   High-Definition Print Styles (Tax Invoice)
   ====================================================================== */
@media print {
    body * {
        visibility: hidden !important;
    }
    #viewInvoiceModal,
    #viewInvoiceModal * {
        visibility: visible !important;
    }
    #viewInvoiceModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    .fin-modal {
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .fin-modal-header,
    .fin-modal-footer,
    .fin-modal-close {
        display: none !important;
    }
    .fin-modal-body {
        padding: 0 !important;
    }
}




/* --- Component: footer.css --- */
/* ==========================================================================
   ClasyAds - Footer Layout & Links (assets/css/footer.css)
   Modern UI/UX — Fully Mobile Responsive
   ========================================================================== */

/* ---------- Footer Shell ---------- */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 56px 0 0;
    margin-top: 56px;
    color: #475569;
    position: relative;
}

/* ---------- Footer Grid ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ---------- Brand Column ---------- */
.footer-col-brand .brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    line-height: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.footer-col-brand .brand-logo:hover {
    opacity: 0.85;
}

.footer-col-brand p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

/* ---------- Column Titles ---------- */
.footer-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1e293b;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* ---------- Link Lists ---------- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.footer-links li a:hover {
    color: #4F46E5;
}

/* ---------- Footer Bottom Bar ---------- */
.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.footer-bottom-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.footer-social-inline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-social-inline a {
    color: #64748b;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-inline a:hover {
    color: #4F46E5;
    transform: translateY(-1px);
}

.footer-bottom-links-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
}

.footer-bottom-links-group a {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom-links-group a:hover {
    color: #4F46E5;
}

.footer-bottom-links-group .footer-rss-badge {
    color: #ea580c !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.footer-bottom-links-group .footer-rss-badge:hover {
    color: #c2410c !important;
}

/* ======================================================================
   RESPONSIVE — Mobile & Tablet (Matches reference design)
   ====================================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 36px 0 0;
        margin-top: 36px;
        background: #ffffff;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 18px !important;
        margin-bottom: 28px !important;
    }

    .footer-col-brand {
        grid-column: auto !important;
    }

    .footer-col-brand .brand-logo {
        font-size: 1.25rem !important;
        margin-bottom: 8px !important;
    }

    .footer-col-brand p {
        font-size: 0.78rem !important;
        line-height: 1.5 !important;
        color: #64748b !important;
        max-width: 100% !important;
    }

    .footer-title {
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.04em !important;
    }

    .footer-links {
        gap: 7px !important;
    }

    .footer-links li a {
        font-size: 0.8rem !important;
        color: #475569 !important;
        line-height: 1.35 !important;
    }

    .footer-bottom {
        padding: 20px 0 calc(env(safe-area-inset-bottom, 0px) + 85px) !important;
        gap: 12px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .footer-copyright {
        font-size: 0.75rem !important;
        color: #64748b !important;
    }

    .footer-bottom-nav-row {
        gap: 10px 14px !important;
    }

    .footer-social-inline {
        gap: 12px !important;
    }

    .footer-social-inline a {
        font-size: 0.92rem !important;
    }

    .footer-bottom-links-group {
        gap: 8px 12px !important;
    }

    .footer-bottom-links-group a {
        font-size: 0.76rem !important;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        gap: 24px 12px !important;
    }

    .footer-col-brand p {
        font-size: 0.74rem !important;
        line-height: 1.45 !important;
    }

    .footer-links li a {
        font-size: 0.78rem !important;
    }
}



/* --- Component: responsive.css --- */
/* ==========================================================================
   ClasyAds — Responsive Overrides & Mobile-First Breakpoints
   (assets/css/responsive.css)
   
   This file provides responsive overrides for inline-styled components
   across PHP pages (SuperAdmin, Seller, Contact, Ad Detail, etc.)
   using !important where necessary to override inline styles.
   ========================================================================== */


/* ==========================================================================
   BREAKPOINT: 1200px — Large Tablets & Small Desktops
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
}


/* ==========================================================================
   BREAKPOINT: 992px — Tablets & Dashboard Collapse
   ========================================================================== */
@media (max-width: 992px) {

    /* ---- Desktop Sidebar Hidden on Mobile & Tablets ---- */
    .sidebar-card,
    .sidebar-mobile-close {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .dashboard-layout {
        display: block !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    .dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* ---- Contact Page 2-Column → Stacked ---- */
    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* ---- Ad Detail Page → Stacked ---- */
    .ad-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* ---- SuperAdmin Settings Tab Nav → Scroll Strip ---- */
    .settings-tab-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px !important;
    }

    .settings-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .settings-tab-nav a {
        flex-shrink: 0;
        font-size: 0.82rem !important;
        padding: 8px 14px !important;
    }

    /* ---- SuperAdmin Settings Form Cards ---- */
    .settings-form-card {
        padding: 22px !important;
        border-radius: 16px !important;
    }

    /* ---- Superadmin 2-col form rows → stacked ---- */
    .settings-form-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ---- SuperAdmin Page Headers → wrap ---- */
    .page-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* ---- Seller Plans Grid → 2 cols ---- */
    .plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ---- Ad Detail Gallery ---- */
    .ad-gallery-main {
        height: 320px !important;
    }

    /* ---- Ad Detail Spec Grid ---- */
    .ad-spec-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ---- Admin Header Inline-Style Overrides ---- */
    .admin-label-desktop {
        display: none !important;
    }

    .navbar-inner > .nav-actions[style] {
        display: none !important;
    }

    .btn-signout-top {
        display: none !important;
    }
}


/* ==========================================================================
   BREAKPOINT: 768px — Tablet Portrait & Large Phones
   ========================================================================== */
@media (max-width: 768px) {

    /* ---- Global Typography Scaling ---- */
    h1 {
        font-size: 1.5rem !important;
    }

    /* ---- Container Tightening ---- */
    .container {
        padding: 0 14px;
    }

    /* ---- Contact Page ---- */
    .contact-page-grid {
        gap: 24px !important;
    }

    .contact-form-card {
        padding: 24px 20px !important;
        border-radius: 18px !important;
    }

    /* ---- SuperAdmin Settings Panels ---- */
    .settings-form-card {
        padding: 20px 16px !important;
    }

    .settings-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* ---- Ad Detail Page ---- */
    .ad-gallery-main {
        height: 280px !important;
    }

    .ad-gallery-thumbs {
        gap: 6px !important;
    }

    .ad-gallery-thumb {
        width: 56px !important;
        height: 56px !important;
    }

    /* ---- Seller Plans → 1 col ---- */
    .plans-grid {
        grid-template-columns: 1fr !important;
    }

    /* ---- Storefront Info ---- */
    .storefront-cover-banner {
        height: 110px;
    }

    .storefront-info-body {
        padding: 0 16px 20px;
    }

    .storefront-seller-name {
        font-size: 1.25rem;
    }

    .storefront-metrics-pill-box {
        gap: 16px;
        padding: 10px 16px;
    }

    /* ---- Ad Detail Spec Grid → 1 col on small tablets ---- */
    .ad-spec-grid {
        grid-template-columns: 1fr !important;
    }

    /* ---- Hide ad-date on mobile responsive ---- */
    .ad-date {
        display: none !important;
    }

    .ad-title {
        font-size: 0.875rem !important;
    }

    /* ---- Mobile Responsive: Ads Images Object-Fit Contain ---- */
    .ad-image-box,
    .search-ads-grid .ad-image-box,
    .search-ads-grid.list-view-mode .ad-image-box,
    .featured-slider-card .ad-image-box,
    .storefront-ad-card .ad-image-box,
    .my-ad-card .ad-image-box {
        background: #0f172a !important;
    }
    .search-ads-list .ad-image-box {
        background: #f8fafc !important;
    }

    .ad-image-box img,
    .ad-card .ad-image-box img,
    .ad-card img,
    .featured-slider-card .ad-image-box img,
    .featured-slider-card img,
    .search-ads-grid .ad-image-box img,
    .search-ads-list .ad-image-box img,
    .search-ads-grid.list-view-mode .ad-image-box img,
    .storefront-ad-card .ad-image-box img,
    .storefront-ad-img,
    .my-ad-image-box img,
    .my-ad-card-img,
    .ad-gallery-main img,
    #main-ad-gallery-stage img,
    .main-ad-gallery-stage img,
    .preview-image-box img,
    #preview_image {
        object-fit: contain !important;
    }
}


/* ==========================================================================
   BREAKPOINT: 576px — Mobile Phones
   ========================================================================== */
@media (max-width: 576px) {

    /* ---- Global ---- */
    .container {
        padding: 0 12px;
    }

    /* ---- Contact Page ---- */
    .contact-page-grid {
        gap: 20px !important;
    }

    .contact-form-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .contact-info-title {
        font-size: 1.6rem !important;
    }

    /* ---- SuperAdmin Settings ---- */
    .settings-tab-nav a {
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
    }

    .settings-tab-nav a span,
    .settings-tab-nav a svg {
        display: none;
    }

    .settings-form-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    .settings-card-header-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
    }

    .settings-card-title {
        font-size: 1rem !important;
    }

    .settings-card-sub {
        font-size: 0.78rem !important;
    }

    /* ---- Ad Detail Page ---- */
    .ad-detail-grid {
        gap: 16px !important;
    }

    .ad-gallery-main {
        height: 240px !important;
        border-radius: 14px !important;
    }

    .ad-gallery-thumb {
        width: 48px !important;
        height: 48px !important;
        border-radius: 8px !important;
    }

    .ad-detail-title {
        font-size: 1.3rem !important;
    }

    .ad-detail-price {
        font-size: 1.5rem !important;
    }

    /* ---- Seller Console Hero ---- */
    .console-hero-title {
        font-size: 1.25rem !important;
    }

    .console-hero-subtitle {
        font-size: 0.82rem;
    }

    .console-tags {
        flex-wrap: wrap;
    }

    /* ---- My Ads Cards ---- */
    .my-ads-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .my-ad-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px !important;
        gap: 12px !important;
    }

    .my-ad-thumb-box,
    .my-ad-img-box {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        flex-shrink: 0 !important;
    }

    .my-ad-info-box,
    .my-ad-body {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .my-ad-item-title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        line-height: 1.35 !important;
        font-size: 0.92rem !important;
        word-break: break-word !important;
    }

    .my-ad-actions-stack {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .my-ad-dates-row {
        flex-wrap: wrap !important;
        gap: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .kebab-dropdown {
        max-width: calc(100vw - 32px) !important;
    }

    .my-ads-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-ads-title {
        font-size: 1.35rem;
    }

    .my-ads-filter-pills {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .filter-pill {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* ---- Storefront ---- */
    .storefront-cover-banner {
        height: 90px;
        padding: 14px 16px;
    }

    .storefront-logo-box {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        margin-top: -36px;
    }

    .storefront-seller-name {
        font-size: 1.15rem;
    }

    .storefront-metrics-pill-box {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 12px;
    }

    .storefront-metric-item .metric-num {
        font-size: 1.1rem;
    }

    /* ---- Seller Post-Ad / Edit-Ad ---- */
    .post-ad-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .ad-preferences-box,
    .ad-featured-promo-box {
        margin-top: 18px !important;
        margin-bottom: 16px !important;
        padding: 14px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .ad-pref-inner-flex {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .ad-pref-icon-box,
    .ad-promo-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }

    .ad-pref-content {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .ad-pref-heading,
    .ad-promo-heading {
        font-size: 0.92rem !important;
        word-break: break-word !important;
    }

    .ad-pref-subheading,
    .ad-promo-subheading {
        font-size: 0.78rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .ad-pref-options-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .ad-pref-option-card {
        padding: 12px 10px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .ad-pref-option-title {
        font-size: 0.86rem !important;
        word-break: break-word !important;
    }

    .ad-pref-option-desc {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .ad-promo-card-featured,
    .ad-promo-card-empty {
        padding: 12px 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* ---- Footer ---- */
    .footer {
        padding: 32px 0 0;
        margin-top: 32px;
    }
}


/* ==========================================================================
   BREAKPOINT: 400px — Ultra-Small Phones
   ========================================================================== */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    /* ---- SuperAdmin Settings Tab Nav ultra-compact ---- */
    .settings-tab-nav a {
        padding: 6px 10px !important;
        font-size: 0.74rem !important;
    }

    /* ---- Ad Detail ---- */
    .ad-gallery-main {
        height: 200px !important;
    }

    .ad-detail-title {
        font-size: 1.15rem !important;
    }

    .ad-detail-price {
        font-size: 1.3rem !important;
    }

    /* ---- Contact ---- */
    .contact-info-title {
        font-size: 1.35rem !important;
    }

    .contact-form-card {
        padding: 16px 12px !important;
    }

    /* ---- Seller Console ---- */
    .console-hero-title {
        font-size: 1.1rem !important;
    }

    /* ---- My Ads ---- */
    .my-ads-title {
        font-size: 1.15rem;
    }

    /* ---- Cards border-radius ---- */
    .ad-card,
    .my-ad-card,
    .form-card,
    .dash-box,
    .metric-card,
    .sidebar-card {
        border-radius: 12px;
    }

    /* ---- Navigation pills ---- */
    .btn-primary-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .btn-secondary-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}


/* ==========================================================================
   Touch Target Improvements (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ensure all touch targets are at least 44px */
    .btn,
    .btn-primary-pill,
    .btn-secondary-pill,
    .nav-toggle-btn,
    .filter-pill,
    .dropdown-item,
    .kebab-item,
    .sidebar-link {
        min-height: 44px;
    }

    .sidebar-link {
        padding: 12px 14px;
    }

    .dropdown-item {
        padding: 10px 12px;
    }

    .kebab-item {
        padding: 10px 12px;
    }
}


/* ==========================================================================
   Interactive Hover Enhancements (Desktop Only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .ad-card {
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    border-color 0.25s ease;
    }

    .my-ad-card {
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .storefront-ad-card {
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .storefront-ad-card:hover {
        transform: translateY(-4px);
    }

    .category-card:hover {
        transform: translateY(-3px);
    }

    .metric-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

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

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

/* Disable hover effects on touch devices to prevent sticky hover */
@media (hover: none) {
    .ad-card:hover {
        transform: none;
    }

    .my-ad-card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    .category-card:hover .category-icon {
        transform: none;
    }
}


/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .mobile-bottom-nav,
    .sidebar-card,
    .footer {
        display: none !important;
    }

    .dashboard-layout {
        display: block !important;
    }

    body {
        padding: 0 !important;
    }

    .main-wrapper {
        animation: none !important;
    }
}

/* ======================================================================
   List View Mode Styles for Browse Ads Page
   ====================================================================== */
.search-ads-grid.list-view-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.search-ads-grid.list-view-mode .ad-card {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-ads-grid.list-view-mode .ad-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.search-ads-grid.list-view-mode .ad-image-box {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: auto !important;
    min-height: 170px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}

.search-ads-grid.list-view-mode .ad-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.search-ads-grid.list-view-mode .ad-card:hover .ad-image-box img {
    transform: scale(1.04) !important;
}

.search-ads-grid.list-view-mode .ad-body {
    flex: 1 1 auto !important;
    padding: 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

.search-ads-grid.list-view-mode .ad-title {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.search-ads-grid.list-view-mode .ad-title:hover {
    color: #4f46e5 !important;
}

.search-ads-grid.list-view-mode .ad-specs {
    font-size: 0.84rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.search-ads-grid.list-view-mode .ad-location {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.search-ads-grid.list-view-mode .ad-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 12px !important;
    margin-top: auto !important;
}

.search-ads-grid.list-view-mode .ad-price {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
}

.search-ads-grid.list-view-mode .ad-date {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .search-ads-grid.list-view-mode {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .search-ads-grid.list-view-mode .ad-card {
        display: flex !important;
        flex-direction: row !important;
        border-radius: 16px !important;
        min-height: 120px !important;
    }

    .search-ads-grid.list-view-mode .ad-image-box {
        width: 125px !important;
        min-width: 125px !important;
        max-width: 125px !important;
        height: auto !important;
        min-height: 120px !important;
        background: #0f172a !important;
    }

    .search-ads-grid.list-view-mode .ad-image-box img {
        object-fit: contain !important;
    }

    .search-ads-grid.list-view-mode .ad-body {
        padding: 10px 12px !important;
        flex: 1 1 auto !important;
    }

    .search-ads-grid.list-view-mode .ad-title {
        font-size: 0.88rem !important;
        margin-bottom: 4px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
    }

    .search-ads-grid.list-view-mode .ad-specs {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .search-ads-grid.list-view-mode .ad-location {
        font-size: 0.72rem !important;
        margin-bottom: 6px !important;
    }

    .search-ads-grid.list-view-mode .ad-footer-row {
        padding-top: 6px !important;
    }

    .search-ads-grid.list-view-mode .ad-price {
        font-size: 1rem !important;
    }

    .search-ads-grid.list-view-mode .ad-date {
        font-size: 0.7rem !important;
    }
}



