/* ===================================================
   ELAN.AZ — TAM CSS (Mobile First + Desktop)
   =================================================== */

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; touch-action: pan-y; overflow-x: hidden; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: #F8FAFC; color: #333; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; min-height: 100vh; }

#pwaInstallBanner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #06B6D4; color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 600;
  position: relative; z-index: 1500;
}
.pwa-banner-text { display: flex; align-items: center; gap: 8px; }
.pwa-banner-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
#pwaInstallBtn { background: #fff; color: #06B6D4; border: none; border-radius: 16px; padding: 6px 16px; font-weight: 700; font-size: 12px; cursor: pointer; }
#pwaInstallClose { font-size: 20px; cursor: pointer; line-height: 1; opacity: .85; }
@media (max-width: 480px) {
  .pwa-banner-text { font-size: 12px; }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; }

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

/* ── HEADER ─────────────────────────────────────── */
.main-header { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.header-top { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: nowrap; }
.logo { font-size: 24px; font-weight: 900; color: #06B6D4; letter-spacing: -1px; white-space: nowrap; flex-shrink: 0; }

.hamburger-btn { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 30px; height: 30px; padding: 6px 4px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.hamburger-btn span { display: block; width: 100%; height: 2.5px; background: #06B6D4; border-radius: 2px; }

.side-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1998; }
.side-menu-overlay.open { display: block; }
.side-menu {
  position: fixed; top: 0; left: 0; height: 100%; width: 270px; max-width: 82%;
  background: #fff; z-index: 1999; overflow-y: auto;
  transform: translateX(-100%); transition: transform .2s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,.15);
}
.side-menu.open { transform: translateX(0); }
.side-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.side-menu-close { font-size: 26px; color: #888; cursor: pointer; line-height: 1; }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 14px; color: #333; border-bottom: 1px solid #f5f5f5; }
.side-menu a:hover { background: #E0F7FA; color: #06B6D4; }
.side-menu a i { width: 18px; text-align: center; color: #06B6D4; }
.side-menu-contact { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.side-menu-contact a { padding: 0; border: none; font-size: 13px; color: #767676; }

.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.logo span { color: #222; }

/* Search */
.search-bar { flex: 1; min-width: 0; }
.search-form { display: flex; width: 100%; }
.city-select { height: 42px; padding: 0 10px; border: 1px solid #ddd; border-right: none; border-radius: 6px 0 0 6px; background: #fafafa; font-size: 12px; cursor: pointer; color: #444; min-width: 80px; max-width: 130px; }
.search-form input { flex: 1; height: 42px; border: 1px solid #ddd; padding: 0 12px; font-size: 13px; outline: none; min-width: 0; }
.search-form input:focus { border-color: #06B6D4; }
.search-form button { height: 42px; padding: 0 16px; background: #06B6D4; color: #fff; border: none; border-radius: 0 6px 6px 0; font-weight: 700; font-size: 14px; white-space: nowrap; flex-shrink: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-icon { position: relative; font-size: 18px; }
.badge { position: absolute; top: -6px; right: -8px; background: #06B6D4; color: #fff; border-radius: 50%; width: 17px; height: 17px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-outline { padding: 7px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 12px; color: #333; transition: .15s; white-space: nowrap; }
.btn-outline:hover { border-color: #06B6D4; color: #06B6D4; }
.btn-primary { padding: 8px 14px; background: #06B6D4; color: #fff !important; border: none; border-radius: 6px; font-weight: 700; font-size: 13px; transition: .15s; white-space: nowrap; display: inline-block; text-align: center; }
.btn-primary:hover { background: #0E7490; }

/* User menu */
.user-btn { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; cursor: pointer; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-menu { position: relative; }
.user-dropdown { display: none; position: absolute; top: 44px; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.12); min-width: 200px; z-index: 999; overflow: hidden; }
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a { display: block; padding: 11px 16px; font-size: 13px; color: #333; border-bottom: 1px solid #f5f5f5; transition: .1s; }
.user-dropdown a:hover { background: #E0F7FA; color: #06B6D4; }
.logout-link { color: #e53935 !important; }

/* Nav */
.main-nav { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid #f0f0f0; scrollbar-width: none; -ms-overflow-style: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 9px 12px; font-size: 12px; color: #444; white-space: nowrap; border-bottom: 2px solid transparent; transition: .15s; }
.main-nav a:hover, .main-nav a.active { color: #06B6D4; border-bottom-color: #06B6D4; }

/* ── DESKTOP BANNER LAYOUT ──────────────────────── */
.page-with-banners { display: flex; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 0 8px; }
.banner-col { width: 150px; flex-shrink: 0; padding-top: 20px; }
.banner-col .banner-item { margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid #e8e8e8; }
.banner-col .banner-item img { width: 150px; height: 300px; object-fit: cover; display: block; }
.banner-col .banner-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.page-center { flex: 1; min-width: 0; }

/* ── HERO ────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #06B6D4 0%, #0E7490 50%, #1E3A8A 100%); color: #fff; padding: 22px 0; text-align: center; }
.hero h1 { font-size: 22px; font-weight: 800; }
.hero p { margin-top: 5px; opacity: .9; font-size: 14px; }
.hero-stats { display: flex; justify-content: center; gap: 24px; margin-top: 12px; flex-wrap: wrap; }
.hero-stats span { font-size: 12px; opacity: .85; }
.hero-stats b { font-size: 16px; font-weight: 800; display: block; }

/* ── MAIN LAYOUT ─────────────────────────────────── */
.main-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 18px 0 90px; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar-box { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; overflow: hidden; margin-bottom: 14px; }
.sidebar-box-title { background: #06B6D4; color: #fff; padding: 11px 14px; font-weight: 700; font-size: 13px; }
.sidebar-box-body { padding: 14px; }
.filter-group { margin-bottom: 14px; }
.filter-group label.group-label { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; display: block; margin-bottom: 7px; }
.filter-group input[type=text], .filter-group input[type=number], .filter-group select { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; outline: none; }
.city-collapse summary::-webkit-details-marker { display: none; }
.city-collapse summary { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; margin-bottom: 7px; }
.city-collapse[open] summary .fa-chevron-down { transform: rotate(180deg); }
.city-collapse summary .fa-chevron-down { transition: transform .15s; }
.filter-group input:focus, .filter-group select:focus { border-color: #06B6D4; }
.price-range { display: flex; gap: 7px; }
.price-range input { flex: 1; }
.checkbox-list label { display: flex; align-items: center; gap: 7px; padding: 3px 0; cursor: pointer; font-size: 12px; color: #444; }
.checkbox-list input[type=checkbox], .checkbox-list input[type=radio] { accent-color: #06B6D4; }
.btn-filter { width: 100%; padding: 9px; background: #06B6D4; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13px; margin-top: 4px; }
.btn-filter:hover { background: #0E7490; }

/* VIP Banner sidebar */
.vip-banner { background: linear-gradient(135deg, #ffd700, #ff8c00); border-radius: 8px; padding: 14px; text-align: center; }
.vip-banner .icon { font-size: 22px; }
.vip-banner h4 { color: #fff; font-size: 13px; font-weight: 800; margin: 5px 0 3px; }
.vip-banner p { font-size: 11px; color: rgba(255,255,255,.9); margin-bottom: 9px; }
.vip-banner .btn-vip { background: #fff; color: #ff8c00; border: none; border-radius: 5px; padding: 6px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }

/* ── CATEGORIES GRID ─────────────────────────────── */
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #222; }
.mobile-slider { display: none; }
.mobile-slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  border-radius: 10px; scrollbar-width: none;
}
.mobile-slider-track::-webkit-scrollbar { display: none; }
.mobile-slider-slide { flex: 0 0 100%; scroll-snap-align: start; }
.mobile-slider-slide img { width: 100%; height: auto; display: block; }
.mobile-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.mobile-slider-dot { width: 7px; height: 7px; border-radius: 50%; background: #d1d5db; cursor: pointer; transition: .15s; }
.mobile-slider-dot.active { background: #06B6D4; width: 18px; border-radius: 4px; }

.cats-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-bottom: 24px; }
.cat-card-kataloq { display: none; }
.cat-icon-kataloq { background: #fff !important; border: 1px solid #f0f0f0; color: #06B6D4; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.catalog-icon { width: 76px; height: 76px; border-radius: 16px; background: #F1F5F9; display: flex; align-items: center; justify-content: center; }
.catalog-name { font-size: 12px; color: #333; font-weight: 500; }
.cat-card { cursor: pointer; transition: .15s; text-align: center; padding: 6px 4px; }
.cat-card:hover .cat-icon { background: #E0F7FA; transform: translateY(-2px); }
.cat-card .cat-icon {
  width: 96px; height: 96px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #F1F5F9; border-radius: 16px;
  font-size: 40px; overflow: hidden; transition: .15s;
}
.cat-card .cat-icon img { width: 58px !important; height: 58px !important; object-fit: contain; }
.cat-card .cat-name { font-size: 12px; font-weight: 600; color: #222; line-height: 1.4; }

/* ── ADS GRID ────────────────────────────────────── */
.ads-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }

.mobile-filter-btn { display: none; position: relative; width: 38px; height: 38px; border-radius: 8px; border: 1px solid #ddd; background: #fff; color: #06B6D4; font-size: 15px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-filter-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f44336; }

.mobile-filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 2000; }
.mobile-filter-overlay.open { display: flex; align-items: flex-end; }
.mobile-filter-sheet { background: #fff; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
.mobile-filter-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: #fff; }
.mobile-filter-body { padding: 16px 18px 90px; }
.mobile-filter-body .filter-group { margin-bottom: 18px; }
.mobile-filter-body select, .mobile-filter-body input[type=number] { width: 100%; padding: 11px 13px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #F8FAFC; }
.mobile-filter-body .price-range { display: flex; gap: 10px; }
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-option { padding: 9px 16px; border-radius: 20px; background: #F1F5F9; color: #555; font-size: 13px; font-weight: 600; cursor: pointer; }
.pill-option input { display: none; }
.pill-option.active { background: #06B6D4; color: #fff; }
.mobile-filter-submit { position: fixed; bottom: 0; left: 0; right: 0; background: #06B6D4; color: #fff; border: none; padding: 15px; font-size: 15px; font-weight: 700; }

@media (max-width: 768px) {
  .mobile-filter-btn { display: flex; }
}
.ads-toolbar span { font-size: 13px; color: #666; }
.ads-toolbar select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; color: #444; background: #fff; outline: none; }
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.premium-promo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px dashed #d8b4fe; border-radius: 8px; padding: 24px 16px; cursor: pointer; gap: 10px;
}
.premium-promo-icon { width: 56px; height: 56px; border-radius: 50%; background: #f3e8ff; color: #7c3aed; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.premium-promo-title { font-weight: 700; font-size: 14px; color: #222; }
.premium-promo-btn { background: #7c3aed; color: #fff; border: none; border-radius: 20px; padding: 10px 24px; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; }

.premium-promo-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; align-items: center; justify-content: center; padding: 16px; }
.premium-promo-overlay.open { display: flex; }
.premium-promo-sheet { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; }
.similar-ads-grid { grid-template-columns: repeat(4, 1fr); }

/* ── AD CARD ─────────────────────────────────────── */
.ad-card { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; overflow: hidden; cursor: pointer; transition: .15s; position: relative; }
.ad-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.ad-card.premium { border-color: #7c3aed; }
.ad-card.vip { border-color: #ffd700; }
.ad-card.urgent { border-color: #f44336; }

/* Badge group — üst-üstə düşməsin */
.ad-badges { position: absolute; top: 7px; left: 7px; display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.ad-badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.ad-badge.premium { background: #7c3aed; color: #fff; }
.ad-badge.vip     { background: #ffd700; color: #333; }
.ad-badge.urgent  { background: #f44336; color: #fff; }
.ad-badge.top     { background: #2196f3; color: #fff; }
.ad-badge.store   { background: #1565c0; color: #fff; }

/* Elan kartları üçün yığcam ikon klasteri (tap.az tərzi) */
.ad-img-wrap { position: relative; }
.ad-badge-store { position: absolute; bottom: 7px; left: 7px; z-index: 2; background: #1565c0; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; }
.ad-badge-cluster-inline { display: flex; gap: 4px; }
.badge-icon { width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff; }
.badge-icon.premium { background: #7c3aed; }
.badge-icon.vip     { background: #d4a017; }
.badge-icon.urgent  { background: #f44336; }
.badge-icon.top     { background: #2196f3; }

.share-menu {
  display: none; position: absolute; top: 44px; right: 0; background: #fff; border: 1px solid #e8e8e8;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 6px; z-index: 50; min-width: 160px;
}
.share-menu.open { display: block; }
.share-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; font-size: 13px; color: #333; border-radius: 6px; text-decoration: none; }
.share-menu a:hover { background: #F8FAFC; }

.fav-btn { position: absolute; top: 7px; right: 7px; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 15px; color: #999; display: flex; align-items: center; justify-content: center; z-index: 2; transition: .15s; }
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { background: #fff; color: #e53935; }

/* Şəkil — object-fit: contain ilə tam görünsün */
.ad-img { width: 100%; height: 150px; object-fit: contain; object-position: center; display: block; background: #f8f8f8; }
.ad-body { padding: 9px 10px; }
.ad-title { font-size: 13px; color: #333; font-weight: 500; margin-bottom: 5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-price { font-size: 15px; font-weight: 800; color: #06B6D4; margin-bottom: 5px; }
.ad-price.free { color: #4caf50; }
.ad-meta { display: flex; justify-content: space-between; font-size: 10px; color: #6B7280; }

/* ── AD DETAIL ────────────────────────────────────── */
.ad-detail-layout { display: grid; grid-template-columns: 1fr 310px; gap: 18px; padding: 16px 0 90px; }
.ad-detail-layout > * { min-width: 0; }
.ad-gallery { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; overflow: hidden; margin-bottom: 14px; }
.main-img-wrap { position: relative; }
.main-img-wrap::after {
  content: "viral.az";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 34px;
  font-weight: 800;
  color: rgba(0,0,0,.14);
  letter-spacing: 1px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}

/* Şəkil tam görünsün — contain */
.ad-gallery .main-img { width: 100%; height: 380px; object-fit: contain; background: #f8f8f8; display: block; cursor: zoom-in; }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox-overlay .lightbox-img { max-width: 92%; max-height: 92%; object-fit: contain; }
.lightbox-overlay .lightbox-close { position: absolute; top: 16px; right: 24px; color: #fff; font-size: 34px; font-weight: 300; cursor: pointer; line-height: 1; z-index: 2; }
.lightbox-overlay .lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.lightbox-overlay .lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox-overlay .lightbox-prev { left: 16px; }
.lightbox-overlay .lightbox-next { right: 16px; }
.lightbox-overlay .lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 14px; }
@media (max-width: 768px) {
  .lightbox-overlay .lightbox-arrow { width: 38px; height: 38px; font-size: 15px; }
  .lightbox-overlay .lightbox-prev { left: 6px; }
  .lightbox-overlay .lightbox-next { right: 6px; }
}
.lightbox-overlay .lightbox-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,.18);
  letter-spacing: 1px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.ad-thumbs { display: flex; gap: 7px; padding: 9px; overflow-x: auto; scrollbar-width: none; }
.ad-thumbs::-webkit-scrollbar { display: none; }
.ad-thumbs img { width: 68px; height: 52px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.ad-thumbs img.active { border-color: #06B6D4; }
.ad-thumbs img:hover { border-color: #1E3A8A; }

.ad-info-box { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; padding: 18px; margin-bottom: 14px; }
.ad-info-box h1 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 9px; }
.ad-price-big { font-size: 26px; font-weight: 900; color: #06B6D4; margin-bottom: 12px; }
.ad-specs-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.ad-spec-item { display: flex; flex-direction: column; gap: 4px; }
.ad-spec-label { font-size: 12px; color: #767676; }
.ad-spec-value { font-size: 16px; font-weight: 700; color: #222; }
.ad-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-tag { background: #F8FAFC; border-radius: 20px; padding: 4px 10px; font-size: 11px; color: #555; }
.ad-description { font-size: 13px; color: #444; line-height: 1.75; white-space: pre-line; }
.ad-stats { display: flex; gap: 14px; font-size: 11px; color: #6B7280; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.ad-number { font-size: 12px; color: #bbb; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f5f5f5; }

/* Seller box */
.seller-box { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; padding: 18px; margin-bottom: 14px; }
.seller-info { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.seller-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-name { font-weight: 700; color: #222; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.seller-date { font-size: 11px; color: #6B7280; margin-top: 2px; }
.store-badge-icon { font-size: 13px; }
.btn-phone { display: block; width: 100%; padding: 11px; background: #4caf50; color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 14px; text-align: center; margin-bottom: 8px; transition: .15s; }
.btn-phone:hover { background: #388e3c; }
.btn-phone:disabled { background: #ccc; cursor: not-allowed; }
.btn-message { display: block; width: 100%; padding: 10px; background: #fff; color: #06B6D4; border: 2px solid #06B6D4; border-radius: 6px; font-weight: 700; font-size: 13px; text-align: center; transition: .15s; }
.btn-message:hover { background: #E0F7FA; }

/* ── FORMS ───────────────────────────────────────── */
.auth-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px 0 90px; }
.auth-box { background: #fff; border-radius: 12px; border: 1px solid #e8e8e8; padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.auth-box h2 { font-size: 20px; font-weight: 800; color: #222; margin-bottom: 5px; }
.auth-box p { font-size: 13px; color: #888; margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; transition: .15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #06B6D4; box-shadow: 0 0 0 3px rgba(6,182,212,.08); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; padding: 11px; background: #06B6D4; color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 6px; }
.form-submit:hover { background: #0E7490; }
.form-link { text-align: center; margin-top: 14px; font-size: 13px; color: #666; }
.form-link a { color: #06B6D4; font-weight: 600; }
.form-error   { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; padding: 9px 13px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.form-success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; padding: 9px 13px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }

/* Post ad */
.post-ad-page { padding: 20px 0 90px; }
.post-ad-box { background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; padding: 24px; max-width: 800px; }
.post-ad-box h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.post-ad-box h3 { font-size: 14px; font-weight: 700; color: #444; margin: 18px 0 12px; padding-top: 18px; border-top: 1px solid #f0f0f0; }
.img-upload-area { border: 2px dashed #ddd; border-radius: 8px; padding: 26px; text-align: center; cursor: pointer; transition: .15s; }
.img-upload-area:hover { border-color: #06B6D4; background: #E0F7FA; }
.img-upload-area p { font-size: 12px; color: #888; margin-top: 7px; }
.img-preview { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.img-preview-item { position: relative; width: 95px; height: 72px; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; border: 1px solid #ddd; }
.img-preview-item .remove-img { position: absolute; top: -6px; right: -6px; background: #f44336; color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ── PROFILE ─────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 18px 0 90px; }
.profile-layout > * { min-width: 0; }
.profile-sidebar { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; overflow: hidden; height: fit-content; }
.profile-user { padding: 18px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.profile-avatar { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; margin-bottom: 9px; }
.profile-name { font-weight: 700; font-size: 14px; }
.profile-balance { font-size: 12px; color: #06B6D4; font-weight: 600; margin-top: 3px; }
.profile-nav a { display: flex; align-items: center; gap: 9px; padding: 11px 14px; font-size: 12px; color: #444; border-bottom: 1px solid #f5f5f5; transition: .1s; }
.profile-nav a:hover, .profile-nav a.active { background: #E0F7FA; color: #06B6D4; }
.profile-content { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; padding: 22px; }
.profile-content h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

/* ── BALANCE ─────────────────────────────────────── */
.balance-card { background: linear-gradient(135deg, #06B6D4, #1E3A8A); border-radius: 12px; padding: 22px; color: #fff; margin-bottom: 18px; }
.balance-card .balance-label { font-size: 12px; opacity: .85; }
.balance-card .balance-amount { font-size: 34px; font-weight: 900; margin: 5px 0; }
.topup-packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.topup-pkg { background: #fff; border: 2px solid #e8e8e8; border-radius: 8px; padding: 14px; text-align: center; cursor: pointer; transition: .15s; }
.topup-pkg:hover, .topup-pkg.selected { border-color: #06B6D4; background: #E0F7FA; }
.topup-pkg .pkg-amount { font-size: 20px; font-weight: 800; color: #06B6D4; }
.topup-pkg .pkg-label { font-size: 11px; color: #888; margin-top: 3px; }
.payment-methods { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-method { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 2px solid #e8e8e8; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; transition: .15s; }
.pay-method.selected { border-color: #06B6D4; color: #06B6D4; }
.pay-soon { font-size: 9px; background: #ff9800; color: #fff; padding: 1px 4px; border-radius: 3px; margin-left: 3px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service-card { border: 2px solid #e8e8e8; border-radius: 8px; padding: 14px; cursor: pointer; transition: .15s; }
.service-card:hover { border-color: #06B6D4; }
.service-card.selected { border-color: #06B6D4; background: #E0F7FA; }
.service-card .svc-icon { font-size: 24px; margin-bottom: 7px; }
.service-card .svc-name { font-weight: 700; font-size: 13px; }
.service-card .svc-price { color: #06B6D4; font-weight: 800; font-size: 17px; margin: 3px 0; }
.service-card .svc-desc { font-size: 11px; color: #888; }

/* ── ADMIN ───────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin-layout > * { min-width: 0; }
.admin-sidebar { background: #1a1a2e; color: #ccc; display: flex; flex-direction: column; }
.admin-logo { padding: 18px; font-size: 17px; font-weight: 900; color: #06B6D4; border-bottom: 1px solid #2a2a3e; display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar-close { display: none; font-size: 26px; color: #ccc; cursor: pointer; line-height: 1; }
.admin-hamburger { display: none; }
.admin-sidebar-overlay { display: none; }
.admin-nav { flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 12px 18px; font-size: 12px; color: #bbb; border-bottom: 1px solid #2a2a3e; transition: .1s; }
.admin-nav a:hover, .admin-nav a.active { background: #06B6D4; color: #fff; }
.admin-main { background: #F8FAFC; padding: 22px; overflow-x: auto; }
.admin-main h1 { font-size: 20px; font-weight: 800; margin-bottom: 18px; color: #222; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border-radius: 8px; padding: 18px; border: 1px solid #e8e8e8; border-left: 3px solid #06B6D4; }
.stat-card .stat-num { font-size: 26px; font-weight: 900; color: #06B6D4; }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 3px; }
.data-table { width: 100%; min-width: 0; background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { background: #F8FAFC; padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; border-bottom: 1px solid #eee; white-space: nowrap; }
.data-table td { padding: 11px 14px; font-size: 12px; color: #444; border-bottom: 1px solid #f5f5f5; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.status-badge { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-active   { background: #e8f5e9; color: #2e7d32; }
.status-pending  { background: #fff3e0; color: #e65100; }
.status-rejected { background: #ffebee; color: #c62828; }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; color: #333; transition: .15s; }
.pagination a:hover { border-color: #06B6D4; color: #06B6D4; }
.pagination .current { background: #06B6D4; color: #fff; border-color: #06B6D4; font-weight: 700; }

/* ── MESSAGES ────────────────────────────────────── */
.msg-layout { display: grid; grid-template-columns: 260px 1fr; height: 480px; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.msg-list { border-right: 1px solid #e8e8e8; overflow-y: auto; background: #fafafa; }
.msg-item { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: .1s; }
.msg-item:hover, .msg-item.active { background: #E0F7FA; }
.msg-item .msg-name { font-weight: 600; font-size: 13px; }
.msg-item .msg-preview { font-size: 11px; color: #6B7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.msg-item .msg-time { font-size: 10px; color: #bbb; }
.unread-dot { width: 8px; height: 8px; background: #06B6D4; border-radius: 50%; display: inline-block; margin-left: 5px; }
.msg-chat { display: flex; flex-direction: column; background: #fff; min-height: 0; }
.msg-chat-header { padding: 12px 14px; border-bottom: 1px solid #e8e8e8; font-weight: 700; font-size: 13px; background: #fff; }
.msg-chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; }
.msg-bubble { max-width: 65%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg-bubble.sent { background: #06B6D4; color: #fff; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.msg-bubble.recv { background: #fff; color: #333; align-self: flex-start; border: 1px solid #e8e8e8; border-radius: 12px 12px 12px 2px; }
.msg-chat-input { padding: 10px; border-top: 1px solid #e8e8e8; display: flex; gap: 7px; margin: 0; }
.msg-chat-input input { flex: 1; padding: 8px 13px; border: 1px solid #ddd; border-radius: 20px; outline: none; font-size: 13px; }
.msg-chat-input button { padding: 8px 16px; background: #06B6D4; color: #fff; border: none; border-radius: 20px; font-weight: 700; font-size: 13px; -webkit-appearance: none; appearance: none; outline: none; flex-shrink: 0; }
.messages-page { overflow: hidden; }
.msg-layout-embed { border: none; border-radius: 0; }

/* ── ALERTS ──────────────────────────────────────── */
.alert { padding: 11px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.alert-success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.alert-error   { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; }
.alert-info    { background: #e3f2fd; border: 1px solid #bbdefb; color: #1565c0; }
.alert-warning { background: #fff3e0; border: 1px solid #ffe0b2; color: #e65100; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 5px; align-items: center; font-size: 12px; color: #888; padding: 10px 0; flex-wrap: wrap; }
.breadcrumb a { color: #888; } .breadcrumb a:hover { color: #06B6D4; }
.breadcrumb .sep { color: #ccc; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .empty-icon { font-size: 48px; }
.empty-state h3 { font-size: 15px; font-weight: 700; color: #444; margin: 12px 0 5px; }
.empty-state p { font-size: 12px; color: #888; }

/* Footer */
.main-footer { background: #222; color: #aaa; margin-top: 30px; padding: 30px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-bottom: 22px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #06B6D4; margin-bottom: 9px; }
.footer-logo span { color: #fff; }
.footer-col p { font-size: 12px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 12px; margin-bottom: 6px; cursor: pointer; transition: .1s; }
.footer-col a:hover { color: #06B6D4; }
.footer-social { display: flex; gap: 9px; margin-top: 10px; font-size: 20px; }
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; text-align: center; font-size: 11px; }

/* ── MOBİL ALT NAVİQASİYA ───────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  z-index: 500;
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.mobile-nav-inner {
  display: flex;
  height: 100%;
}
.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
  padding: 0;
  position: relative;
}
.mobile-nav-btn .nav-icon { font-size: 20px; line-height: 1; }
.mobile-nav-btn.active, .mobile-nav-btn:hover { color: #06B6D4; }
.mobile-nav-btn.post-btn { color: #fff; }
.mobile-nav-btn.post-btn .nav-icon-wrap {
  background: #06B6D4;
  border-radius: 50%;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 2px;
  box-shadow: 0 2px 8px rgba(6,182,212,.4);
}
.mobile-nav-badge { position: absolute; top: 4px; right: 10px; background: #06B6D4; color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.profile-form-grid { display: grid; gap: 14px; }
.profile-form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.profile-form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.my-ads-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.my-ads-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 11px; transition: .15s; min-width: 0; }
.my-ads-row-img { width: 80px; height: 58px; object-fit: cover; border-radius: 5px; background: #f5f5f5; flex-shrink: 0; }
.my-ads-row-body { min-width: 0; overflow-wrap: break-word; }
.my-ads-row-body a { overflow-wrap: break-word; }
.my-ads-row-actions { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }

.boost-preview { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 14px; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.boost-preview-img { width: 80px; height: 58px; object-fit: cover; border-radius: 6px; background: #f0f0f0; flex-shrink: 0; }
.boost-preview-balance { text-align: right; flex-shrink: 0; }
.boost-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

/* ── MOBILE RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {

  .premium-promo-card { display: none; }

  .mobile-slider {
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-top: -28px;
    margin-bottom: 16px;
  }
  .mobile-slider-track { border-radius: 0; }
  .mobile-slider-slide img { border-radius: 0; }

  /* Profil formaları — bir sütuna düşsün */
  .profile-form-grid.cols-2,
  .profile-form-grid.cols-3 { grid-template-columns: 1fr; gap: 10px; }

  /* Elanlarım — statistika 2 sütuna, sətirlər isə 2 cərgəyə düşsün */
  .my-ads-stats { grid-template-columns: repeat(2, 1fr); }
  .my-ads-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "img body" "actions actions";
    row-gap: 8px;
  }
  .my-ads-row-img { grid-area: img; width: 64px; height: 48px; }
  .my-ads-row-body { grid-area: body; }
  .my-ads-row-actions { grid-area: actions; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .my-ads-row-actions > * { flex: 1 1 auto; }

  /* Elanı irəli çıxart — mobil */
  .boost-preview { flex-wrap: wrap; }
  .boost-preview-balance { text-align: left; width: 100%; margin-top: 6px; padding-top: 8px; border-top: 1px dashed #e0e0e0; }
  .boost-services-grid { grid-template-columns: repeat(2, 1fr); }
  .stores-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Mobil nav görünsün */
  .mobile-nav { display: block; }

  /* Alt boşluq footer-in öz tünd fonu daxilində saxlanılır (aşağıda) */

  /* Header sadələşdir */
  .header-top { padding: 8px 0; gap: 8px; flex-wrap: wrap; }
  .logo { font-size: 20px; order: 1; }
  .search-bar { order: 3; width: 100%; flex: none; }
  .header-actions { order: 2; margin-left: auto; gap: 6px; min-width: 0; }
  .user-btn { padding: 5px 7px; gap: 0; }
  .user-btn span { display: none; }
  .btn-icon { font-size: 17px; }
  .hamburger-btn { width: 26px; height: 26px; padding: 5px 3px; }
  .logo { min-width: 0; }
  .city-select { display: none; }
  .search-form input { font-size: 14px; }
  .btn-outline { display: none; }

  /* Nav — yatay scroll */
  .main-nav a { padding: 8px 10px; font-size: 11px; }

  /* Hero */
  .hero h1 { font-size: 17px; }
  .hero-stats { gap: 14px; }
  .hero-stats b { font-size: 14px; }

  /* Kateqoriyalar — Kataloq düyməsi + bütün kateqoriyalar, barmaqla sağa/sola sürüşdürülür */
  .cats-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 7px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cats-grid::-webkit-scrollbar { display: none; }
  .cats-grid { touch-action: pan-x; position: relative; z-index: 5; }
  .cat-card-kataloq { display: block; }
  .cat-card {
    flex: 0 0 auto;
    width: 84px;
    padding: 10px 7px;
    scroll-snap-align: start;
  }
  .cat-card .cat-icon { width: 68px; height: 68px; font-size: 30px; }
  .cat-card .cat-icon img { width: 40px !important; height: 40px !important; }
  .cat-card .cat-name { font-size: 10px; }

  /* Main layout — sidebar gizlət */
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  /* Elanlar */
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .similar-ads-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-img { height: 120px; }
  .ad-badges { top: 4px; left: 4px; flex-direction: row; flex-wrap: wrap; gap: 2px; max-width: calc(100% - 8px); }
  .ad-badge { font-size: 8px; padding: 1px 4px; }
  .ad-badge-store { bottom: 4px; left: 4px; font-size: 8px; padding: 2px 6px; }
  .badge-icon { width: 13px; height: 13px; font-size: 7px; }
  .ad-title { font-size: 11px; }
  .ad-price { font-size: 13px; }

  /* Elan detalı */
  .ad-detail-layout { grid-template-columns: 1fr; }
  .ad-gallery .main-img { height: 260px; }
  .main-img-wrap::after { font-size: 22px; }
  .ad-specs-table { gap: 12px 14px; }
  .ad-info-box h1 { font-size: 16px; }
  .ad-price-big { font-size: 22px; }

  /* Profile */
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { display: none; }

  /* Balance */
  .topup-packages { grid-template-columns: repeat(2, 1fr); }
  .balance-card .balance-amount { font-size: 28px; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 34px; height: 34px; padding: 8px; background: #1a1a2e; border: none;
    border-radius: 6px; cursor: pointer; position: fixed; top: 12px; left: 12px; z-index: 1997;
  }
  .admin-hamburger span { display: block; width: 100%; height: 2.5px; background: #06B6D4; border-radius: 2px; }
  .admin-sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1998; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; height: 100%; width: 250px; max-width: 82%;
    z-index: 1999; overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-close { display: block; }
  .admin-main { padding: 60px 16px 22px; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-footer { padding-bottom: 60px; }

  /* Auth */
  .auth-box { padding: 22px; margin: 0 8px; }

  /* Post ad */
  .post-ad-box { padding: 16px; }

  /* Banner kollar gizlət */
  .banner-col { display: none; }

  /* Məsajlar */
  .msg-layout { grid-template-columns: 1fr; height: auto; }
  .msg-list { height: 180px; border-right: none; border-bottom: 1px solid #e8e8e8; }
  .msg-chat { min-height: 0; }
  .msg-chat-body { height: 45vh; max-height: 400px; min-height: 200px; }
  .messages-page { overflow: visible; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .hero { padding: 16px 0; }
  .ad-img { height: 110px; }
  .ad-specs-table { grid-template-columns: 1fr; gap: 10px; }
  .ad-gallery .main-img { height: 220px; }
}

/* Zoom qadağası — mobilde sabit qalsın */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea, select {
    font-size: 16px !important; /* iOS zoom-u önlər */
  }
}
