/* =============================================
   Kitabli.com — Main Stylesheet
   Brand: Navy #1A237E | Orange #FF9800
   ============================================= */

/* ── CSS Variables ── */
:root {
  --navy:         #1A237E;
  --navy-dark:    #0D1757;
  --navy-light:   #3949AB;
  --orange:       #FF9800;
  --orange-dark:  #E65100;
  --orange-light: #FFB74D;
  --teal:         #00897B;
  --red:          #D32F2F;
  --green:        #2E7D32;
  --white:        #FFFFFF;
  --bg:           #F0F2F5;
  --bg-card:      #FFFFFF;
  --text:         #1A1A2E;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(26,35,126,.10);
  --shadow-lg:    0 8px 32px rgba(26,35,126,.15);
  --shadow-xl:    0 16px 48px rgba(26,35,126,.18);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font:         'Poppins', sans-serif;
  --font-alt:     'Plus Jakarta Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Loading Bar ── */
#loading-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(to right, var(--orange), var(--orange-light));
  transition: width 0.3s, opacity 0.5s;
}

/* ── Container ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1280px) { .container { padding: 0 32px; } }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
p { color: var(--text-muted); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header-top { background: var(--white); border-bottom: 1px solid var(--border-light); }
.header-top-inner {
  display: flex; align-items: center; gap: 12px;
  height: 68px;
}

/* Brand / Logo */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; font-family: var(--font-alt);
  box-shadow: 0 4px 12px rgba(26,35,126,.3);
  position: relative; overflow: hidden;
}
.logo-icon::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.2) 0%, transparent 70%);
}
.logo-text { font-size: 1.35rem; font-weight: 800; font-family: var(--font-alt); letter-spacing: -0.5px; }
.logo-kita { color: var(--navy); }
.logo-bli { color: var(--orange); }

/* Search */
.header-search { flex: 1; max-width: 600px; position: relative; }
.search-form { position: relative; }
.search-box {
  display: flex; align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,35,126,.12);
  background: var(--white);
}
.search-cat-select {
  border: none; background: transparent;
  padding: 0 12px 0 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  cursor: pointer; appearance: none;
  min-width: 120px;
  white-space: nowrap;
}
.search-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: transparent;
  padding: 10px 14px;
  font-size: 0.9rem; color: var(--text);
  outline: none;
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  width: 46px; height: 46px; min-width: 46px;
  background: var(--navy);
  color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
  border-radius: 0;
}
.search-btn:hover { background: var(--orange); }
.search-suggestions {
  position: absolute; top: 110%; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none; overflow: hidden;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  padding: 10px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text);
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--bg); }
.suggestion-item i { color: var(--text-muted); font-size: 0.8rem; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}
.header-icon-btn:hover { background: var(--bg); color: var(--navy); }
.header-icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--red);
  color: white; font-size: 10px; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* User Menu */
