/* =========================================================
   İlan platformu — ön yüz stilleri
   Renkler ve yazı tipi panelden gelir (:root değişkenleri layout'ta basılır)
   ========================================================= */
:root {
    --color-primary: #111111;
    --color-accent: #f5b301;
    --color-accent-text: #111111;
    --color-bg: #f4f5f7;
    --color-surface: #ffffff;
    --color-text: #1b1d21;
    --color-link: #1a56db;
    --color-muted: #6b7280;
    --color-border: #e3e5e8;
    --color-success: #16803c;
    --color-warning: #b45309;
    --color-danger: #c81e1e;
    --color-info: #1d4ed8;
    --radius: 10px;
    --font-base: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-lg: 0 8px 24px rgba(16, 24, 40, .12);
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
.site-main { flex: 1; padding-bottom: 48px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-accent); color: var(--color-accent-text); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--color-muted); }
.small { font-size: 13px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }
.mobile-only { display: none !important; }
@media (max-width: 900px) {
    .mobile-only { display: revert !important; }
    .desktop-only { display: none !important; }
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
    min-height: 42px; line-height: 1.2;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.25); }
.btn-accent { background: var(--color-accent); color: var(--color-accent-text); }
.btn-accent:hover { filter: brightness(1.06); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn-outline { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-muted); }
.btn-ghost:hover { background: rgba(0,0,0,.05); color: var(--color-text); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; border-radius: 8px; display: inline-flex; }
.link-btn { background: none; border: 0; padding: 0; color: var(--color-link); cursor: pointer; text-decoration: underline; }

