:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #d1fae5;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-alt: #e8eaef;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 4px 20px rgba(99,102,241,0.2);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 90px;
    --bg-warm: #ffedcc;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-light: #1e1b4b;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --accent: #34d399;
    --accent-hover: #10b981;
    --accent-light: #064e3b;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --info-light: #1e3a5f;
    --bg: #0b1120;
    --bg-card: #151d32;
    --bg-alt: #1a2440;
    --text-main: #f1f5f9;
    --text-muted: #7f8ea3;
    --text-light: #64748b;
    --border-color: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 4px 20px rgba(129,140,248,0.15);
    --bg-warm: #1c1510;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

option, optgroup {
    background-color: var(--bg-card);
    color: var(--text-main);
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ============================
   TOP BAR
   ============================ */
.top-bar {
    background: #1e1b4b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 36px;
    display: flex;
    align-items: center;
}
[data-theme="dark"] .top-bar { background: #0b1120; border-bottom-color: #1e293b; }

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.top-bar-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}
.top-bar-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.top-bar .lang-switch { margin-right: 0; }
.top-bar .lang-link { color: rgba(255,255,255,0.6); }
.top-bar .lang-link.active { color: #fff; background: rgba(255,255,255,0.12); }
.top-bar .lang-link:hover { color: #fff; }
.top-bar .lang-switch span { color: rgba(255,255,255,0.3) !important; }

/* ============================
   MAIN HEADER
   ============================ */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand img {
    height: 48px;
    width: auto;
    display: block;
}

@media (max-width: 320px) {
    .brand img {
        height: 40px;
    }
}

.header-ads-area {
    flex: 1;
    max-width: 728px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 992px) {
    .header-ads-area { display: none; }
}

.sidebar-ads-area {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Unified Ad Placeholder Style */
.empty-slot-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    align-self: stretch;
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-alt),
        var(--bg-alt) 10px,
        var(--bg-card) 10px,
        var(--bg-card) 20px
    );
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    gap: 0.4rem;
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.empty-slot-box:hover {
    border-color: var(--primary);
}

.empty-slot-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.empty-slot-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-family: monospace;
}

.detail-ad-bottom,
.detail-ad-top {
    margin: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}
.detail-ad-bottom > *,
.detail-ad-top > * { max-width: 100%; }

.search-ad-area {
    margin: 0 0 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}
.search-ad-area > * { max-width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-publish {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}
.btn-publish:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }

/* ============================
   NAVIGATION
   ============================ */
.header-nav {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
}
[data-theme="dark"] .header-nav { background: var(--bg-card); }

.header-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    height: 44px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }

.header-nav .nav-link {
    position: relative;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.header-nav .nav-link:hover { color: var(--text-main); background: var(--bg-alt); }
.header-nav .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    flex-shrink: 0;
    margin: 0 0.25rem;
}
.header-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ============================
   HERO COMPACT
   ============================ */
/* ============================
   HOME LAYOUT (two-column)
   ============================ */
.home-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.home-main { min-width: 0; }
.home-sidebar { position: sticky; top: 56px; }

/* ============================
   CATEGORY GRID
   ============================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cat-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    gap: 0.25rem;
}
.cat-grid-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text-main); }

.cat-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 0.25rem; }
.cat-label { font-size: 0.8rem; font-weight: 700; color: var(--text-main); }
.cat-count { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }
.cat-thumbs { display:flex; gap:2px; margin-top:0.4rem; justify-content:center; }
.cat-thumbs img { width:36px; height:27px; object-fit:cover; border-radius:3px; border:1px solid rgba(255,255,255,0.2); }

.cat-emploi:hover { border-color: #6366f1; }
.cat-emploi .cat-icon { color: #6366f1; }
.cat-ventes:hover { border-color: #f59e0b; }
.cat-ventes .cat-icon { color: #f59e0b; }
.cat-immo:hover { border-color: #10b981; }
.cat-immo .cat-icon { color: #10b981; }
.cat-services:hover { border-color: #3b82f6; }
.cat-services .cat-icon { color: #3b82f6; }
.cat-multi:hover { border-color: #ec4899; }
.cat-multi .cat-icon { color: #ec4899; }
.cat-auto:hover { border-color: #ef4444; }
.cat-auto .cat-icon { color: #ef4444; }

/* ============================
   HOME SECTION (recent listings)
   ============================ */
.home-section { margin-bottom: 1.5rem; }
.home-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.home-section-header h2 { font-size:1.15rem; font-weight:800; margin:0; }
.home-section-link { font-size:0.85rem; font-weight:600; color:var(--primary); text-decoration:none; display:inline-flex; align-items:center; gap:0.25rem; }
.home-section-link:hover { text-decoration:underline; }
.home-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem; }
@media (max-width:768px) { .home-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px) { .home-grid { grid-template-columns:1fr; } }
.home-grid-item { display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius); overflow:hidden; text-decoration:none; color:inherit; transition:var(--transition); }
.home-grid-item:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.home-grid-img { width:100%; height:140px; background:linear-gradient(135deg,#e2e8f0,#cbd5e1); overflow:hidden; }
.home-grid-img img { width:100%; height:100%; object-fit:cover; display:block; }
.home-grid-body { padding:0.65rem 0.75rem 0.75rem; display:flex; flex-direction:column; gap:0.2rem; }
.home-grid-cat { font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-light); }
.home-grid-title { font-size:0.9rem; font-weight:700; color:var(--text-main); line-height:1.3; }
.home-grid-meta { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.3rem; font-size:0.8rem; color:var(--text-muted); margin-top:0.15rem; }
.home-grid-price { font-weight:700; color:var(--primary); }

/* ============================
   SEARCH BAR (unified)
   ============================ */
.home-search-box { margin-bottom: 1.5rem; }

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 9999px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 56px;
    max-width: 960px;
    margin: 0 auto;
}
.dark .search-bar { box-shadow: 0 2px 12px rgba(0,0,0,0.25); }

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1rem;
    height: 100%;
    position: relative;
}
.search-field.search-keyword { flex: 1.8; min-width: 0; }
.search-field-select { min-width: 150px; }

.search-field .search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    flex-shrink: 0;
}

.search-field input,
.search-field select {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-main);
    font-family: var(--font);
}
.search-field input::placeholder { color: var(--text-light); opacity: 0.7; }

.search-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 1.5rem;
}

.search-field .chevron-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-light);
    pointer-events: none;
}

.search-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

