:root {
  --bg: #f7f7f8;
  --bg-2: #ffffff;
  --ink: #0f1418;
  --muted: #5d6b78;
  --accent: #111111;
  --accent-2: #2a2a2a;
  --accent-contrast: #ffffff;
  --forest: #1f6feb;
  --card: #ffffff;
  --line: #d7dce1;
  --shadow: 0 14px 28px rgba(15, 23, 27, 0.08);
  --card-size: 240px;
  --z-header-mobile: 62;
  --z-filter-backdrop: 58;
  --z-filter-drawer: 59;
  --z-profile-backdrop: 1200;
  --z-profile-menu: 1201;
  --listing-mobile-header-offset: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 65%, #edf0f3 100%);
  padding-bottom: 72px; /* bottom nav space */
}

body.listing-market-page.listing-filters-open {
  overflow: hidden;
}

body.dark-theme {
  --bg: #0c0c0c;
  --bg-2: #131313;
  --ink: #f2f2f2;
  --muted: #b6b6b6;
  --accent: #ffffff;
  --accent-2: #d9d9d9;
  --accent-contrast: #000000;
  --forest: #cfcfcf;
  --card: #111111;
  --line: #2a2a2a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at top left, #1a1a1a 0%, var(--bg) 52%, #0a0a0a 100%);
}

body.dark-theme .site-header {
  background: rgba(12, 18, 22, 0.85);
  border-bottom: 1px solid var(--line);
}

body.dark-theme .nav a,
body.dark-theme .brand-name,
body.dark-theme .brand-tag,
body.dark-theme .btn.ghost,
body.dark-theme .user-chip {
  color: var(--ink);
}

body.dark-theme .chip,
body.dark-theme .user-chip,
body.dark-theme .pill,
body.dark-theme .tags span {
  background: #f4f4f4;
  color: var(--muted);
}

body.dark-theme .hero-card,
body.dark-theme .card,
body.dark-theme .category-sidebar,
body.dark-theme .sahibinden-filters,
body.dark-theme .item,
body.dark-theme .category,
body.dark-theme .category-tile,
body.dark-theme .step-card,
body.dark-theme .stat-chip,
body.dark-theme .trust-card,
body.dark-theme .brand-card,
body.dark-theme .forum-card,
body.dark-theme .category-form,
body.dark-theme .simple-form,
body.dark-theme .profile-card,
body.dark-theme .message,
body.dark-theme .message-grid,
body.dark-theme .message-panel,
body.dark-theme .auth-card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.dark-theme .message-list,
body.dark-theme .thread-item,
body.dark-theme .comment-item,
body.dark-theme .message-card,
body.dark-theme .comments-card {
  background: var(--card);
  border-color: var(--line);
}

body.dark-theme .seller-question-block {
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.98) 0%, rgba(17, 17, 17, 0.98) 100%);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.dark-theme .message-card-inline {
  background: rgba(19, 19, 19, 0.86);
}

body.dark-theme .chat-form input,
body.dark-theme .comment-form textarea,
body.dark-theme .reply-form textarea,
body.dark-theme .message-card textarea {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}

body.dark-theme .comment-item.is-reply {
  background: var(--bg-2);
}

body.dark-theme .search input,
body.dark-theme .field input,
body.dark-theme .field select,
body.dark-theme .filter-body input,
body.dark-theme .filter-body select {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}

body.dark-theme .photo {
  background: #f2f2f2;
}

body.dark-theme .trust {
  background: #f6f6f6;
}

body.dark-theme .message {
  background: #f6f6f6;
}

body.dark-theme .brand-card,
body.dark-theme .trust-card,
body.dark-theme .message-panel,
body.dark-theme .auth-card {
  background: var(--card);
  border-color: var(--line);
}

body.dark-theme .auth-card input {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}

body.dark-theme .chat-bubble {
  border: 1px solid #d7dde5;
  color: #18222d;
}

body.dark-theme .chat-bubble.left {
  background: #eef2f7;
}

body.dark-theme .chat-bubble.right {
  background: #d9ecf9;
  border-color: #c3d9ea;
}

body.dark-theme .chat-bubble strong {
  color: #425869;
}

body.dark-theme .chat-bubble em {
  color: #617686;
}

body.listing-page .section {
  padding: 24px 0 48px;
}

body.listing-page {
  background: var(--bg);
}

body.listing-page main {
  padding-top: 0;
}

body.profile-page {
  --card-size: 300px;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  z-index: -1;
}
.container {
  width: min(1160px, 100%);
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.listing-market-page .container {
  width: min(1480px, 100%);
}

input,
select,
textarea,
button,
.section-head,
.simple-form,
.card,
.profile-hero-card,
.settings-layout,
.settings-card,
.settings-preview {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-home {
  text-decoration: none;
  color: inherit;
}

.brand-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #111;
  border: 1px solid var(--line);
  background-image: url("logo-yeni.png");
  background-size: 118%;
  background-position: center center;
  background-repeat: no-repeat;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.brand-tag {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.nav {
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--accent-2);
}

.nav a.active {
  border-color: var(--accent-2);
}

.hidden {
  display: none;
}

.nav-backdrop,
.filter-backdrop {
  display: none !important;
}

.nav-backdrop {
  z-index: 9;
}

.filter-backdrop {
  z-index: var(--z-filter-backdrop);
}

body.nav-open .nav-backdrop,
body.listing-market-page.listing-filters-open .filter-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.auth-user {
  display: none;
  align-items: center;
  gap: 10px;
}

.auth-guest.hidden,
.auth-user.hidden {
  display: none !important;
}

.nav-cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.filter-toggle-btn,
.filter-close {
  display: none;
}

.drawer-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 42px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.drawer-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.category-pill small {
  color: var(--muted);
  font-weight: 600;
}

.category-pill.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent-2);
}

.category-pill .dot {
  flex-shrink: 0;
}

.filter-close {
  position: sticky;
  top: 8px;
  justify-content: center;
}

.cta {
  display: flex;
  gap: 10px;
}

.nav-cta {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.85rem;
}

.theme-toggle.floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 6px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: #ffffff;
  border-top: 1px solid #d7dce1;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.06);
  z-index: 40;
}

.bottom-nav button {
  background: none;
  border: none;
  color: #0f1418;
  display: grid;
  gap: 4px;
  justify-items: center;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.bottom-nav button .icon {
  font-size: 1.1rem;
}

.bottom-nav button.active {
  background: var(--card);
  border: 1px solid var(--line);
}

.badge-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5242a;
  pointer-events: none;
}

.badge-dot--bottom,
.bottom-nav .badge-dot {
  top: 6px;
  right: 10px;
}

.site-header .nav a[href="messages.html"] {
  position: relative;
  padding-right: 16px;
}

.badge-dot--nav,
.site-header .nav a[href="messages.html"] .badge-dot {
  top: 4px;
  right: 1px;
  transform: translate(45%, -35%);
}

.mobile-profile-menu a[href="messages.html"] {
  position: relative;
  padding-right: 24px;
}

.mobile-profile-menu a[href="messages.html"] .badge-dot {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.theme-toggle-control {
  display: inline-flex;
  align-items: center;
}

.theme-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f1418, #1f2a36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.theme-switch::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.theme-toggle input {
  display: none;
}

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #ffba08;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.theme-icon.sun {
  left: 6px;
  opacity: 1;
}

.theme-icon.moon {
  right: 6px;
  opacity: 0;
  color: #68a9ff;
}