/* ---------- Header ---------- */
.announcement { font-size: 14px; padding: 8px 0; text-align: center; }
.announcement-info { background: #e8f0fe; color: #1e3a8a; }
.announcement-warning { background: #fff4d6; color: #7a4b00; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 40; }
.header-dark .site-header { background: var(--color-primary); color: #fff; border-bottom-color: rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; flex-shrink: 0; color: inherit; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo img { height: 30px; width: auto; }
.header-search { flex: 1; display: flex; max-width: 560px; background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); overflow: hidden; }
.header-search input { flex: 1; border: 0; padding: 10px 14px; outline: none; min-width: 0; color: #1b1d21; background: #fff; }
.header-search button { border: 0; background: var(--color-accent); color: var(--color-accent-text); padding: 0 16px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: inherit; font-size: 14px; font-weight: 500; position: relative; cursor: pointer; list-style: none; }
.header-link::-webkit-details-marker { display: none; }
.header-link:hover { background: rgba(127,127,127,.15); text-decoration: none; }
.btn-post { margin-left: 8px; }
.badge-count { background: var(--color-danger); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 6px; font-weight: 700; line-height: 1.4; }
.header-link .badge-count { position: absolute; top: 0; right: 0; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; z-index: 50; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--color-text); background: none; border: 0; cursor: pointer; font-size: 14px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--color-bg); text-decoration: none; }

.main-nav { border-top: 1px solid rgba(127,127,127,.15); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: block; padding: 10px 12px; color: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: .9; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { opacity: 1; text-decoration: none; border-bottom-color: var(--color-accent); }

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
    .logo img { height: 24px; }
    .header-search { order: 10; flex-basis: 100%; max-width: none; }
    .btn-post span { display: none; }
    .btn-post { padding: 8px 12px; margin-left: 4px; }
    .header-link span:not(.badge-count) { display: none; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 8px 0; }
    .main-nav a { border-bottom: 0; padding: 12px 4px; }
}

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--color-primary) 78%, #000); color: rgba(255,255,255,.75); margin-top: auto; font-size: 14px; }
.site-footer a { color: #e5e7eb; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding: 40px 16px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 12px; }
.footer-brand p { max-width: 360px; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Genel bileşenler ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-heading { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-heading.small { font-size: 15px; }
.page-title { font-size: 24px; margin: 0 0 4px; }
.section { margin-top: 32px; }
.section-title { font-size: 20px; margin-bottom: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head .section-title, .section-head .page-title { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }
.flash-stack { margin-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid; font-size: 14px; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-info { background: #eff4ff; border-color: #c7d7fe; color: #1e3a8a; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #7a4b00; }
.alert-danger { background: #fef3f2; border-color: #fecdca; color: #912018; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #3f4651; }
.badge-success { background: #dcfae6; color: #067647; }
.badge-warning { background: #fef0c7; color: #93370d; }
.badge-danger { background: #fee4e2; color: #b42318; }
.badge-info { background: #dbe8ff; color: #1d4ed8; }
.badge-muted { background: #eef0f3; color: #4b5563; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--color-muted); }
.empty-state .icon { margin: 0 auto 12px; color: #9aa1ab; }
.empty-state h2 { color: var(--color-text); font-size: 19px; }
.error-page .error-code { font-size: 64px; font-weight: 800; color: var(--color-text); margin: 0; line-height: 1; }
.error-page { padding-top: 80px; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 16px 0; font-size: 13px; color: var(--color-muted); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 4px; }
.breadcrumbs a { color: var(--color-muted); }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); padding: 0 10px; font-size: 14px; }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 700; }
.pagination .gap { border: 0; background: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--color-muted); white-space: nowrap; border-bottom: 2px solid transparent; font-weight: 500; font-size: 14px; }
.tabs a.active { color: var(--color-text); border-bottom-color: var(--color-accent); }
.tabs a:hover { text-decoration: none; color: var(--color-text); }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field > label, .filter-title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfd3d9; border-radius: calc(var(--radius) * .8); background: #fff; color: #1b1d21; min-height: 42px;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); outline: 2px solid color-mix(in srgb, var(--color-accent) 50%, transparent); outline-offset: 0; }
input:disabled, select:disabled { background: #f3f4f6; color: #8b9097; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; margin-bottom: 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }
.help { font-size: 13px; color: var(--color-muted); margin: 4px 0 0; }
.field-error { color: var(--color-danger); font-size: 13px; margin: 6px 0 0; font-weight: 500; }
.field-error::before { content: '⚠ '; }
.req { color: var(--color-danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .field-check { align-self: end; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 4px; }
.field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; gap: 8px; flex-wrap: wrap; }
.input-group { display: flex; }
.input-group input { border-radius: calc(var(--radius) * .8) 0 0 calc(var(--radius) * .8); }
.input-group select { width: auto; border-left: 0; border-radius: 0 calc(var(--radius) * .8) calc(var(--radius) * .8) 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 160px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Ana sayfa ---------- */
.hero { background: var(--color-primary); color: #fff; padding: 40px 0 44px; }
.hero { background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, var(--color-accent))); }
.hero h1 { font-size: clamp(24px, 4vw, 36px); max-width: 720px; }
.hero-search { display: flex; gap: 8px; max-width: 720px; margin-top: 18px; background: #fff; padding: 6px; border-radius: calc(var(--radius) + 4px); }
.hero-search input { border: 0; min-height: 46px; font-size: 16px; }
.hero-search input:focus { outline: none; }
.hero-note { margin-top: 14px; font-size: 14px; opacity: .85; display: flex; gap: 6px; align-items: center; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.category-tile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 12px; text-align: center; color: var(--color-text); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s; }
.category-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-icon { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 22%, #fff); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.category-tile img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.tile-name { font-weight: 600; font-size: 14px; }
.tile-count { font-size: 12px; color: var(--color-muted); }
.banner-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.banner img { border-radius: var(--radius); width: 100%; }
.banner-wide { display: block; margin-bottom: 16px; }

/* ---------- İlan kartları ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.listing-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.listing-card.is-inactive { opacity: .7; }
.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-media { aspect-ratio: 4 / 3; background: #eceef1; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ribbon { position: absolute; left: 8px; top: 8px; background: var(--color-accent); color: var(--color-accent-text); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-size: 15px; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card-attrs { font-size: 13px; color: var(--color-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 17px; font-weight: 800; color: var(--color-primary); margin: 2px 0 0; }
.header-dark .card-price { color: var(--color-text); }
.header-light .site-header .header-search { border-color: color-mix(in srgb, var(--color-text) 20%, transparent); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--color-muted); margin: auto 0 0; padding-top: 6px; }
.card-meta span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-form { position: absolute; top: 8px; right: 8px; }
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #4b5563; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.fav-btn:hover { color: var(--color-danger); }
.fav-btn.active, .fav-btn-wide.active { color: var(--color-danger); }
.fav-btn.active svg, .fav-btn-wide.active svg { fill: currentColor; }
@media (max-width: 520px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card-body { padding: 10px; } .card-price { font-size: 15px; } }

/* ---------- Arama ---------- */
.search-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-tools { display: flex; gap: 8px; align-items: center; }
.sort-form select { min-width: 170px; }
.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.filter-group { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.filter-group select + select { margin-top: 8px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subcat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 14px; }
.subcat-list a { color: var(--color-text); display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.check-list.scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: 13px; }
.chip:hover { border-color: var(--color-danger); color: var(--color-danger); text-decoration: none; }
.chip-clear { border-style: dashed; }
@media (max-width: 900px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters { display: none; position: static; max-height: none; }
    .filters.open { display: block; }
}

/* ---------- İlan detay ---------- */
.detail-head { margin-bottom: 16px; }
.detail-sub { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.detail-sub span { display: inline-flex; gap: 4px; align-items: center; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail-side { position: sticky; top: 130px; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { position: static; } }
.gallery { margin-bottom: 16px; }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: var(--radius); overflow: hidden; }
.gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .2s; }
.gallery-image.active { opacity: 1; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #111; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; flex: 0 0 84px; height: 63px; background: none; }
.gallery-thumbs button.active { border-color: var(--color-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { margin: 0; display: grid; }
.spec-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.spec-table > div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--color-muted); }
.spec-table dd { margin: 0; font-weight: 600; }
.spec-table .price { color: var(--color-primary); }
.description { white-space: normal; overflow-wrap: anywhere; }
.big-price { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.price-card .btn + .btn, .price-card form { margin-top: 8px; }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.seller-name { font-weight: 700; font-size: 16px; color: var(--color-text); }
.seller-card .btn { margin-bottom: 8px; }
.message-form textarea { margin-bottom: 8px; }
.avatar { border-radius: 50%; object-fit: cover; width: 56px; height: 56px; background: #e5e7eb; }
.avatar-lg { width: 80px; height: 80px; }
.report summary { cursor: pointer; color: var(--color-muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report form { margin-top: 10px; display: grid; gap: 8px; font-size: 14px; }
.report-pop { position: absolute; right: 0; background: var(--color-surface); padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 280px; z-index: 10; }
@media (max-width: 520px) { .spec-table > div { grid-template-columns: 1fr 1fr; } }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.profile-info { flex: 1; min-width: 200px; }
.profile-actions { display: flex; gap: 8px; position: relative; align-items: flex-start; }
.profile-actions .report { position: relative; }

/* ---------- Kimlik doğrulama ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; }
.auth-card { width: 100%; max-width: 440px; padding: 28px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; }

/* ---------- Hesabım ---------- */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding-top: 20px; align-items: start; }
.account-nav { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 8px; display: grid; gap: 2px; position: sticky; top: 130px; }
.account-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--color-text); font-weight: 500; font-size: 14px; }
.account-nav a:hover { background: var(--color-bg); text-decoration: none; }
.account-nav a.active { background: var(--color-primary); color: #fff; }
@media (max-width: 900px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; overflow-x: auto; }
    .account-nav a { white-space: nowrap; }
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px; color: var(--color-text); display: flex; flex-direction: column; }
.stat:hover { text-decoration: none; border-color: var(--color-text); }
.stat b { font-size: 24px; }
.stat span { font-size: 13px; color: var(--color-muted); }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.danger-zone { border-color: #fecdca; }

.my-listings { display: grid; gap: 12px; }
.my-listing { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px; margin: 0; }
.my-thumb img { width: 140px; height: 105px; object-fit: cover; border-radius: 8px; background: #eceef1; }
.my-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.my-title { font-size: 16px; margin: 6px 0 2px; }
.my-title a { color: var(--color-text); }
.my-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.my-actions form { margin: 0; }
.my-actions .btn { width: 100%; }
@media (max-width: 720px) {
    .my-listing { grid-template-columns: 96px minmax(0, 1fr); }
    .my-thumb img { width: 96px; height: 72px; }
    .my-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .my-actions .btn { width: auto; }
}

/* İlan formu */
.step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 13px; align-items: center; justify-content: center; }
.picker-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.picker-columns select { min-height: 180px; padding: 4px; }
.picker-columns select option { padding: 6px 8px; border-radius: 4px; }
.picker-path { margin-top: 8px; font-weight: 600; color: var(--color-text); }
.dropzone { border: 2px dashed #cfd3d9; border-radius: var(--radius); padding: 28px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: var(--color-muted); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--color-primary); background: #fafafa; }
.dropzone input { max-width: 100%; font-size: 13px; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-previews figure { margin: 0; position: relative; }
.photo-previews img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-previews figcaption { font-size: 11px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-previews .invalid img { outline: 2px solid var(--color-danger); opacity: .5; }
.photo-manager { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-manager li { position: relative; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; background: #fff; cursor: grab; }
.photo-manager li.dragging { opacity: .4; }
.photo-manager li.is-cover { outline: 2px solid var(--color-accent); }
.photo-manager img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-actions { display: flex; justify-content: space-between; gap: 4px; padding: 6px; }
.cover-label { position: absolute; top: 6px; left: 6px; background: var(--color-accent); color: var(--color-accent-text); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--color-bg); padding: 12px 0; border-top: 1px solid var(--color-border); z-index: 5; }
.char-counter { font-size: 12px; color: var(--color-muted); text-align: right; margin-top: 2px; }

/* Mesajlar */
.inbox { list-style: none; padding: 0; overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--color-border); }
.inbox a { display: flex; gap: 12px; padding: 14px 16px; color: var(--color-text); align-items: center; }
.inbox a:hover { background: var(--color-bg); text-decoration: none; }
.inbox img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #eceef1; }
.inbox-body { flex: 1; min-width: 0; }
.inbox-body p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox li.unread { background: #fffbeb; }
.back-link { display: inline-flex; gap: 4px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.conv-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.conv-head p { margin: 0; }
.conv-other { display: flex; gap: 8px; align-items: center; }
.messages { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 14px; background: var(--color-bg); overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--color-primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs .bubble { border-bottom-left-radius: 4px; }
.reply-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.reply-form textarea { flex: 1; min-width: 200px; }

/* Statik sayfa içerik */
.prose { line-height: 1.7; }
.prose h2 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--color-border); padding: 8px; }

/* Bakım ve kurulum */
.maintenance { display: flex; align-items: center; justify-content: center; }
.maintenance-box { text-align: center; max-width: 480px; padding: 32px 16px; }
.maintenance-box img { margin: 0 auto 24px; height: 40px; width: auto; }
.install { padding: 32px 16px; }
.install-wrap { max-width: 760px; margin: 0 auto; }
.install-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.install-brand img { height: 36px; width: auto; }
.req-list { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 14px; margin-bottom: 16px; }
.req-list .ok { color: var(--color-success); }
.req-list .fail { color: var(--color-danger); font-weight: 600; }

@media print {
    .site-header, .site-footer, .detail-side, .gallery-thumbs { display: none; }
}

/* Galeri: tam ekran */
.gallery-stage { cursor: zoom-in; }
.gallery-thumbs { scrollbar-width: thin; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 999px; }

/* ---------- Giriş / üyelik ekranları ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 980px; margin: 32px auto 0; background: var(--color-surface); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 20px 50px rgba(16, 24, 40, .12); border: 1px solid var(--color-border); }
.auth-aside { position: relative; color: #fff; padding: 44px 40px; background: linear-gradient(150deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 65%, var(--color-accent))); overflow: hidden; }
.auth-aside::before, .auth-aside::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-aside::before { width: 340px; height: 340px; right: -120px; top: -100px; }
.auth-aside::after { width: 260px; height: 260px; left: -90px; bottom: -110px; background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.auth-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.auth-logo { height: 30px; width: auto; margin-bottom: 40px; }
.auth-aside h2 { font-size: 26px; line-height: 1.25; margin-bottom: 24px; }
.auth-benefits { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; font-size: 15px; }
.auth-benefits li { display: flex; gap: 12px; align-items: center; }
.auth-benefits span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); }
.auth-stats { margin-top: auto; display: flex; gap: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.auth-stats b { display: block; font-size: 24px; }
.auth-stats span { font-size: 13px; opacity: .75; }
.auth-panel { padding: 44px 44px 40px; }
.auth-title { font-size: 26px; margin-bottom: 6px; }
.auth-sub { color: var(--color-muted); margin-bottom: 24px; font-size: 14px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon, .input-icon > .input-prefix { position: absolute; left: 13px; color: #9aa1ab; pointer-events: none; font-weight: 600; }
.input-icon input { padding-left: 42px; min-height: 48px; border-radius: calc(var(--radius) * .9); background: #fafbfc; transition: border-color .15s, background .15s, box-shadow .15s; }
.input-icon input:focus { background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 25%, transparent); outline: none; }
.input-icon:focus-within > .icon { color: var(--color-primary); }
.pw-toggle { position: absolute; right: 6px; background: none; border: 0; padding: 8px; color: #9aa1ab; cursor: pointer; border-radius: 6px; display: inline-flex; }
.pw-toggle:hover, .pw-toggle.on { color: var(--color-primary); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.label-row label { font-weight: 600; font-size: 14px; }
.btn-lg { min-height: 50px; font-size: 16px; margin-top: 6px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: 13px; margin: 22px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.pw-meter { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--color-muted); min-height: 16px; }
.pw-meter i { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; position: relative; overflow: hidden; }
.pw-meter i::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, #e5e7eb); transition: width .2s, background .2s; }
.auth-panel .form-grid { gap: 0 14px; }
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; margin-top: 16px; }
    .auth-aside { padding: 28px 24px; }
    .auth-aside h2 { font-size: 20px; margin-bottom: 0; }
    .auth-logo { margin-bottom: 16px; }
    .auth-benefits, .auth-stats { display: none; }
    .auth-panel { padding: 28px 20px; }
}

/* ---------- İlan detay (yenilenmiş) ---------- */
.detail-head { margin: 4px 0 18px; }
.detail-title { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 8px; letter-spacing: -.01em; }
.detail-sub { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; color: var(--color-muted); margin: 0; }
.detail-sub span { display: inline-flex; gap: 5px; align-items: center; }
.badge-accent { background: var(--color-accent); color: var(--color-accent-text); display: inline-flex; gap: 4px; align-items: center; }
.gallery { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: calc(var(--radius) + 2px); padding: 10px; box-shadow: var(--shadow); margin-bottom: 16px; }
.gallery-stage { background: #0f1013; border-radius: var(--radius); }
.gallery-image { transition: opacity .3s ease; }
.gallery-nav { opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.gallery-stage:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-nav { opacity: .9; } }
.gallery-zoom { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.gallery-stage:hover .gallery-zoom { opacity: 1; }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 8px) / 6); gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumbs button { flex: none; height: auto; aspect-ratio: 4 / 3; border: 2px solid transparent; opacity: .65; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { opacity: 1; border-color: var(--color-accent); }
@media (max-width: 640px) { .gallery { padding: 6px; } .gallery-thumbs { grid-auto-columns: 22%; } }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.spec { background: var(--color-bg); border-radius: calc(var(--radius) * .8); padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.spec dt { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.spec dd { margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.description { line-height: 1.75; font-size: 15px; }

.summary-card { padding: 0; overflow: hidden; }
.summary-card > .btn, .summary-card > form { margin: 0 18px 18px; width: calc(100% - 36px); }
.summary-card > form .btn { width: 100%; }
.summary-price { padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)), var(--color-surface)); border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); font-weight: 600; }
.summary-price strong { font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.summary-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); border-bottom: 1px solid var(--color-border); }
.summary-highlights span { background: var(--color-surface); padding: 10px 18px; font-weight: 700; font-size: 14px; }
.summary-highlights small { display: block; font-weight: 400; color: var(--color-muted); font-size: 12px; }
.summary-facts { list-style: none; margin: 0; padding: 8px 18px 14px; font-size: 14px; }
.summary-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.summary-facts li:last-child { border-bottom: 0; }
.summary-facts span { color: var(--color-muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.summary-facts b { text-align: right; font-weight: 600; }
.seller-all { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.lightbox img { animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-thumbs { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; max-width: 92vw; overflow-x: auto; }
.lb-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; opacity: .5; cursor: pointer; border: 2px solid transparent; animation: none; max-width: none; max-height: none; }
.lb-thumbs img.active { opacity: 1; border-color: var(--color-accent); }


/* ---------- Araç boya / değişen şeması ---------- */
.car-damage { width: 100%; }
.damage-body { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.car-svg { width: 100%; height: auto; max-height: 460px; }
.car-svg .car-shell { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 2; }
.car-svg .glass { fill: #cbd5e1; opacity: .7; }
.car-svg .wheel { fill: #1f2937; }
.car-svg .part { stroke: #fff; stroke-width: 3; transition: fill .15s, filter .15s; }
.car-svg .car-label { font-size: 11px; font-weight: 700; fill: #94a3b8; letter-spacing: .1em; }
.car-damage.is-editable .part { cursor: pointer; }
.car-damage.is-editable .part:hover, .car-damage.is-editable .part:focus { filter: brightness(.9) drop-shadow(0 0 2px rgba(0,0,0,.35)); outline: none; }
.damage-legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.damage-legend li, .brush { display: inline-flex; align-items: center; gap: 6px; }
.damage-legend i, .brush i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.damage-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; font-size: 14px; }
.damage-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--color-border); }
.damage-list li.is-original { color: var(--color-muted); }
.st { font-size: 12px; padding: 1px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.st-original { background: #f1f5f9; color: #64748b; }
.st-local_paint { background: #fef3c7; color: #92400e; }
.st-painted { background: #dbeafe; color: #1e40af; }
.st-changed { background: #fee2e2; color: #991b1b; }
.damage-brushes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.brush, .brush-reset { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 500; }
.brush.active { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent); font-weight: 700; }
.brush-reset { color: var(--color-muted); border-style: dashed; }
@media (max-width: 720px) {
    .damage-body { grid-template-columns: 1fr; }
    .car-svg { max-width: 240px; margin: 0 auto; display: block; }
    .damage-list { grid-template-columns: 1fr; }
}


/* Evet / Hayır seçimi */
.segmented { display: inline-flex; border: 1px solid #cfd3d9; border-radius: calc(var(--radius) * .8); overflow: hidden; background: #fff; }
.segmented label { margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px 16px; font-size: 14px; font-weight: 500; border-right: 1px solid #e5e7eb; }
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--color-primary); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.filters .segmented { display: flex; }
.filters .segmented label { flex: 1; text-align: center; }
.filters .segmented span { padding: 7px 4px; font-size: 13px; }

.opt-search { min-height: 34px !important; padding: 6px 10px !important; font-size: 13px; margin-bottom: 6px; }

/* ---------- Ana sayfa (yenilenmiş) ---------- */
.hero-home { position: relative; overflow: hidden; padding: 52px 0 40px; }
.hero-home::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -220px; background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.hero-home::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; left: -140px; bottom: -220px; background: rgba(255,255,255,.05); }
.hero-home .container { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hero-kicker .icon { color: var(--color-accent); }
.hero-home h1 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -.02em; max-width: 760px; margin-bottom: 10px; }
.hero-lead { max-width: 640px; opacity: .85; font-size: 16px; margin-bottom: 24px; }
.quick-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 0; background: #fff; border-radius: calc(var(--radius) + 6px); padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.25); color: #1b1d21; }
.qs-field { padding: 6px 14px; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; min-width: 0; }
.qs-field:nth-last-child(2) { border-right: 0; }
.qs-field label { font-size: 12px; font-weight: 700; color: #6b7280; display: inline-flex; gap: 5px; align-items: center; text-transform: uppercase; letter-spacing: .03em; }
.qs-field input, .qs-field select { border: 0 !important; padding: 4px 0 !important; min-height: 32px !important; font-size: 15px; background: transparent; outline: none !important; box-shadow: none !important; }
.qs-submit { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: calc(var(--radius) + 2px); }
.hero-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.hero-popular span { opacity: .7; }
.hero-popular a { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 4px 12px; border-radius: 999px; }
.hero-popular a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats b { display: block; font-size: 24px; }
.hero-stats span { font-size: 13px; opacity: .7; }
@media (max-width: 900px) {
    .quick-search { grid-template-columns: 1fr 1fr; gap: 4px; }
    .qs-grow { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #e5e7eb; }
    .qs-field:nth-child(2) { border-right: 1px solid #e5e7eb; }
    .qs-submit { grid-column: 1 / -1; min-height: 48px; }
    .hero-stats { gap: 12px 24px; }
}

.section-title .icon { color: var(--color-accent); vertical-align: -3px; }

.steps-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: calc(var(--radius) + 8px); padding: 36px 28px; box-shadow: var(--shadow); text-align: center; }
.steps-head { margin-bottom: 26px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: none; }
.steps::before { content: ''; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px); z-index: 0; }
.step-card { position: relative; z-index: 1; padding: 0 8px; }
.step-icon { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent); color: var(--color-primary); box-shadow: 0 0 0 8px var(--color-surface); }
.step-no { position: absolute; top: -4px; left: calc(50% + 22px); width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-text); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--color-muted); margin: 0; }
.steps-cta { margin-top: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 26px 14px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { display: flex; gap: 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.feature > span { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 20%, var(--color-surface)); color: var(--color-primary); }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--color-muted); margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px 36px; border-radius: calc(var(--radius) + 8px); color: #fff; background: linear-gradient(120deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent))); position: relative; overflow: hidden; }
.cta-band h2 { font-size: 24px; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .85; }


/* Kategori ikonları (arama) */
.subcat-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.subcat-list a:hover { background: var(--color-bg); text-decoration: none; }
.subcat-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)); color: var(--color-primary); }
.subcat-name { flex: 1; min-width: 0; }
.subcat-count { font-size: 12px; color: var(--color-muted); background: var(--color-bg); border-radius: 999px; padding: 1px 8px; }
.subcat-back a { color: var(--color-muted); font-size: 13px; padding-left: 4px; }
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 14px; scrollbar-width: thin; }
.cat-strip a { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 104px; padding: 12px 10px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); font-size: 13px; font-weight: 600; text-align: center; transition: border-color .15s, transform .15s; }
.cat-strip a:hover { text-decoration: none; border-color: var(--color-accent); transform: translateY(-2px); }
.cat-strip small { color: var(--color-muted); font-weight: 400; }
.cat-strip-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 22%, var(--color-surface)); color: var(--color-primary); flex-shrink: 0; }
.cat-current { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-current strong { display: block; font-size: 15px; }
.hero-popular a { display: inline-flex; align-items: center; gap: 5px; }
.summary-highlights span:last-child:nth-child(odd) { grid-column: 1 / -1; }
.auth-logo { align-self: flex-start; object-fit: contain; max-width: 220px; }

.car-svg { max-height: 480px; }
.car-svg .car-shell { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 2.5; }
.car-svg .mirror { fill: #94a3b8; }
.car-svg .glass { fill: #9fb3c8; opacity: .85; }
.car-svg .part { stroke: #ffffff; stroke-width: 3; stroke-linejoin: round; }
.damage-body { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
.damage-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.damage-list li { align-items: center; }
.damage-list .st { flex-shrink: 0; }


/* ---------- Bildirimler (toast) ---------- */
.flash-stack { display: none; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 16px 14px; background: #fff; color: #1b1d21; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08); border-left: 4px solid #16803c; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.leaving { opacity: 0; transform: translateX(30px); }
.toast p { margin: 0; flex: 1; }
.toast-icon { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #dcfae6; color: #067647; }
.toast-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 22px; line-height: 1; color: #9aa1ab; cursor: pointer; padding: 2px 4px; }
.toast-close:hover { color: #1b1d21; }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .15; transform-origin: left; animation: toast-timer var(--toast-ms, 5000ms) linear forwards; }
.toast.paused .toast-timer { animation-play-state: paused; }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-success { border-left-color: #16803c; }
.toast-info { border-left-color: #1d4ed8; } .toast-info .toast-icon { background: #dbe8ff; color: #1d4ed8; }
.toast-warning { border-left-color: #d97706; } .toast-warning .toast-icon { background: #fef0c7; color: #93370d; }
.toast-danger { border-left-color: #c81e1e; } .toast-danger .toast-icon { background: #fee4e2; color: #b42318; }
@media (max-width: 520px) { .toast-stack { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-timer { transition: none; animation: none; } }


/* ---------- İlan verme sihirbazı ---------- */
.wizard-on .wizard-panel { display: none; }
.wizard-on .wizard-panel.active { display: block; animation: wz-in .25s ease; }
@keyframes wz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 6px; padding: 18px 12px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.wizard-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--color-muted); font-size: 13px; font-weight: 600; padding: 0; }
.wizard-step:disabled { cursor: not-allowed; opacity: .7; }
.ws-dot { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-muted); font-weight: 800; transition: all .2s; }
.ws-check { display: none; }
.wizard-step.active .ws-dot { border-color: var(--color-primary); background: var(--color-primary); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.wizard-step.active { color: var(--color-text); }
.wizard-step.done .ws-dot { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-text); }
.wizard-step.done .ws-num { display: none; }
.wizard-step.done .ws-check { display: block; }
.ws-bar { position: absolute; left: calc(12.5% + 6px); right: calc(12.5% + 6px); top: 34px; height: 3px; background: var(--color-border); border-radius: 2px; z-index: 0; }
.ws-bar i { display: block; height: 100%; width: 0; background: var(--color-accent); border-radius: 2px; transition: width .3s; }
@media (max-width: 560px) { .ws-label { font-size: 11px; text-align: center; } }
.autosave-status { min-height: 20px; font-size: 13px; color: var(--color-muted); margin: 0 0 10px; text-align: right; }
.autosave-status.ok { color: var(--color-success); }
.autosave-status.warn { color: var(--color-warning); }
.wizard-actions { align-items: center; }
.wizard-spacer { flex: 1; }
.draft-restore { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--radius); background: #eff4ff; border: 1px solid #c7d7fe; color: #1e3a8a; font-size: 14px; }
.draft-restore[hidden] { display: none; }
.draft-restore span { flex: 1; min-width: 200px; }

/* Kategori seçici: sağa doğru açılan paneller */
.picker-columns { display: flex !important; gap: 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); scroll-snap-type: x proximity; min-height: 320px; }
.picker-col { flex: 0 0 240px; max-height: 360px; overflow-y: auto; border-right: 1px solid var(--color-border); padding: 6px; scroll-snap-align: start; animation: col-in .2s ease; }
@keyframes col-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.picker-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; color: var(--color-text); }
.picker-item:hover { background: var(--color-bg); }
.picker-item.selected { background: var(--color-primary); color: #fff; }
.picker-item.selected .pi-icon { background: rgba(255,255,255,.18); color: #fff; }
.pi-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)); color: var(--color-primary); }
.pi-name { flex: 1; min-width: 0; }
.pi-arrow { font-size: 18px; opacity: .6; }
.picker-path { margin: 10px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picker-path span { background: var(--color-bg); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.picker-path i { font-style: normal; color: var(--color-muted); }
.picker-done { color: var(--color-success); font-size: 13px; }
@media (max-width: 640px) { .picker-col { flex-basis: 78%; } }

[hidden] { display: none !important; }
.listing-form { scroll-margin-top: 140px; }

/* ---------- Sol kategori çubuğu (sabit, iç kaydırmasız) ---------- */
.page-with-sidebar { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 20px; }
.page-main { min-width: 0; }
.page-main .container { max-width: none; padding-left: 0; padding-right: 0; }
.page-main > .section:first-child { margin-top: 0; }
.page-main .hero { border-radius: calc(var(--radius) + 6px); }
.page-main .hero .container { padding: 0 28px; }
.cat-sidebar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow); padding: 8px; }
.cat-sidebar.is-inline { position: sticky; top: 88px; }
.cat-sidebar:not(.is-inline) { display: none; }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.cs-close { display: none !important; }
.cs-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--color-text); font-size: 14px; font-weight: 500; }
.cs-item:hover { background: var(--color-bg); text-decoration: none; }
.cs-item.active { background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)); color: var(--color-primary); font-weight: 700; }
.cs-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)); color: var(--color-primary); }
.cs-item.active .cs-icon { background: var(--color-primary); color: #fff; }
.cs-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-item small, .cs-sub small { font-size: 11px; color: var(--color-muted); }
.cs-sub { margin: 2px 0 6px 22px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--color-accent) 50%, transparent); display: grid; }
.cs-sub a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; font-size: 13px; color: var(--color-text); border-radius: 6px; }
.cs-sub a:hover { background: var(--color-bg); text-decoration: none; }
.cs-sub a.active { font-weight: 700; color: var(--color-primary); }
.cs-foot { padding: 10px 6px 4px; border-top: 1px solid var(--color-border); margin-top: 6px; }
.cs-links { margin-top: 8px; font-size: 13px; text-align: center; }
.drawer-backdrop { display: none; }
@media (max-width: 900px) {
    .page-with-sidebar { grid-template-columns: 1fr; padding-top: 12px; }
    .cat-sidebar, .cat-sidebar.is-inline, .cat-sidebar:not(.is-inline) { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); z-index: 900; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; }
    .cat-sidebar.open { transform: none; }
    .cs-close { display: inline-flex !important; }
    body.drawer-open { overflow: hidden; }
    body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 899; }
    .page-main .hero .container { padding: 0 18px; }
}

/* ---------- Arama önerileri ---------- */
.header-search { position: relative; overflow: visible; }
.header-search input { border-radius: var(--radius) 0 0 var(--radius); }
.header-search button[type=submit] { border-radius: 0 var(--radius) var(--radius) 0; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: #1b1d21; border: 1px solid var(--color-border); border-radius: calc(var(--radius) + 2px); box-shadow: 0 18px 40px rgba(16, 24, 40, .18); z-index: 950; max-height: 70vh; overflow-y: auto; padding: 6px; }
.sg-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8b9097; padding: 8px 10px 4px; }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #1b1d21; font-size: 14px; }
.sg-item:hover, .sg-item.active { background: #f4f5f7; text-decoration: none; }
.sg-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent) 20%, #fff); color: var(--color-primary); flex-shrink: 0; }
.sg-item img { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #eceef1; }
.sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small, .sg-count { color: #8b9097; font-size: 12px; }
.sg-price { font-weight: 800; font-size: 13px; white-space: nowrap; }
.sg-item mark { background: color-mix(in srgb, var(--color-accent) 45%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.sg-all { justify-content: center; font-weight: 600; color: var(--color-link); border-top: 1px solid #eef0f3; margin-top: 4px; }
.sg-empty { padding: 14px 10px; color: #8b9097; font-size: 14px; text-align: center; }

/* Kategori çubuğu: tam görünüm + açılır/kapanır alt kategoriler */
.page-with-sidebar { grid-template-columns: 270px minmax(0, 1fr); }
.cs-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.cs-row { display: flex; align-items: center; gap: 2px; }
.cs-row .cs-item { flex: 1; min-width: 0; }
.cs-toggle { flex-shrink: 0; width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--color-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cs-toggle:hover { background: var(--color-bg); color: var(--color-text); }
.cs-toggle .icon { transition: transform .2s; }
.cs-group.open .cs-toggle .icon { transform: rotate(180deg); }
.cs-group .cs-sub { display: none; }
.cs-group.open .cs-sub { display: grid; animation: cs-open .18s ease; }
@keyframes cs-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-sub a span { display: inline-flex; align-items: center; gap: 6px; }
.cs-sub a .icon { color: var(--color-muted); }
.cat-sidebar.is-inline { transition: top .15s; }

/* Kategori çubuğu ve filtre paneli sayfada yerinde durur (sticky yok, iç kaydırma yok) */
@media (min-width: 901px) { .cat-sidebar.is-inline { position: static !important; top: auto !important; } }
.filters { position: static !important; top: auto !important; max-height: none !important; overflow: visible !important; }
.check-list.scroll { max-height: none; overflow: visible; }

/* Yalnızca ana sayfa: kenar menü kaydırırken görünür kalır */
@media (min-width: 901px) { .cat-sidebar.is-inline.is-sticky { position: sticky !important; top: 88px !important; } }