.user-menu-wrapper { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--bg);
  transition: background var(--transition);
  border: 1px solid var(--border);
}
.user-menu-trigger:hover { background: var(--border-light); }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-avatar-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.user-name-sm { font-size: 0.8rem; font-weight: 600; color: var(--text); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron-sm { font-size: 0.65rem; color: var(--text-muted); transition: transform var(--transition); }
.user-menu-trigger[aria-expanded="true"] .chevron-sm { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.dropdown-user-info strong { display: block; font-size: 0.875rem; color: var(--text); }
.dropdown-user-info small { color: var(--text-muted); font-size: 0.75rem; }
.dropdown-body { padding: 6px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--navy); }
.dropdown-item i { width: 16px; font-size: 0.85rem; color: var(--text-muted); }
.dropdown-item.highlight { color: var(--orange); }
.dropdown-item.highlight i { color: var(--orange); }
.dropdown-item.text-danger { color: var(--red); }
.dropdown-item.text-danger i { color: var(--red); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1;
}
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); box-shadow: 0 4px 16px rgba(26,35,126,.3); transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); color: var(--white); box-shadow: 0 4px 16px rgba(255,152,0,.35); transform: translateY(-1px); }
.btn-outline-primary { border-color: var(--navy); color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline-orange { border-color: var(--orange); color: var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: rgba(255,255,255,.9); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }
.btn-cta {
  background: linear-gradient(135deg, var(--orange) 0%, #FF6F00 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,152,0,.35);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,152,0,.45); color: var(--white); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #b71c1c; color: white; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Post Ad Button */
.btn-post-ad {
  background: linear-gradient(135deg, var(--orange) 0%, #FF6F00 100%);
  color: white !important;
  padding: 9px 18px;
  font-size: 0.85rem; font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(255,152,0,.3);
  transition: all var(--transition);
}
.btn-post-ad:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(255,152,0,.4); }

/* ── Category Nav ── */
.header-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 8px; }
.nav-categories {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  flex: 1;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-cat-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.nav-cat-item:hover, .nav-cat-item.active { background: rgba(26,35,126,.08); color: var(--navy); }
.nav-cat-item i { font-size: 0.75rem; }
.nav-extras { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-extra-item {
  padding: 5px 10px; font-size: 0.75rem; font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.nav-extra-item:hover { color: var(--navy); background: var(--bg); }
.nav-post-ad { color: var(--orange) !important; }

/* Mobile hamburger */
.mobile-menu-toggle {
  width: 40px; height: 40px;
  display: none; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.hamburger {
  display: block; width: 20px; height: 2px;
  background: var(--text);
  position: relative; transition: background 0s 0.13s;
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute;
  width: 100%; height: 2px; background: var(--text);
  left: 0; transition: all 0.2s ease;
}
.hamburger::before { top: -6px; }
.hamburger::after  { bottom: -6px; }

/* Flash messages */
.flash-container { position: fixed; top: 80px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  min-width: 280px; max-width: 400px;
  font-size: 0.875rem; font-weight: 500;
  animation: slideInRight 0.3s ease;
}
.flash-success { border-color: var(--green); }
.flash-success i { color: var(--green); }
.flash-error { border-color: var(--red); }
.flash-error i { color: var(--red); }
.flash-info { border-color: var(--navy); }
.flash-info i { color: var(--navy); }
.flash-warning { border-color: var(--orange); }
.flash-warning i { color: var(--orange); }
.flash-close { margin-left: auto; color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Mobile overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 990;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

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

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
  padding: 48px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,152,0,.2); border: 1px solid rgba(255,152,0,.4);
  color: var(--orange-light);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600;
}
.hero h1 { color: var(--white); font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; max-width: 700px; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 14px 28px; border-radius: var(--radius-xl);
  flex-wrap: wrap; justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,.7); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ── Search Hero (Alternative) ── */
.hero-search { width: 100%; max-width: 680px; }
.hero-search-box {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero-search-input {
  flex: 1; border: none; padding: 16px 24px;
  font-size: 1rem; color: var(--text);
  outline: none;
}
.hero-search-btn {
  background: var(--orange);
  color: white; border: none;
  padding: 0 28px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--orange-dark); }

/* ── Category Cards ── */
.section { padding: 40px 0; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 1.2rem; font-weight: 700; }
.section-title a { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.section-title a:hover { color: var(--orange); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.category-card:hover .cat-icon { background: var(--navy); color: white; }
.cat-icon {
  width: 48px; height: 48px;
  background: rgba(26,35,126,.08);
  color: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.cat-name { font-size: 0.75rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.cat-count { font-size: 0.65rem; color: var(--text-light); }

/* ── Listing Cards ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 640px) { .listings-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .listings-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .listings-grid { grid-template-columns: repeat(5, 1fr); } }
.listings-grid-4 { grid-template-columns: repeat(2,1fr); }
@media (min-width:640px) { .listings-grid-4 { grid-template-columns: repeat(3,1fr); } }
@media (min-width:900px) { .listings-grid-4 { grid-template-columns: repeat(4,1fr); } }

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.listing-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.listing-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.listing-card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer; border: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.listing-card-fav:hover, .listing-card-fav.active { color: var(--red); }
.listing-card-fav.active { background: rgba(211,47,47,.12); }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-new { background: #E3F2FD; color: #1565C0; }
.badge-good { background: #E8F5E9; color: #2E7D32; }
.badge-fair { background: #FFF8E1; color: #E65100; }
.badge-poor { background: #FFEBEE; color: #C62828; }
.badge-featured { background: linear-gradient(135deg, var(--orange), #FF6F00); color: white; }
.badge-promoted { background: linear-gradient(135deg, #9C27B0, #7B1FA2); color: white; }
.badge-sold { background: rgba(0,0,0,.7); color: white; }

.listing-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.listing-card-title {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.listing-card-price { font-size: 0.95rem; font-weight: 800; color: var(--navy); }
.listing-card-neg { font-size: 0.7rem; color: var(--orange); font-weight: 600; }
.listing-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 6px;
  border-top: 1px solid var(--border-light);
}
.listing-card-location { font-size: 0.7rem; color: var(--text-light); display: flex; align-items: center; gap: 3px; overflow: hidden; }
.listing-card-location i { color: var(--orange); font-size: 0.65rem; flex-shrink: 0; }
.listing-card-time { font-size: 0.68rem; color: var(--text-light); white-space: nowrap; }
.listing-card-sold-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.listing-card-sold-tag {
  background: rgba(0,0,0,.8); color: white;
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 700;
  border: 2px solid rgba(255,255,255,.4);
}

/* ── Banner / Promo ── */
.hero-banner {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.promo-banner-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 768px) { .promo-banner-grid { grid-template-columns: 2fr 1fr; } }
.promo-banner {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; min-height: 160px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 24px;
  cursor: pointer;
}
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.promo-banner-content { position: relative; z-index: 1; }
.promo-banner-content h3 { color: white; font-size: 1.2rem; }
.promo-banner-content p { color: rgba(255,255,255,.8); font-size: 0.85rem; margin: 4px 0 12px; }

/* ── Carousel / Slider ── */
.carousel-wrapper { position: relative; }
.carousel { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; max-height: 400px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 2;
}
.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 12px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer; padding: 0;
  transition: all var(--transition);
}
.carousel-dot.active { width: 24px; border-radius: var(--radius-full); background: var(--navy); }

/* ── Scroll Tabs ── */
.scroll-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.scroll-tabs::-webkit-scrollbar { display: none; }
.scroll-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.scroll-tab:hover { border-color: var(--navy); color: var(--navy); }
.scroll-tab.active { border-color: var(--navy); background: var(--navy); color: white; }

/* ============================================
   LISTING DETAIL PAGE
   ============================================ */
.listing-detail { display: grid; gap: 24px; }
@media (min-width: 900px) { .listing-detail { grid-template-columns: 1fr 360px; } }
@media (min-width: 1100px) { .listing-detail { grid-template-columns: 1fr 400px; } }

.listing-images { position: sticky; top: 100px; }
.img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg);
  cursor: zoom-in;
}
.img-main img { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.img-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.img-thumb {
  width: 70px; height: 70px; min-width: 70px;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition);
}
.img-thumb.active, .img-thumb:hover { border-color: var(--navy); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }

.listing-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.listing-price-block { margin-bottom: 16px; }
.listing-price { font-size: 1.75rem; font-weight: 900; color: var(--navy); }
.listing-price-neg { font-size: 0.85rem; color: var(--orange); font-weight: 600; }
.listing-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.listing-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border-light);
  font-size: 0.82rem; color: var(--text-muted);
}
.listing-meta-item { display: flex; align-items: center; gap: 6px; }
.listing-meta-item i { color: var(--orange); }

.seller-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px; margin-top: 16px;
  display: flex; align-items: center; gap: 14px;
}
.seller-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.seller-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; flex-shrink: 0;
}
.seller-info { flex: 1; min-width: 0; }
.seller-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.seller-stars { color: var(--orange); font-size: 0.8rem; }
.seller-meta { font-size: 0.75rem; color: var(--text-muted); }
.seller-verified { color: var(--teal); font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #128C7E; color: white; }

.listing-description { margin-top: 24px; }
.listing-description h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.description-text { font-size: 0.875rem; color: var(--text); line-height: 1.7; white-space: pre-line; }

.listing-actions-bar {
  position: sticky; bottom: 0; z-index: 100;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; gap: 10px;
}
@media (min-width: 900px) { .listing-actions-bar { display: none; } }

/* ============================================
   FORMS
   ============================================ */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: 20px 16px; border-radius: var(--radius); } }
.form-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-section-title i { color: var(--orange); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  font-family: var(--font);
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,35,126,.1); }
.form-control.is-invalid { border-color: var(--red); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 36px; }
.form-error { color: var(--red); font-size: 0.78rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-hint { color: var(--text-light); font-size: 0.78rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-addon {
  padding: 11px 14px; background: var(--bg); border: 2px solid var(--border);
  border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; display: flex; align-items: center;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  cursor: pointer; transition: all var(--transition);
  background: var(--bg);
}
.image-upload-area:hover, .image-upload-area.drag-over { border-color: var(--navy); background: rgba(26,35,126,.04); }
.image-upload-icon { font-size: 2.5rem; color: var(--text-light); margin-bottom: 12px; }
.image-upload-text { font-size: 0.875rem; color: var(--text-muted); }
.image-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.image-preview-item {
  width: 90px; height: 90px;
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative; border: 1px solid var(--border);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(211,47,47,.9); color: white;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.image-preview-primary { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,35,126,.8); color: white; font-size: 0.6rem; text-align: center; padding: 2px; font-weight: 700; }

/* Price Input */
.price-input-wrapper { position: relative; }
.price-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--text-muted); font-size: 0.9rem;
  pointer-events: none;
}
.price-input-wrapper .form-control { padding-left: 40px; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-wrapper {
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, rgba(26,35,126,.04) 0%, rgba(255,152,0,.04) 100%);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { justify-content: center; }
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { color: var(--text-light); font-size: 0.8rem; font-weight: 500; }
.auth-social-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: all var(--transition); margin-bottom: 8px;
}
.auth-social-btn:hover { border-color: var(--navy); background: var(--bg); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { font-weight: 700; color: var(--navy); }

/* Password toggle */
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--text-light); cursor: pointer; padding: 4px;
  font-size: 0.95rem;
}

