/* ============================================================
   KEN DE BABI — Gumtree-inspired Stylesheet
   ============================================================ */

:root {
  --primary:       #5B9E4D;
  --primary-dark:  #3D7A35;
  --primary-light: #EFF7ED;
  --cta:           #F47B20;
  --cta-dark:      #D4650E;
  --dark:          #1A1A1A;
  --text:          #333333;
  --sub:           #777777;
  --grey-bg:       #F5F5F5;
  --grey-border:   #E0E0E0;
  --white:         #FFFFFF;
  --red:           #D32F2F;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--grey-bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── TOPBAR ── */
.topbar { background: var(--dark); padding: 5px 0; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left, .topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar a, .topbar span { color: rgba(255,255,255,.6); font-size: 12px; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ── HEADER ── */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-border); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }

.logo { display: flex; flex-direction: column; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-text { font-size: 26px; font-weight: 900; color: var(--dark); letter-spacing: -1px; line-height: 1; }
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 9px; color: var(--sub); letter-spacing: 2px; text-transform: uppercase; margin-top: 1px; }

.header-search { flex: 1; display: flex; min-width: 280px; border: 2px solid var(--primary); border-radius: 6px; overflow: hidden; }
.header-search select { padding: 9px 12px; border: none; border-right: 1px solid var(--grey-border); font-size: 13px; background: #fafafa; cursor: pointer; outline: none; min-width: 130px; }
.header-search input { flex: 1; padding: 9px 14px; border: none; font-size: 14px; outline: none; }
.header-search button { padding: 9px 20px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.header-search button:hover { background: var(--primary-dark); }

.header-actions { flex-shrink: 0; display: flex; gap: 8px; align-items: center; }
.btn-post { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--cta); color: #fff; font-weight: 700; font-size: 14px; border-radius: 6px; transition: background .2s; white-space: nowrap; }
.btn-post:hover { background: var(--cta-dark); text-decoration: none; }
.btn-post span { font-size: 18px; line-height: 1; }

.burger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); padding: 4px 8px; }

/* ── NAV BAR ── */
.nav-bar { background: var(--white); border-bottom: 2px solid var(--grey-border); overflow-x: auto; }
.nav-inner { display: flex; white-space: nowrap; }
.nav-inner a { display: inline-flex; align-items: center; gap: 5px; padding: 10px 16px; color: var(--text); font-size: 13px; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.nav-inner a:hover, .nav-inner a.active { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-success { background: var(--primary); color: #fff; }
.btn-success:hover { background: var(--primary-dark); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #B71C1C; }
.btn-gold { background: var(--cta); color: #fff; }
.btn-gold:hover { background: var(--cta-dark); text-decoration: none; }
.btn-full { width: 100%; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #1b4618 0%, #2a7024 60%, #3a9e35 100%); padding: 38px 16px 52px; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; z-index: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,60,18,.88), rgba(30,100,25,.78)); }
.hero-title { font-size: clamp(24px, 4.5vw, 44px); font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 6px; position: relative; z-index: 1; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 22px; position: relative; z-index: 1; }
.hero-search-wrap { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.3); display: flex; overflow: hidden; position: relative; z-index: 1; }
.hero-search-wrap select { padding: 16px 14px; border: none; border-right: 1px solid var(--grey-border); font-size: 14px; min-width: 155px; background: #fafafa; cursor: pointer; outline: none; }
.hero-search-wrap input { flex: 1; padding: 16px 18px; border: none; font-size: 16px; outline: none; }
.hero-search-wrap button { padding: 16px 28px; background: var(--cta); color: #fff; border: none; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s; }
.hero-search-wrap button:hover { background: var(--cta-dark); }
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 20px; position: relative; z-index: 1; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 22px; font-weight: 900; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: 1px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--grey-border); padding: 10px 0; }
.trust-inner { display: flex; justify-content: center; gap: 40px; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--sub); font-weight: 500; }
.trust-item strong { color: var(--dark); }

/* ── SECTION HEADERS ── */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title { font-size: 19px; font-weight: 800; color: var(--dark); }
.see-all { font-size: 13px; color: var(--primary); font-weight: 600; }
.see-all:hover { text-decoration: underline; }
.section-block { background: var(--white); padding: 22px 0; border-bottom: 1px solid var(--grey-border); }

/* ── CATEGORY TILES (icon-based, Gumtree style) ── */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat-tile { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; padding: 16px 10px 12px; text-align: center; cursor: pointer; transition: all .2s; display: block; }
.cat-tile:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(91,158,77,.18); transform: translateY(-2px); text-decoration: none; }
.ct-icon { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 26px; transition: transform .2s; }
.cat-tile:hover .ct-icon { transform: scale(1.1); }
.cat-tile .ct-name { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 3px; line-height: 1.3; }
.cat-tile .ct-count { font-size: 11px; color: var(--sub); }

/* ── LISTING CARDS ── */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.listing-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #ccc; text-decoration: none; }
.listing-card.featured { border-color: var(--cta); box-shadow: 0 0 0 2px rgba(244,123,32,.2); }

.lc-img { position: relative; height: 165px; background: var(--grey-bg); overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .lc-img img { transform: scale(1.03); }
.lc-img .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #ccc; background: #F0F0F0; }
.lc-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .4px; }
.badge-featured { background: var(--cta); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }
.badge-cat { font-size: 10px; padding: 2px 7px; border-radius: 3px; border: 1px solid; font-weight: 600; }
.save-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; box-shadow: var(--shadow-sm); }
.save-btn:hover { background: #fff; transform: scale(1.15); }
.save-btn.saved { color: #E53935; }

.lc-body { padding: 11px 13px 13px; flex: 1; display: flex; flex-direction: column; }
.lc-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-price { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.lc-meta { display: flex; gap: 10px; font-size: 11px; color: var(--sub); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--grey-border); flex-wrap: wrap; }

/* ── LISTING LIST VIEW ── */
.listing-list { display: flex; flex-direction: column; gap: 8px; }
.listing-row { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; overflow: hidden; display: flex; transition: all .2s; }
.listing-row:hover { box-shadow: var(--shadow-md); border-color: #ccc; }
.lr-img { width: 160px; flex-shrink: 0; background: var(--grey-bg); position: relative; }
.lr-img img { width: 100%; height: 100%; object-fit: cover; }
.lr-img .no-photo { width: 100%; height: 100%; min-height: 110px; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #ccc; }
.lr-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; }
.lr-title { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.lr-price { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.lr-desc { font-size: 12px; color: var(--sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.lr-meta { display: flex; gap: 14px; font-size: 11px; color: var(--sub); margin-top: auto; flex-wrap: wrap; }

/* ── TOOLBAR / FILTERS ── */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.filter-panel { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; overflow: hidden; position: sticky; top: 78px; }
.filter-header { background: var(--primary); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.filter-body { padding: 16px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 11px; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.filter-group select, .filter-group input[type="text"], .filter-group input[type="number"] { width: 100%; padding: 8px 10px; border: 1px solid var(--grey-border); border-radius: 5px; font-size: 13px; outline: none; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }
.price-inputs { display: flex; gap: 6px; }
.price-inputs input { flex: 1; }
.cat-filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.cat-filter-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; transition: background .15s; }
.cat-filter-item:hover { background: var(--primary-light); }
.cat-filter-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.cat-filter-item .cf-count { font-size: 10px; background: var(--grey-bg); padding: 1px 6px; border-radius: 10px; color: var(--sub); }

.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; background: var(--white); padding: 10px 14px; border: 1px solid var(--grey-border); border-radius: 8px; flex-wrap: wrap; gap: 8px; }
.results-info { font-size: 13px; color: var(--sub); }
.results-right { display: flex; gap: 8px; align-items: center; }
.sort-select { padding: 6px 10px; border: 1px solid var(--grey-border); border-radius: 5px; font-size: 13px; outline: none; cursor: pointer; }
.view-btns { display: flex; gap: 4px; }
.view-btn { background: var(--white); border: 1px solid var(--grey-border); border-radius: 5px; padding: 6px 10px; cursor: pointer; font-size: 14px; transition: all .2s; }
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 24px; flex-wrap: wrap; }
.page-btn { padding: 7px 13px; border: 1px solid var(--grey-border); border-radius: 5px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; text-decoration: none; transition: all .2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.page-btn.disabled { color: #ccc; cursor: default; pointer-events: none; }

/* ── LISTING DETAIL ── */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.detail-images { margin-bottom: 16px; }
.detail-main-img { width: 100%; height: 380px; object-fit: cover; border-radius: 10px; border: 1px solid var(--grey-border); cursor: zoom-in; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid var(--grey-border); cursor: pointer; transition: border-color .2s; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--primary); }
.detail-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.detail-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.detail-price { font-size: 28px; font-weight: 900; color: var(--dark); margin: 10px 0; }
.detail-metas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-meta { background: var(--grey-bg); border-radius: 6px; padding: 10px 12px; }
.dm-label { font-size: 10px; color: var(--sub); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.dm-val { font-size: 13px; font-weight: 600; color: var(--dark); }
.description-text { font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; }
.seller-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; padding: 20px; margin-bottom: 14px; position: sticky; top: 78px; }
.seller-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin-right: 14px; }
.seller-info { display: flex; align-items: center; margin-bottom: 16px; }
.seller-name { font-weight: 700; font-size: 15px; color: var(--dark); }
.seller-member { font-size: 11px; color: var(--sub); }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-show-phone { padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; }
.btn-show-phone:hover { background: var(--primary-dark); }
.safety-notice { background: #FFF8E1; border: 1px solid #FFE082; border-radius: 6px; padding: 12px 14px; font-size: 12px; color: #5D4037; line-height: 1.65; margin-top: 14px; }

/* ── FORMS ── */
.form-container { max-width: 820px; margin: 0 auto; padding: 24px 16px; }
.form-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.form-card h2 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px; }
.form-group label .req { color: var(--red); }
.form-control { width: 100%; padding: 11px 13px; border: 1.5px solid var(--grey-border); border-radius: 6px; font-size: 14px; color: var(--text); outline: none; transition: border .2s; background: #fafafa; font-family: inherit; }
.form-control:focus { border-color: var(--primary); background: #fff; }
.form-control.is-invalid { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: 11px; color: var(--sub); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { background: #FFEBEE; border: 1px solid #EF9A9A; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: var(--red); margin-bottom: 14px; }
.form-success { background: #E8F5E9; border: 1px solid #A5D6A7; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: var(--primary); margin-bottom: 14px; }

/* ── IMAGE UPLOAD ── */
.upload-area { border: 2px dashed var(--grey-border); border-radius: 8px; padding: 32px; text-align: center; cursor: pointer; transition: all .2s; background: #fafafa; }
.upload-area:hover, .upload-area.drag { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-area p { font-size: 14px; color: var(--sub); margin-bottom: 4px; }
.upload-area small { font-size: 11px; color: #BDBDBD; }
#file-input { display: none; }
.preview-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.preview-item { position: relative; width: 120px; height: 90px; border-radius: 6px; overflow: hidden; border: 2px solid var(--grey-border); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.primary-label { position: absolute; bottom: 4px; left: 4px; background: var(--cta); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

/* ── STEP BAR ── */
.step-bar { display: flex; margin-bottom: 24px; background: var(--white); border: 1px solid var(--grey-border); border-radius: 8px; overflow: hidden; }
.step-item { flex: 1; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--sub); border-right: 1px solid var(--grey-border); background: #fafafa; }
.step-item:last-child { border-right: none; }
.step-item.done { background: var(--primary-light); color: var(--primary); }
.step-item.active { background: var(--primary); color: #fff; }

/* ── AUTH PAGES ── */
.auth-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-box { background: var(--white); border: 1px solid var(--grey-border); border-radius: 12px; padding: 36px; width: min(440px, 100%); box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-text { font-size: 28px; font-weight: 900; color: var(--dark); }
.auth-logo .logo-text span { color: var(--primary); }
.auth-title { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--sub); margin-bottom: 22px; }
.social-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.social-btn { width: 100%; padding: 11px; border: 1.5px solid var(--grey-border); border-radius: 6px; font-size: 14px; font-weight: 600; background: var(--white); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .2s; font-family: inherit; }
.social-btn:hover { background: var(--grey-bg); }
.divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--sub); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--grey-border); }
.auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--sub); }
.auth-link a { color: var(--primary); font-weight: 600; }

/* ── PROFILE / ACCOUNT ── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.account-sidebar { background: var(--white); border: 1px solid var(--grey-border); border-radius: 10px; overflow: hidden; position: sticky; top: 78px; }
.acc-profile { padding: 20px; text-align: center; border-bottom: 1px solid var(--grey-border); }
.acc-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--primary); }
.acc-name { font-weight: 700; font-size: 15px; }
.acc-email { font-size: 11px; color: var(--sub); }
.acc-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--grey-border); transition: background .15s; }
.acc-menu a:hover, .acc-menu a.active { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.acc-menu a.danger { color: var(--red); }
.acc-menu a.danger:hover { background: #FFEBEE; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--grey-bg); border-radius: 8px; padding: 16px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--sub); text-transform: uppercase; }

/* ── MESSAGES ── */
.messages-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--grey-border); border-radius: 10px; overflow: hidden; background: var(--white); min-height: 500px; }
.msg-list { border-right: 1px solid var(--grey-border); overflow-y: auto; }
.msg-item { padding: 14px 16px; border-bottom: 1px solid var(--grey-border); cursor: pointer; transition: background .15s; }
.msg-item:hover, .msg-item.active { background: var(--primary-light); }
.msg-item.unread { border-left: 3px solid var(--primary); }
.msg-preview { display: flex; gap: 10px; }
.msg-name { font-weight: 600; font-size: 13px; }
.msg-snippet { font-size: 12px; color: var(--sub); }
.msg-time { font-size: 10px; color: var(--sub); }
.msg-thread { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg-bubble.sent { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.recv { align-self: flex-start; background: var(--grey-bg); border-bottom-left-radius: 4px; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.alert-success { background: #E8F5E9; border: 1px solid #A5D6A7; color: var(--primary); }
.alert-error { background: #FFEBEE; border: 1px solid #EF9A9A; color: var(--red); }
.alert-info { background: var(--primary-light); border: 1px solid #A5D6A7; color: var(--primary-dark); }
.alert-warning { background: #FFF8E1; border: 1px solid #FFE082; color: #5D4037; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--sub); }
.empty-icon { font-size: 52px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }

/* ── PAGE BANNER ── */
.page-banner { background: linear-gradient(135deg, #1b4618, #2a7024); padding: 24px 16px; color: #fff; margin-bottom: 24px; }
.page-banner h1 { font-size: clamp(18px, 4vw, 26px); font-weight: 800; color: #fff; }
.page-banner p { color: rgba(255,255,255,.75); margin-top: 4px; font-size: 14px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 8px; }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* ── FOOTER ── */
.site-footer { background: #1A1A1A; color: rgba(255,255,255,.55); padding: 36px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-logo { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.footer-logo span { color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 32px; height: 32px; background: rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-weight: 700; font-size: 12px; transition: all .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { color: rgba(255,255,255,.45); font-size: 12px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.footer-bottom a { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-layout, .detail-grid, .account-layout, .messages-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .header-search { order: 3; width: 100%; min-width: unset; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .detail-metas { grid-template-columns: 1fr; }
  .trust-inner { gap: 12px; justify-content: flex-start; padding: 0 4px; }
  .trust-item { font-size: 12px; }
}
@media (max-width: 600px) {
  .burger { display: block; }
  .nav-bar { display: none; }
  .nav-bar.open { display: block; }
  .nav-inner { flex-direction: column; }
  .btn-post .btn-post-label { display: none; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile { padding: 12px 6px 10px; }
  .ct-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 7px; }
  .cat-tile .ct-name { font-size: 11px; }
  .cat-tile .ct-count { font-size: 10px; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-search-wrap select { display: none; }
  .hero { padding: 28px 12px 40px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 13px; margin-bottom: 16px; }
  .hero-stats { gap: 14px; margin-top: 14px; }
  .hero-stat strong { font-size: 18px; }
  .trust-bar { overflow-x: auto; }
  .trust-inner { flex-wrap: nowrap; padding-bottom: 4px; }
  .section-head { flex-wrap: wrap; gap: 6px; }
  .header-inner { padding: 8px 12px; gap: 10px; }
  .btn-post { padding: 9px 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}
