/* ===== Genel Ayarlar ===== */
:root {
    color-scheme: light;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* data-theme'ı hem html hem herhangi bir kök elementte yakala (bazı ortamlarda attribute farklı yere yazılabiliyor) */
html[data-theme="dark"],
[data-theme="dark"] {
    color-scheme: dark;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #94a3b8;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Erişilebilirlik: renk körlüğü dostu (Çerez yönetimi → localStorage ilan_colorblind) */
html[data-colorblind="on"] {
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --success: #0c4a6e;
    --warning: #b45309;
    --error: #7c2d12;
}

html[data-theme="dark"][data-colorblind="on"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --success: #38bdf8;
    --warning: #fbbf24;
    --error: #fca5a5;
}

html[data-colorblind="on"] .badge {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}

html[data-colorblind="on"] .badge-need {
    background-color: #fef9c3;
    color: #713f12;
}

html[data-colorblind="on"] .badge-offer {
    background-color: #dbeafe;
    color: #1e3a8a;
}

html[data-colorblind="on"] .badge-volunteer {
    background-color: #e0f2fe;
    color: #0c4a6e;
}

html[data-colorblind="on"] .badge-agreement,
html[data-colorblind="on"] .badge-professional {
    background-color: #e0e7ff;
    color: #312e81;
}

html[data-colorblind="on"] .badge-both {
    background-color: #fce7f3;
    color: #6b21a8;
}

html[data-theme="dark"][data-colorblind="on"] .badge-need {
    background-color: #422006;
    color: #fde68a;
}

html[data-theme="dark"][data-colorblind="on"] .badge-offer {
    background-color: #1e3a8a;
    color: #bfdbfe;
}

html[data-theme="dark"][data-colorblind="on"] .badge-volunteer {
    background-color: #0c4a6e;
    color: #7dd3fc;
}

html[data-theme="dark"][data-colorblind="on"] .badge-agreement,
html[data-theme="dark"][data-colorblind="on"] .badge-professional {
    background-color: #312e81;
    color: #c7d2fe;
}

html[data-theme="dark"][data-colorblind="on"] .badge-both {
    background-color: #581c87;
    color: #e9d5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Header ===== */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    /* Kampanya overlay (1100) üstünde kalsın; tema / menü her zaman tıklanabilsin */
    z-index: 1200;
    box-shadow: var(--shadow);
}

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

.logo a {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.search-bar {
    flex: 1 1 250px;
    max-width: 400px;
    min-width: 200px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 9px 40px 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

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

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface);
}

/* Mobil menü: masaüstünde gizli */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.header-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.header-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle-mobile {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu-overlay.is-open {
    display: block;
    opacity: 1;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.is-open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
}

.mobile-menu-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.mobile-menu-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-link:hover {
    background: var(--background);
}

.mobile-menu-theme .theme-label {
    flex: 1;
}

/* ===== Bottom Nav (sadece mobil) ===== */
.bottom-nav {
    display: none;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

/* ===== Main Content ===== */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* Yasal metinler (DOCX kaynaklı .txt → HTML) */
.legal-prose {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    line-height: 1.75;
    color: var(--text-primary);
}

.legal-prose .legal-doc-title,
.legal-prose .page-legal-main-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    line-height: 1.25;
    color: var(--text-primary);
}

.legal-prose .legal-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text-primary);
}

.legal-prose h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.legal-prose > h1:first-child,
.legal-prose h2:first-child {
    margin-top: 0;
}

.legal-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--text-secondary);
}

.legal-prose p {
    margin: 0 0 14px;
    font-size: 15px;
}

.legal-prose ul.legal-list {
    margin: 0 0 18px;
    padding-left: 1.35rem;
}

.legal-prose ul.legal-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

@media (max-width: 640px) {
    .legal-prose {
        padding: 24px 16px 40px;
        border-radius: 12px;
    }
}