/* ============================================
   USER DASHBOARD
   ============================================ */
.dashboard-layout { display: grid; gap: 24px; }
@media (min-width: 768px) { .dashboard-layout { grid-template-columns: 240px 1fr; } }
@media (min-width: 1024px) { .dashboard-layout { grid-template-columns: 260px 1fr; } }

.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky; top: 84px;
}
.sidebar-header { padding: 20px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: white; }
.sidebar-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: cover; margin-bottom: 10px;
}
.sidebar-avatar-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: white; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.sidebar-name { font-size: 0.9rem; font-weight: 700; }
.sidebar-email { font-size: 0.75rem; opacity: 0.75; }
.sidebar-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.75rem; }
.sidebar-rating i { color: var(--orange); }

.sidebar-nav { padding: 8px 0; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.sidebar-nav-item:hover { background: var(--bg); color: var(--navy); }
.sidebar-nav-item.active { background: rgba(26,35,126,.07); color: var(--navy); font-weight: 700; border-right: 3px solid var(--navy); }
.sidebar-nav-item i { width: 18px; font-size: 0.9rem; }
.sidebar-nav-item .badge-count {
  margin-left: auto; background: var(--red); color: white;
  font-size: 0.65rem; font-weight: 700; padding: 2px 6px;
  border-radius: var(--radius-full);
}
.sidebar-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border);
}
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-icon-blue { background: rgba(26,35,126,.1); color: var(--navy); }
.stat-icon-orange { background: rgba(255,152,0,.1); color: var(--orange); }
.stat-icon-green { background: rgba(46,125,50,.1); color: var(--green); }
.stat-icon-red { background: rgba(211,47,47,.1); color: var(--red); }
.stat-card-num { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ============================================
   SEARCH & FILTER
   ============================================ */
.search-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .search-layout { grid-template-columns: 280px 1fr; } }

.filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky; top: 84px;
}
.filter-heading { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.filter-clear { font-size: 0.75rem; color: var(--red); font-weight: 600; cursor: pointer; }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
  font-size: 0.85rem;
}
.filter-option:hover { background: var(--bg); }
.filter-option input { accent-color: var(--navy); width: 15px; height: 15px; }
.filter-option label { cursor: pointer; color: var(--text); }
.filter-option .filter-count { margin-left: auto; color: var(--text-light); font-size: 0.75rem; }

.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs .form-control { font-size: 0.8rem; padding: 8px 10px; }
.price-range-sep { color: var(--text-muted); font-size: 0.85rem; }

.mobile-filter-btn {
  display: none; position: fixed;
  bottom: 90px; left: 16px; z-index: 100;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 0.875rem; font-weight: 700;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  align-items: center; gap: 8px;
}
@media (max-width: 899px) { .mobile-filter-btn { display: flex; } }

.search-results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.results-count { font-size: 0.875rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }
.sort-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px; font-size: 0.85rem; color: var(--text); appearance: none; background: var(--white); cursor: pointer; }

/* ============================================
   MESSAGES / CHAT
   ============================================ */
.chat-layout { display: grid; height: calc(100vh - 140px); max-height: 700px; overflow: hidden; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 768px) { .chat-layout { grid-template-columns: 300px 1fr; } }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list-header { padding: 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.chat-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  position: relative;
}
.chat-item:hover, .chat-item.active { background: rgba(26,35,126,.04); }
.chat-item.unread { background: rgba(26,35,126,.06); }
.chat-item-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-item-content { flex: 1; min-width: 0; }
.chat-item-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.chat-item-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item-meta { position: absolute; top: 14px; right: 14px; text-align: right; }
.chat-item-time { font-size: 0.68rem; color: var(--text-light); }
.chat-item-unread-dot { width: 10px; height: 10px; background: var(--navy); border-radius: 50%; margin: 4px 0 0 auto; }