.btn-search {
    height: 100%;
    padding: 0 1.75rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.btn-search:hover { opacity: 0.9; }
.btn-search svg { width: 16px; height: 16px; }

.search-keyword { position: relative; }
.search-suggestions {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    z-index: 100;
    box-shadow: var(--shadow-md);
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

@media (max-width: 640px) {
    .search-bar { border-radius: var(--radius); height: auto; flex-wrap: wrap; max-width: none; }
    .search-field { padding: 0.5rem 0.75rem; }
    .search-divider { display: none; }
    .btn-search { width: 100%; justify-content: center; padding: 0.75rem; border-radius: 0; }
}

/* ============================
   HOME LISTINGS
   ============================ */
.home-listings {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.home-listings-header {
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(255, 153, 0, 0.30);
    background: #FFF3E0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .home-listings-header {
    background: var(--bg-card);
    border-bottom-color: rgba(255, 153, 0, 0.50);
}
.home-listings-header h2 { font-size: 1rem; font-weight: 700; color: var(--text-main); }

.home-listings-tabs {
    display: flex;
    gap: 0.25rem;
}

.listing-tab {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.listing-tab:hover { border-color: #FF9900; color: #FF9900; }
.listing-tab.active { background: linear-gradient(135deg, #FF9900, #e68a00); color: #fff; border-color: transparent; }

.listing-tab-content { display: none; }
.listing-tab-content.active { display: block; }

.listing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-main);
    gap: 1.5rem;
    min-height: 60px;
}
.listing-row:last-child { border-bottom: none; }
.listing-row:hover { background: var(--primary-light); color: var(--text-main); }

.listing-row-title {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-transform: capitalize;
}

.listing-row-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.listing-row-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.listing-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    text-transform: capitalize;
}

.listing-badge.contract-cdi,
.listing-badge.contract-cdd,
.listing-badge.contract-stage,
.listing-badge.contract-freelance,
.listing-badge.contract-interim,
.listing-badge.contract-intérim,
.listing-badge.contract-saisonnier {
    background: #f3e8ff;
    color: #7c3aed;
}

.listing-badge.company {
    background: #fff7ed;
    color: #ea580c;
    font-size: 0.7rem;
}

.listing-badge.company::before {
    content: "\00B7";
    margin-right: 0.3rem;
    font-weight: 700;
    color: #f97316;
}

.listing-badge.logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
    display: block;
}

.listing-badge.logo {
    padding: 0;
    background: none;
}

.listing-row-hidden { display: none; }

.listing-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.listing-show-more:hover {
    background: var(--primary);
    color: #fff;
    border-style: solid;
}
.listing-show-more:hover .more-arrow {
    transform: translateX(3px);
}
.more-arrow {
    transition: transform 0.2s;
}

.home-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================
   SIDEBAR
   ============================ */
.sidebar-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}
.sidebar-publish-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); color: #fff; }

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-cities {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
}

.sidebar-city-list {
    list-style: none;
}
.sidebar-city-list li { margin-bottom: 0.1rem; }
.sidebar-city-list a {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.1rem 0;
    display: block;
    transition: var(--transition);
}
.sidebar-city-list a:hover { color: var(--primary); padding-left: 2px; }

.sidebar-all-cities {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.sidebar-all-cities:hover { background: var(--primary-light); }

/* ============================
   FOOTER PARTNERS
   ============================ */
.footer-partners {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-partners-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-partners-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    width: 100px;
    height: 40px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.82rem; transition: var(--transition); display: inline-block; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-brand p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.6rem; line-height: 1.6; }

.footer-brand img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .footer-brand img {
        height: 35px;
    }
}

.footer-socials { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--bg-alt);
    transition: var(--transition);
}
.footer-social-btn svg { width: 0.95rem; height: 0.95rem; fill: var(--text-muted); }
.footer-social-btn:hover { background: var(--primary-gradient); transform: translateY(-2px); }
.footer-social-btn:hover svg { fill: #fff; }

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ============================
   THEME TOGGLE
   ============================ */
/* ============================
   HEADER AUTH BUTTONS
   ============================ */
.header-login-btn,
.header-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.header-login-btn {
    color: var(--text-main);
    border: 1px solid var(--border-color);
    background: transparent;
}
.header-login-btn:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
}
.header-register-btn {
    color: #fff;
    background: var(--primary-gradient);
    border: 1px solid transparent;
}
.header-register-btn:hover {
    opacity: 0.9;
}
@media (max-width: 992px) {
    .header-login-btn,
    .header-register-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

/* ============================
   HAMBURGER (old)
   ============================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   OLD CLASSES KEPT FOR BACKWARDS COMPAT
   ============================ */
.lang-switch { display:flex; align-items:center; gap:0.3rem; }
.lang-link { font-size:0.8rem; font-weight:600; text-decoration:none; color:var(--text-muted); padding:0.25rem 0.5rem; border-radius:6px; transition:var(--transition); }
.lang-link.active { color:var(--primary); background:var(--primary-light); }
.lang-link:hover { color:var(--primary); }
html[dir="rtl"] .site-header .nav-right { flex-direction:row-reverse; }
html[dir="rtl"] .header-nav-inner { flex-direction: row-reverse; }

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: var(--primary-gradient);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.3); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-alt);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.35); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-success:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.35); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.btn-warning:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }

/* ============================
   NOTIFICATIONS
   ============================ */
.notif-bell {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.notif-bell:hover { background: var(--bg-alt); color: var(--primary); }
.notif-dot {
    position: absolute;
    top: 5px; right: 5px;
    width: 9px; height: 9px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
}
.notif-dropdown.open { display: block; }
.notif-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-alt);
    border-radius: var(--radius) var(--radius) 0 0;
}
.notif-header a { font-size:0.75rem; font-weight:600; color:var(--primary); cursor:pointer; }
.notif-header a:hover { color:var(--primary-hover); }
.notif-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-main);
    text-decoration: none;
    align-items: flex-start;
    transition: var(--transition);
}
.notif-item:hover { background: var(--bg-alt); }
.notif-item.unread { background: var(--primary-light); }
.notif-dot-small { width:8px; height:8px; border-radius:50%; background:var(--primary); flex-shrink:0; margin-top:0.35rem; }
.notif-time { font-size:0.72rem; color:var(--text-muted); margin-top:0.2rem; }
.notif-empty { padding:2rem; text-align:center; color:var(--text-muted); }

/* ============================
   USER MENU / DROPDOWN
   ============================ */
.user-menu { position: relative; display: flex; align-items: center; }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
}
.user-avatar:hover { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.15); transform: scale(1.05); }
.user-avatar img { width:100%; height:100%; object-fit:cover; }
.user-avatar span { font-size:0.85rem; font-weight:700; color:var(--primary); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.open { display: block; }

.user-dropdown-header {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
}
.user-dropdown-name { font-weight:700; font-size:0.9rem; color:var(--text-main); }
.user-dropdown-email { font-size:0.78rem; color:var(--text-muted); margin-top:0.15rem; word-break:break-all; }
.user-dropdown-divider { height:1px; background:var(--border-color); margin:0; }
.user-dropdown a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.user-dropdown a.logout-link { color: var(--danger); }
.user-dropdown a.logout-link:hover { background: rgba(239,68,68,0.1); color: var(--danger-hover); }

.notif-wrapper { position: relative; display: inline-flex; }

/* ============================
   AUTH PAGES
   ============================ */
.auth-page { display:flex; justify-content:center; align-items:center; min-height:70vh; padding:2rem 1rem; }

.auth-card {
    width:100%; max-width:420px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.auth-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--primary-gradient); }
.auth-card h1 { font-size:1.4rem; margin-bottom:0.3rem; font-weight:700; }
.auth-card .subtitle { color:var(--text-muted); font-size:0.85rem; margin-bottom:1.5rem; }

/* ============================
   FORMS
   ============================ */
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:0.8rem; font-weight:600; color:var(--text-muted); margin-bottom:0.3rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width:100%; padding:0.7rem 0.9rem;
    border:1.5px solid var(--border-color);
    border-radius:var(--radius-sm);
    font-size:0.9rem;
    background:var(--bg-card);
    color:var(--text-main);
    font-family:var(--font);
    transition:var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline:none; border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(99,102,241,0.1);
}

/* Fix checkbox size - override the 100% width */
.form-group input[type="checkbox"] {
    width: auto;
    height: auto;
}

.form-footer { text-align:center; margin-top:1.2rem; font-size:0.85rem; color:var(--text-muted); }
.form-footer a { font-weight:600; }

/* ============================
   ALERTS
   ============================ */