.version-notes-page .version-notes-lead {
    margin: -8px 0 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

.version-notes-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.version-notes-version {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.version-notes-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.version-notes-items {
    margin: 0;
    padding-left: 1.35rem;
    list-style: disc;
}

.version-notes-items li {
    margin-bottom: 8px;
    font-size: 15px;
}

.version-notes-roadmap {
    padding: 20px;
    border-radius: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.version-notes-roadmap h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.version-notes-roadmap ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.version-notes-roadmap li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.version-notes-back {
    margin: 0;
    font-size: 15px;
}

.version-notes-back a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.a11y-prefs-card {
    margin-top: 20px;
}

.footer-version-sep {
    margin: 0 0.35em;
    opacity: 0.6;
}

.footer-version-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.footer-version-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ===== Sidebar ===== */
.sidebar {
    background-color: var(--surface);
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.sidebar-popular {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-popular-list li {
    margin-bottom: 6px;
}

.sidebar-popular-list a {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    border-radius: 4px;
}

.sidebar-popular-list a:hover {
    color: var(--primary-color);
}

.sidebar-category-toggle {
    display: none;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-category-toggle-icon {
    font-size: 12px;
    opacity: 0.7;
}

.sidebar-category-panel {
    margin-top: 8px;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.category-list .cat-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
}

.category-list .cat-label {
    display: inline;
    min-width: 0;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--background);
    color: var(--primary-color);
}

/* İlan kartı favori butonu (kalp) */
.listing-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
}

.listing-fav-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.listing-fav-btn.is-favorited {
    color: #ef4444;
    background: #fff;
}

.listing-fav-btn svg {
    width: 20px;
    height: 20px;
}

.listings-view-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.listings-view-toggle button {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.listings-view-toggle button:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.listings-view-toggle button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===== Filtre Stilleri ===== */
.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: var(--text-primary);
}

.filter-checkbox:hover,
.filter-radio:hover {
    background-color: var(--background);
}

.filter-checkbox input[type="checkbox"],
.filter-radio input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== Ana sayfa — kompakt karşılama (Plus Jakarta Sans) ===== */
.welcome-strip {
    --welcome-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    position: relative;
    display: flex;
    align-items: stretch;
    margin-bottom: 22px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(165deg, #fafbfc 0%, #f4f6f9 38%, #eef2ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 28px -14px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    font-family: var(--welcome-font);
}

html[data-theme="dark"] .welcome-strip {
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(165deg, #1a2234 0%, #151c2c 55%, #1e1b3d 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.welcome-strip-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #6366f1 0%, #2563eb 55%, #1d4ed8 100%);
}

.welcome-strip-inner {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 12px 16px 12px 14px;
    min-height: 0;
}

.welcome-strip-copy {
    flex: 1 1 200px;
    min-width: 0;
    text-align: left;
}

.welcome-strip-title {
    font-family: var(--welcome-font);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin: 0 0 3px;
    color: #0f172a;
}

/* Eski tasarıma yakın: başlık/altbaşlık daha rahat aralıklı */
.welcome-strip {
    margin-bottom: 28px;
}
.welcome-strip-inner {
    padding: 16px 18px 16px 14px;
}
.welcome-strip-title {
    font-size: 1.35rem;
    margin: 0 0 6px;
}
.welcome-strip-tagline {
    font-size: 0.95rem;
}
.welcome-strip-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* Mobilde daha kompakt: fontlar, çerçeve ve boşluklar küçülsün */
    .welcome-strip {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .welcome-strip-inner {
        padding: 10px 12px 8px;
    }
    .welcome-strip-title {
        font-size: 0.98rem;
        margin-bottom: 3px;
        letter-spacing: -0.03em;
    }
    .welcome-strip-tagline {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

html[data-theme="dark"] .welcome-strip-title {
    color: #f8fafc;
}

.welcome-strip-tagline {
    font-family: var(--welcome-font);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* Mobilde kesin küçült (dosyanın ilerleyen yerlerinde override edilse bile) */
@media (max-width: 768px) {
    .welcome-strip-title {
        font-size: 0.95rem !important;
    }
    .welcome-strip-tagline {
        font-size: 0.76rem !important;
    }
    .welcome-strip-inner {
        padding: 8px 10px 8px 10px !important;
    }
    .welcome-strip {
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }
}

html[data-theme="dark"] .welcome-strip-tagline {
    color: #94a3b8;
}

.welcome-strip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.welcome-strip-btn {
    font-family: var(--welcome-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.welcome-strip-btn--solid {
    background: #0f172a;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.welcome-strip-btn--solid:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

html[data-theme="dark"] .welcome-strip-btn--solid {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}

html[data-theme="dark"] .welcome-strip-btn--solid:hover {
    background: #fff;
    color: #0f172a;
}

.welcome-strip-btn--line {
    background: transparent;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.welcome-strip-btn--line:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] .welcome-strip-btn--line {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .welcome-strip-btn--line:hover {
    border-color: #e2e8f0;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

/* Ana sayfa — welcome-box (index.php; canlı yapı) */
.welcome-box {
    --welcome-box-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-family: var(--welcome-box-font);
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 18px 16px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid transparent;
    border-left-color: #2563eb;
    background: linear-gradient(165deg, #fafbfc 0%, #f4f6f9 38%, #eef2ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 28px -14px rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}

html[data-theme="dark"] .welcome-box {
    border-color: rgba(148, 163, 184, 0.12);
    border-left-color: #6366f1;
    background: linear-gradient(165deg, #1a2234 0%, #151c2c 55%, #1e1b3d 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.welcome-box h1 {
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #0f172a;
}

html[data-theme="dark"] .welcome-box h1 {
    color: #f8fafc;
}

.welcome-box .welcome-subtitle,
.welcome-box > p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    color: var(--primary-color);
}

html[data-theme="dark"] .welcome-box .welcome-subtitle,
html[data-theme="dark"] .welcome-box > p {
    color: #93c5fd;
}

@media (max-width: 768px) {
    .welcome-box {
        margin-bottom: 10px;
        padding: 10px 12px 10px 14px;
        border-radius: 12px;
    }

    .welcome-box h1 {
        font-size: 1.02rem;
        margin-bottom: 5px;
    }

    .welcome-box .welcome-subtitle,
    .welcome-box > p {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}

.welcome-description {
    background-color: var(--background);
    padding: 25px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.welcome-description p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Listings - GÖRSELLİ TASARIM ===== */
.listings-section {
    margin-bottom: 40px;
}

.listings-section h2,
.listings-section-heading {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.listings-section-heading a {
    color: inherit;
    text-decoration: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.listings-section-heading-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listings-section-heading a:hover {
    color: var(--primary-color);
}

.listings-section-more {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.listings-section-heading a:hover .listings-section-more {
    color: var(--primary-color);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.listing-card {
    position: relative;
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* İlan Görseli */
.listing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.listing-card:hover .listing-image:not(.listing-image--gallery) img {
    transform: scale(1.05);
}

/* Çoklu görsel: yatay kaydırma + masaüstünde imleç X konumuna göre tarama (JS) */
.listing-image--gallery {
    padding: 0;
}

.listing-image-gallery-viewport {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    outline: none;
}

.listing-image-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.listing-image-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.listing-image-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.listing-card:hover .listing-image--gallery img {
    transform: none;
}

.listing-image-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 2;
}

.listing-image-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}

.listing-image-gallery-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.2);
}

html[data-theme="dark"] .listing-image-gallery-dot {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Görsel Yoksa Placeholder */
.listing-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 64px;
}

/* İlan İçeriği - konum/görüntülenme her kartta aynı hizada olsun */
.listing-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.listing-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.listing-badges .badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-need {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-offer {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-volunteer {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-professional {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-agreement {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-both {
    background-color: #fce7f3;
    color: #831843;
}

html[data-theme="dark"] .badge-need {
    background-color: #451a03;
    color: #fbbf24;
}

html[data-theme="dark"] .badge-offer {
    background-color: #1e3a8a;
    color: #93c5fd;
}

html[data-theme="dark"] .badge-volunteer {
    background-color: #064e3b;
    color: #6ee7b7;
}

html[data-theme="dark"] .badge-agreement {
    background-color: #312e81;
    color: #c7d2fe;
}

html[data-theme="dark"] .badge-both {
    background-color: #831843;
    color: #fbcfe8;
}

/* Başlık: tek satır, hep aynı yükseklik */
.listing-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Açıklama: iki satırlık alan (dolu olsun olmasın aynı yer kaplasın) */
.listing-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}

/* Çizgi altı: konum, yayın tarihi, görüntülenme — hep aynı hizada */
.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    gap: 10px;
    flex-wrap: wrap;
}

.listing-meta .location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-meta .time {
    font-size: 12px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer {
        padding: 24px 0 16px;
        margin-top: 32px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
        margin-bottom: 20px;
    }

    .footer-logo-section {
        grid-column: 1 / -1;
        justify-content: center;
        margin-bottom: 8px;
    }

    .footer-logo-img {
        height: 22px;
    }

    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section a {
        font-size: 13px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 12px;
        margin-top: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .footer-logo-section {
        grid-column: 1;
    }

    .footer-section h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-section ul {
        padding-left: 0;
        list-style: none;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 11px;
    }
}

/* ===== Form Styles ===== */
.form-container {
    max-width: 450px;
    margin: 50px auto;
    background-color: var(--surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-title {
    font-size: 24px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

/* İlanlar — filtre kartı (ilanlar.php) */
.listings-filters {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 20px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.listings-filters-title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Mobilde filtreler <details> ile aç/kapa */
.listings-filters-disclosure {
    margin: 0;
    border: none;
}

.listings-filters-summary {
    display: none;
}

.listings-filters-disclosure-inner {
    margin: 0;
    padding: 0;
}

.listings-filters-form {
    margin: 0;
}

.listings-filters-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 16px;
}

.listings-filters .form-group--filter {
    margin-bottom: 0;
}

.listings-filters .form-group--filter label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.listings-filters-select,
.listings-filters .listings-filters-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: auto;
    min-height: 44px;
}

.listings-filters-select:focus,
.listings-filters .listings-filters-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.listings-filters-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.listings-filter-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
}

.listings-filters-submit,
.listings-filters-clear {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.listings-sort-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.listings-sort-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.listings-sort-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.listings-sort-pills::-webkit-scrollbar {
    height: 4px;
}

.listings-sort-pills::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.listings-sort-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.listings-sort-pill:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--surface);
}

.listings-sort-pill.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.listings-sort-pill.is-active:hover {
    color: #fff;
    filter: brightness(1.05);
}

html[data-theme="dark"] .listings-sort-pill {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

html[data-theme="dark"] .listings-sort-pill:hover {
    border-color: var(--primary-color);
    color: #93c5fd;
}

html[data-theme="dark"] .listings-sort-pill.is-active {
    color: #fff;
}

@media (max-width: 900px) {
    .listings-filters-fields {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }
}

@media (max-width: 768px) {
    .listings-filters {
        padding: 14px 14px 12px;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .listings-filters-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .listings-filters-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        list-style: none;
        cursor: pointer;
        padding: 12px 14px;
        margin: 0;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--background);
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .listings-filters-summary::-webkit-details-marker,
    .listings-filters-summary::marker {
        display: none;
    }

    .listings-filters-disclosure[open] > .listings-filters-summary {
        margin-bottom: 12px;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    }

    .listings-filters-summary-label {
        flex: 1;
        text-align: left;
    }

    .listings-filters-summary-badge {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.14);
        color: var(--primary-color);
        flex-shrink: 0;
    }

    html[data-theme="dark"] .listings-filters-summary-badge {
        background: rgba(96, 165, 250, 0.15);
        color: #93c5fd;
    }

    .listings-filters-summary-chevron {
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-secondary);
        border-bottom: 2px solid var(--text-secondary);
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-top: -3px;
    }

    .listings-filters-disclosure[open] .listings-filters-summary-chevron {
        transform: rotate(-135deg);
        margin-top: 3px;
    }

    .listings-filters-toolbar {
        gap: 12px;
        padding-top: 12px;
    }

    .listings-sort-pill {
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .listings-filters-summary {
        display: none !important;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

/* Şifre alanı: input + göz ikonu aynı satırda, ikon dikey ortalı */
.password-input-wrapper {
    position: relative;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--text-secondary);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-link {
    text-align: right;
    margin-bottom: 15px;
}

.form-link a {
    color: var(--primary-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-link a .form-link-icon {
    font-style: normal;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* ===== Profile & Messages ===== */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.profile-details h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-meta {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Messages Container - YENİDEN TASARIM ===== */
.messages-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    height: calc(100vh - 280px);
    min-height: 600px;
    max-height: 800px;
}

/* Mesaj Listesi */
.messages-list {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.messages-list-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface);
}

.messages-list-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.messages-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
}

.messages-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

.messages-list-items {
    flex: 1;
    overflow-y: auto;
}

.message-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.message-item:hover {
    background-color: var(--background);
}

.message-item.active {
    background-color: var(--background);
    border-left: 4px solid var(--primary-color);
}

.message-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    position: relative;
}

.message-item-info {
    flex: 1;
    min-width: 0;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-item-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 8px;
}

.message-item-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.message-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Chat Container */
.chat-container {
    background-color: var(--surface);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface);
}

.chat-header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

.chat-user-info {
    flex: 1;
    min-width: 0;
}

.chat-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chat-user-status {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-listing-info {
    padding: 12px;
    background-color: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-listing-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-listing-details {
    flex: 1;
    min-width: 0;
}

.chat-listing-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.chat-listing-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--background);
}

.chat-input {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
    background-color: var(--surface);
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--background);
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== Mesajlar sayfası (messages-page) ===== */
.messages-page {
    max-width: 1200px;
    margin: 0 auto;
}

.messages-page-title {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.messages-page-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.messages-conv-list {
    background: var(--surface);
    border-radius: 12px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.messages-chat-panel {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.messages-back-btn {
    display: none;
}

.messages-chat-content {
    display: flex;
    flex-direction: column;
}

.messages-chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.messages-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.messages-chat-header-left img,
.messages-chat-header-left>div:first-of-type {
    flex-shrink: 0;
}

#messagesContainer {
    padding: 20px;
    padding-bottom: 80px;
    /* sticky form için boşluk */
}

.messages-form,
.messages-chat-panel #messageForm {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
}

.conv-row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.conv-row:hover {
    background: var(--background);
}

.conv-row-active {
    background: var(--primary-color) !important;
    color: white !important;
}

.conv-row-active .conv-username,
.conv-row-active a {
    color: inherit !important;
}

/* ===== Detail Page ===== */
.listing-detail {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.listing-detail-header {
    margin-bottom: 25px;
}

.listing-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #f0f0f0;
}

.listing-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.listing-detail-content {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.listing-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: var(--background);
    border-radius: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-box {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ===== İlan Ver Sayfası ===== */
.ilan-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.type-option {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.type-option:hover {
    border-color: var(--primary-color);
}

.type-option.active {
    border-color: var(--primary-color);
    background-color: var(--background);
}

.type-option input[type="radio"] {
    display: none;
}

.destek-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.destek-option {
    flex: 1;
    min-width: 150px;
}

.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background-color: var(--background);
}

.image-upload-area input[type="file"] {
    display: none;
}

/* İlan Ver - Görsel Önizleme */
.image-preview {
    margin-top: 15px;
    position: relative;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.image-preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--error);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

/* ===== Admin Panel ===== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--surface);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.admin-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-listing-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.admin-listing-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.reject-reason {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--error);
}

/* ===== Şikayet/Bildir Butonu ===== */
.report-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-btn:hover {
    background-color: var(--error);
    color: white;
}

.report-menu-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.report-menu-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.security-warning {
    padding: 20px;
    background-color: var(--surface);
    border-radius: 12px;
    border-left: 4px solid var(--warning);
    margin-top: 20px;
}

.security-warning h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.security-warning p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Görsel Galerisi ===== */
.image-gallery {
    margin-bottom: 25px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover .image-nav {
    opacity: 1;
}

.image-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.image-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.thumbnail {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail.active::after {
    opacity: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Kullanıcı Profil - YENİ TASARIM ===== */
.user-profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.user-profile-banner {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: -80px;
}

.user-profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.user-profile-card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 100px 40px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border: 6px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: white;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-lg);
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }

    70% {
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.user-profile-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.user-profile-meta {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: var(--background);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-box:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-box:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-box:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.user-profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.user-profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
}

.user-profile-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.user-profile-tab:hover {
    color: var(--primary-color);
}

.user-profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.user-profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ===== Mesajlaşma - YENİ TASARIM ===== */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.message-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.message-badge.unread {
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.message-badge-text {
    background-color: var(--background);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--background);
    color: var(--primary-color);
}

.date-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.date-divider span {
    background-color: var(--surface);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.message-bubble {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble.received {
    justify-content: flex-start;
}

.message-bubble.sent {
    justify-content: flex-end;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    max-width: 60%;
    min-width: 0;
}

.message-text {
    background-color: var(--surface);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    width: 100%;
    /* Uzun mesajlarda balonun taşmasını engelle (tek satır uzamasın) */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    /* Temel breaking */
    /* Kesintisiz çook uzun harflerde (aaaaaaaaa gibi) zorla kır: */
    word-break: break-all;
}

.message-bubble.sent .message-text {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received .message-text {
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-bubble.sent .message-time {
    justify-content: flex-end;
}

.typing-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.typing-dots {
    background-color: var(--surface);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-list {
        max-height: 400px;
        margin-bottom: 20px;
    }

    .chat-container {
        height: 600px;
    }
}

@media (max-width: 900px) {
    .search-bar {
        max-width: 350px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0 !important;
    }

    .header-content {
        gap: 8px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo a {
        font-size: 18px;
    }

    .search-bar {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        order: 3;
    }

    .header-actions {
        display: none !important;
    }

    .header-mobile-actions {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    /* Bottom navbar: telefonda alt menü */
    .bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: var(--surface);
        border-top: 1px solid var(--border-color);
        z-index: 99;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 4px;
        font-size: 11px;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s;
        min-width: 0;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:focus {
        color: var(--primary-color);
    }

    .bottom-nav-item--primary {
        color: var(--primary-color);
        flex: 1.1;
    }

    .bottom-nav-item--primary:hover,
    .bottom-nav-item--primary:focus {
        color: var(--primary-hover);
    }

    .bottom-nav-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 10px;
        font-weight: 600;
        line-height: 16px;
        text-align: center;
        background: #ef4444;
        color: #fff;
        border-radius: 50%;
    }

    /* İçerik: üst boşluk minimum; alt navbar payı */
    .main-content {
        padding-top: 4px !important;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0) + 30px);
    }

    /* Scroll-to-top butonu bottom navbar'ın üstünde */
    .scroll-to-top-btn {
        bottom: calc(56px + env(safe-area-inset-bottom, 0) + 12px) !important;
        z-index: 90;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .listings-grid.listings-grid--double {
        /* Mobilde her zaman tekli görünüm olsun; double sınıfı etkisiz */
        grid-template-columns: 1fr;
    }

    .listings-view-toggle {
        /* Mobilde görünüm değiştirme butonlarını gizle */
        display: none;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-category-toggle {
        display: flex;
    }

    .sidebar-category-panel {
        display: none;
    }

    .sidebar-category-panel.is-open {
        display: block;
    }

    /* Ana içerik + sidebar: dikey boşluk minimum (1024’teki sidebar margin da ezilsin) */
    .content-wrapper {
        gap: 4px !important;
    }

    .sidebar {
        padding: 4px 8px !important;
        margin-bottom: 0 !important;
    }

    .sidebar-category-toggle {
        padding: 5px 8px !important;
    }

    .sidebar-category-panel {
        margin-top: 0 !important;
    }

    /* Liste bölüm başlıkları: tek satır + ellipsis (.listings-section-heading-text) */
    .listings-section {
        margin-bottom: 22px !important;
    }

    .listings-section h2,
    .listings-section-heading {
        font-size: 0.875rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    .listings-section-heading a {
        gap: 5px !important;
        flex-wrap: nowrap !important;
        align-items: center;
        min-width: 0;
    }

    .listings-section-more {
        font-size: 0.6875rem !important;
        flex-shrink: 0;
    }

    /* Mesajlar sayfası mobil */
    .main-content--messages .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .messages-page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .messages-page-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .messages-page--chat-open .messages-chat-panel {
        display: flex;
    }

    .messages-conv-list {
        display: block;
        border-radius: 12px 12px 0 0;
    }

    .messages-chat-panel {
        display: none;
        flex-direction: column;
        border-radius: 12px;
    }

    .messages-page--chat-open .messages-conv-list {
        display: none;
    }

    .messages-back-btn {
        flex-shrink: 0;
        width: 100%;
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid var(--border-color);
        background: var(--surface);
        color: var(--primary-color);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
        display: none;
    }

    .messages-page--chat-open .messages-back-btn {
        display: flex;
        align-items: center;
    }

    .messages-chat-content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .messages-page #messagesContainer {
        padding: 12px 16px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .messages-chat-panel #messageForm {
        flex-shrink: 0;
        padding: 10px 12px 12px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }

    .messages-chat-header {
        padding: 12px 16px;
    }

    .messages-chat-header-left>img,
    .messages-chat-header-left>div:first-child {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }

    .messages-empty-state {
        padding: 32px 20px !important;
    }

    .messages-empty-state ul li {
        text-align: left;
    }

    .conv-row {
        padding: 14px 16px;
    }

    .messages-page .messages-form {
        padding: 10px 12px 12px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }

    .messages-page .messages-form textarea {
        min-height: 44px !important;
        padding: 10px 40px 10px 14px !important;
        font-size: 15px !important;
    }

    .messages-page .messages-form .btn {
        padding: 10px 16px !important;
    }

    /* Karşılama şeridi: mobil sütun + ortalı (tip boyları yukarıdaki !important ile) */
    .welcome-strip-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-strip-copy {
        text-align: center;
    }

    .welcome-strip-title {
        line-height: 1.25;
    }

    .welcome-strip-actions {
        justify-content: center;
        width: 100%;
    }

    .welcome-strip-btn {
        flex: 1;
        min-width: 0;
        max-width: 220px;
        padding: 9px 12px;
        font-size: 0.86rem;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-list {
        display: none;
    }

    .messages-list.show-mobile {
        display: flex;
        max-height: 400px;
    }

    .chat-container {
        height: 500px;
    }

    .message-content {
        max-width: 75%;
    }

    .form-container {
        padding: 30px 20px;
        margin: 30px auto;
    }

    .ilan-type-selector {
        grid-template-columns: 1fr;
    }

    .listing-detail-image,
    .main-image {
        height: 250px;
    }

    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .user-profile-banner {
        height: 180px;
        margin-bottom: -60px;
    }

    .user-profile-card {
        padding: 80px 20px 30px;
    }

    .user-profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 42px;
        top: -50px;
    }

    .user-profile-name {
        font-size: 22px;
    }

    .user-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-header-main {
        flex-wrap: wrap;
    }

    .chat-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .chat-listing-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        gap: 8px;
    }

    .logo a {
        font-size: 16px;
    }

    .search-bar {
        flex: 1 1 100%;
        order: 3;
        margin-top: 4px;
    }

    /* Çok dar ekran: başlık biraz daha büyük, yine tek satıra yakın */
    .listings-section h2,
    .listings-section-heading {
        font-size: 0.8125rem !important;
        margin-bottom: 8px !important;
    }

    .listings-section-more {
        font-size: 0.625rem !important;
    }

    .search-bar input {
        padding: 8px 40px 8px 12px;
        font-size: 13px;
    }

    .header-actions {
        order: 2;
        flex: 0 0 auto;
    }

    .btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .listing-image {
        height: 180px;
    }

    .listing-content {
        padding: 15px;
    }

    .listing-card h3 {
        font-size: 16px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .destek-options {
        flex-direction: column;
    }

    .messages-container {
        height: calc(100vh - 200px);
    }

    .chat-container {
        height: 100%;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-bubble.sent .message-content,
    .message-bubble.received .message-content {
        max-width: 85%;
    }

    .message-text {
        padding: 10px 14px;
        font-size: 13px;
    }

    .chat-input {
        padding: 12px 15px;
        gap: 8px;
    }

    .chat-input input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 14px;
    }
}

/* ===== Kampanya Popup (ana sayfa) ===== */
.campaign-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.campaign-popup-backdrop.is-visible {
    display: flex;
}

.campaign-popup {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
    padding: 20px 20px 18px;
    position: relative;
}

.campaign-popup-icon {
    font-size: 28px;
}

.campaign-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.campaign-popup-title {
    margin: 12px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.campaign-popup-desc {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.campaign-popup-code-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.campaign-popup-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: #0f172a;
    color: #f9fafb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.campaign-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.campaign-popup-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.campaign-popup-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px;
}

.campaign-popup-close svg {
    width: 18px;
    height: 18px;
}

/* ===== Profil sayfası mobil ===== */
@media (max-width: 768px) {
    .profile-page-layout {
        grid-template-columns: 1fr !important;
    }

    .profile-sidebar {
        order: 1;
    }

    .profile-page-layout .profile-sidebar .form-group input[type="file"] {
        width: 100%;
    }
}

/* İlan detay: uzun başlık ve açıklama taşmasın */
.listing-detail-title,
.listing-detail-description-body {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.listing-detail-main {
    min-width: 0;
}

/* ===== İlan detay sayfası mobil: önce ilan (görsel + açıklama), sonra ilan sahibi ===== */
@media (max-width: 900px) {
    .listing-detail-layout {
        grid-template-columns: 1fr !important;
    }

    .listing-detail-main {
        order: 1;
    }

    .listing-detail-sidebar {
        position: static !important;
        order: 2;
    }
}

/* ===== Kullanıcı profili (public) — kullanici.php ===== */
.user-public-page {
    padding-bottom: 2rem;
}

.user-public-container {
    max-width: 1000px;
    margin: 0 auto;
}

.user-public-hero {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.user-public-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    opacity: 0.9;
}

.user-public-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: flex-start;
}

.user-public-avatar-wrap {
    flex: 0 0 auto;
}

.user-public-avatar-img,
.user-public-avatar-initial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.user-public-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.user-public-info {
    flex: 1;
    min-width: 200px;
}

.user-public-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.user-public-location {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
}

.user-public-bio {
    color: var(--text-primary);
    line-height: 1.65;
    margin: 0.75rem 0 0;
    max-width: 520px;
    white-space: pre-wrap;
    font-size: 0.9375rem;
}

.user-public-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.user-public-skill {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
}

.user-public-website {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary-color);
    text-decoration: none;
}

.user-public-website:hover {
    text-decoration: underline;
}

.user-public-right {
    flex: 0 0 auto;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-public-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user-public-stat {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.user-public-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.user-public-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

.user-public-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-public-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-public-status-online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.user-public-status-offline {
    background: var(--text-secondary);
    opacity: 0.7;
}

.user-public-lastseen {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.user-public-verification {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.user-public-verification-item {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.user-public-verification-item.is-verified {
    color: #059669;
    font-weight: 600;
}

.user-public-verification-item:not(.is-verified) {
    color: #dc2626;
    font-weight: 500;
}

.user-public-verification-icon {
    display: inline-flex;
    align-items: center;
}

.user-public-icon {
    width: 16px;
    height: 16px;
}

.user-public-verification-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.user-public-verification-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-public-status-icon {
    width: 16px;
    height: 16px;
}

.user-public-status-icon.is-ok {
    color: #059669;
}

.user-public-status-icon.is-no {
    color: #dc2626;
}

.user-public-status-text {
    display: inline;
}

/* İlan detay: doğrulama satırları */
.listing-owner-verification {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.listing-owner-verification-row {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.listing-owner-leading-icon {
    width: 16px;
    height: 16px;
}

.listing-owner-verification-label {
    font-weight: 600;
}

.listing-owner-verification-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.listing-owner-status-icon {
    width: 16px;
    height: 16px;
}

.listing-owner-status-icon.is-ok {
    color: #059669;
}

.listing-owner-status-icon.is-no {
    color: #dc2626;
}

.listing-owner-status-text {
    display: inline;
}

@media (max-width: 640px) {
    /* mobilde label metnini gizle, ikon + tick/x kalsın */
    .user-public-status-text,
    .listing-owner-status-text {
        display: none;
    }
    .user-public-verification-label {
        display: none;
    }
    .listing-owner-verification-label {
        display: none;
    }
}

.user-public-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    font-weight: 600;
    border-radius: 10px;
}

.user-public-listings {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.user-public-listings-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-public-listings-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.user-public-listings-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.user-public-listings-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

.user-public-grid {
    margin-top: 0;
}

.user-public-listing-card {
    text-decoration: none;
    color: inherit;
}

.user-public-listing-card .listing-title {
    font-size: 1rem;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.user-public-listing-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Kullanıcı profili (public) mobil */
@media (max-width: 768px) {
    .user-public-hero {
        padding: 1.5rem 1rem;
    }

    .user-public-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-public-info {
        width: 100%;
    }

    .user-public-name {
        font-size: 1.5rem;
    }

    .user-public-bio {
        max-width: none;
    }

    .user-public-skills {
        justify-content: center;
    }

    .user-public-right {
        width: 100%;
        min-width: 0;
    }

    .user-public-stats {
        grid-template-columns: 1fr 1fr;
    }

    .user-public-status {
        justify-content: center;
    }

    .user-public-verification {
        align-items: center;
    }

    .user-public-listings {
        padding: 1.25rem;
    }

    .user-public-listings-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .user-profile-header {
        padding: 20px 16px !important;
        flex-direction: column;
        align-items: stretch;
    }

    .user-profile-header>div:first-child {
        text-align: center;
    }

    .user-profile-header>div:last-child {
        min-width: 100%;
    }
}

/* Form Karakter Sayacı */
.char-counter {
    display: inline-block;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
    transition: color 0.2s;
}

.char-counter.limit-reached {
    color: #ef4444 !important;
    /* Limit doldu uyarısı */
}

.char-counter.below-minimum {
    color: #f59e0b !important;
    /* Minimum sınırın altı uyarısı (turuncu) */
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    padding: 18px 20px;
    z-index: 20000;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
    visibility: visible;
    border-left: 4px solid var(--primary-color);
}

@media (prefers-reduced-motion: no-preference) {
    .cookie-consent-banner {
        animation: cookieBannerIn 0.42s ease-out;
    }
}

@keyframes cookieBannerIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.cookie-consent-icon-wrap {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .cookie-consent-icon-wrap {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.22);
}

.cookie-consent-icon {
    display: block;
}

.cookie-consent-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-content {
    flex: 1 1 260px;
    min-width: 200px;
    display: block;
    visibility: visible;
}

.cookie-consent-content h4 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: block;
    visibility: visible;
}

.cookie-consent-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    display: block;
    visibility: visible;
}

.cookie-consent-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    display: flex;
    visibility: visible;
    opacity: 1;
}

.cookie-consent-actions .btn {
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.cookie-consent-actions .btn-secondary {
    background: var(--background);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

@media (max-width: 520px) {
    .cookie-consent-icon-wrap {
        display: none;
    }

    .cookie-consent-inner {
        gap: 0;
    }
}

/* Çok dar genişliklerde banner içeriğini dikey sırala */
@media (max-width: 900px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 10px 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-height: min(22vh, 160px);
        max-height: min(22svh, 160px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cookie-consent-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .cookie-consent-icon {
        width: 22px;
        height: 22px;
    }

    /* Sütun düzeninde flex: 1 1 300px yüksekliği şişiriyordu */
    .cookie-consent-content {
        flex: 0 1 auto;
        min-width: 0;
        min-height: 0;
    }

    .cookie-consent-body {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cookie-consent-actions {
        justify-content: stretch;
        gap: 6px;
        flex: 0 0 auto;
    }

    .cookie-consent-actions .btn,
    .cookie-consent-actions a.btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .cookie-consent-content h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .cookie-consent-content p {
        font-size: 10px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cookie-consent-actions .btn,
    .cookie-consent-actions a.btn {
        padding: 5px 6px;
        min-height: 30px;
        font-size: 11px;
    }
}

/* Alt menü üstünde ince çerez şeridi; butonlar 2+1 ızgara */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: calc(56px + env(safe-area-inset-bottom, 0) + 6px);
        left: 6px;
        right: 6px;
        padding: 6px 8px !important;
        border-radius: 10px;
        max-height: min(18vh, 132px) !important;
        max-height: min(20svh, 132px) !important;
        gap: 4px !important;
    }

    .cookie-consent-content h4 {
        font-size: 11px !important;
        margin-bottom: 1px !important;
    }

    .cookie-consent-content p {
        font-size: 9px !important;
        line-height: 1.28 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px !important;
    }

    .cookie-consent-actions .btn-primary {
        grid-column: 1 / -1;
    }

    .cookie-consent-actions .btn,
    .cookie-consent-actions a.btn {
        flex: unset;
        text-align: center;
        padding: 4px 6px !important;
        min-height: 28px !important;
        font-size: 10px !important;
    }
}

.cookie-prefs-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 28px;
}

.cookie-prefs-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.cookie-prefs-lead {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 18px;
    line-height: 1.55;
}

.cookie-setting-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.cookie-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-setting-row:last-child {
    border-bottom: none;
}

.cookie-setting-info h5 {
    font-size: 15px;
    margin-bottom: 4px;
}

.cookie-setting-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input:disabled+.slider {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .cookie-consent-banner {
        max-width: 800px;
        left: 50%;
        /* Animasyon kaldırıldığı için ek Y kaydırma yapma; alt içerik ekranda kalsın */
        transform: translate(-50%, 0);
    }

    @keyframes cookieSlideUp {
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}

/* ===== İlan paylaş — marka renkli yuvarlak ikonlar ===== */
.listing-share-tray {
    position: relative;
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
}

.listing-share-toggle {
    min-width: 128px;
    font-weight: 600;
}

.listing-share-popover {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    z-index: 50;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    min-width: min(100%, 380px);
    max-width: 420px;
}

.listing-share-popover[hidden] {
    display: none !important;
}

.listing-share-popover-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.listing-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.listing-share-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-share-pill:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.listing-share-pill:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.listing-share-pill--copied {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.6), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listing-share-pill--wa {
    background: #25d366;
}

.listing-share-pill--fb {
    background: #1877f2;
}

.listing-share-pill--x {
    background: #000000;
}

.listing-share-pill--tg {
    background: #229ed9;
}

.listing-share-pill--li {
    background: #0a66c2;
}

.listing-share-pill--ig {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.listing-share-pill--tt {
    background: #000000;
}

.listing-share-pill--copy {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.listing-share-pill--native {
    background: #475569;
}

.listing-share-popover-hint {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
}

@media (max-width: 480px) {
    .listing-share-icons {
        gap: 10px;
    }
    .listing-share-pill {
        width: 44px;
        height: 44px;
    }
}