.chat-window { display: flex; flex-direction: column; }
.chat-window-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: var(--radius); font-size: 0.875rem; line-height: 1.5; }
.chat-bubble-in { background: var(--bg); color: var(--text); border-radius: 4px var(--radius) var(--radius) var(--radius); align-self: flex-start; }
.chat-bubble-out { background: var(--navy); color: white; border-radius: var(--radius) 4px var(--radius) var(--radius); align-self: flex-end; }
.chat-bubble-time { font-size: 0.65rem; opacity: 0.7; margin-top: 4px; }
.chat-input-bar { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; resize: none; max-height: 100px; }
.chat-send-btn { width: 42px; height: 42px; background: var(--navy); color: white; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--transition); }
.chat-send-btn:hover { background: var(--orange); }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout { display: grid; min-height: 100vh; }
@media (min-width: 768px) { .admin-layout { grid-template-columns: 250px 1fr; } }
.admin-sidebar {
  background: var(--navy-dark);
  color: white;
  padding: 0;
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition);
}
.admin-sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-logo .logo-kita { color: white; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  font-size: 0.85rem; color: rgba(255,255,255,.7);
  transition: all var(--transition);
  cursor: pointer;
}
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.1); color: white; }
.admin-nav-section { padding: 16px 20px 6px; font-size: 0.7rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.admin-content { margin-left: 250px; padding: 24px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-header h1 { font-size: 1.4rem; }

/* ============================================
   TABLE
   ============================================ */
.table-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.table-header h3 { font-size: 1rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; background: var(--bg); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: left; white-space: nowrap; }
.table td { padding: 14px 16px; font-size: 0.85rem; color: var(--text); border-top: 1px solid var(--border-light); vertical-align: middle; }
.table tr:hover td { background: rgba(26,35,126,.02); }
.table-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.table-listing-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.status-active { background: #E8F5E9; color: var(--green); }
.status-pending { background: #FFF8E1; color: #E65100; }
.status-sold { background: #E3F2FD; color: #1565C0; }
.status-rejected { background: #FFEBEE; color: var(--red); }
.status-banned { background: #FCE4EC; color: #AD1457; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); border: 1px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   UTILITY & MISC
   ============================================ */
.hidden-mobile { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: flex; } }
.hidden-desktop { display: flex; }
@media (min-width: 640px) { .hidden-desktop { display: none; } }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.fw-bold { font-weight: 700; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.d-flex { display: flex; }
.ai-center { align-items: center; }
.jc-between { justify-content: space-between; }

.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; max-width: 300px; margin: 0 auto 20px; }

.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1rem; }
.card-body { padding: 20px; }

.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.alert-info { background: #E3F2FD; border-left: 4px solid #1565C0; color: #0D47A1; }
.alert-warning { background: #FFF8E1; border-left: 4px solid var(--orange); color: #E65100; }
.alert-danger { background: #FFEBEE; border-left: 4px solid var(--red); color: #B71C1C; }
.alert-success { background: #E8F5E9; border-left: 4px solid var(--green); color: #1B5E20; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 80px; right: 16px; z-index: 90;
  width: 42px; height: 42px;
  background: var(--navy); color: white;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition); pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--orange); transform: translateY(-2px) !important; }

/* FAB Post Ad (mobile) */
.fab-post-ad {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  background: linear-gradient(135deg, var(--orange) 0%, #FF6F00 100%);
  color: white !important;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 800;
  box-shadow: 0 4px 20px rgba(255,152,0,.45);
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.fab-post-ad:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 6px 24px rgba(255,152,0,.5); }
@media (min-width: 900px) { .fab-post-ad { display: none; } }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--text); color: rgba(255,255,255,.75); margin-top: 60px; }
.footer-top { padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-brand-col .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-col .logo-icon { background: rgba(255,255,255,.15); color: white; box-shadow: none; }
.footer-brand-col .logo-kita, .footer-brand-col .logo-bli { color: white; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1); color: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition);
}
.social-btn:hover { background: var(--orange); color: white; transform: translateY(-2px); }
.footer-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.app-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: white; font-size: 0.8rem; font-weight: 600;
  transition: all var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,.18); color: white; }
.app-badge i { font-size: 1.2rem; }
.app-badge small { display: block; font-size: 0.62rem; opacity: 0.7; font-weight: 400; }
.footer-heading { font-size: 0.85rem; font-weight: 700; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }
.footer-middle { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,.65); }
.trust-badge i { color: var(--orange-light); font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.copyright { font-size: 0.78rem; color: rgba(255,255,255,.45); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.78rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--orange-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .mobile-menu-toggle { display: flex; }
  .header-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
    z-index: 995; background: var(--white);
    flex-direction: column; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
  }
  .header-nav.open { transform: translateX(0); }
  .nav-inner { flex-direction: column; height: auto; padding: 20px 0; }
  .nav-categories { flex-direction: column; gap: 0; overflow-x: unset; }
  .nav-cat-item { padding: 12px 20px; border-radius: 0; font-size: 0.9rem; }
  .nav-extras { flex-direction: column; width: 100%; gap: 0; }
  .nav-extra-item { padding: 12px 20px; font-size: 0.9rem; border-radius: 0; }
  .search-cat-select { display: none; }
  .search-divider { display: none; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-fade-in { animation: fadeIn 0.4s ease both; }
.animate-fade-up { animation: fadeInUp 0.5s ease both; }
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: white;
  padding: 5px 10px; border-radius: var(--radius-sm); font-size: 0.75rem;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close { position: fixed; top: 20px; right: 20px; color: white; font-size: 1.5rem; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); border-radius: 50%; }

/* Share buttons */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; color: white; }
.share-btn-wa { background: #25D366; }
.share-btn-fb { background: #1877F2; }
.share-btn-tw { background: #000; }
.share-btn-copy { background: var(--navy); }