.theme-toggle input:checked + .theme-switch {
  background: linear-gradient(135deg, #e8ecf4, #d7dbe3);
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-toggle input:checked + .theme-switch::after {
  transform: translateX(20px);
  background: #0f1418;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.theme-toggle input:checked + .theme-switch .sun {
  opacity: 0;
}

.theme-toggle input:checked + .theme-switch .moon {
  opacity: 1;
}

body.dark-theme .theme-switch {
  background: linear-gradient(135deg, #e8ecf4, #d7dbe3);
  border-color: rgba(0, 0, 0, 0.08);
}

body.dark-theme .theme-switch::after {
  background: #0f1418;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.dark-theme .theme-icon.sun {
  color: #ffba08;
}

body.dark-theme .theme-icon.moon {
  color: #3366ff;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 39, 48, 0.15);
}

.btn.solid {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  background: #fff3f2;
  border: 1px solid #e4a7a2;
  color: #b42318;
}

.btn.danger:hover {
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.16);
}

body.dark-theme .btn.danger {
  background: #2a1515;
  border-color: #8f3e3e;
  color: #ffb4ac;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--forest);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f6f8;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.user-chip-rich {
  min-width: 0;
}

.user-chip-link {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-chip-link:hover,
.user-chip-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: 0 8px 22px rgba(15, 63, 139, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.user-chip-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #1b1d22;
  font-size: 0.82rem;
  flex: 0 0 32px;
}

.user-chip-avatar::before,
.friend-avatar::before,
.avatar::before {
  content: attr(data-initial);
}

.user-chip-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-chip-name {
  font-size: 0.9rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-nick {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin: 16px 0;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f6f8;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero-stats strong {
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: float-in 0.9s ease both;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f2f4f7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.mini-item strong {
  display: block;
  font-size: 0.95rem;
}

.mini-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.search {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #e9edf2;
  color: var(--ink);
  font-family: inherit;
}

.search-wide {
  margin-top: 16px;
}

.hero-list {
  display: grid;
  gap: 14px;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.pill.active {
  background: var(--accent);
  border-color: #d9d9d9;
  font-weight: 600;
}

.item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2a, #121212);
}

.section {
  padding: 60px 0;
  animation: rise 0.8s ease both;
}

.page-hero {
  padding: 60px 0 30px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

.sidebar {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  height: fit-content;
}

.filter-block {
  margin-top: 16px;
}

.filter-block label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section.alt {
  background: #f2f4f7;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.view-toggle .chip {
  border: 1px solid var(--line);
}

.view-toggle .chip.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.size-control .size-value,
.size-control span {
  display: none;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sort-control select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
}

.grid {
  display: grid;
  gap: 20px;
}

.listings {
  justify-content: start;
  min-height: 200px;
}

.listings:not([data-view]) {
  grid-template-columns: repeat(auto-fill, minmax(var(--card-size), 1fr));
}

.listings[data-view="grid"] {
  grid-template-columns: repeat(auto-fill, minmax(var(--card-size), 1fr));
}

.listings[data-view="list"] {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

#myListings.listings {
  grid-template-columns: repeat(auto-fit, minmax(var(--card-size, 300px), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo {
  height: 180px;
  background: linear-gradient(135deg, #f1f3f6, #eceff3);
  display: block;
  overflow: hidden;
}

.listing-card {
  position: relative;
}

.listing-card:not(.list-mode) {
  display: grid;
  grid-template-rows: auto 1fr;
}

.listing-card .photo {
  position: absolute;
  inset: 0;
  height: 100%;
}

.listing-card .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.96) 100%);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 4px;
  max-height: 60%;
  overflow: hidden;
  color: var(--ink);
}

.listing-card.list-mode {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px;
  align-items: start;
}

.listing-card.list-mode .photo {
  position: relative;
  inset: auto;
  height: auto;
}

.list-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 160px;
  aspect-ratio: 1 / 1;
  align-self: start;
}

.list-photo img,
.list-photo .photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.list-photo .photo-fallback {
  background: linear-gradient(135deg, #f3f4f6, #dfe4ea);
}

.photo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #dfe4ea);
  display: block;
}

.listing-card.list-mode .card-body {
  position: static;
  background: transparent;
  backdrop-filter: none;
  display: grid;
  gap: 6px;
  color: var(--ink);
  max-height: none;
}

.listing-card.grid-mode {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
}

.listing-card.grid-mode .photo {
  position: relative;
  inset: auto;
  height: 200px;
}

.listing-card.grid-mode .card-body {
  position: static;
  background: transparent;
  backdrop-filter: none;
  gap: 6px;
  max-height: none;
}

.listing-card.grid-mode h3 {
  line-height: 1.2;
}

.listing-card.grid-mode .list-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-theme .listing-card.grid-mode .card-body {
  background: transparent;
  color: var(--ink);
}

.listing-card h3 {
  margin: 2px 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.listing-card p {
  margin: 0;
  font-size: 0.8rem;
}

.ad-listing-card {
  min-height: 240px;
  border-style: dashed;
}

.ad-listing-wrap {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 12px;
  background: var(--bg-2);
}

.ad-listing-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ad-listing-slot {
  width: 100%;
  min-height: 180px;
}

@media (max-width: 980px) {
  .ad-listing-card {
    min-height: 210px;
  }
}

.listing-card .code {
  font-size: 0.78rem;
}

.listing-card .tags {
  margin-top: 0;
}

.listing-card .tags span {
  font-size: 0.72rem;
}

body.dark-theme .listing-card .card-body {
  color: #f2f2f2;
}

body.dark-theme .listing-card:not(.list-mode) .card-body {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.78) 55%, rgba(10, 10, 10, 0.92) 100%);
}

body.dark-theme .listing-card.list-mode .card-body {
  background: transparent;
}

.listing-card.grid-mode {
  display: grid;
  grid-template-rows: auto 1fr;
}

.listing-card.grid-mode .photo {
  position: relative;
  inset: auto;
  height: 200px;
}

.listing-card.grid-mode .card-body {
  position: static;
  background: transparent;
  backdrop-filter: none;
  gap: 6px;
  max-height: none;
}

.listing-card.grid-mode h3 {
  line-height: 1.2;
}

.listing-card.grid-mode .list-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-theme .listing-card.grid-mode .card-body {
  background: transparent;
  color: var(--ink);
}

.list-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.list-title a {
  color: #114bb5;
  text-decoration: none;
}

.list-title a:hover {
  text-decoration: underline;
}

.listing-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.listing-card h3 a:hover {
  text-decoration: underline;
}

.list-price {
  font-size: 1.15rem;
  color: #c21807;
  font-weight: 800;
}

.list-mode .list-desc {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.list-meta strong {
  color: var(--ink);
}

.list-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.list-foot .seller-link {
  color: var(--muted);
}

.list-foot .tags span {
  background: #eef1f6;
  color: #304152;
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-block;
}

@media (max-width: 768px) {
  .listing-card.list-mode {
    grid-template-columns: 1fr;
  }

  .list-photo {
    min-height: 200px;
  }
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 18px;
}

.listing-card .code {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.seller-link {
  display: inline-block;
  margin: 6px 0 4px;
  font-size: 0.85rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.seller-link:hover {
  text-decoration: underline;
}

.product-pick .card-body {
  display: grid;
  gap: 8px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tags span {
  background: #f5f6f8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

.categories {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.category-tile {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile h3 {
  margin: 0 0 8px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 27, 0.25);
}

.highlight {
  background: radial-gradient(circle at top right, #f7f9fb 0%, #f2f5f9 65%, #eceff4 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.step-no {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1a2a30;
  color: var(--accent);
  font-weight: 700;
}

.stat-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat-chip {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.stat-chip strong {
  font-size: 1.2rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

#footer-root {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.global-right-ad-rail {
  display: none;
}

.global-right-ad-card {
  background: #000;
  border: 1px solid #111;
  border-radius: 12px;
  min-height: 620px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.global-right-ad-label {
  color: #9aa3ad;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.global-right-adsense-slot {
  width: 100%;
  min-height: 560px;
  background: #000;
}

.global-right-ad-note {
  margin: 0;
  color: #7b8793;
  font-size: 0.74rem;
  line-height: 1.4;
  display: none;
}

.global-right-ad-rail.is-placeholder .global-right-ad-note {
  display: block;
}

@media (min-width: 1200px) {
  body.listing-page {
    padding-right: 190px;
  }

  .global-right-ad-rail {
    display: block;
    position: fixed;
    top: 90px;
    right: 10px;
    width: 170px;
    z-index: 9;
  }

  body.listing-page .global-right-ad-rail {
    top: 90px;
  }

  body.listing-market-page {
    padding-right: 0;
  }

  body.listing-market-page .global-right-ad-rail {
    display: none !important;
  }
}

@media (min-width: 1600px) {
  body.listing-page {
    padding-right: 230px;
  }

  .global-right-ad-rail {
    right: 14px;
    width: 210px;
  }

  .global-right-ad-card {
    min-height: 680px;
  }

  .global-right-adsense-slot {
    min-height: 620px;
  }

  body.listing-market-page {
    padding-right: 0;
  }
}

.category-sidebar {
  height: fit-content;
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.market-sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 14px;
  border: 1px solid #d6dde3;
  color: #1e2a33;
}

.side-block {
  display: grid;
  gap: 8px;
}

.side-divider {
  height: 1px;
  background: #e4eaef;
  margin: 12px 0;
}

.side-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e2a33;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1f5bb0;
  background: #e8f0ff;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.side-link {
  text-align: left;
  background: transparent;
  border: none;
  color: #2b3a44;
  padding: 4px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.side-link:hover {
  color: #1f5bb0;
}

.side-link.muted {
  color: #6d7a85;
}

.cat-item.active.side-link {
  color: #1f5bb0;
  font-weight: 700;
}

.listing-content .section-head {
  margin-bottom: 16px;
  color: #1e2a33;
}

.top-search-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.top-search-strip label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.top-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.top-search-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
}

.filter-panel {
  margin-bottom: 18px;
}

.sahibinden-filters {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  color: var(--ink);
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.filter-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.filter-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.filter-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 18px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.filter-section summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent-2);
}

.filter-section[open] summary::after {
  content: "−";
}

.filter-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.brand-filter input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.brand-pills .pill {
  background: #f1f4f8;
  color: #1a2833;
}

body.dark-theme .brand-pills .pill {
  background: #1f2a33;
  color: #dfe6ee;
}


.brand-tree {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

.brand-tree summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  list-style: none;
}

.brand-tree summary::-webkit-details-marker {
  display: none;
}

.brand-tree summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
}

.brand-tree[open] summary::after {
  content: "−";
}

.brand-tree-empty {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-tree ul {
  list-style: none;
  margin: 6px 0 0;
  padding-left: 14px;
}

.brand-tree li {
  position: relative;
  margin: 0;
  padding: 4px 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-tree li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-tree li:last-child::before {
  height: 10px;
}

.category-tree-node {
  border-radius: 8px;
}

.category-tree-node > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.category-tree-node > summary:hover {
  background: color-mix(in srgb, var(--line) 22%, transparent);
}

.category-tree-node > summary::after {
  content: "+";
  color: var(--accent-2);
  font-weight: 700;
}

.category-tree-node[open] > summary::after {
  content: "−";
}

.tree-node-title {
  font-weight: 600;
  color: var(--ink);
}

.tree-node-count {
  color: var(--muted);
  font-size: 0.75rem;
}

.tree-node-link {
  display: inline-block;
  margin: 0 0 2px 6px;
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
}

.tree-node-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.tree-brand-list {
  margin-top: 2px;
}

.brand-tree a {
  color: var(--muted);
  text-decoration: none;
}

.brand-tree a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}


.filter-body.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.filter-body .field label {
  color: var(--muted);
  font-size: 0.8rem;
}

.filter-body input,
.filter-body select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.2;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.filter-list-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}

.filter-list-title {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.filter-list {
  display: grid;
  gap: 6px;
}

.filter-link {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.filter-link:hover {
  color: var(--accent-2);
}

.simple-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.simple-form {
  background: #f7f9fb;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.simple-form.wide {
  width: min(980px, 100%);
}

.sell-full {
  display: grid;
  gap: 18px;
}

body.sell-page {
  background: #f4f5f7;
}

body.sell-page .bg-noise {
  display: none;
}

body.sell-page .sell-full {
  gap: 12px;
}

body.sell-page .sell-full > * {
  min-width: 0;
}

body.sell-page .sell-full .section-head {
  width: min(720px, 100%);
  margin: 0 auto;
}

body.sell-page .sell-full .section-head h1 {
  margin: 0;
  font-size: 1.45rem;
}

body.sell-page .sell-full .section-head p {
  margin: 0;
  font-size: 0.92rem;
}

body.sell-page .simple-form.wide {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 18px;
  gap: 10px;
  box-shadow: none;
}

body.sell-page .field {
  gap: 6px;
}

body.sell-page .field label {
  color: #3e4955;
  font-size: 0.84rem;
  font-weight: 600;
}

body.sell-page .field input,
body.sell-page .field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dde6;
  background: #ffffff;
}

body.sell-page .field input:focus-visible,
body.sell-page .field select:focus-visible {
  outline: 2px solid #dbe6f5;
  border-color: #a6b5c8;
}

body.sell-page .upload-box {
  background: #ffffff;
  border: 1px dashed #c9d3de;
  border-radius: 10px;
  padding: 10px;
  gap: 4px;
}

body.sell-page .upload-box .hint {
  font-size: 0.78rem;
}

body.sell-page .photo-preview {
  grid-template-columns: repeat(auto-fit, minmax(72px, 72px));
  gap: 8px;
  max-width: none;
}

body.sell-page .photo-preview .preview-tile {
  border-radius: 10px;
  background: #f2f5f8;
  box-shadow: none;
}

body.sell-page .photo-preview .add-tile {
  background: #ffffff;
}

body.sell-page .field.inline {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
}

body.sell-page #aiCategorize {
  justify-self: start;
}

body.sell-page #saveListing {
  width: 100%;
}

body.sell-page .auth-message {
  min-height: 18px;
  font-size: 0.8rem;
}

body.dark-theme.sell-page {
  background: #0f1216;
}

body.dark-theme.sell-page .simple-form.wide {
  background: #14191f;
  border-color: #27303b;
  box-shadow: none;
}

body.dark-theme.sell-page .field label {
  color: #c6d0da;
}

body.dark-theme.sell-page .field input,
body.dark-theme.sell-page .field select {
  background: #0f141a;
  border-color: #2d3947;
}

body.dark-theme.sell-page .upload-box {
  background: #11161d;
  border-color: #2d3947;
}

body.dark-theme.sell-page .photo-preview .preview-tile,
body.dark-theme.sell-page .photo-preview .add-tile {
  background: #0f141a;
  border-color: #2d3947;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 3px;
  margin-top: 6px;
  max-width: 160px;
}

.photo-preview .preview-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #1c2430, #101822);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.photo-preview .preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview .add-tile {
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.photo-preview .add-tile:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.photo-preview .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.photo-preview .cover-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: default;
}

.photo-preview .cover-btn {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 4px 6px;
  font-size: 0.65rem;
  cursor: pointer;
}

.photo-preview .cover-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.upload-box {
  background: linear-gradient(135deg, #e8ecf2, #dee4ed);
  border: 1px dashed var(--line);
  padding: 10px;
  border-radius: 12px;
  display: grid;
  gap: 6px;
}

.upload-box input[type=\"file\"] {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.mini-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.category {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
}

.brand-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brand-card {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}


.trust {
  background: linear-gradient(120deg, #f2f6fb, #e8edf5);
}

.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-card {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.message {
  background: radial-gradient(circle at top right, #f8fafc 0%, #f2f5f9 60%, #edf1f6 100%);
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.message-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.message-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--forest);
}

.message-panel {
  background: #f7f9fb;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

.message-list {
  background: #f7f9fb;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  height: fit-content;
}

.message-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.message-list-body {
  display: grid;
  gap: 10px;
}

.thread-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f2f4f7;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 4px;
  font-family: inherit;
  cursor: pointer;
}

.thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.thread-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.thread-pill.sold {
  background: #fde7e7;
  color: #a31e1e;
  border-color: #f4b0b0;
}

.thread-item:hover {
  border-color: var(--accent-2);
}

.thread-item.is-active {
  border-color: #84a9cc;
  background: #e9f1fb;
}

.thread-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.thread-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.thread-last {
  font-size: 0.85rem;
  color: var(--forest);
}

.chat-body {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 6px 2px 6px;
}

.chat-bubble strong {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 4px;
  color: var(--muted);
}

.chat-bubble span {
  display: block;
}

.chat-bubble em {
  display: block;
  font-size: 0.7rem;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.chat-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.chat-actions-row .hint {
  width: 100%;
  text-align: center;
}

.chat-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f2f4f7;
  color: var(--ink);
  font-family: inherit;
}

.chat-form input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.empty-state {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

.empty-state-card {
  width: 100%;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

#myListings > .empty-state-card {
  min-height: 164px;
  justify-content: center;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.comment-form textarea,
.reply-form textarea,
.message-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f2f4f7;
  color: var(--ink);
  padding: 12px 14px;
  font-family: inherit;
  resize: vertical;
}

.comment-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #f2f4f7;
  display: grid;
  gap: 10px;
}

.comment-item.is-reply {
  background: #fbfcfd;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.comment-item p {
  margin: 0;
  font-size: 0.9rem;
  white-space: pre-line;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-actions .btn,
.reply-form .btn {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.comment-children {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.reply-form {
  display: grid;
  gap: 8px;
}

.comments-card {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comments-head h3 {
  margin: 0;
}

.detail-gallery-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-gallery-column .detail-block {
  margin-top: 0;
}

.comment-status[data-type="success"] {
  color: #1f7a4a;
}

.comment-status[data-type="error"] {
  color: #b23b3b;
}

.message-status[data-type="success"] {
  color: #1f7a4a;
}

.message-status[data-type="error"] {
  color: #b23b3b;
}

.seller-question-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f1f4f8 100%);
  box-shadow: var(--shadow);
}

.seller-question-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}

.seller-question-toggle-icon {
  font-size: 1.1rem;
  transition: transform 0.28s ease;
}

.seller-question-toggle.is-open .seller-question-toggle-icon {
  transform: rotate(180deg);
}

.message-composer-shell {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.24s ease, margin-top 0.32s ease;
}

.message-composer-shell > * {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.32s ease, opacity 0.24s ease;
}

.message-composer-shell.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
}

.message-composer-shell.is-open > * {
  opacity: 1;
  transform: translateY(0);
}

.message-card {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.message-card .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.message-card-inline {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.78);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.chat-head.is-clickable {
  cursor: pointer;
}

.chat-head.is-clickable .chat-head-meta {
  min-width: 0;
}

.chat-head.is-clickable:hover .chat-title-link,
.chat-head.is-clickable:focus-within .chat-title-link {
  color: var(--forest);
}

.avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd233, #f0a341);
}

.avatar-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar.has-image .avatar-media,
.friend-avatar.has-image .avatar-media,
.user-chip-avatar.has-image .avatar-media {
  display: block;
}

.avatar.has-image::before,
.friend-avatar.has-image::before,
.user-chip-avatar.has-image::before {
  content: "";
}

.avatar-fallback {
  position: relative;
  z-index: 1;
}

.chat-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.chat-title-link:hover,
.chat-title-link:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  outline: none;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 0.9rem;
}

.chat-bubble.left {
  background: #172329;
  justify-self: start;
}

.chat-bubble.right {
  background: #1f343b;
  justify-self: end;
}

body:not(.dark-theme) .message-list,
body:not(.dark-theme) .message-panel {
  background: #ffffff;
  border-color: #d5dbe2;
  box-shadow: 0 18px 34px rgba(15, 23, 27, 0.08);
}

body:not(.dark-theme) .thread-item {
  background: #ffffff;
  border-color: #d7dee7;
}

body:not(.dark-theme) .thread-item:hover {
  background: #f5f8fc;
  border-color: #9fb4cc;
}

body:not(.dark-theme) .thread-item.is-active {
  background: #e9f1fb;
  border-color: #84a9cc;
}

body:not(.dark-theme) .chat-body {
  border: 1px solid #e1e7ee;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body:not(.dark-theme) .chat-form input {
  background: #ffffff;
  border-color: #d8dfe8;
}

body:not(.dark-theme) .chat-bubble {
  border: 1px solid transparent;
}

body:not(.dark-theme) .chat-bubble.left {
  background: #f2f6fb;
  border-color: #dce5ef;
  color: #1f2d3a;
}

body:not(.dark-theme) .chat-bubble.right {
  background: #1e3d4a;
  border-color: #16303b;
  color: #f4f9fc;
}

body:not(.dark-theme) .chat-bubble.left strong,
body:not(.dark-theme) .chat-bubble.left em {
  color: #6b8094;
}

body:not(.dark-theme) .chat-bubble.right strong,
body:not(.dark-theme) .chat-bubble.right em {
  color: rgba(244, 249, 252, 0.78);
}

body.dark-theme .thread-item.is-active {
  background: #1a1f24;
  border-color: #4c5c6b;
}

body.dark-theme .thread-pill.sold {
  background: rgba(232, 91, 91, 0.15);
  color: #ffb0b0;
  border-color: rgba(232, 91, 91, 0.45);
}

.chat-input {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.sell {
  background: linear-gradient(135deg, #1e3a40, #2b4f56);
  color: #eef6f7;
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.sell-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 10px 0;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.membership-card {
  background: #f7f9fb;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
}

.membership-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.membership-card.highlight {
  background: #1a2a30;
  border-color: #2b3f46;
}

.category-form {
  background: #f7f9fb;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field[hidden] {
  display: none !important;
}

.field input,
.field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f2f4f7;
  color: var(--ink);
  font-family: inherit;
}

.field.inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.divider {
  margin-top: 6px;
  font-weight: 600;
  color: var(--forest);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 39, 48, 0.5);
}

.modal-content {
  position: relative;
  width: min(720px, 92vw);
  background: #f7f9fb;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.auth-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.auth-card > * {
  min-width: 0;
}

.auth-card input:not([type="checkbox"]) {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-family: inherit;
  width: 100%;
  max-width: 100%;
}

#recaptcha-container {
  margin: 6px 0;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 0;
}

.check > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0.18rem 0 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.check > span,
.check-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.check .text-link {
  display: inline;
  margin-top: 0;
}

.auth-message {
  min-height: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-message[data-type="success"] {
  color: #1f7a4a;
}

.auth-message[data-type="error"] {
  color: #b23b3b;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.detail-info {
  display: grid;
  gap: 10px;
}

.detail-gallery .photo.large {
  min-height: 360px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0e0e;
}

.detail-gallery .photo.large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.thumb {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.thumb.active {
  border-color: var(--accent);
}

#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

#lightbox.open {
  display: block;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.lb-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lb-content img {
  max-width: min(90vw, 960px);
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  background: #000;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  top: 18px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.lb-close {
  right: 18px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 18px;
}

.lb-next {
  right: 18px;
}

.detail-block {
  margin-top: 24px;
}

.specs {
  padding-left: 18px;
  color: var(--muted);
}

.seller-card {
  background: #f7f9fb;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.seller-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.seller-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.ref-box {
  background: #f2f4f7;
  border-radius: 14px;
  padding: 14px;
  border: 1px dashed var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.info-grid .label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.detail-description {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}

.detail-description h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.seller-contact-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}

.seller-contact-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.detail-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
}

.owner-edit-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  display: grid;
  gap: 12px;
}

.owner-edit-card.hidden {
  display: none;
}

.owner-edit-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.owner-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-edit-grid .field.full {
  grid-column: 1 / -1;
}

.owner-photo-preview {
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.owner-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-line .price {
  font-size: 1.6rem;
  color: #c21807;
}

.similar-block {
  margin-top: 24px;
}

.similar-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.listing-card.mini {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr;
}

.listing-card.mini .photo {
  position: relative;
  height: 140px;
}

.listing-card.mini .card-body {
  position: static;
  background: transparent;
  backdrop-filter: none;
  gap: 2px;
}

.profile-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.avatar.lg {
  width: 60px;
  height: 60px;
}

.avatar.xl {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  cursor: pointer;
}

.profile-hero {
  display: flex;
  justify-content: flex-end;
}

.profile-hero-card {
  background: linear-gradient(135deg, #f5f8ff, #e8eefc);
  border: 1px solid rgba(31, 107, 235, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(0, 63, 142, 0.12);
}

.profile-hero-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.profile-headings h1 {
  margin: 0;
}

.profile-headings p {
  margin: 2px 0;
}

.profile-about-text {
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
}

.profile-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.profile-actions .auth-message {
  min-height: 18px;
  font-size: 0.8rem;
  text-align: right;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.profile-side {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}

.stat-box {
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(31, 107, 235, 0.1);
  margin-top: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-contact-box strong {
  display: block;
  margin-bottom: 10px;
}

.profile-contact-list,
.settings-contact-preview {
  display: grid;
  gap: 10px;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.profile-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-contact-link {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile-contact-link:hover {
  text-decoration: underline;
}

.profile-contact-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 63, 139, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.friends-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 12px;
}

.friends-panel h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.friend-list {
  display: grid;
  gap: 8px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--bg-2);
}

.friend-item:hover {
  border-color: var(--accent-2);
}

.friend-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1f6beb, #0f3f8b);
  flex: 0 0 34px;
}

.friend-meta {
  display: grid;
  gap: 2px;
}

.friend-meta strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.friend-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.social-hub {
  margin-top: 18px;
}

.profile-message-card {
  margin-bottom: 16px;
}

.profile-message-card h3 {
  margin: 0;
  font-size: 1rem;
}

.profile-message-card .auth-message {
  min-height: 18px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.social-card h3 {
  margin: 0;
  font-size: 1rem;
}

.social-subhead {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.social-card input[type="search"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
}

.user-search-results,
.request-list {
  display: grid;
  gap: 8px;
}

.user-result-item,
.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--bg-2);
}

.user-result-link,
.request-user {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-result-link:hover,
.request-user:hover {
  color: var(--accent-2);
}

.request-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trust-badge {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.trust-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.trust-badge .star {
  color: var(--accent);
}

.trust-badge p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.trust-meter {
  display: grid;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}

.trust-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.referral {
  background: var(--bg);
}

.referral-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ref-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ref-score {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
}

.ref-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ref-tags span {
  background: var(--bg-2);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.proof {
  background: var(--bg);
}

.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-style: italic;
}

.testimonial strong {
  display: block;
  margin-top: 16px;
  font-style: normal;
}

.faq {
  background: #f2f4f7;
}

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-item {
  background: #f7f9fb;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}


.mega-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  background: var(--bg-2);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) minmax(140px, 0.65fr) minmax(170px, 0.8fr) minmax(180px, 0.8fr);
  gap: 22px;
  padding: 16px 0 14px;
  align-items: start;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-size: 0.9rem;
  padding: 3px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.badge-card {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  min-width: 0;
}

.badge-title {
  font-size: 0.85rem;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #e74c3c; }
.dot.green { background: #2ecc71; }

.lang-card {
  display: grid;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 180px;
  align-content: start;
}

.lang-card label {
  font-size: 0.95rem;
  font-weight: 600;
}

.lang-card select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--bg-2);
  color: var(--ink);
  font-family: inherit;
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding: 10px 0 16px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  text-align: center;
}

.deploy-stamp {
  padding: 8px 0 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .hero-card {
    animation: none;
  }
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .container {
    width: 100%;
    padding: 0 14px;
  }

  .site-header .container {
    padding: 14px 14px;
    gap: 12px;
  }

  .drawer-toggle {
    display: inline-flex;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 6px 0;
  }

  .nav a {
    border-bottom-width: 1px;
    padding: 6px 0;
  }

  .nav .brand {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .site-header .nav,
  .site-header .cta {
    display: none;
  }

  body.nav-open .site-header .nav,
  body.nav-open .site-header .cta {
    display: flex;
  }

  .site-header .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 22;
  }

  .site-header .cta {
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    gap: 8px;
    z-index: 23;
    background: var(--card);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .drawer-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 21;
    display: none;
  }

  body.nav-open .nav-backdrop {
    display: block;
  }
}

@media (max-width: 960px) {
  body:not(.listing-page) .listing-layout {
    grid-template-columns: 1fr;
  }

  body:not(.listing-page) .category-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: min(65vh, 520px);
    max-height: min(65vh, 520px);
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    overflow: auto;
    transform: translateY(105%);
    transition: transform 0.25s ease;
    z-index: 45;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    overscroll-behavior: contain;
    background: var(--card);
  }

  body:not(.listing-page).listing-filters-open .category-sidebar {
    transform: translateY(0);
    pointer-events: auto;
  }

  body:not(.listing-page) .filter-toggle-btn,
  body:not(.listing-page) .filter-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  body:not(.listing-page) .filter-toggle-btn {
    margin-right: auto;
  }

  body:not(.listing-page) .filter-close {
    margin-left: auto;
  }

  body:not(.listing-page) .sahibinden-filters {
    max-height: none;
    min-height: 100%;
  }
}

@media (max-width: 720px) {
  body.listing-market-page main {
    min-height: calc(100svh - 116px);
  }

  body.listing-market-page .listing-layout {
    min-height: calc(100svh - 180px);
  }

  body.listing-market-page .listing-content {
    min-height: 58svh;
  }

  /* ── HEADER: filter-icon | logo | profile-icon ── */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--line);
  }

  body.dark-theme .site-header {
    background: rgba(12,12,12,0.92);
  }

  .site-header .container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0;
    padding: 8px 12px;
  }

  .left-controls {
    display: contents;
  }

  .drawer-toggle {
    display: inline-flex !important;
    grid-column: 1;
    width: 38px;
    height: 38px;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .brand.brand-home {
    grid-column: 2;
    justify-self: center;
    gap: 8px;
    min-width: 0;
  }

  .brand.brand-home > div,
  .brand-name,
  .brand-tag,
  .site-header .container > * {
    min-width: 0;
  }

  .brand-dot {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: 0.58rem;
  }

  .mobile-profile-btn {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 700;
  }

  .nav,
  .theme-toggle,
  .cta {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }

  /* ── BOTTOM NAV: hide ── */
  .bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  /* ── SEARCH STRIP ── */
  .top-search-strip {
    padding: 0;
    margin-bottom: 8px;
  }

  .top-search-strip label {
    display: none;
  }

  .top-search-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .top-search-row input {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .top-search-row .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  /* ── SECTION HEAD / CONTROLS ── */
  .section-head {
    margin-bottom: 10px;
    gap: 8px;
  }

  .section-head h2 {
    font-size: 1.15rem;
    margin: 0;
  }

  .controls-row {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .filter-toggle-btn {
    display: none !important;
  }

  .sort-control {
    font-size: 0.8rem;
  }

  .sort-control select {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .view-toggle .chip {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  /* ── LISTING GRID ── */
  .listing-content {
    min-width: 0;
  }

  body.listing-page .section {
    padding: 8px 0 24px;
  }

  .listings[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .listings[data-view="grid"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* ── LIST MODE CARDS ── */
  .listing-card.list-mode {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
  }

  .listing-card.list-mode .list-photo {
    min-height: 88px;
    border-radius: 10px;
  }

  .listing-card.list-mode .card-body {
    gap: 2px;
  }

  .listing-card.list-mode .list-title,
  .listing-card.list-mode h3 {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.25;
  }

  .listing-card.list-mode .list-price {
    font-size: 1rem;
  }

  .listing-card.list-mode .list-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin: 0;
  }

  .listing-card.list-mode .list-meta {
    font-size: 0.72rem;
    gap: 4px;
  }

  .listing-card.list-mode .list-foot {
    font-size: 0.7rem;
    gap: 4px;
  }

  .listing-card.list-mode .list-foot .tags span {
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  .listing-card.list-mode .code {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  /* ── GRID MODE CARDS ── */
  .listing-card.grid-mode .photo {
    height: 130px;
  }

  .listing-card.grid-mode .card-body {
    padding: 8px 10px 10px;
  }

  .listing-card.grid-mode h3 {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .listing-card.grid-mode .list-price {
    font-size: 0.92rem;
  }

  .listing-card.grid-mode .list-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }

  .listing-card.grid-mode .list-meta,
  .listing-card.grid-mode .list-foot {
    font-size: 0.68rem;
    gap: 3px;
  }

  .listing-card.grid-mode .code {
    font-size: 0.65rem;
  }

  /* ── FILTER PANEL (bottom-sheet) ── */
  .category-sidebar {
    height: min(60vh, 480px);
    max-height: min(60vh, 480px);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 55;
  }

  .filter-close {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .sahibinden-filters {
    padding: 10px;
    gap: 8px;
  }

  /* ── DETAIL PAGE ── */
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-gallery .photo.large {
    min-height: 200px;
    max-height: 280px;
    border-radius: 14px;
  }

  .detail-info h1 {
    font-size: 1.2rem;
    margin-top: 0;
  }

  .price-line .price {
    font-size: 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 8px 0;
  }

  .detail-actions {
    gap: 8px;
    margin: 8px 0 12px;
  }

  .owner-edit-grid {
    grid-template-columns: 1fr;
  }

  .message-card {
    padding: 12px;
  }

  .comments-card {
    padding: 12px;
  }

  .comment-children {
    padding-left: 12px;
  }

  .similar-row {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
  }

  .listing-card.mini .photo {
    height: 100px;
  }

  /* ── PROFILE ── */
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .profile-hero-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .profile-hero-card h1 {
    font-size: 1.15rem;
  }

  .profile-side {
    padding: 14px;
  }

  /* ── AUTH PAGES ── */
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .auth-card {
    padding: 16px;
  }

  .page-hero {
    padding: 20px 0 10px;
  }

  .page-hero h1 {
    font-size: 1.3rem;
  }

  /* ── MESSAGES ── */
  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-list {
    max-height: 240px;
    overflow: auto;
    padding: 12px;
  }

  .message-panel {
    padding: 12px;
  }

  .chat-body {
    min-height: 160px;
    max-height: 280px;
  }

  .chat-form input {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  /* ── SELL PAGE ── */
  .sell-full .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .sell-full .section-head h1 {
    font-size: 1.2rem;
  }

  .simple-form.wide {
    width: 100%;
    padding: 12px;
  }

  .simple-form .field label {
    font-size: 0.85rem;
  }

  .simple-form .field input,
  .simple-form .field select {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  /* ── SETTINGS ── */
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-preview {
    position: static;
  }

  .settings-card {
    padding: 12px;
  }

  .settings-head {
    flex-direction: column;
    gap: 8px;
  }

  .settings-head h1 {
    font-size: 1.2rem;
  }

  /* ── GENERAL ── */
  .section {
    padding: 20px 0;
  }

  .hero {
    padding: 30px 0 20px;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 12px;
  }

  /* ── FOOTER ── */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-main .badge-row {
    grid-column: 1 / -1;
  }

  .badge-row {
    grid-template-columns: 1fr;
  }

  .badge-card {
    min-width: auto;
    width: 100%;
  }

  .mega-footer {
    padding-bottom: 0;
  }

  .deploy-stamp {
    display: none;
  }
}

@media (min-width: 961px) {
  .category-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    height: fit-content;
    padding: 0;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    pointer-events: auto;
  }
}

@media (max-width: 880px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .message-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .split,
  .detail-grid,
  .profile-grid,
  .listing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --card-size: 100%;
  }
  .hero {
    padding-top: 50px;
  }
  .search {
    flex-direction: column;
  }
  .listings {
    grid-template-columns: 1fr;
    width: 100%;
  }
}


body.dark-theme .upload-box {
  background: #f7f7f7;
  border-color: #d0d0d0;
}

body.dark-theme .upload-box input[type="file"] {
  background: #ffffff;
  border-color: #d0d0d0;
  color: #121212;
}

body.dark-theme .photo-preview .preview-tile {
  background: linear-gradient(135deg, #ffffff, #f4f4f4);
  border-color: #d0d0d0;
}

body.dark-theme .photo-preview .add-tile {
  border-color: #d0d0d0;
  color: #777;
}

body.dark-theme .photo-preview .add-tile:hover {
  border-color: #999;
  color: #444;
}


.trust-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trust-stars {
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.trust-score {
  font-weight: 700;
  color: var(--accent);
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
  z-index: 999;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  width: min(440px, 92vw);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#avatar {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
}


.inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.inline-actions .btn.small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip.small {
  font-size: 0.8rem;
  padding: 4px 10px;
}

.chip.small.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent-2);
}

.my-listing-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 14px;
  align-items: stretch;
  min-height: 196px;
}

.my-listing-card .photo {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: 160px;
  border-radius: 14px;
  overflow: hidden;
}

.my-listing-photo {
  display: block;
}

.my-listing-card .photo img,
.my-listing-card .photo .photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-listing-card .photo .photo-fallback {
  background: linear-gradient(135deg, #edf0f4, #d7dde6);
}

.my-listing-card .card-body {
  position: static;
  background: transparent;
  backdrop-filter: none;
  gap: 8px;
  display: grid;
  align-content: start;
  min-width: 0;
}

.my-listing-card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-listing-card h3 .seller-link {
  color: inherit;
  text-decoration: none;
}

.my-listing-card h3 .seller-link:hover {
  text-decoration: underline;
}

.my-listing-card .my-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.my-head-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.my-listing-card .inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.my-listing-card .inline-actions .btn.small {
  min-height: 32px;
  padding: 6px 12px;
}

.sold-lock {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: #f4f6f9;
}

body.dark-theme .sold-lock {
  background: #1d2630;
  color: #c8d2dc;
  border-color: #2f3f50;
}

.profile-listings-head {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: center;
  gap: 12px;
}

.profile-listings-head h2 {
  margin: 0;
}

.profile-listings-head .filter-chips {
  justify-self: end;
}

@media (max-width: 980px) {
  .profile-listings-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-listings-head .filter-chips {
    justify-self: stretch;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .my-listing-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .my-listing-card .photo {
    min-height: 188px;
  }

  .my-listing-card .my-head {
    gap: 8px;
  }

  .my-listing-card .my-meta {
    gap: 8px;
  }
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.status-pill.active {
  background: #e6f6ec;
  color: #0b6b3d;
  border-color: #b3e2c5;
}

.status-pill.sold {
  background: #fde7e7;
  color: #b32020;
  border-color: #f7b6b6;
}

.approval-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.approval-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.approval-pill.approved {
  background: #e7f4ff;
  color: #0a4f90;
  border-color: #b9d8f6;
}

.approval-pill.pending {
  background: #fff6df;
  color: #8a5a00;
  border-color: #f1d08b;
}

.approval-pill.rejected {
  background: #fde7e7;
  color: #a31e1e;
  border-color: #f4b0b0;
}

.approval-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.approval-note strong {
  color: var(--text);
}

.my-listing-card .my-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.my-listing-card .my-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f5f8;
  padding: 4px 10px;
  border-radius: 12px;
}

body.dark-theme .my-listing-card .my-meta span {
  background: #1f2a33;
  color: #cfd7de;
}

body.dark-theme .approval-pill.approved {
  background: rgba(80, 156, 235, 0.2);
  color: #9cd0ff;
  border-color: rgba(108, 173, 241, 0.5);
}

body.dark-theme .approval-pill.pending {
  background: rgba(255, 193, 74, 0.17);
  color: #ffd37f;
  border-color: rgba(255, 201, 92, 0.45);
}

body.dark-theme .approval-pill.rejected {
  background: rgba(232, 91, 91, 0.15);
  color: #ffb0b0;
  border-color: rgba(232, 91, 91, 0.45);
}

.admin-shell {
  display: grid;
  gap: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.admin-stats .stat-box {
  margin: 0;
}

.admin-manager {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-manager-head h3 {
  margin: 0 0 6px;
}

.admin-manager-head p {
  margin: 0;
  color: var(--muted);
}

.admin-user-form {
  display: grid;
  gap: 8px;
}

.admin-user-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-form-row input {
  flex: 1 1 280px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.admin-user-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-user-info strong {
  overflow-wrap: anywhere;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 35, 22, 0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-bootstrap,
.admin-no-access {
  padding: 18px;
}

.admin-bootstrap h3,
.admin-no-access h3 {
  margin: 0 0 8px;
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.admin-share {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-share-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-share-head h2 {
  margin: 0 0 6px;
}

.admin-share-head p {
  margin: 0;
  color: var(--muted);
}

.admin-share-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-share-toolbar select {
  min-width: min(100%, 340px);
}

.admin-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.admin-share-stage {
  display: flex;
  justify-content: center;
}

.instagram-share-sheet {
  width: min(100%, 560px);
  aspect-ratio: 4 / 5;
  display: grid;
  grid-template-rows: auto 1.3fr 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

.instagram-share-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.instagram-share-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.instagram-share-brand .brand-dot {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.instagram-share-brand strong,
.instagram-share-brand span {
  display: block;
}

.instagram-share-brand span {
  color: var(--muted);
  font-size: 0.92rem;
}

.instagram-share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 149, 255, 0.1);
  color: #0d5dd7;
  font-weight: 700;
  font-size: 0.9rem;
}

.instagram-share-badge[data-status="pending"] {
  background: rgba(255, 191, 71, 0.16);
  color: #a96200;
}

.instagram-share-badge[data-status="rejected"] {
  background: rgba(232, 91, 91, 0.16);
  color: #a82020;
}

.instagram-share-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(20, 35, 22, 0.06);
}

.instagram-share-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-share-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.instagram-share-content {
  display: grid;
  align-content: start;
  gap: 10px;
}

.instagram-share-code {
  color: var(--muted);
  font-weight: 700;
}

.instagram-share-category {
  color: var(--muted);
  font-size: 0.95rem;
}

.instagram-share-content h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.instagram-share-price {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #c9240f;
}

.instagram-share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.instagram-share-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.instagram-share-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.instagram-share-footer strong {
  color: var(--text);
}

.admin-share-caption {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-share-caption h3 {
  margin: 0;
}

.admin-share-caption textarea {
  min-height: 280px;
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.moderation-card {
  padding: 14px;
}

.moderation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.moderation-head h3 {
  margin: 2px 0 6px;
}

@media (max-width: 720px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-user-form-row,
  .admin-user-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }

  .moderation-head {
    flex-direction: column;
  }

  .admin-share-head,
  .admin-share-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-share-toolbar {
    justify-content: stretch;
  }

  .admin-share-toolbar > * {
    width: 100%;
  }

  .instagram-share-sheet {
    width: 100%;
    max-width: 520px;
  }

  .instagram-share-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.avatar.xxl {
  width: 118px;
  height: 118px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  border: 1px solid var(--line);
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-head h1 {
  margin: 10px 0 6px;
  font-family: "Fraunces", serif;
}

.settings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.settings-preview {
  position: sticky;
  top: 96px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.settings-preview h3 {
  margin: 8px 0 0;
}

.about-preview {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-forms {
  display: grid;
  gap: 18px;
}

.settings-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.settings-card h3 {
  margin: 0 0 4px;
  font-family: "Fraunces", serif;
}

.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 10px 12px;
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

.settings-sep {
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-preview {
    position: static;
  }
}


@media (max-width: 960px) {
  .category-sidebar .filter-header h3,
  .category-sidebar #applyFilter,
  .category-sidebar #brandSearch {
    display: none;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-list {
    max-height: 320px;
    overflow: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 80px;
  }

  .bottom-nav {
    display: flex;
  }

  body.dark-theme .bottom-nav {
    background: #111111;
    border-color: var(--line);
  }

  body.dark-theme .bottom-nav button {
    color: var(--ink);
  }

  .top-search-strip label {
    display: none;
  }

  .top-search-strip {
    padding: 0;
    margin-bottom: 10px;
  }

  .top-search-row input {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .section-head {
    margin-bottom: 12px;
    gap: 10px;
  }

  .section-head h2 {
    font-size: 1.2rem;
  }

  .controls-row {
    gap: 8px;
    width: 100%;
  }

  .sort-control {
    font-size: 0.8rem;
  }

  .sort-control select {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .view-toggle .chip {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

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

  .listings[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .listings[data-view="grid"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .listing-card.grid-mode .photo {
    height: 140px;
  }

  .listing-card.grid-mode h3 {
    font-size: 0.9rem;
  }

  .listing-card.grid-mode .list-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }

  .listing-card.grid-mode .list-meta,
  .listing-card.grid-mode .list-foot {
    font-size: 0.72rem;
    gap: 4px;
  }

  .listing-card.grid-mode .list-price {
    font-size: 0.95rem;
  }

  .listing-card.grid-mode .card-body {
    padding: 10px;
  }

  .category-sidebar {
    height: min(70vh, 600px);
    max-height: min(70vh, 600px);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .filter-close {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .sahibinden-filters {
    padding: 12px;
    gap: 10px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-gallery .photo.large {
    min-height: 220px;
    max-height: 320px;
  }

  .detail-info h1 {
    font-size: 1.3rem;
  }

  .price-line .price {
    font-size: 1.3rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .profile-hero-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .profile-hero-card h1 {
    font-size: 1.2rem;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-card {
    padding: 18px;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-list {
    max-height: 260px;
    overflow: auto;
  }

  .message-panel {
    padding: 14px;
  }

  .chat-body {
    min-height: 180px;
    max-height: 300px;
  }

  .chat-form input {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .section {
    padding: 24px 0;
  }

  body.listing-page .section {
    padding: 12px 0 32px;
  }

  .page-hero {
    padding: 24px 0 12px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .sell-full .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sell-full .section-head h1 {
    font-size: 1.3rem;
  }

  .simple-form.wide {
    width: 100%;
    padding: 14px;
  }

  .simple-form .field label {
    font-size: 0.88rem;
  }

  .simple-form .field input,
  .simple-form .field select {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
  }

  .similar-row {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .listing-card.mini .photo {
    height: 110px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-main .badge-row {
    grid-column: 1 / -1;
  }

  .badge-row {
    grid-template-columns: 1fr;
  }

  .badge-card {
    min-width: auto;
    width: 100%;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-preview {
    position: static;
  }

  .settings-card {
    padding: 14px;
  }

  .mega-footer {
    padding-bottom: 80px;
  }
}

/* Canonical mobile listing + profile overlay rules */
.mobile-profile-btn,
.mobile-profile-menu {
  display: none;
}

.profile-backdrop { display: none !important; }

body.profile-menu-open {
  overflow: hidden;
}

body.profile-menu-open .profile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.listing-market-page.listing-filters-open .mobile-profile-menu {
  opacity: 0;
  pointer-events: none;
}

body.listing-market-page.profile-menu-open .filter-backdrop {
  opacity: 0;
  pointer-events: none;
}

body.listing-market-page.profile-menu-open .category-sidebar {
  transform: translateX(-100%);
  pointer-events: none;
}

body.listing-market-page.listing-filters-open .filter-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 960px) {
  body.listing-market-page .listing-layout {
    grid-template-columns: 1fr;
  }

  body.listing-market-page .category-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(86vw, 340px);
    max-width: 340px;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 18px 18px 0;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 14px 0 28px rgba(0, 0, 0, 0.2);
    z-index: var(--z-filter-drawer);
    pointer-events: none;
    overscroll-behavior: contain;
    background: var(--card);
  }

  body.listing-market-page.listing-filters-open .category-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.listing-market-page .filter-toggle-btn,
  body.listing-market-page .filter-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  body.listing-market-page .filter-toggle-btn {
    margin-right: auto;
  }

  body.listing-market-page .filter-close {
    margin-left: auto;
  }

  body.listing-market-page .sahibinden-filters {
    min-height: calc(100dvh - 32px);
    max-height: none;
  }

  body.listing-market-page .filter-backdrop {
    z-index: var(--z-filter-backdrop);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
  }

  body.listing-market-page .category-sidebar .filter-header h3 {
    display: block;
  }

  body.listing-market-page .category-sidebar #applyFilter {
    display: inline-flex;
  }

  body.listing-market-page .category-sidebar #brandSearch {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-header {
    z-index: var(--z-header-mobile);
  }

  body.sell-page .sell-full .section-head,
  body.sell-page .simple-form.wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    justify-self: stretch;
  }

  .site-header .container {
    position: relative;
    grid-template-columns: 40px 1fr 40px;
    padding: 8px 12px;
  }

  .mobile-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a1a;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    position: relative;
  }

  .mobile-profile-btn.is-auth {
    background: linear-gradient(135deg, #111111, #2a2a2a);
    color: #ffffff;
  }

  body.dark-theme .mobile-profile-btn.is-auth {
    background: linear-gradient(135deg, #f0f0f0, #cccccc);
    color: #111111;
  }

  .mobile-profile-btn-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-profile-btn.has-avatar {
    color: transparent;
  }

  .mobile-profile-menu {
    display: grid;
    gap: 4px;
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    right: 12px;
    width: min(86vw, 280px);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    z-index: var(--z-profile-menu);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-profile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-profile-menu a,
  .mobile-profile-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    min-width: 0;
  }

  .mobile-profile-summary {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 4px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 72%, var(--bg-2));
  }

  .mobile-profile-summary-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
  }

  .mobile-profile-summary-avatar::before {
    content: attr(data-initial);
  }

  .mobile-profile-summary-avatar.has-avatar::before {
    content: "";
  }

  .mobile-profile-summary-avatar-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-profile-summary-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-profile-summary-meta strong,
  .mobile-profile-summary-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-profile-summary-meta span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .mobile-profile-menu [hidden] {
    display: none !important;
  }

  .mobile-profile-menu a:hover,
  .mobile-profile-menu button:hover {
    background: color-mix(in srgb, var(--line) 35%, transparent);
  }

  .mobile-profile-menu .mobile-profile-logout {
    color: #b32020;
  }

  body.listing-market-page {
    padding-bottom: 0;
  }

  body.listing-market-page .bottom-nav {
    display: none !important;
  }

  body.listing-market-page .category-sidebar {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
    top: var(--listing-mobile-header-offset);
    height: calc(100dvh - var(--listing-mobile-header-offset));
    max-height: calc(100dvh - var(--listing-mobile-header-offset));
    background: var(--bg-2);
    z-index: 999;
    display: block !important;
    visibility: visible !important;
  }

  body.listing-market-page .filter-backdrop {
    top: var(--listing-mobile-header-offset);
  }

  body.listing-market-page .filter-close {
    margin: 2px 0 8px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
  }

  body.listing-market-page .sahibinden-filters {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 10px;
    min-height: auto;
  }

  body.listing-market-page .filter-header {
    padding: 4px 0 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2px;
  }

  body.listing-market-page .filter-header h3 {
    font-size: 1rem;
    font-weight: 700;
  }

  body.listing-market-page .filter-list-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
  }

  body.listing-market-page .brand-filter input,
  body.listing-market-page .top-search-row input {
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  body.listing-market-page .brand-tree {
    border-radius: 10px;
    padding: 6px 8px;
    background: transparent;
  }

  body.listing-market-page .brand-tree ul {
    padding-left: 10px;
  }

  body.listing-market-page .brand-tree li {
    padding: 3px 0 0 2px;
  }

  body.listing-market-page .brand-tree li::before {
    display: none;
  }

  body.listing-market-page #clearBrand {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
  }

  body.listing-market-page #filterSummary {
    color: var(--muted);
    font-size: 0.84rem;
    padding-top: 4px;
  }

  body.listing-market-page .drawer-toggle,
  body.listing-market-page .mobile-profile-btn {
    box-shadow: none;
    border-color: color-mix(in srgb, var(--line) 80%, transparent);
  }

  body.listing-market-page.listing-filters-open .category-sidebar {
    transform: translateX(0) !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.listing-market-page .listings[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.listing-market-page .listings[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.listing-market-page .listing-card.grid-mode .photo {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  body.listing-market-page .listing-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  body.listing-market-page .listing-card.grid-mode .card-body {
    padding: 8px 9px 10px;
    gap: 4px;
  }

  body.listing-market-page .listing-card.grid-mode h3 {
    font-size: 0.84rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.listing-market-page .listing-card.grid-mode .list-desc {
    font-size: 0.74rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body.listing-market-page .listing-card.grid-mode .list-meta,
  body.listing-market-page .listing-card.grid-mode .list-foot {
    font-size: 0.66rem;
    gap: 3px;
  }

  body.listing-market-page .listing-card.list-mode {
    grid-template-columns: 96px 1fr;
    gap: 8px;
    padding: 8px;
    align-items: start;
  }

  body.listing-market-page .listing-card.list-mode .list-photo {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    aspect-ratio: 1 / 1;
    align-self: start;
    background: #f1f3f6;
  }

  body.dark-theme.listing-market-page .listing-card.list-mode .list-photo {
    background: #1b1b1b;
  }

  body.listing-market-page .listing-card.list-mode .list-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    background: inherit;
  }
}
