/* ============================================================
   cncticareti.com — Ana Stil Dosyası
   Sahibinden.com layout mimarisi, CNC marka kimligi
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #CC0000; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---- CSS Değişkenleri ---- */
:root {
  --red: #CC0000;
  --red-dark: #AA0000;
  --red-light: #ff1a1a;
  --black: #000000;
  --gray-dark: #333;
  --gray-mid: #666;
  --gray-light: #999;
  --border: #ddd;
  --bg: #f5f5f5;
  --white: #fff;
  --header-h: 55px;
  --container: 1200px;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---- Container ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ============================================================
   HEADER
   ============================================================ */
.header-banners { background: #fff; border-bottom: 1px solid #e0e0e0; min-height: 0; }
.header-banners:empty { display: none; }

.header-container {
  background: var(--red);
  border-bottom: 2px solid var(--red-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.header-container.without-background { background: var(--red); }

.header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 12px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-indent: -9999px;
  width: 190px;
  height: 38px;
  background: var(--white);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.header .logo::before {
  content: 'cncticareti.com';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: 0;
  color: var(--black);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.5px;
  padding: 0 10px;
}
.header p.clearfix { display: contents; }

/* Search Form */
#searchSuggestionForm {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
  position: relative;
}
#searchSuggestionForm:focus-within { border-color: var(--white); }
#searchSuggestionForm #searchText {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  height: 100%;
  color: #333;
  background: transparent;
}
#searchSuggestionForm #searchText::placeholder { color: #999; }
#searchSuggestionForm button[type="submit"] {
  width: 44px;
  height: 100%;
  background: var(--red);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#searchSuggestionForm button[type="submit"]:hover { background: var(--red-dark); }
#searchSuggestionForm button[type="submit"]::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#clearSearchPhrase { display: none; }
#advancedSearchLink { display: none; }

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.active { display: block; }
.search-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.search-suggestion-item:hover { background: #f8f8f8; }

/* Header Nav */
.header > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header > ul > li { position: relative; }
.header > ul > li > a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s;
  height: 36px;
}
.header > ul > li > a:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.header > ul > li.login-text > a,
.header > ul > li.register-text > a { font-weight: 600; }

.header > ul > li.new-classified > a {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.header > ul > li.new-classified > a:hover { background: #222; }

.header > ul > li.add-expertise-report { display: none; }

/* Icon buttons */
.header > ul > li.messages > a,
.header > ul > li.notifications > a,
.header > ul > li.favorites-btn > a,
.header > ul > li.username-area > a {
  width: 38px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.header > ul > li.messages > a::before,
.header > ul > li.notifications > a::before,
.header > ul > li.favorites-btn > a::before,
.header > ul > li.username-area > a::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}
.header > ul > li.messages > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  filter: none;
}
.header > ul > li.notifications > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 01-3.46 0'/%3E%3C/svg%3E");
  filter: none;
}
.header > ul > li.favorites-btn > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E");
  filter: none;
}
.header > ul > li.username-area > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  filter: none;
}

/* Notification badges */
.header > ul > li.messages > span,
.header > ul > li.notifications > span {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff6b00;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.header > ul > li.messages > span.has-count,
.header > ul > li.notifications > span.has-count { display: flex; }

/* ============================================================
   TOOLTIPS / DROPDOWN MENUS
   ============================================================ */
.tipitip-target {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 2000;
  display: none;
  animation: fadeIn 0.15s ease;
}
.tipitip-target.open { display: block; }

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

.tipitip-target::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
}