.alert {
    padding:0.8rem 1rem 0.8rem 2.5rem; border-radius:var(--radius-sm);
    margin-bottom:1rem; font-size:0.85rem; font-weight:500;
    position:relative; line-height:1.5;
}
.alert::before {
    position:absolute; left:0.75rem; top:50%; transform:translateY(-50%);
    font-size:1.1rem; font-weight:700;
}
.alert-error { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.alert-error::before { content:"!"; color:#dc2626; }
.alert-success { background:var(--accent-light); color:#065f46; border:1px solid #a7f3d0; border-left:4px solid #22c55e; }
.alert-success::before { content:"\2713"; color:#22c55e; font-size:1.2rem; }
.alert-info { background:var(--info-light); color:#1e40af; border:1px solid #bfdbfe; border-left:4px solid #3b82f6; }
.alert-info::before { content:"i"; color:#3b82f6; font-style:italic; font-size:1rem; }

/* ============================
   PROFILE LAYOUT
   ============================ */
.profile-layout { display:grid; grid-template-columns:220px 1fr; gap:2rem; padding:2rem 0; min-height:70vh; }

.profile-sidebar {
    background:var(--bg-card); border:1px solid var(--border-color);
    border-radius:var(--radius); padding:1.2rem;
    height:fit-content; box-shadow:var(--shadow-sm);
}
.profile-sidebar h3 { font-size:0.9rem; margin-bottom:0.8rem; color:var(--text-main); font-weight:700; }
.profile-nav { list-style:none; }
.profile-nav li { margin-bottom:0.2rem; }
.profile-nav a {
    display:block; padding:0.5rem 0.7rem;
    border-radius:var(--radius-sm); font-size:0.85rem;
    color:var(--text-muted); transition:var(--transition);
}
.profile-nav a:hover,
.profile-nav a.active { background:var(--primary-light); color:var(--primary); font-weight:600; }

.profile-content { min-width:0; }

.page-title { font-size:1.5rem; font-weight:800; margin-bottom:0.3rem; }
.page-subtitle { color:var(--text-muted); font-size:0.9rem; margin-bottom:1rem; }

/* ============================
   CARDS
   ============================ */
.card {
    background:var(--bg-card); border:1px solid var(--border-color);
    border-radius:var(--radius); padding:1.25rem;
    margin-bottom:1rem; transition:var(--transition);
    box-shadow:var(--shadow-sm);
}
.card:hover { box-shadow:var(--shadow); }
.card h3 { font-size:1rem; margin-bottom:0.5rem; }

/* ============================
   TABLES
   ============================ */
.table-wrap { overflow-x:auto; border-radius:var(--radius-sm); border:1px solid var(--border-color); }
table { width:100%; border-collapse:collapse; font-size:0.85rem; }
th, td { padding:0.65rem 0.85rem; text-align:left; border-bottom:1px solid var(--border-color); }
th { font-weight:700; color:var(--text-muted); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.04em; background:var(--bg-alt); }
tr:hover td { background:var(--bg-alt); }
tr:last-child td { border-bottom:none; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

.tag { display:inline-block; padding:0.15rem 0.5rem; border-radius:99px; font-size:0.72rem; font-weight:600; }
.tag-pending { background:#fef3c7; color:#92400e; }
.tag-accepted { background:var(--accent-light); color:#065f46; }
.tag-rejected { background:#fef2f2; color:#991b1b; }
.tag-expired { background:var(--bg-alt); color:var(--text-muted); }
.tag-approved { background:var(--accent-light); color:#065f46; }
.tag-pending-admin { background:#fef3c7; color:#92400e; }
.tag-rejected-admin { background:#fef2f2; color:#991b1b; }

select { background:var(--bg-card); color:var(--text-main); }
.status-select { padding:0.35rem 0.5rem; border:1.5px solid var(--border-color); border-radius:var(--radius-sm); font-size:0.8rem; background:var(--bg-card); color:var(--text-main); cursor:pointer; transition:var(--transition); }
.status-select:focus { border-color:var(--primary); outline:none; }

/* ============================
   ADMIN GRID
   ============================ */
/* ============================
   JOB CARDS (original)
   ============================ */
/* ============================
   PAGINATION
   ============================ */
.pagination-container { margin:2.5rem 0; display:flex; flex-direction:column; align-items:center; gap:0.75rem; }
.pagination-info { font-size:0.85rem; color:var(--text-muted); font-weight:500; }
.pagination { display:flex; justify-content:center; align-items:center; gap:0.3rem; flex-wrap:wrap; }
.page-link { display:inline-flex; align-items:center; justify-content:center; min-width:2.4rem; height:2.4rem; padding:0 0.6rem; border-radius:var(--radius-sm); border:1.5px solid var(--border-color); background:var(--bg-card); color:var(--text-main); font-size:0.85rem; font-weight:600; transition:var(--transition); text-decoration:none; cursor:pointer; user-select:none; }
.page-link:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.page-link.active { background:var(--primary-gradient); border-color:transparent; color:#fff; box-shadow:0 4px 12px rgba(99,102,241,0.3); transform:translateY(-2px); }
.page-link.prev-next { font-size:0.8rem; padding:0 1.2rem; gap:0.3rem; }
.page-link.prev-next:hover { background:var(--primary-gradient); color:#fff; border-color:transparent; box-shadow:0 4px 12px rgba(99,102,241,0.2); }
.page-dots { color:var(--text-muted); padding:0 0.2rem; font-weight:700; letter-spacing:0.1em; }

/* ============================
   EMPTY STATE
   ============================ */
.empty-state { text-align:center; padding:3rem 1rem; color:var(--text-muted); }
.empty-state p { font-size:1rem; }

/* ============================
   EMAIL WARNING
   ============================ */
.email-warning { background:linear-gradient(135deg,#fef3c7,#fde68a); color:#92400e; padding:0.5rem 1rem; text-align:center; font-size:0.82rem; font-weight:500; }
.email-warning a { color:#92400e; text-decoration:underline; font-weight:700; }
.email-warning-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:0.5rem; flex-wrap:wrap; }
[data-theme="dark"] .email-warning { background:linear-gradient(135deg,#422006,#5c2e0a); color:#fbbf24; }
[data-theme="dark"] .email-warning a { color:#fbbf24; }

/* Dark‑mode overrides for contact page components */
[data-theme="dark"] .alert-error {
    background:#2d1b1b;
    color:#fca5a5;
    border:1px solid #9f1239;
    border-left:4px solid #ef4444;
}
[data-theme="dark"] .alert-success {
    background:#1b2d1b;
    color:#86efac;
    border:1px solid #166534;
    border-left:4px solid #22c55e;
}
[data-theme="dark"] .alert-info {
    background:#1b1f2d;
    color:#93c5fd;
    border:1px solid #3b82f6;
    border-left:4px solid #3b82f6;
}
[data-theme="dark"] .info-box {
    background:#1e293b;
    border:1px solid var(--border-color);
    color:var(--text-muted);
}
[data-theme="dark"] .tag-pending,
[data-theme="dark"] .tag-pending-admin { background:#422006; color:#fbbf24; }
[data-theme="dark"] .tag-rejected,
[data-theme="dark"] .tag-rejected-admin { background:#2d1b1b; color:#fca5a5; }
[data-theme="dark"] .tag-approved,
[data-theme="dark"] .tag-accepted { background:#064e3b; color:#6ee7b7; }
[data-theme="dark"] .info-box a {
    color:var(--accent);
}

/* Dark mode overrides for detail page content */
[data-theme="dark"] .description-content {
    color: #e2e8f0;
}
[data-theme="dark"] .description-content span,
[data-theme="dark"] .description-content p,
[data-theme="dark"] .description-content div,
[data-theme="dark"] .description-content li {
    color: inherit !important;
    background-color: transparent !important;
}
[data-theme="dark"] .description-content a {
    color: #818cf8 !important;
}
[data-theme="dark"] .description-content blockquote {
    background: #1e293b;
    border-left-color: #818cf8;
    color: #cbd5e1;
}
[data-theme="dark"] .description-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}
[data-theme="dark"] .description-content code {
    color: #f472b6;
}
[data-theme="dark"] .description-content h1,
[data-theme="dark"] .description-content h2,
[data-theme="dark"] .description-content h3,
[data-theme="dark"] .description-content h4 {
    color: #f1f5f9;
}

/* Dark mode detail badges */
[data-theme="dark"] .detail-badge.price,
[data-theme="dark"] .detail-badge.city,
[data-theme="dark"] .detail-badge.cat,
[data-theme="dark"] .detail-badge.views,
[data-theme="dark"] .detail-badge.date {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

/* Dark mode rich text editor content */
[data-theme="dark"] .re-body {
    color: #e2e8f0;
}
[data-theme="dark"] .re-body span,
[data-theme="dark"] .re-body p,
[data-theme="dark"] .re-body div,
[data-theme="dark"] .re-body li {
    color: inherit !important;
    background-color: transparent !important;
}
[data-theme="dark"] .re-body a {
    color: #818cf8 !important;
}
[data-theme="dark"] .re-body blockquote {
    background: #1e293b;
    border-left-color: #818cf8;
    color: #cbd5e1;
}
[data-theme="dark"] .re-body pre {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}
[data-theme="dark"] .re-body code {
    color: #f472b6;
}
[data-theme="dark"] .re-body h1,
[data-theme="dark"] .re-body h2,
[data-theme="dark"] .re-body h3,
[data-theme="dark"] .re-body h4 {
    color: #f1f5f9;
}
[data-theme="dark"] .re-body table th,
[data-theme="dark"] .re-body table td {
    border-color: #334155;
}
[data-theme="dark"] .re-body table th {
    background: #1e293b;
}

/* Modern Contact Form */
.modern-contact-card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow-md); border:1px solid var(--border-color); overflow:hidden; transition:var(--transition); position:relative; margin:2rem 0; }
.modern-contact-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--primary-gradient); opacity:0; transition:var(--transition); }
.modern-contact-card:hover::before { opacity:1; }
.modern-contact-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.modern-contact-form { padding:2.5rem; }
.modern-contact-form .form-group { margin-bottom:2rem; }
.modern-contact-form label { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.8rem; font-weight:600; color:var(--text-main); font-size:1rem; }
.modern-contact-form label::before { content:''; width:4px; height:4px; background:var(--primary); border-radius:50%; }
.modern-contact-form input,
.modern-contact-form textarea { width:100%; padding:1rem 1.2rem; border:2px solid var(--border-color); border-radius:var(--radius-sm); font-size:1rem; font-family:var(--font); background:var(--bg-card); color:var(--text-main); transition:var(--transition); box-sizing:border-box; }
.modern-contact-form input:focus,
.modern-contact-form textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(99,102,241,0.1); transform:translateY(-2px); }
.modern-contact-form textarea { min-height:180px; resize:vertical; line-height:1.5; }
.modern-contact-form .btn-modern { width:100%; padding:1.2rem; background:var(--primary-gradient); border:none; border-radius:var(--radius-sm); font-size:1.1rem; font-weight:700; color:white; cursor:pointer; transition:var(--transition); display:flex; align-items:center; justify-content:center; gap:0.8rem; letter-spacing:0.5px; text-transform:uppercase; box-shadow:0 4px 15px rgba(99,102,241,0.3); position:relative; overflow:hidden; }
.modern-contact-form .btn-modern:hover { transform:translateY(-3px); box-shadow:0 8px 25px rgba(99,102,241,0.4); }
.modern-contact-form .btn-modern::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent); transition:left 0.5s; }
.modern-contact-form .btn-modern:hover::before { left:100%; }

/* Modern Dashboard */
.modern-profile-layout { display:grid; grid-template-columns:260px 1fr; gap:2rem; align-items:start; padding:2rem 0; min-height:70vh; }
.modern-profile-sidebar { background:var(--bg-card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--border-color); height:fit-content; position:sticky; top:80px; }
.profile-header { display:flex; align-items:center; gap:1rem; padding:1.5rem; border-bottom:1px solid var(--border-color); }
.profile-avatar { width:50px; height:50px; background:var(--primary-gradient); color:white; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1.5rem; border-radius:50%; flex-shrink:0; }
.profile-info { flex:1; }
.profile-name { font-size:1rem; font-weight:600; color:var(--text-main); margin:0; }
.profile-email { font-size:0.8rem; color:var(--text-muted); margin-top:0.2rem; }
.profile-nav { display:flex; flex-direction:column; }
.nav-item { display:flex; align-items:center; padding:1rem 1.5rem; text-decoration:none; color:var(--text-muted); border-radius:0; transition:var(--transition); font-weight:500; border-left:3px solid transparent; white-space:nowrap; }
.nav-item:hover { background:var(--bg-alt); color:var(--text-main); }
.nav-item.active { background:var(--primary-light); color:var(--primary); border-left-color:var(--primary); font-weight:600; }
.nav-icon { font-size:1.1rem; margin-right:0.75rem; width:20px; display:inline-flex; align-items:center; }
.modern-dashboard-card { background:var(--bg-card); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--border-color); margin-bottom:1.5rem; transition:var(--transition); }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.analytics-card { background: var(--bg-card); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); }
.analytics-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.analytics-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.analytics-info { display: flex; flex-direction: column; }
.analytics-value { font-size: 1.5rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.analytics-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.dashboard-card-header { padding:1.5rem; border-bottom:1px solid var(--border-color); background:var(--bg-alt); }
.dashboard-card-header h2 { margin:0; font-size:1.1rem; font-weight:600; color:var(--text-main); }
.dashboard-card-content { padding:1.5rem; }
.application-card { background:var(--bg-card); border-radius:var(--radius-sm); border:1px solid var(--border-color); padding:1.5rem; margin-bottom:1rem; transition:var(--transition); }
.application-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.jobs-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:1.5rem; }
.job-item-card { background:var(--bg-card); border-radius:var(--radius); border:1px solid var(--border-color); padding:1.5rem; transition:var(--transition); display:flex; flex-direction:column; box-shadow:var(--shadow-sm); }
.job-item-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--primary); }

/* ============================
   STATIC PAGES (marocannonces style)
   ============================ */
.page-wrap { max-width:1100px; margin:0 auto; padding:1.5rem; }
.page-layout { display:flex; gap:2rem; }
.page-main { flex:1; min-width:0; }
.page-side { width:260px; flex-shrink:0; }

.page-title { font-size:1.5rem; font-weight:700; margin:0 0 0.25rem; color:var(--text-main); }
.page-subtitle { font-size:0.9rem; color:var(--text-muted); margin:0 0 1rem; }

.page-section { margin-bottom:1.5rem; }
.page-section h2 { font-size:1.05rem; font-weight:700; margin:0 0 0.75rem; color:var(--text-main); }
.page-section h3 { font-size:0.95rem; font-weight:600; margin:1rem 0 0.5rem; color:var(--text-main); }
.page-section p { font-size:0.9rem; line-height:1.7; color:var(--text-muted); margin:0 0 0.75rem; }
.page-section p:last-child { margin-bottom:0; }
.page-section a { color:var(--primary); }

.info-box { background:#f8fafc; border:1px solid var(--border-color); border-radius:var(--radius-sm); padding:1rem 1.25rem; margin-bottom:1rem; font-size:0.88rem; line-height:1.6; color:var(--text-muted); }
.info-box a { color:var(--primary); font-weight:500; }

.contact-form { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-sm); padding:1.25rem; }
.contact-form .form-group { margin-bottom:1rem; }
.contact-form label { display:block; font-size:0.82rem; font-weight:600; margin-bottom:0.3rem; color:var(--text-main); }
.contact-form .required { color:var(--danger); }
.contact-form input, .contact-form textarea, .contact-form select { width:100%; padding:0.55rem 0.7rem; border:1px solid var(--border-color); border-radius:5px; background:var(--bg-card); font-size:0.9rem; color:var(--text-main); box-sizing:border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 2px rgba(99,102,241,0.12); }
.contact-form textarea { resize:vertical; min-height:100px; }
.contact-form .btn { margin-top:0.5rem; }

/* Side quick-links (marocannonces style) */
.quick-sell { background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-sm); padding:1.25rem; }
.quick-sell h3 { font-size:0.95rem; font-weight:700; margin:0 0 0.75rem; padding-bottom:0.5rem; border-bottom:2px solid var(--primary); }
.quick-sell-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.5rem; }
.quick-sell-item { display:block; text-align:center; padding:0.6rem 0.3rem; border:1px solid var(--border-color); border-radius:5px; text-decoration:none; font-size:0.78rem; color:var(--text-main); transition:var(--transition); }
.quick-sell-item:hover { border-color:var(--primary); color:var(--primary); }
.quick-sell-item .qs-icon { display:block; font-size:1.2rem; margin-bottom:0.2rem; }
.quick-sell-link { display:block; text-align:center; margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid var(--border-color); font-size:0.85rem; font-weight:600; color:var(--primary); text-decoration:none; }

.values-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:0.75rem; margin-top:0.75rem; }
.value-card { text-align:center; padding:1rem 0.75rem; background:var(--bg-alt); border-radius:var(--radius-sm); }
.value-card .vc-icon { font-size:1.6rem; margin-bottom:0.25rem; }
.value-card .vc-title { font-weight:700; font-size:0.88rem; }
.value-card .vc-desc { font-size:0.8rem; color:var(--text-muted); margin-top:0.2rem; }

/* Error pages */
.error-page { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:2rem 1rem; }
.error-box { text-align:center; max-width:420px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:var(--radius-sm); padding:2.5rem 2rem; }
.error-box .code { font-size:3.5rem; font-weight:800; color:var(--primary); line-height:1; margin-bottom:0.75rem; }
.error-box h1 { font-size:1.2rem; font-weight:700; margin:0 0 0.5rem; }
.error-box p { color:var(--text-muted); margin:0 0 1.25rem; font-size:0.9rem; line-height:1.6; }
.error-box .actions { display:flex; gap:0.6rem; justify-content:center; flex-wrap:wrap; }

/* FAQ */
.faq-block { margin-bottom:2rem; }
.faq-block h2 { font-size:1.05rem; font-weight:700; margin:0 0 0.75rem; padding-bottom:0.4rem; border-bottom:2px solid var(--primary); }
.faq-item { padding:0.75rem 0; border-bottom:1px solid var(--border-color); }
.faq-item:last-child { border-bottom:none; }
.faq-item summary { font-weight:600; cursor:pointer; font-size:0.9rem; color:var(--text-main); }
.faq-item p { margin-top:0.6rem; font-size:0.88rem; color:var(--text-muted); line-height:1.7; }
.faq-item a { color:var(--primary); }

@media (max-width:768px) {
    .page-layout { flex-direction:column; }
    .page-side { width:100%; }
}

/* ============================
   SKELETON
   ============================ */
.skeleton-line { height:14px; border-radius:6px; background:linear-gradient(90deg,var(--bg-alt) 25%,var(--border-color) 50%,var(--bg-alt) 75%); background-size:200% 100%; animation:skeleton-shimmer 1.5s ease-in-out infinite; margin-bottom:10px; }
.skeleton-line-sm { width:60%; height:12px; }
.skeleton-line-lg { width:85%; height:16px; }
.skeleton-card { background:var(--bg-card); border-radius:var(--radius); padding:1.25rem; border:1px solid var(--border-color); margin-bottom:1rem; }
.skeleton-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(90deg,var(--bg-alt) 25%,var(--border-color) 50%,var(--bg-alt) 75%); background-size:200% 100%; animation:skeleton-shimmer 1.5s ease-in-out infinite; flex-shrink:0; }
@keyframes skeleton-shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

/* ============================
   PRINT
   ============================ */
@media print { body{background:#fff!important;color:#000!important}.site-header,.site-footer,.btn,.btn-apply-card,.notif-wrapper,.user-menu,.hamburger,.btn-save-job,.ad-slot,.email-warning,#cookieConsent,.btn-ghost,.btn-primary,.pagination,.pagination-info,.sort-bar,.filter-bar,#search-filters,.mobile-nav-overlay{display:none!important}.card,.modern-dashboard-card,.job-card{box-shadow:none!important;border:1px solid #ddd!important;break-inside:avoid}.container,main{max-width:100%!important;padding:0!important}a{color:#000!important;text-decoration:underline!important}.badge{border:1px solid #ccc!important;background:#f5f5f5!important;color:#000!important} }

/* ============================
   SUGGEST ITEM
   ============================ */
.suggest-item:hover { background: var(--bg-alt); color: var(--primary); }

/* ============================
   COOKIE CONSENT
   ============================ */
#cookieConsent { position:fixed; bottom:0; left:0; right:0; z-index:9999; background:var(--bg-card); border-top:1px solid var(--border-color); padding:1rem 1.5rem; box-shadow:0 -4px 20px rgba(0,0,0,0.1); display:none; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
#cookieConsent p { margin:0; font-size:0.88rem; color:var(--text-main); }
#cookieConsent .cookie-btns { display:flex; gap:0.5rem; flex-shrink:0; }
#cookieConsent .cookie-btns button { padding:0.5rem 1.2rem; border-radius:var(--radius-sm); font-weight:600; font-size:0.85rem; cursor:pointer; border:none; }
#cookieConsent .btn-accept { background:var(--primary-gradient); color:#fff; }
#cookieConsent .btn-decline { background:var(--bg-alt); color:var(--text-main); border:1px solid var(--border-color); }

/* ============================
   LISTING CARDS (Ventes)
   ============================ */
.listing-card { background:var(--bg-card); border-radius:var(--radius); border:1px solid var(--border-color); overflow:hidden; transition:var(--transition); display:flex; flex-direction:column; }
.listing-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--primary); }
.listing-img { width:100%; height:200px; object-fit:cover; transition:var(--transition); }
.listing-card:hover .listing-img { transform:scale(1.03); }
.listing-card-body { padding:1rem; flex:1; display:flex; flex-direction:column; }
.listing-title { font-size:1rem; font-weight:700; color:var(--text-main); margin-bottom:0.3rem; }
.listing-price { font-size:1.2rem; font-weight:800; background:var(--primary-gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom:0.5rem; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { position: static; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-links .top-bar-link:nth-child(n+5) { display: none; }
    .header-main { padding: 0.5rem 1rem; gap: 0.75rem; height: 60px; }
    .header-search { max-width: none; }
    .header-search-form input { font-size: 0.8rem; }
    .hamburger { display: flex; }
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    .header-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .header-nav-inner {
        flex-direction: column;
        height: auto;
        padding: 0.5rem;
        overflow-y: auto;
        max-height: calc(100vh - 130px);
    }
    .header-nav .nav-link {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    .header-nav .nav-link.active::after { display: none; }
    body.menu-open { overflow: hidden; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .cat-grid-item { padding: 0.75rem 0.4rem; }
    .cat-icon { font-size: 1.5rem; }
    .cat-label { font-size: 0.72rem; }
    .home-search-row { flex-direction: column; align-items: stretch; gap: 1rem; }
    .home-search-field { width: 100%; }
    .home-search-field label { text-align: left; }
    .home-search-action { width: 100%; }
    .btn-search-home { width: 100%; justify-content: center; }
    .home-listings-header { flex-direction: column; align-items: flex-start; }
    .home-listings-tabs { width: 100%; }
    .listing-tab { flex: 1; text-align: center; font-size: 0.7rem; padding: 0.25rem 0.5rem; }
    .listing-row { padding: 0.5rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-height: 0; }
    .listing-row-title { width: 100%; }
    .listing-row-meta { width: 100%; justify-content: space-between; }
    .listing-row-badges {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.25rem;
        flex-wrap: wrap;
    }



    .sidebar-cities { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-partners-logos { gap: 1rem; }
    .partner-logo { width: 70px; height: 30px; }
    .notif-dropdown { width: 300px; right: -2rem; }
    .profile-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .job-header { flex-direction: column; }
}

@media (max-width: 480px) {
    .top-bar { height: 30px; }
    .top-bar-link { font-size: 0.68rem; padding: 0.15rem 0.4rem; }
    .header-main { height: 54px; padding: 0.4rem 0.75rem; }
    .brand { font-size: 1.3rem; }
    .btn-publish { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .home-layout { padding: 0.75rem; }
    .sidebar-cities { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-title { font-size: 1.2rem; }
    .auth-card { padding: 1.5rem; }
}

/* ============================
   ANNONCE DETAIL PAGE
   ============================ */
.detail-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.detail-header { padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.detail-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; margin-bottom: 0.75rem; transition: var(--transition); }
.detail-back:hover { color: var(--primary); }
.detail-title { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin: 0 0 0.75rem; line-height: 1.3; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.detail-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.8rem; border-radius: 99px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.detail-badge.price { background: var(--primary-gradient); color: #fff; font-size: 1rem; font-weight: 800; padding: 0.35rem 1rem; }
.detail-badge.city { background: var(--accent-light); color: var(--accent-hover); }
.detail-badge.cat { background: var(--info-light); color: #1e40af; }
.detail-badge.views { background: var(--bg-alt); color: var(--text-muted); }
.detail-badge.date { background: var(--bg-alt); color: var(--text-muted); }
.detail-gallery-wrap { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-color); }
.product-gallery { display:flex; flex-direction:column; gap:0.75rem; }
.gallery-main { width:100%; aspect-ratio: 16/9; max-height: 50vh; border-radius:var(--radius); overflow:hidden; background:var(--bg-alt); cursor:zoom-in; display:flex; align-items:center; justify-content:center; }
.gallery-main img { max-width:100%; max-height:100%; object-fit:contain; display:block; transition:opacity 0.25s ease; }
.gallery-thumbs { display:flex; gap:0.5rem; flex-wrap:wrap; }
.gallery-thumb { width:72px; height:72px; border-radius:var(--radius-sm); object-fit:cover; border:2px solid transparent; cursor:pointer; opacity:0.7; transition:var(--transition); background:linear-gradient(135deg,#e2e8f0,#cbd5e1); }
.gallery-thumb:hover { opacity:1; }
.gallery-thumb.active { border-color:var(--primary); opacity:1; }
.detail-body { padding: 1.5rem 2rem; }
.detail-section { margin-bottom: 1.5rem; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.detail-section h2 svg { color: var(--primary); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.detail-section p { font-size: 0.92rem; line-height: 1.75; color: var(--text-muted); margin: 0; white-space: pre-wrap; }
.detail-header-content { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: nowrap; }
.detail-header-left { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.detail-company-line { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.company-logo { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-logo-fallback { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--primary); font-size: 1.5rem; }

.description-content { font-size: 0.92rem; line-height: 1.75; color: var(--text-main); overflow-wrap: break-word; }
.description-content h1, .description-content h2, .description-content h3, .description-content h4 { margin: 1em 0 .4em; line-height: 1.25; }
.description-content p { margin-bottom: .9em; white-space: normal; }
.description-content ul, .description-content ol { padding-left: 1.5em; margin-bottom: .9em; }
.description-content blockquote { border-left: 4px solid var(--primary); margin: 1.25em 0; padding: .75em 1.25em; background: var(--bg-alt); border-radius: 0 8px 8px 0; font-style: italic; }
.description-content pre { background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 6px; padding: 1rem; overflow-x: auto; }
.description-content img { max-width: 100%; border-radius: 8px; }
.detail-contact-card { background: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius-sm); padding: 1.25rem; }
.detail-contact-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-main); }
.detail-contact-row a { color: var(--primary); font-weight: 600; text-decoration: none; }
.detail-contact-row a:hover { text-decoration: underline; }
.detail-footer { padding: 1rem 2rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; background: var(--bg-alt); font-size: 0.82rem; }
.detail-report a { color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: var(--transition); }
.detail-report a:hover { color: var(--danger); }
.related-card { display: flex; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-main); transition: var(--transition); gap: 0.75rem; align-items: center; }
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.related-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; color: var(--primary); }
.related-info { flex: 1; min-width: 0; }
.related-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.fav-btn:hover { border-color: var(--danger) !important; color: var(--danger) !important; background: rgba(239,68,68,0.06) !important; }
.fav-btn.active { border-color: var(--danger) !important; color: var(--danger) !important; background: rgba(239,68,68,0.1) !important; }
.fav-btn.active svg { fill: var(--danger); }

/* Contact reveal */
.reveal-contact-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.2rem; background: linear-gradient(135deg, #FF9900, #e68a00); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: var(--transition); margin-top: 0.5rem; }
.reveal-contact-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,153,0,0.35); }
.contact-placeholder { color: var(--text-muted); font-size: 0.88rem; }
.btn-postuler { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.5rem; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-postuler:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.35); color: #fff; }

/* Verified badge */
.verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #1d4ed8; color: #fff; border-radius: 50%; vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

/* WhatsApp share button */
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; background: #25D366; color: #fff; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; }
.btn-whatsapp:hover { background: #128C7E; color: #fff; transform: translateY(-1px); }

/* Sticky bottom CTA bar */
.sticky-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 0.75rem 1rem; display: flex; gap: 0.5rem; align-items: center; justify-content: center; z-index: 200; transform: translateY(100%); transition: transform 0.3s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar .btn-cta-call { flex: 1; max-width: 160px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1rem; background: var(--primary-gradient); color: #fff; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); }
.sticky-cta-bar .btn-cta-call:hover { opacity: 0.9; }

/* Recently viewed strip */
.recently-viewed-section { margin-bottom: 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.recently-viewed-header { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border-color); background: var(--bg-alt); }
.recently-viewed-header h3 { font-size: 0.8rem; font-weight: 700; margin: 0; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.recently-viewed-list { display: flex; overflow-x: auto; scrollbar-width: none; }
.recently-viewed-list::-webkit-scrollbar { display: none; }
.rv-item { display: flex; flex-direction: column; padding: 0.5rem 0.85rem; border-right: 1px solid var(--border-color); text-decoration: none; color: var(--text-main); transition: var(--transition); flex-shrink: 0; min-width: 140px; max-width: 160px; }
.rv-item:last-child { border-right: none; }
.rv-item:hover { background: var(--primary-light); }
.rv-item-title { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-item-city { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Image upload preview grid */
.image-preview-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.image-preview-grid .preview-thumb { position: relative; width: 80px; height: 80px; }
.image-preview-grid .preview-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); display: block; }
.image-preview-grid .preview-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--danger); color: #fff; border: none; border-radius: 50%; font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0; }

/* Status Indicators */
.status-indicator { display:inline-flex; align-items:center; padding:0.25rem 0.6rem; border-radius:20px; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.status-approved { background:rgba(46, 204, 113, 0.15); color:#2ecc71; border:1px solid rgba(46, 204, 113, 0.3); }
.status-pending { background:rgba(243, 156, 18, 0.15); color:#f39c12; border:1px solid rgba(243, 156, 18, 0.3); }
.status-rejected { background:rgba(231, 76, 60, 0.15); color:#e74c3c; border:1px solid rgba(231, 76, 60, 0.3); }

/* Confirm modal (delete, etc.) */
.confirm-modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px);
    display:none; align-items:center; justify-content:center; z-index:9999;
    animation:fadeIn .2s ease;
}
.confirm-modal-overlay.active { display:flex; }
.confirm-modal {
    background:var(--bg-card); border-radius:var(--radius); padding:2rem;
    max-width:420px; width:90%; box-shadow:0 25px 60px rgba(0,0,0,0.3);
    text-align:center; animation:scaleIn .25s ease;
}
.confirm-modal-icon {
    width:56px; height:56px; border-radius:50%; background:#fef2f2; color:#ef4444;
    display:flex; align-items:center; justify-content:center; margin:0 auto 1rem;
    font-size:1.5rem;
}
.confirm-modal h3 { margin:0 0 0.5rem; font-size:1.1rem; font-weight:700; color:var(--text-main); }
.confirm-modal p { margin:0 0 1.5rem; font-size:0.88rem; color:var(--text-muted); line-height:1.6; }
.confirm-modal-actions { display:flex; gap:0.75rem; justify-content:center; }
.confirm-modal-actions button {
    padding:0.6rem 1.5rem; border-radius:var(--radius-sm); font-size:0.88rem;
    font-weight:600; cursor:pointer; border:none; transition:all .2s;
}
.confirm-modal-actions .btn-cancel { background:var(--bg-alt); color:var(--text-muted); }
.confirm-modal-actions .btn-cancel:hover { background:var(--border-color); }
.confirm-modal-actions .btn-danger { background:#ef4444; color:#fff; }
.confirm-modal-actions .btn-danger:hover { background:#dc2626; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:scale(1); } }

@media (max-width: 768px) {
    .detail-header { padding: 1.25rem; }
    .detail-gallery-wrap { padding: 1rem 1.25rem; }
    .detail-body { padding: 1.25rem; }
    .detail-footer { padding: 0.75rem 1.25rem; flex-direction: column; text-align: center; }
    .detail-title { font-size: 1.2rem; }
    .detail-badges { gap: 0.35rem; }
    .gallery-main { max-width: 100%; height: 280px; }
    .sticky-cta-bar { padding: 0.6rem 0.75rem; gap: 0.35rem; }
    .modern-profile-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .modern-profile-sidebar { position: static; height: auto; }
}

/* Modern message button */
.msg-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(99,102,241,0.25);
    letter-spacing: 0.3px;
}
.msg-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
    color: #fff;
}
.msg-btn-modern svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Messaging System ===== */
.main-messaging-wrapper { max-width:1200px; margin:0 auto; width:100%; }
.msg-c-wrap { margin:0; padding:0; }
.msg-wrapper { display:flex; background:var(--bg-card); border-radius:7px; overflow:hidden; box-shadow:var(--shadow); min-height:600px; }
.msg-sidebar { width:262px; flex-shrink:0; background:var(--bg-card); display:flex; flex-direction:column; border-right:1px solid var(--border-color); }
.msg-sidebar-top { background:var(--bg-card); padding:12px 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border-color); }
.msg-sidebar-top .profile-img { width:50px; height:50px; border-radius:40px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:1rem; overflow:hidden; border:1px solid var(--border-color); }
.msg-sidebar-top .profile-img img { width:100%; height:100%; object-fit:cover; border-radius:40px; }
.msg-search { background:var(--bg-card); padding:10px 15px; border-bottom:1px solid var(--border-color); }
.msg-search .input-wrapper { background:var(--bg); border-radius:40px; display:flex; align-items:center; padding:0 0 0 12px; border:1px solid var(--border-color); }
.msg-search .input-wrapper svg { color:var(--text-light); vertical-align:middle; flex-shrink:0; }
.msg-search input { border:none; border-radius:30px; width:80%; padding:10px 8px; font-size:0.85rem; color:var(--text-main); font-family:var(--font); background:transparent; }
.msg-search input::placeholder { color:var(--text-muted); font-weight:300; }
.msg-search input:focus { outline:none; }
.msg-list { flex:1; overflow-y:auto; padding:0; }
.msg-list::-webkit-scrollbar { width:4px; }
.msg-list::-webkit-scrollbar-thumb { background:var(--primary); border-radius:99px; }
.msg-item { padding:10px 15px; display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; background:var(--bg-card); transition:.3s ease; position:relative; }
.msg-item.unread { background:var(--msg-unread-bg, #f8faff); }
[data-theme="dark"] .msg-item.unread { --msg-unread-bg: #1a2440; }
.msg-item.unread .msg-item-name { font-weight:700; }
.msg-item.unread .msg-item-preview { font-weight:600; color:var(--text-main); }
.msg-item:hover { background:var(--primary); cursor:pointer; }
.msg-item:hover .msg-item-name,
.msg-item:hover .msg-item-preview,
.msg-item:hover .msg-item-time { color:#fff !important; }
.msg-item.unread:hover .msg-item-name,
.msg-item.unread:hover .msg-item-preview,
.msg-item.unread:hover .msg-item-time { color:#fff !important; }
.msg-item.active { background:var(--primary); }
.msg-item.active .msg-item-name,
.msg-item.active .msg-item-preview,
.msg-item.active .msg-item-time { color:#fff !important; }
.msg-item-avatar { width:50px; height:50px; border-radius:40px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:600; color:#fff; font-size:1rem; position:relative; overflow:hidden; }
.msg-item-avatar img { width:100%; height:100%; object-fit:cover; border-radius:40px; }
.msg-item-avatar .user-status { width:10px; height:10px; border-radius:50%; border:2px solid var(--bg-card); position:absolute; bottom:-1px; right:-1px; }
.msg-item-avatar .user-status.online { background:var(--accent); }
.msg-item-avatar .user-status.offline { background:var(--text-light); }
.msg-item-body { flex:1; min-width:0; margin-left:12px; width:70%; }
.msg-item-name { font-weight:600; font-size:0.9rem; color:var(--text-main); margin-top:6px; margin-bottom:0; }
.msg-item-preview { font-size:0.8rem; color:var(--text-muted); margin:0; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.msg-item-time { color:var(--text-muted); font-size:0.75rem; white-space:nowrap; flex-shrink:0; margin-top:6px; }
.msg-badge { display:inline-block; min-width:18px; height:18px; line-height:18px; text-align:center; font-size:0.65rem; font-weight:600; border-radius:9px; background:var(--danger); color:#fff; padding:0 5px; }
.msg-divider-hr { border:0; border-top:1px solid var(--border-color); margin:5px auto; width:60%; display:block; }
.msg-main.center-chat-container { flex:1; min-width:0; max-width:500px; margin:0 auto; display:flex; flex-direction:column; background:var(--bg-card); }
.msg-header { background:var(--bg-card); padding:12px 15px; display:flex; align-items:center; gap:12px; flex-shrink:0; border-bottom:1px solid var(--border-color); }
.msg-header .back-link { color:var(--text-light); text-decoration:none; display:flex; align-items:center; margin-right:4px; }
.msg-header .back-link svg { width:22px; height:22px; }
.msg-header-avatar { width:40px; height:40px; border-radius:40px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:600; color:#fff; font-size:0.9rem; overflow:hidden; }
.msg-header-avatar img { width:100%; height:100%; object-fit:cover; border-radius:40px; }
.msg-header-info { flex:1; min-width:0; margin-left:4px; }
.msg-header-info h6 { margin:0; font-weight:600; font-size:0.95rem; color:var(--text-main); }
.msg-header-info .msg-seen { margin:0; color:var(--text-muted); font-size:0.8rem; }
.msg-thread { flex:1; overflow-y:auto; max-height:30rem; padding:24px; background:var(--bg-card); display:flex; flex-direction:column; }
.msg-thread::-webkit-scrollbar { width:5px; }
.msg-thread::-webkit-scrollbar-thumb { background:var(--primary); border-radius:99px; }
.msg-bubble { display:flex; margin-bottom:20px; max-width:min(70%,520px); position:relative; align-items:flex-start; gap:0; animation:msgFadeIn .3s ease; }
.msg-bubble.received { align-self:flex-start; }
.msg-bubble.sent { align-self:flex-end; flex-direction:row-reverse; }
.msg-bubble .chat-avatar { display:none; }
.msg-bubble .ctext-wrap { display:flex; flex-direction:column; min-width:0; }
.msg-bubble .ctext-wrap-content { padding:10px 14px; border-radius:9px; position:relative; font-size:0.88rem; line-height:1.5; font-family:var(--font); margin:10px 30px; max-width:100%; width:max-content; overflow-wrap:anywhere; word-break:break-word; hyphens:auto; }
.msg-bubble.received .ctext-wrap-content { background:var(--bg-alt); color:var(--text-main); }
.msg-bubble.sent .ctext-wrap-content { background:var(--primary); color:#fff; margin-left:auto; }
.msg-bubble .ctext-wrap-content:after { content:''; position:absolute; top:50%; width:0; height:0; border:20px solid transparent; border-bottom:0; margin-top:-10px; }
.msg-bubble.received .ctext-wrap-content:after { left:0; border-right-color:var(--bg-alt); border-left:0; margin-left:-20px; }
.msg-bubble.sent .ctext-wrap-content:after { right:0; border-left-color:var(--primary); border-right:0; margin-right:-20px; }
.msg-bubble-meta { font-size:0.7rem; margin-top:4px; padding:0 4px; }
.msg-bubble.sent .msg-bubble-meta { text-align:right; color:var(--text-light); }
.msg-bubble.received .msg-bubble-meta { color:var(--text-light); }
.msg-divider { font-size:0.75rem; background:var(--bg-alt); padding:4px 14px; border-radius:20px; color:var(--text-muted); width:fit-content; margin:8px auto; font-weight:500; }
.msg-reply { background:var(--bg-card); display:flex; align-items:center; padding:12px 15px; flex-shrink:0; border-top:1px solid var(--border-color); }
.msg-reply .reply-icon { color:var(--text-light); cursor:pointer; transition:.3s; display:flex; align-items:center; flex-shrink:0; border:none; background:none; padding:0; }
.msg-reply .reply-icon:hover { color:var(--primary); }
.msg-reply .reply-icon svg { width:26px; height:26px; }
.msg-reply .reply-icon:last-of-type { margin-left:25px; }
.reply-icon-wrap { position:relative; display:flex; }
.emoji-picker { display:none; position:absolute; bottom:100%; left:0; margin-bottom:8px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:12px; box-shadow:var(--shadow-md); padding:8px; z-index:100; }
.emoji-picker.open { display:block; }
.emoji-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:2px; }
.emoji-grid span { font-size:24px; line-height:1; cursor:pointer; padding:4px; border-radius:6px; text-align:center; transition:background .15s; }
.emoji-grid span:hover { background:var(--bg); }
.msg-reply textarea { border:1px solid var(--border-color); background:var(--bg); border-radius:20px; flex:1; padding:8px 12px; font-size:0.88rem; resize:none; font-family:var(--font); min-height:36px; margin:0 10px; color:var(--text-main); }
.msg-reply textarea:focus { outline:none; }
.msg-reply button { background:none; border:none; cursor:pointer; padding:0; }
.msg-empty { text-align:center; padding:3rem 1.5rem; color:var(--text-light); }
.msg-empty p { font-size:1rem; font-weight:600; margin:0 0 0.25rem; color:var(--text-muted); }
.back-link { font-size:0.85rem; color:var(--text-light); text-decoration:none; display:flex; align-items:center; gap:4px; white-space:nowrap; }
.back-link:hover { color:var(--primary); }
.new-msg-form { max-width:100%; }
.new-msg-form .form-group { margin-bottom:1.25rem; }
.new-msg-form label { display:flex; align-items:center; gap:0.3rem; font-size:0.88rem; font-weight:500; margin-bottom:0.4rem; color:var(--text-main); }
.new-msg-form input, .new-msg-form textarea, .new-msg-form select { width:100%; padding:0.65rem 1rem; border:1px solid var(--border-color); border-radius:var(--radius-sm); font-size:0.88rem; box-sizing:border-box; background:var(--bg-card); color:var(--text-main); font-family:var(--font); transition:.2s; }
.new-msg-form input:focus, .new-msg-form textarea:focus, .new-msg-form select:focus { outline:none; border-color:var(--primary); }
.new-msg-form textarea { min-height:120px; resize:vertical; }
.btn-msg { display:inline-flex;align-items:center;gap:0.5rem; padding:0.6rem 1.5rem; background:var(--primary-gradient); color:#fff; border:none; border-radius:var(--radius-sm); font-size:0.88rem; font-weight:600; cursor:pointer; transition:opacity .2s; text-decoration:none; font-family:var(--font); }
.btn-msg:hover { opacity:0.9; }
.btn-msg-outline { display:inline-flex;align-items:center;gap:0.5rem; padding:0.6rem 1.5rem; background:transparent; color:var(--text-muted); border:1px solid var(--border-color); border-radius:var(--radius-sm); font-size:0.88rem; font-weight:500; cursor:pointer; text-decoration:none; transition:all .2s; font-family:var(--font); }
.btn-msg-outline:hover { border-color:var(--primary); color:var(--primary); }
@keyframes msgFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:768px) {
    .msg-c-wrap { padding:0; margin:0; }
    .msg-wrapper { flex-direction:column; min-height:auto; border-radius:0; box-shadow:none; }
    .msg-sidebar { width:100%; border-right:0; }
    .msg-main { width:100%; }
    .msg-thread { max-height:20rem; padding:12px; }
    .msg-bubble { max-width:90%; }
    .msg-bubble .ctext-wrap-content { margin:10px 15px; }
    .msg-header { padding:10px 12px; }
    .msg-reply { padding:10px 12px; }
}
/* Loading states */
.fav-btn.loading { opacity:0.5; pointer-events:none; }
.fav-btn.disabled { opacity:0.5; pointer-events:none; }
#ajax-results-area.loading { position:relative; min-height:120px; }
#ajax-results-area.loading::after { content:''; position:absolute; inset:0; background:var(--bg-card); opacity:0.6; z-index:1; }
#ajax-results-area.loading::before { content:''; position:absolute; top:50%; left:50%; width:28px; height:28px; margin:-14px 0 0 -14px; border:3px solid var(--border-color); border-top-color:var(--primary); border-radius:50%; animation:spinner .6s linear infinite; z-index:2; }
@keyframes spinner { to { transform:rotate(360deg); } }