/* User menu tooltip */
#user-login-tooltip { min-width: 260px; }
.profile-area {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.profile-area .add-profile-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.profile-area .add-profile-photo span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0e0e0;
  display: block;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/26px no-repeat #e0e0e0;
}
.profile-area .add-profile-photo a {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-area .store-name { font-size: 11.5px; color: var(--gray-light); margin-left: 52px; }
.profile-area .name-surname { font-size: 14px; font-weight: 700; margin-left: 52px; color: #222; }

.header-custom-menu { padding: 8px 0; }
.header-custom-menu > li > ul { border-top: 1px solid #f0f0f0; padding: 4px 0; }
.header-custom-menu > li:first-child > ul { border-top: none; }
.header-custom-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  color: #333;
  transition: background 0.1s;
  min-height: 40px;
}
.header-custom-menu li a:hover { background: #fff5f5; color: var(--red); }
.header-custom-menu#headerCustomMenuVehiclePro { display: none; }

/* Messages / Notifications tooltip */
#user-messages-tooltip, #user-notifications-tooltip { min-width: 320px; max-width: 360px; }

.header-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 12px;
}
.header-tabs li { flex: 1; }
.header-tabs li a {
  display: block;
  padding: 10px 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-mid);
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.header-tabs li.active a { color: var(--red); border-color: var(--red); }

.user-tooltip-content { display: none; }
.user-tooltip-content.active { display: block; }

.messages-box ul, .informations-box ul { padding: 6px 0; }
.messages-box ul li { padding: 8px 14px; border-bottom: 1px solid #f5f5f5; }
.no-content-text { text-align: center; padding: 20px; color: var(--gray-light); font-size: 12px; }

.show-all {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  border-top: 1px solid #f0f0f0;
}
.show-all:hover { background: #fff5f5; }

/* Favorites tooltip */
#favorites-tooltip { min-width: 200px; }
.favorites-links ul { padding: 8px 0; }
.favorites-links ul li a { display: block; padding: 9px 16px; font-size: 13px; color: #444; }
.favorites-links ul li a:hover { background: #f8f8f8; color: var(--red); }

/* Notifications box */
.notifications-box { max-height: 400px; overflow-y: auto; }
.notifications-box-titles {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafafa;
}
.notifications-box .header-custom-menu li a {
  padding: 6px 14px;
  font-size: 12px;
}
.notifications-box .header-custom-menu li a span {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
}
#readAllNotifications { color: var(--gray-mid); font-size: 11px; }

/* ============================================================
   CATEGORY NAV BAR
   ============================================================ */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 900;
}
.category-nav .container {
  display: flex;
  align-items: stretch;
  height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav .container::-webkit-scrollbar { display: none; }
.category-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
}
.category-nav a:hover { color: var(--red); border-color: var(--red); }
.category-nav a.active { color: var(--red); border-color: var(--red); font-weight: 600; }
.category-nav .all-link { font-weight: 600; color: var(--red); border-right: 1px solid var(--border); }

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #CC0000 100%);
  padding: 48px 0;
  text-align: center;
}
.hero-section h1 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero-section p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 28px; }
.hero-search {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 15px;
  height: 50px;
}
.hero-search button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--red-dark); }

/* Stats Bar */
.stats-bar {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
}
.stats-bar .container { display: flex; justify-content: center; gap: 40px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 20px; font-weight: 800; color: var(--white); }
.stat-item span { font-size: 11px; }

/* Section */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--red); border-radius: 2px; display: block; }
.section-link { color: var(--red); font-size: 12.5px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.category-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(204,0,0,0.14);
  transform: translateY(-3px);
}
.category-card .cat-visual-wrap {
  width: 100%;
  height: 90px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.category-card:hover .cat-visual-wrap { background: #fff5f5; }
.category-card .cat-visual-wrap svg {
  width: 100%;
  height: 100%;
}
.category-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.category-card .cat-icon svg {
  width: 28px;
  height: 28px;
}
.category-card:hover .cat-icon { background: #ffdddd; }
.category-card .cat-name {
  font-size: 12px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  padding: 10px 10px 12px;
}
.category-card .cat-count { font-size: 11px; color: var(--gray-light); }

/* Header spacing improvements */
.header > ul { gap: 6px; }
.header > ul > li > a { padding: 8px 11px; min-height: 38px; }
.header > ul > li.messages,
.header > ul > li.notifications,
.header > ul > li.favorites-btn,
.header > ul > li.username-area { position: relative; }
.header > ul > li.messages > a,
.header > ul > li.notifications > a,
.header > ul > li.favorites-btn > a,
.header > ul > li.username-area > a { width: 40px; height: 38px; border-radius: 6px; }
.header > ul > li.messages > a:hover,
.header > ul > li.notifications > a:hover,
.header > ul > li.favorites-btn > a:hover,
.header > ul > li.username-area > a:hover { background: rgba(255,255,255,0.2); }
.header > ul > li.new-classified > a {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  letter-spacing: 0.1px;
}
.header > ul > li.new-classified > a:hover { background: #1a1a1a; }

/* ============================================================
   LISTING CARD (used in search + homepage)
   ============================================================ */
.listing-list { display: flex; flex-direction: column; gap: 8px; }

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.2s;
  position: relative;
}
.listing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14); border-color: #bbb; transform: translateY(-1px); }

.listing-card .card-img {
  width: 150px;
  height: 120px;
  flex-shrink: 0;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}
.listing-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.listing-card:hover .card-img img { transform: scale(1.04); }
.listing-card .card-img .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  background: #f8f8f8;
}
.listing-card .card-img .no-img svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.listing-card .card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.listing-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card .card-title:hover { color: var(--red); }

.listing-card .card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.listing-card .card-meta span {
  font-size: 11.5px;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 3px;
}
.listing-card .card-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-new { background: #e8f5e9; color: #2e7d32; }
.badge-used { background: #fff3e0; color: #e65100; }
.badge-stock { background: #e3f2fd; color: #1565c0; }

.listing-card .card-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--red);
  margin-top: auto;
  padding-top: 6px;
}
.listing-card .card-price.negotiable::after {
  content: ' (Pazarlık)';
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-light);
}

.listing-card .card-right {
  width: 140px;
  flex-shrink: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  border-left: 1px solid #f0f0f0;
}
.listing-card .card-city { font-size: 11.5px; color: var(--gray-mid); }
.listing-card .card-date { font-size: 11px; color: var(--gray-light); }
.listing-card .card-fav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-light);
  transition: all 0.2s;
}
.listing-card .card-fav-btn:hover { border-color: var(--red); color: var(--red); }
.listing-card .card-fav-btn.active { border-color: var(--red); color: var(--red); background: #fff0f0; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 768px) { .search-layout { grid-template-columns: 1fr; } }

/* Filter Sidebar */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 42px + 10px);
}
.filter-sidebar-title {
  background: var(--black);
  color: var(--white);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-group { border-bottom: 1px solid #f0f0f0; }
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.filter-group-title:hover { background: #fafafa; }
.filter-group-title::after { content: '▾'; font-size: 10px; color: var(--gray-light); }
.filter-group-title.collapsed::after { content: '▸'; }
.filter-group-body { padding: 4px 14px 12px; }
.filter-group-body.hidden { display: none; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 12.5px;
  color: #444;
}
.filter-option input[type="checkbox"] { accent-color: var(--red); width: 14px; height: 14px; }
.filter-option:hover { color: var(--red); }
.filter-option .count { margin-left: auto; color: var(--gray-light); font-size: 11px; }

.filter-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: #333;
  outline: none;
  background: var(--white);
}
.filter-select:focus { border-color: var(--red); }

.filter-btn-apply {
  width: 100%;
  padding: 9px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.filter-btn-apply:hover { background: var(--red-dark); }

.filter-btn-clear {
  width: 100%;
  padding: 7px;
  background: none;
  color: var(--gray-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.filter-btn-clear:hover { color: var(--red); border-color: var(--red); }

/* Search Results Header */
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.search-results-header .result-count { font-size: 13px; color: var(--gray-mid); }
.search-results-header .result-count strong { color: #333; }
.sort-select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  outline: none;
  color: #333;
}
.sort-select:focus { border-color: var(--red); }

/* Breadcrumb */
.breadcrumb {
  padding: 10px 0;
  font-size: 12px;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-mid); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: #bbb; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: #444;
  transition: all 0.15s;
  background: var(--white);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination span.active { background: var(--red); color: var(--white); border-color: var(--red); font-weight: 700; }

/* Active filters */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: var(--red);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}
.active-filter-tag button { background: none; border: none; color: var(--red); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state .empty-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.empty-state .empty-icon svg { width: 56px; height: 56px; opacity: 0.35; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--gray-mid); line-height: 1.6; }

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.detail-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.gallery-main-img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: #f8f8f8;
  cursor: zoom-in;
}
.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail content box */
.detail-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-content-header { padding: 16px; border-bottom: 1px solid #f0f0f0; }
.detail-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-meta span { font-size: 12px; color: var(--gray-mid); }

.specs-table { width: 100%; }
.specs-table tr { border-bottom: 1px solid #f8f8f8; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 9px 16px; font-size: 13px; }
.specs-table td:first-child { color: var(--gray-mid); font-weight: 500; width: 40%; background: #fafafa; }
.specs-table td:last-child { color: #333; font-weight: 600; }

.detail-description { padding: 16px; font-size: 13.5px; color: #444; line-height: 1.7; border-top: 1px solid #f0f0f0; }
.detail-description h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* Price / Contact box (right sidebar) */
.price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 42px + 10px);
}
.price-box-header { background: var(--red); color: var(--white); padding: 14px 16px; }
.price-box-header .price-label { font-size: 11px; opacity: 0.85; margin-bottom: 2px; }
.price-box-header .price-value { font-size: 26px; font-weight: 900; }
.price-box-header .price-value small { font-size: 14px; font-weight: 400; }
.price-box-header .price-negotiable { font-size: 11px; opacity: 0.8; margin-top: 2px; }

.price-box-body { padding: 14px 16px; }
.price-box-body .condition-badge { margin-bottom: 12px; }

.contact-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  border: none;
}
.contact-btn.primary { background: var(--red); color: var(--white); }
.contact-btn.primary:hover { background: var(--red-dark); }
.contact-btn.secondary { background: var(--white); color: var(--red); border: 2px solid var(--red); }
.contact-btn.secondary:hover { background: #fff0f0; }
.contact-btn.black { background: var(--black); color: var(--white); }
.contact-btn.black:hover { background: #222; }

.phone-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.phone-reveal::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 9.81 19.79 19.79 0 01.07 1.18 2 2 0 012.03 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L6.09 7.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Seller card */
.seller-card {
  border-top: 1px solid #f0f0f0;
  padding: 14px 16px;
}
.seller-card .seller-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.seller-name { font-size: 13px; font-weight: 700; }
.seller-city { font-size: 11.5px; color: var(--gray-mid); }
.seller-since { font-size: 11px; color: var(--gray-light); }

/* ============================================================
   POST LISTING WIZARD
   ============================================================ */
.wizard-container {
  max-width: 760px;
  margin: 28px auto;
  padding: 0 12px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  gap: 8px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.step-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}
.step-item.active:not(:last-child)::after,
.step-item.done:not(:last-child)::after { background: var(--red); }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-item.active .step-num { background: var(--red); color: var(--white); }
.step-item.done .step-num { background: #28a745; color: var(--white); }
.step-item.done .step-num::after { content: '✓'; }
.step-label { font-size: 11.5px; font-weight: 600; color: var(--gray-light); white-space: nowrap; }
.step-item.active .step-label { color: var(--red); }
.step-item.done .step-label { color: #28a745; }

.wizard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wizard-card-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
}
.wizard-card-header h2 { font-size: 16px; font-weight: 700; }
.wizard-card-header p { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.wizard-card-body { padding: 20px; }
.wizard-card-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Category tree */
.cat-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .cat-select-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-select-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
}
.cat-select-item:hover { border-color: var(--red); color: var(--red); }
.cat-select-item.selected { border-color: var(--red); background: #fff0f0; color: var(--red); font-weight: 700; }
.cat-select-item .cat-icon { font-size: 24px; margin-bottom: 6px; }

.subcat-list { display: flex; flex-direction: column; gap: 4px; }
.subcat-item {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.subcat-item:hover { border-color: var(--red); color: var(--red); }
.subcat-item.selected { border-color: var(--red); background: #fff0f0; color: var(--red); font-weight: 600; }

/* Form styles */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,0.08); }
.form-input.error { border-color: #e53935; }
.form-error { font-size: 11.5px; color: #e53935; margin-top: 4px; }
.form-hint { font-size: 11.5px; color: var(--gray-light); margin-top: 4px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-textarea { min-height: 100px; resize: vertical; }

.price-input-group { display: flex; align-items: center; }
.price-input-group .form-input { border-radius: var(--radius) 0 0 var(--radius); }
.price-currency { padding: 10px 12px; background: #f0f0f0; border: 1px solid var(--border); border-left: none; border-radius: 0 var(--radius) var(--radius) 0; font-size: 13px; font-weight: 600; color: #555; }

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.image-upload-area:hover { border-color: var(--red); background: #fff5f5; }
.image-upload-area.drag-over { border-color: var(--red); background: #fff0f0; }
.image-upload-area .upload-icon { margin-bottom: 12px; display: flex; justify-content: center; }
.image-upload-area p { font-size: 13px; color: var(--gray-mid); }
.image-upload-area p strong { color: var(--red); }

.image-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
}
.image-preview-item:first-child { border-color: var(--red); }
.image-preview-item:first-child::after { content: 'Ana'; position: absolute; bottom: 4px; left: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 3px; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-remove-btn { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* Wizard nav buttons */
.btn { padding: 10px 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #222; }
.btn-outline { background: var(--white); color: var(--gray-mid); border: 1px solid var(--border); }
.btn-outline:hover { border-color: #999; color: #333; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   LOGIN / REGISTER PAGE
   ============================================================ */
.auth-page { min-height: 100vh; background: #f0f0f0; display: flex; align-items: center; justify-content: center; padding: 24px 12px; }
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.auth-logo { background: var(--red); padding: 24px; text-align: center; }
.auth-logo-text { color: var(--white); font-size: 22px; font-weight: 900; }
.auth-logo-sub { color: rgba(255,255,255,0.8); font-size: 12px; margin-top: 2px; }

.auth-tabs { display: flex; border-bottom: 2px solid #f0f0f0; }
.auth-tab { flex: 1; padding: 14px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--gray-mid); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.auth-tab.active { color: var(--red); border-color: var(--red); }

.auth-body { padding: 24px; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-submit { width: 100%; padding: 13px; background: var(--red); color: var(--white); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px; transition: background 0.2s; }
.auth-submit:hover { background: var(--red-dark); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-footer { padding: 0 24px 24px; text-align: center; }
.auth-footer a { color: var(--red); font-size: 12.5px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 11.5px; color: var(--gray-light); }

.auth-alert { padding: 10px 14px; border-radius: var(--radius); font-size: 12.5px; margin-bottom: 14px; display: none; }
.auth-alert.error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; display: block; }
.auth-alert.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; display: block; }

/* ============================================================
   ACCOUNT DASHBOARD
   ============================================================ */
.account-layout {
  max-width: var(--container);
  margin: 20px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 10px);
}
.account-sidebar-header {
  background: var(--red);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--white); }
.account-sidebar-name { color: var(--white); font-size: 13px; font-weight: 700; }
.account-sidebar-email { color: rgba(255,255,255,0.8); font-size: 11px; }

.account-menu { padding: 6px 0; }
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.account-menu-item:hover { background: #fafafa; color: var(--red); }
.account-menu-item.active { color: var(--red); border-left-color: var(--red); background: #fff5f5; font-weight: 600; }
.account-menu-item .menu-icon { font-size: 15px; width: 20px; text-align: center; }
.account-menu-item .menu-badge { margin-left: auto; background: var(--red); color: var(--white); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.account-menu-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

.account-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.account-content-header {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-content-header h2 { font-size: 15px; font-weight: 700; }
.account-content-body { padding: 20px; }

/* Listing management cards */
.my-listing-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  position: relative;
}
.my-listing-card .img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
.my-listing-card .info { flex: 1; min-width: 0; }
.my-listing-card .info h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.my-listing-card .info .price { color: var(--red); font-weight: 800; font-size: 15px; }
.my-listing-card .info .meta { font-size: 11px; color: var(--gray-light); margin-top: 4px; }
.my-listing-card .actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.my-listing-card .actions button { padding: 5px 10px; border-radius: var(--radius); font-size: 11.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: #444; transition: all 0.15s; }
.my-listing-card .actions .btn-edit:hover { border-color: var(--red); color: var(--red); }
.my-listing-card .actions .btn-delete:hover { border-color: #e53935; color: #e53935; }

.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-passive { background: #f5f5f5; color: #757575; }
.status-rejected { background: #ffebee; color: #c62828; }

/* ============================================================
   MESSAGES PAGE
   ============================================================ */
.messages-layout {
  max-width: var(--container);
  margin: 20px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  height: calc(100vh - var(--header-h) - 90px);
}
@media (max-width: 768px) { .messages-layout { grid-template-columns: 1fr; height: auto; } }

.conv-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.conv-list-header { background: var(--black); color: var(--white); padding: 12px 16px; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.conv-search { padding: 10px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.conv-search input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12.5px; outline: none; }
.conv-search input:focus { border-color: var(--red); }
.conv-items { overflow-y: auto; flex: 1; }

.conv-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f8f8f8;
  cursor: pointer;
  transition: background 0.1s;
}
.conv-item:hover { background: #fafafa; }
.conv-item.active { background: #fff5f5; border-left: 3px solid var(--red); }
.conv-item.unread .conv-name { font-weight: 700; }
.conv-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 13px; font-weight: 500; color: #222; }
.conv-preview { font-size: 11.5px; color: var(--gray-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-time { font-size: 10.5px; color: var(--gray-light); flex-shrink: 0; }
.conv-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }

.chat-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chat-header .chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; }
.chat-header .chat-name { font-size: 14px; font-weight: 700; }
.chat-header .chat-listing { font-size: 11.5px; color: var(--gray-mid); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gray-light); font-size: 13px; }

.message-bubble { max-width: 70%; }
.message-bubble.sent { align-self: flex-end; }
.message-bubble.received { align-self: flex-start; }
.bubble-content { padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.message-bubble.sent .bubble-content { background: var(--red); color: var(--white); border-radius: 16px 16px 4px 16px; }
.message-bubble.received .bubble-content { background: #f0f0f0; color: #333; border-radius: 16px 16px 16px 4px; }
.bubble-time { font-size: 10.5px; color: var(--gray-light); margin-top: 3px; text-align: right; }
.message-bubble.received .bubble-time { text-align: left; }

.chat-input-area { padding: 12px 16px; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; flex-shrink: 0; }
.chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 24px; font-size: 13.5px; outline: none; resize: none; max-height: 100px; }
.chat-input:focus { border-color: var(--red); }
.chat-send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.chat-send-btn:hover { background: var(--red-dark); }

.no-conversation { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--gray-light); }
.no-conversation .icon { font-size: 48px; margin-bottom: 12px; }
.no-conversation p { font-size: 13px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-header { background: var(--black); padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.admin-header .admin-logo { color: var(--white); font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.admin-header .admin-logo span { color: var(--red); }
.admin-header .admin-nav { display: flex; gap: 6px; }
.admin-header .admin-nav a { color: rgba(255,255,255,0.75); font-size: 12.5px; padding: 6px 10px; border-radius: var(--radius); transition: all 0.15s; }
.admin-header .admin-nav a:hover, .admin-header .admin-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 52px); }
.admin-sidebar { background: #1a1a1a; padding: 16px 0; }
.admin-sidebar a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: rgba(255,255,255,0.7); font-size: 12.5px; transition: all 0.15s; border-left: 3px solid transparent; }
.admin-sidebar a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.admin-sidebar a.active { color: var(--white); border-left-color: var(--red); background: rgba(204,0,0,0.1); }
.admin-sidebar .section-label { padding: 12px 16px 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; }

.admin-main { background: #f5f5f5; padding: 20px; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.red { background: #ffebee; }
.stat-icon.blue { background: #e3f2fd; }
.stat-icon.green { background: #e8f5e9; }
.stat-icon.orange { background: #fff3e0; }
.stat-card .stat-value { font-size: 26px; font-weight: 900; color: #222; }
.stat-card .stat-label { font-size: 12px; color: var(--gray-mid); }

/* Admin table */
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.admin-card-header { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 14px; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--gray-mid); text-align: left; border-bottom: 2px solid #f0f0f0; background: #fafafa; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.data-table td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid #f8f8f8; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.data-table .td-img { width: 60px; height: 50px; object-fit: cover; border-radius: var(--radius); background: #f0f0f0; }
.data-table .action-btns { display: flex; gap: 5px; }
.data-table .action-btns button { padding: 4px 10px; border-radius: var(--radius); font-size: 11.5px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all 0.15s; }
.btn-approve { border-color: #28a745 !important; color: #28a745 !important; background: var(--white); }
.btn-approve:hover { background: #28a745 !important; color: var(--white) !important; }
.btn-reject { border-color: #e53935 !important; color: #e53935 !important; background: var(--white); }
.btn-reject:hover { background: #e53935 !important; color: var(--white) !important; }
.btn-view { border-color: #1565c0 !important; color: #1565c0 !important; background: var(--white); }
.btn-view:hover { background: #1565c0 !important; color: var(--white) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 32px 0 16px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 6px; transition: color 0.15s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-logo { color: var(--white); font-size: 16px; font-weight: 900; }
.footer-logo span { color: var(--red); }

/* ============================================================
   UTILITIES
   ============================================================ */
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-block { display: block; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gray { color: var(--gray-mid); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* Loading spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--black); color: var(--white); padding: 12px 18px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 8px; max-width: 300px; }
.toast.success { background: #2e7d32; }
.toast.error { background: #c62828; }
.toast.info { background: #1565c0; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.hidden { display: none; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 500px; overflow: hidden; animation: fadeIn 0.2s ease; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-light); }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header { height: 48px; }
  .header .logo { width: 140px; height: 32px; }
  .header .logo::before { font-size: 13px; }
  #searchSuggestionForm { height: 32px; }
  .header > ul > li.login-text,
  .header > ul > li.register-text,
  .header > ul > li.add-expertise-report { display: none; }
  .category-nav { display: none; }
  .search-layout { padding: 12px 8px; gap: 10px; }
  .detail-layout { padding: 12px 8px; }
  .listing-card .card-right { display: none; }
  .listing-card .card-img { width: 110px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 480px) {
  .listing-card { flex-direction: column; }
  .listing-card .card-img { width: 100%; height: 200px; }
  .listing-card .card-body { padding: 10px 12px; }
  .hero-section { padding: 32px 0; }
  .hero-section h1 { font-size: 22px; }
  .section { padding: 18px 0; }
  .section-title { font-size: 16px; }
  .auth-body { padding: 18px; }
  .auth-submit { padding: 14px; font-size: 14px; }
  .wizard-card-body { padding: 14px; }
  .account-content-body { padding: 14px; }
  .detail-content-header { padding: 12px; }
  .detail-title { font-size: 16px; }
  .price-box-header .price-value { font-size: 22px; }
  .modal-body { padding: 14px; }
}

/* Touch-device tap target improvements */
@media (hover: none) and (pointer: coarse) {
  .header-custom-menu li a { min-height: 44px; }
  .filter-option { padding: 8px 0; }
  .conv-item { padding: 14px 16px; }
  .account-menu-item { padding: 13px 16px; }
  .subcat-item { padding: 12px 14px; }
  .contact-btn { padding: 14px; }
  .chat-send-btn { width: 44px; height: 44px; }
}

/* ============================================================
   UX POLISH — Spacing, hierarchy, B2B premium feel
   ============================================================ */

/* Consistent section header rule */
.section-title::before {
  border-radius: 3px;
  width: 3px;
  height: 18px;
}

/* Tighter card title on search/listing pages */
.listing-card .card-title { line-height: 1.35; }

/* Price pop */
.listing-card .card-price { letter-spacing: -0.5px; }

/* Better detail specs table alternate row */
.specs-table tr:nth-child(even) td { background: #fafafa; }
.specs-table tr:nth-child(even) td:first-child { background: #f4f4f4; }

/* Category nav active underline visibility */
.category-nav a.active { font-weight: 700; }

/* Form input sizing consistency */
.form-input, .filter-select, .sort-select { height: 40px; }
textarea.form-input { height: auto; }

/* Wizard step cleaner connector line */
.step-item:not(:last-child)::after { margin: 0 6px; }

/* Auth card shadow polish */
.auth-card { box-shadow: 0 8px 40px rgba(0,0,0,0.14); }

/* Admin stat card value larger */
.stat-card .stat-value { font-size: 28px; }

/* Smoother listing card hover */
.listing-card { transition: box-shadow 0.18s, transform 0.18s; }

/* Better breadcrumb styling */
.breadcrumb { padding: 12px 0; font-weight: 500; }
.breadcrumb span { color: #ccc; }

/* Static content pages utility */
.update-date { font-size: 12px; color: var(--gray-light); font-style: italic; margin-top: 8px; }

/* Scrollbar polish for webkit browsers */
.conv-items::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.notifications-box::-webkit-scrollbar { width: 4px; }
.conv-items::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.notifications-box::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.conv-items::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ============================================================
   CATEGORY NAV — HOVER SUBCATEGORY DROPDOWN
   ============================================================ */
.cat-nav-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}

.cat-nav-wrapper > a {
  display: flex;
  align-items: center;
  padding-right: 20px;
}

/* dropdown arrow indicator */
.cat-nav-wrapper > a::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #aaa;
  transition: border-color 0.15s;
}
.cat-nav-wrapper:hover > a::after { border-top-color: var(--red); }

.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 800;
  padding: 4px 0;
}

.cat-nav-wrapper:hover .cat-dropdown { display: block; }

.cat-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
  border-bottom: 1px solid #f5f5f5;
  border-left: none;
  transition: all 0.12s;
}
.cat-dropdown a:last-child { border-bottom: none; }
.cat-dropdown a:hover { background: #fff5f5; color: var(--red); padding-left: 20px; }

/* Blue context (alim talepleri page) */
.category-nav.blue-context .cat-nav-wrapper:hover > a::after { border-top-color: #1565c0; }
.category-nav.blue-context .cat-dropdown { border-top-color: #1565c0; }
.category-nav.blue-context .cat-dropdown a:hover { background: #e3f2fd; color: #1565c0; }
.category-nav.blue-context a:hover { color: #1565c0; border-bottom-color: #1565c0; }
.category-nav.blue-context a.active { color: #1565c0; border-bottom-color: #1565c0; }

/* ============================================================
   FREE LISTING CTA BANNER (Homepage)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #111 0%, #1a0000 55%, var(--red) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner-text h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cta-banner-text p {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.5;
}
.cta-banner-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cta-banner-stat strong { display: block; font-size: 20px; font-weight: 900; color: var(--white); }
.cta-banner-stat span { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.cta-banner-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}
.cta-banner-btn:hover { background: var(--red); color: var(--white); }
@media (max-width: 600px) { .cta-banner { padding: 24px 20px; } .cta-banner-text h3 { font-size: 18px; } }
