/* =====================================================
   theme.css - Kıbrıs İlan tasarım sistemi
   style.css'ten SONRA yüklenir; renkleri, yazı tipini, butonları ve pencereleri
   tek bir dile getirir. Yeni bileşen yazarken buradaki değişkenleri kullanın.
   ===================================================== */

/* ---------- 1. Temel değişkenler (tokens) ---------- */
:root {
    /* Marka: canlı, açık turuncu (mandalina) */
    --brand-50:  #FFF7F0;
    --brand-100: #FFEADB;
    --brand-500: #FF7A1A;
    --brand-600: #FF6B0F;
    --brand-700: #E05A00;   /* açık zeminde turuncu yazı (okunaklı ton) */
    --brand-grad: linear-gradient(135deg, #FFA149 0%, #FF6E1B 100%);

    /* Nötrler: daha açık ve ferah */
    --ink:       #1C2230;   /* başlık ve ana metin */
    --ink-2:     #4A5263;   /* ikincil metin */
    --muted:     #8A93A3;   /* yardımcı metin */
    --line:      #F0F2F5;   /* ince çizgiler */
    --canvas:    #FAFAFC;   /* sayfa zemini */
    --surface:   #FFFFFF;   /* kart / pencere */
    --fill:      #F4F5F8;   /* giriş alanı, ikincil buton */

    /* Durum renkleri: canlı */
    --success:   #12B76A;
    --whatsapp:  #25D366;
    --danger:    #F04452;
    --danger-50: #FFF1F2;
    --gold:      #FFB020;
    --sky:       #2E90FA;

    /* Biçim */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(28, 34, 48, 0.03);
    --shadow-md: 0 1px 2px rgba(28, 34, 48, 0.03), 0 6px 18px rgba(28, 34, 48, 0.05);
    --shadow-lg: 0 10px 40px rgba(28, 34, 48, 0.12);
    --shadow-brand: 0 8px 22px rgba(255, 110, 27, 0.32);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Eski değişken adları → yeni sistem (style.css ve satır içi stiller bunları kullanır) */
    --primary: var(--brand-500);
    --primary-dark: var(--brand-700);
    --secondary: var(--ink);
    --bg-light: var(--canvas);
    --white: var(--surface);
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --border: var(--line);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --shadow: var(--shadow-md);
}

body.dark-mode {
    --ink: #F3F4F6;
    --ink-2: #D1D5DB;
    --muted: #9CA3AF;
    --line: #262C38;
    --canvas: #0E1117;
    --surface: #171B24;
    --fill: #1F2430;
    --brand-50: #2A1D14;
    --brand-100: #3A2617;
    --danger-50: #2A1618;
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.35);

    --secondary: var(--ink);
    --bg-light: var(--canvas);
    --white: var(--surface);
    --text-main: var(--ink) !important;
    --text-muted: var(--muted) !important;
    --border: var(--line);
    --shadow: var(--shadow-md);
}

/* ---------- 2. Yazı ---------- */
*, input, button, select, textarea { font-family: var(--font); }
body { background: var(--canvas); color: var(--ink); letter-spacing: -0.005em; }
h1, h2, h3, h4, h5 { letter-spacing: -0.02em; color: var(--ink); }
html { background: var(--canvas); }

/* ---------- 3. Butonlar (tek aile) ----------
   Birincil  : .btn-submit-ad, .btn-empty-action, .btn-message-modern
   İkincil   : .btn-reset-filters, .btn-rate-seller, .tab-btn
   İkon      : .btn-close-modal, .header-icon-btn, .hamburger-btn
   Tehlikeli : .btn-delete-ad, .btn-danger-soft                        */
.btn-submit-ad {
    min-height: 52px; padding: 14px 20px; border: none; border-radius: var(--r-md);
    background: var(--brand-grad); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: var(--shadow-brand);
}
.btn-submit-ad:disabled { opacity: 0.6; box-shadow: none; }
.btn-secondary, .btn-reset-filters {
    background: var(--fill); color: var(--ink); border: none; border-radius: var(--r-md);
    font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary { min-height: 48px; padding: 12px 18px; font-size: 14px; width: 100%; }
.btn-reset-filters { padding: 9px 14px; font-size: 13px; color: var(--ink-2); }
.btn-danger-soft { background: transparent !important; color: var(--danger) !important; box-shadow: none !important; }
.btn-delete-ad { background: var(--danger-50); color: var(--danger); border-radius: var(--r-sm); padding: 8px 12px; font-weight: 700; font-size: 12px; }

.btn-empty-action {
    background: var(--brand-grad); color: #fff; border: none; border-radius: 999px;
    padding: 12px 22px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-brand);
}

.btn-close-modal, .header-icon-btn, .hamburger-btn {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none;
    background: var(--fill); color: var(--ink); font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0;
}
body.dark-mode .btn-close-modal { background: var(--fill) !important; color: var(--ink) !important; }

.btn-rate-seller {
    background: var(--brand-50); color: var(--brand-700); border: none; border-radius: 999px;
    padding: 8px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}

/* Çip / sekme butonları */
.tab-btn {
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 15px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.tab-btn.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255, 110, 27, 0.28); }
body.dark-mode .tab-btn.active { background: var(--brand-500) !important; border-color: var(--brand-500) !important; color: #fff !important; }

/* ---------- 4. Form alanları ---------- */
.form-group { gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-input, .form-select, .form-textarea, .mini-input, .mini-select {
    background: var(--fill); border: 1.5px solid transparent; border-radius: var(--r-md);
    color: var(--ink); transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.form-input, .form-select, .form-textarea { padding: 14px 16px; min-height: 52px; font-size: 15px; }
.form-input:focus, .form-select:focus, .form-textarea:focus, .mini-input:focus, .mini-select:focus {
    background: var(--surface); border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16); outline: none;
}
.form-info-box { background: var(--brand-50); border: none; border-radius: var(--r-md); color: var(--brand-700); }
.photo-upload-box { border: 2px dashed #D9DDE4; border-radius: var(--r-lg); background: var(--surface); padding: 26px 20px; }
.vip-upsell, .legal-consent { background: var(--surface); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); }
.vip-upsell label, .legal-consent label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px !important; font-weight: 500 !important; line-height: 1.45; color: var(--ink-2) !important; }
.vip-upsell strong { color: var(--ink); }
.vip-upsell em { font-style: normal; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.vip-upsell input, .legal-consent input { margin-top: 1px; flex-shrink: 0; width: 20px !important; height: 20px !important; accent-color: var(--brand-500) !important; }

/* ---------- 5. Üst başlık ve arama ---------- */
.app-top-header {
    background: var(--surface); border: none; padding: 8px 4% 4px; gap: 10px;
    display: flex; align-items: center;
}
.app-top-header .hamburger-btn { background: transparent; width: 40px; margin-left: -8px; font-size: 18px; }
.logo-area { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(255, 110, 27, 0.30); }
.logo-area .logo-word { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink) !important; white-space: nowrap; }
.logo-area .logo-word span { color: var(--brand-600) !important; margin-left: 4px; }
.header-actions { display: flex; gap: 6px; }
.header-icon-btn { background: transparent; font-size: 19px; }
.badge-counter {
    top: 2px; right: 1px; min-width: 17px; width: auto; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border: 2px solid var(--surface);
}
#favCounter:empty, #favCounter[data-zero] { display: none; }

header {
    background: var(--surface); box-shadow: none; padding: 6px 4% 12px; gap: 8px;
    border-bottom: 1px solid var(--line);
}
.search-container {
    flex: 1; max-width: none; height: 46px; background: var(--fill); border: 1.5px solid transparent;
    border-radius: var(--r-md); box-shadow: none; align-items: center; padding-left: 14px;
}
.search-container:focus-within { background: var(--surface); border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16); }
.search-icon { color: var(--muted); font-size: 15px; }
.search-input { font-size: 15px; padding: 10px 12px; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn { display: none; }
.location-badge {
    height: 46px; padding: 0 12px; border-radius: var(--r-md); background: var(--fill); border: none;
    font-size: 12.5px; font-weight: 700; color: var(--ink); gap: 6px; white-space: nowrap; max-width: 42%;
}
.location-badge span { overflow: hidden; text-overflow: ellipsis; }
.location-badge .fa-location-dot { color: var(--brand-500); }

/* ---------- 6. Kategoriler ---------- */
.categories-strip { gap: 6px; padding: 14px 0 6px; margin: 0 -4%; padding-left: 4%; padding-right: 4%; }
.cat-circle { min-width: 70px; gap: 0; }
.cat-circle .icon-box {
    width: 56px; height: 56px; border-radius: 18px; font-size: 21px; margin-bottom: 7px;
    box-shadow: none; border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s;
}
.cat-circle.active .icon-box { transform: none; box-shadow: 0 4px 12px rgba(255, 110, 27, 0.22); border-color: var(--brand-500); }
.cat-circle span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.cat-circle.active span { color: var(--ink); font-weight: 700; }

.subcategories-dropdown-container { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 16px; }
.subcat-item { background: var(--fill); border-radius: var(--r-md); font-weight: 600; padding: 14px 16px; }

/* ---------- 7. Bölüm başlıkları ve filtreler ---------- */
.container { padding-top: 6px; }
.section-header { margin: 22px 0 12px; }
.section-title { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
#resultCountText { background: var(--fill); color: var(--ink-2) !important; padding: 4px 10px; border-radius: 999px; font-size: 12px !important; }

.advanced-filter-bar { background: transparent; border: none; padding: 0; margin-bottom: 14px; display: block; }
.filter-tabs { gap: 8px; padding-bottom: 2px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
/* Filtre butonu: yalnızca ikon, satırın sağında sabit */
.filter-tabs { display: flex; align-items: center; }
.filter-toggle-btn { margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; padding: 0; font-size: 0; display: inline-flex; align-items: center; justify-content: center; }
.filter-toggle-btn i { font-size: 15px; }
.advanced-filter-bar.filters-open .filter-toggle-btn { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.filter-controls-right {
    display: none; margin-top: 10px; padding: 12px; gap: 8px;
    background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.advanced-filter-bar.filters-open .filter-controls-right { display: grid; grid-template-columns: 1fr 1fr; animation: km-drop-in 220ms var(--ease-out, ease) both; }
.filter-controls-right .mini-select { grid-column: 1 / -1; }
.filter-controls-right .btn-reset-filters { grid-column: 1 / -1; }
.mini-input, .mini-select { width: 100%; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; }

/* ---------- 8. İlan kartları ---------- */
.listings-grid { gap: 12px; }
.ad-card { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: var(--surface); }
.ad-card.sponsored { border: none; box-shadow: 0 0 0 2px var(--gold), var(--shadow-md); }
.card-img-wrap { height: auto; aspect-ratio: 1 / 1; background: var(--fill); }
.badge-sponsored, .badge-secondhand {
    top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.01em;
    background: rgba(21, 26, 35, 0.72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge-sponsored[style*="gold"] { background: var(--gold) !important; }
.btn-fav {
    top: 8px; right: 8px; width: 32px; height: 32px; background: rgba(255, 255, 255, 0.92);
    color: #9AA3B2; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-fav.active { color: var(--danger); }
.card-body { padding: 11px 12px 12px; gap: 0; justify-content: flex-start; }
.card-price { color: var(--ink); font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 3px; }
.card-title { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.35; margin-bottom: 8px; min-height: 2.7em; }
.card-footer { border-top: none; padding-top: 0; font-size: 11px; color: var(--muted); margin-top: auto; gap: 6px; }
.card-footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-footer .fa-location-dot { color: var(--muted); margin-right: 2px; }
.card-store-tag { margin-top: 6px; font-size: 11px; color: var(--brand-700); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dark-mode .card-price { color: var(--ink) !important; }

/* İskelet kartlar yeni kartla aynı ölçüde */
.skeleton-card { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.skeleton-card .sk-img { aspect-ratio: 1 / 1; }

/* ---------- 9. Tanıtım kutuları ve mağazalar ---------- */
.top-promo-compact { gap: 10px; }
.ad-banner-compact, .store-cta-compact { border-radius: var(--r-lg); padding: 18px; }
.ad-banner-compact { background: linear-gradient(135deg, #5CB0FF 0%, #2E7BF6 100%); }
.store-cta-compact { background: var(--brand-grad); }
.ad-banner-compact h3, .store-cta-compact h3 { font-size: 15px; letter-spacing: -0.02em; color: #fff; }
.btn-banner-compact, .btn-store-compact {
    background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 700; border: none;
}
.store-card { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px; }
.store-card.featured { border: none; box-shadow: 0 0 0 2px var(--gold), var(--shadow-md); }
.store-logo { border-radius: 12px; }

/* ---------- 10. Alt menü ---------- */
.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line); box-shadow: none; padding-top: 6px;
}
body.dark-mode .mobile-bottom-nav { background: rgba(23, 27, 36, 0.94) !important; }
.mob-nav-item { flex: 1; font-size: 10.5px; font-weight: 600; color: var(--muted); gap: 4px; padding: 4px 0; }
.mob-nav-item i { font-size: 20px; }
.mob-nav-item.active { color: var(--ink); }
.mob-nav-item.active i { color: var(--brand-600); }
.mob-nav-item.active i::before { font-weight: 900; }
.mob-nav-item .badge-counter { top: -2px; right: calc(50% - 22px); }
.mob-nav-plus-container { flex: 1; margin-top: -22px; gap: 4px; }
.mob-nav-plus {
    width: 54px; height: 54px; border-radius: 18px; background: var(--brand-grad); font-size: 22px;
    border: 4px solid var(--surface); box-shadow: var(--shadow-brand);
}
.mob-nav-plus-container span { color: var(--ink); font-size: 10.5px; font-weight: 700; }

/* ---------- 11. Pencereler (tek başlık dili) ---------- */
.fullscreen-full-modal, .fullscreen-detail-modal, .side-drawer { background: var(--canvas); }
.fullscreen-detail-header, .drawer-header {
    min-height: 60px; padding: 10px 14px; gap: 10px; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-shrink: 0;
}
/* Başlık metni */
.fullscreen-detail-header > div:first-child, .drawer-header > :first-child {
    font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--ink);
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fullscreen-detail-header > div:first-child i, .drawer-header > :first-child i { display: none; }
/* Tam ekran sayfalarda kapat düğmesi solda "geri" okudur (Android/iOS alışkanlığı) */
.fullscreen-full-modal > .fullscreen-detail-header .btn-close-modal:last-child,
.drawer-header .btn-close-modal:last-child { order: -1; }
.fullscreen-full-modal > .fullscreen-detail-header .btn-close-modal:last-child .fa-xmark::before,
#favoritesDrawer .drawer-header .btn-close-modal .fa-xmark::before { content: "\f053"; }
.fullscreen-full-body, .drawer-body { background: var(--canvas); padding: 18px 4% 28px; gap: 16px; }

/* Küçük pencereler (alttan yükselen kart) */
.modal-overlay, .drawer-overlay, #editAdModal { background: rgba(10, 13, 20, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.city-modal-card, .star-rating-modal-content, .edit-ad-card {
    background: var(--surface); border: none; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.city-btn-item { border-radius: var(--r-md); background: var(--fill); border: none; font-weight: 600; }

/* ---------- 12. İlan detayı ---------- */
.detail-topbar { position: relative; }
.detail-breadcrumb {
    flex: 1; min-width: 0; text-align: center; font-size: 13px !important; font-weight: 600 !important; color: var(--muted) !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-topbar-actions { display: flex; gap: 8px; }
.detail-gallery-section { background: var(--surface) !important; border-bottom: none !important; }
.detail-content-section { background: var(--canvas); padding: 18px 4% 24px; gap: 14px; }
.detail-title { font-size: 21px !important; line-height: 1.3; letter-spacing: -0.025em; }
#modalAdNoBadge { background: var(--fill) !important; color: var(--muted) !important; font-weight: 600 !important; border-radius: 999px !important; padding: 5px 10px !important; }
.detail-price-box { background: var(--surface) !important; border: none !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-md); padding: 16px 18px !important; }
#modalPrice { color: var(--ink) !important; font-size: 26px !important; letter-spacing: -0.03em; }
#modalLocation { color: var(--ink-2) !important; font-size: 13.5px !important; }
.seller-profile-card, #modalAttributesBox, .ad-description-box {
    background: var(--surface) !important; border: none !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-md) !important;
}
.seller-profile-card { padding: 16px; }
.seller-profile-info { gap: 10px; flex-wrap: wrap; }
.seller-profile-info > div:first-child { min-width: 0; flex: 1 1 180px; }
.rating-stars { flex-wrap: wrap; align-items: center; }
.seller-avatar-img { width: 46px; height: 46px; background: var(--brand-grad); }
#modalSellerName { font-size: 15px !important; font-weight: 700 !important; }
.ad-description-box h4, #modalAttributesBox h4 { font-size: 15px !important; font-weight: 700 !important; }
#modalDesc { color: var(--ink-2) !important; font-size: 14.5px !important; line-height: 1.65 !important; white-space: pre-line; }
.review-item { border: none; background: var(--fill); border-radius: var(--r-sm); padding: 8px 10px; }

/* Sabit iletişim çubuğu */
.detail-action-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; flex-shrink: 0;
    padding: 10px 4% calc(10px + var(--sab, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(21, 26, 35, 0.05);
}
.fullscreen-detail-modal { padding-bottom: 0 !important; }
.btn-contact-aesthetic {
    min-height: 52px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; padding: 0 18px; gap: 8px;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-contact-aesthetic i { font-size: 19px; }
.btn-whatsapp-modern { background: #E6FBEE; color: #0F9F4F; }
.btn-message-modern { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
body.dark-mode .btn-whatsapp-modern { background: #12301E !important; color: #4ADE80 !important; }
/* Üç düğme: Ara · WhatsApp · Mesaj (telefon yoksa yalnızca Mesaj, tam genişlik) */
.detail-action-bar.contact-bar-3 { grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.detail-action-bar.contact-bar-3.no-phone { grid-template-columns: 1fr; }
.contact-bar-3 .btn-contact-aesthetic { padding: 0 8px; font-size: 14px; gap: 6px; min-width: 0; white-space: nowrap; }
.btn-call-modern { background: #E0EDFF; color: #1D4ED8; }
body.dark-mode .btn-call-modern { background: #172554 !important; color: #93C5FD !important; }
@media (max-width: 340px) { .contact-bar-3 .btn-contact-aesthetic { font-size: 13px; } .contact-bar-3 .btn-contact-aesthetic i { font-size: 17px; } }

/* ---------- 13. Hesap, menü ve listeler ---------- */
.account-menu-list { gap: 8px; }
.account-menu-item, .menu-nav-item {
    background: var(--surface); border: none; border-radius: var(--r-md); box-shadow: var(--shadow-sm);
    padding: 15px 16px; min-height: 58px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
/* Yan menü */
.menu-user-card { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.menu-user-avatar { width: 50px; height: 50px; border-radius: 16px; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }
.menu-user-label { font-size: 12px; color: var(--muted); font-weight: 600; }
#profileDisplayName { font-size: 16px !important; font-weight: 700 !important; }
.menu-group-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 8px 4px -6px; }
.menu-nav-list { gap: 8px; }
.menu-item-main { display: flex; align-items: center; gap: 12px; }
.menu-icon, .account-menu-item i.left-icon {
    width: 36px; height: 36px; border-radius: 11px; background: var(--fill); color: var(--ink-2) !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.menu-item-brand .menu-icon { background: var(--brand-50); color: var(--brand-600) !important; }
.menu-chevron { font-size: 12px; color: #B4BAC5; }
.menu-legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.menu-legal-links a { color: var(--muted); text-decoration: none; font-weight: 600; }

.fav-item-card, .chat-thread-card { border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--surface); }
.fav-item-card img { border-radius: var(--r-sm); }
/* =====================================================
   VIP — İlanı Öne Çıkar kartı (ilan formu)
   ===================================================== */
.vip-card {
    position: relative; display: block; cursor: pointer; overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--r-lg); padding: 16px; margin: 4px 0;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF3D6 100%);
    border: 2px solid #FCD88B; box-shadow: 0 6px 18px rgba(217, 164, 6, 0.16);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.vip-card input { position: absolute; opacity: 0; pointer-events: none; }
.vip-card:active { transform: scale(0.99); }
.vip-card.selected { border-color: #F5A524; box-shadow: 0 10px 26px rgba(217, 164, 6, 0.3); }
/* Parıltı şeridi */
.vip-card-glow { position: absolute; top: -40%; right: -20%; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,214,102,0.55) 0%, rgba(255,214,102,0) 70%); pointer-events: none; }

.vip-card-top { display: flex; align-items: center; gap: 12px; position: relative; }
.vip-card-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4); }
.vip-card-titles { flex: 1; min-width: 0; }
.vip-card-title { font-size: 16px; font-weight: 800; color: #7A4E07; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; letter-spacing: -0.01em; line-height: 1.2; }
.vip-tag { background: linear-gradient(135deg, #FBBF24, #D97706); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.vip-card-sub { font-size: 12.5px; color: #A16207; font-weight: 500; margin-top: 2px; }
.vip-card-price { flex-shrink: 0; align-self: flex-start; font-size: 18px; font-weight: 800; color: #B45309; letter-spacing: -0.02em; white-space: nowrap; }
/* Dar telefonlarda (≤360px) sıkışmayı önle */
@media (max-width: 360px) {
    .vip-card { padding: 14px; }
    .vip-card-icon { width: 40px; height: 40px; font-size: 18px; }
    .vip-card-top { gap: 10px; }
    .vip-card-title { font-size: 15px; }
    .vip-card-price { font-size: 16px; }
}

.vip-card-benefits { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; position: relative; }
.vip-card-benefits li { font-size: 13px; color: #78560C; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.vip-card-benefits li strong { color: #7A4E07; font-weight: 800; }
.vip-card-benefits i { color: #D97706; font-size: 14px; }

.vip-card-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #F2D28A; position: relative; }
.vip-check-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #E9B949; background: #fff;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; transition: 0.15s; }
.vip-check-box i { opacity: 0; transform: scale(0.5); transition: 0.15s; }
.vip-card.selected .vip-check-box { background: linear-gradient(135deg, #FBBF24, #D97706); border-color: #D97706; }
.vip-card.selected .vip-check-box i { opacity: 1; transform: scale(1); }
.vip-check-label { font-size: 14px; font-weight: 700; color: #92610A; }
.vip-card.selected .vip-check-label { color: #7A4E07; }

body.dark-mode .vip-card { background: linear-gradient(135deg, #2A2210 0%, #332813 100%); border-color: #5A4718; }
body.dark-mode .vip-card-title, body.dark-mode .vip-check-label { color: #FCD88B; }
body.dark-mode .vip-card-sub, body.dark-mode .vip-card-benefits li { color: #E6C77A; }
body.dark-mode .vip-check-box { background: #1F2430; }

/* =====================================================
   KARGO — Kapıda Ödeme (Kargoyla Al, Kargolarım)
   ===================================================== */
/* İlan detayındaki çağrı butonu */
.shipping-cta {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
    background: var(--surface); border: 1.5px solid var(--brand-100); border-radius: var(--r-lg);
    padding: 14px; box-shadow: var(--shadow-sm);
}
.shipping-cta-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: var(--shadow-brand); }
.shipping-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shipping-cta-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.shipping-cta-sub { font-size: 12px; color: var(--muted); }

/* Talep formu */
.ship-info-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); color: var(--brand-700);
    border-radius: var(--r-md); padding: 12px 14px; font-size: 12.5px; line-height: 1.5; }
.ship-info-banner i { font-size: 16px; margin-top: 1px; }
.ship-listing-preview { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 12px; }
.ship-listing-preview img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--fill); flex-shrink: 0; }
.ship-listing-preview-info { min-width: 0; }
.ship-listing-preview-title { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-listing-preview-price { font-size: 15px; font-weight: 800; color: var(--brand-700); }
.ship-listing-preview-price span { font-size: 11px; font-weight: 600; color: var(--muted); }
.ship-listing-preview-seller { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Kargolarım sekmeleri ve kartları */
.ship-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ship-tab { flex: 1; padding: 11px; border: none; border-radius: var(--r-md); background: var(--fill); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ship-tab.active { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
#shipmentsList { display: flex; flex-direction: column; gap: 12px; }
.ship-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px; }
.ship-card-head { display: flex; gap: 12px; align-items: flex-start; }
.ship-card-head img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--fill); flex-shrink: 0; }
.ship-card-info { flex: 1; min-width: 0; }
.ship-card-title { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-card-price { font-size: 13px; font-weight: 700; color: var(--brand-700); }
.ship-card-price span { font-size: 11px; font-weight: 500; color: var(--muted); }
.ship-card-other { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ship-addr, .ship-track, .ship-note { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; display: flex; gap: 7px; align-items: flex-start; }
.ship-addr i, .ship-track i { color: var(--brand-600); margin-top: 2px; }
.ship-note { font-style: italic; color: var(--muted); }
.ship-track strong { color: var(--ink); }

/* Durum çubuğu */
.ship-steps { display: flex; align-items: center; margin: 14px 2px 4px; }
.ship-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.ship-step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--fill); color: var(--muted);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ship-step.done .ship-step-dot { background: var(--brand-500); color: #fff; }
.ship-step-label { font-size: 10px; color: var(--muted); font-weight: 600; }
.ship-step.done .ship-step-label { color: var(--ink-2); }
.ship-step-line { flex: 1; height: 2px; background: var(--line); margin: 0 2px 16px; }

.ship-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ship-btn { flex: 1; min-height: 44px; min-width: 130px; font-size: 13.5px; }
.ship-btn-sec { min-height: 44px; font-size: 13px; padding: 0 16px; width: auto; }
.ship-wait { flex: 1; display: flex; align-items: center; font-size: 12.5px; color: var(--muted); }

/* =====================================================
   PROFİL — Hesabım başlığı, menü kartı, Profili Düzenle
   ===================================================== */
/* Hesabım üstündeki profil kartı (dokununca düzenle) */
.profile-head-card {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
    background: var(--brand-grad); color: #fff; border: none; border-radius: var(--r-lg);
    padding: 16px; box-shadow: var(--shadow-brand); margin-bottom: 6px;
}
.profile-head-avatar { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
    background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; }
.profile-head-initials { font-size: 22px; font-weight: 800; color: #fff; }
.profile-head-info { flex: 1; min-width: 0; }
.profile-head-info h4 { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-head-info p { font-size: 12.5px; color: rgba(255,255,255,0.85); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-head-city { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; margin-top: 4px; background: rgba(255,255,255,0.2); padding: 2px 9px; border-radius: 999px; }
.profile-head-edit { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* Hamburger menü kullanıcı kartı */
button.menu-user-card, button.profile-head-card { border: none; font: inherit; appearance: none; -webkit-appearance: none; }
.menu-user-card { width: 100%; text-align: left; cursor: pointer; }
.menu-user-card .menu-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.menu-user-text { flex: 1; min-width: 0; }
.menu-user-name { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-user-card .menu-user-label { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.menu-user-card .menu-chevron { color: #B4BAC5; font-size: 12px; }

/* Profili Düzenle formu */
.profile-edit { display: flex; flex-direction: column; }
.profile-back { align-self: flex-start; background: var(--fill); border: none; border-radius: 999px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.profile-photo-picker { position: relative; width: 104px; height: 104px; margin: 14px auto 6px; cursor: pointer; display: block; }
.profile-photo-picker .profile-avatar-preview { width: 104px !important; height: 104px !important; border-radius: 50%; font-size: 36px; box-shadow: var(--shadow-md); }
.profile-photo-edit { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.profile-photo-hint { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.profile-section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 2px 8px; }
.profile-edit .form-group { gap: 7px; margin-bottom: 2px; }
.char-hint { text-align: right; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* İletişim tercihi çipleri */
.pref-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pref-chip { flex: 1; min-width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 10px; border-radius: var(--r-md); background: var(--fill); color: var(--ink-2);
    font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; }
.pref-chip input { display: none; }
.pref-chip i { font-size: 14px; }
.pref-chip.active { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-500); }

/* =====================================================
   SANA ÖZEL — ilgiye göre öne çıkan ilanlar (yatay şerit)
   ===================================================== */
.foryou-strip { margin: 4px 0 2px; }
.foryou-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.foryou-head-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.foryou-head-title i { color: var(--brand-500); }
.foryou-head-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.foryou-row {
    display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 8px; margin: 0 -4px;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.foryou-row::-webkit-scrollbar { display: none; }
/* İlan kartlarından küçük: 112 px genişlik, yatay fotoğraf, tek satır başlık */
.foryou-card {
    flex: 0 0 112px; width: 112px; scroll-snap-align: start; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: none;
    padding: 0 0 8px; overflow: hidden; display: flex; flex-direction: column;
}
.foryou-img-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--fill); }
.foryou-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foryou-ad-label {
    position: absolute; top: 7px; left: 7px; background: rgba(28, 34, 48, 0.72); color: #fff;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 7px; border-radius: 999px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.foryou-vip-label {
    position: absolute; top: 6px; left: 6px; background: #FFC233; color: #3B2A00;
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 3px;
}
body.dark-mode .foryou-vip-label, body.dark-mode .foryou-vip-label * { color: #3B2A00 !important; }
.foryou-price { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 7px 8px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foryou-title { font-size: 11.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3; margin: 0 8px 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foryou-city { font-size: 10.5px; color: var(--muted); margin: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-grid .foryou-img-wrap { aspect-ratio: 1 / 1; }
.up-grid .foryou-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.foryou-city .fa-location-dot { color: var(--muted); margin-right: 2px; }

/* =====================================================
   MESAJLAŞMA — ilan uygulaması düzeni
   ===================================================== */
/* --- Sohbet listesi --- */
#chatThreadsListPane { gap: 8px !important; }
.chat-thread-card { padding: 12px; gap: 12px; align-items: center; position: relative; }
.chat-thread-card.unread, .chat-thread-card.pinned { background: var(--surface) !important; border: none !important; }
.chat-thread-card.unread { box-shadow: var(--shadow-md); }
.chat-thread-card.unread .chat-thread-time { color: var(--brand-700); font-weight: 700; }
.chat-thread-media { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.chat-thread-thumb { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background: var(--fill); display: block; }
.chat-thread-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 20px; }
.chat-thread-mini { position: absolute; right: -5px; bottom: -5px; }
.chat-thread-mini .chat-thread-avatar {
    width: 26px !important; height: 26px !important; font-size: 10px !important; border: 2px solid var(--surface);
    border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center;
    background: var(--brand-grad) !important; color: #fff !important; font-weight: 700;
}
.chat-thread-mini .online-status-dot { width: 10px; height: 10px; right: -1px; bottom: -1px; border: 2px solid var(--surface); }
.chat-thread-info { flex: 1; min-width: 0; padding-right: 0 !important; display: flex; flex-direction: column; gap: 2px; }
.chat-thread-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-thread-top h5 { font-size: 14.5px !important; font-weight: 700 !important; color: var(--ink) !important; margin: 0 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread-time { font-size: 11.5px; color: var(--muted); flex-shrink: 0; font-weight: 500; }
.chat-thread-time .fa-thumbtack { color: var(--brand-600); font-size: 10px; }
.chat-thread-info .subtitle {
    display: block !important; font-size: 12px !important; font-weight: 500 !important; color: var(--ink-2) !important; margin: 0 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-thread-info .subtitle strong { color: var(--ink); font-weight: 700; }
.chat-thread-sold { display: inline-block; background: var(--danger-50); color: var(--danger); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.chat-thread-bottom { display: flex; align-items: center; gap: 8px; }
.chat-thread-info .last-msg { flex: 1; min-width: 0; font-size: 12.5px !important; color: var(--muted) !important; }
.chat-thread-card.unread .last-msg { color: var(--ink) !important; font-weight: 600; }
.chat-unread-count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-500); color: #fff;
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* Sabitle / gizle: sağ üstte küçük, dokununca belirgin */
.chat-actions-right { top: 8px !important; right: 8px !important; gap: 4px !important; opacity: 0; transition: opacity 0.15s; }
.chat-thread-card:active .chat-actions-right, .chat-thread-card:focus-within .chat-actions-right { opacity: 1; }
@media (hover: hover) { .chat-thread-card:hover .chat-actions-right { opacity: 1; } }
.btn-pin-chat, .btn-delete-chat {
    width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--fill) !important;
    color: var(--muted) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.btn-pin-chat.pinned { color: var(--brand-600) !important; background: var(--brand-50) !important; }
.chat-tab-btn { border-radius: 999px; font-weight: 600; }

/* --- Sohbet odası: konuşulan ilan kartı --- */
.chat-listing-card {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 8px;
    background: var(--surface); border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
    text-align: left; cursor: pointer; flex-shrink: 0;
}
.chat-listing-card img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--fill); flex-shrink: 0; }
.chat-listing-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-listing-title { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing-price { font-size: 14px; font-weight: 800; color: var(--brand-700); }
.chat-listing-badge { background: var(--danger-50); color: var(--danger); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.chat-listing-chevron { color: #B4BAC5; font-size: 12px; }

/* --- Mesajlar --- */
.chat-messages-box { background: transparent !important; border: none !important; padding: 6px 2px 10px !important; gap: 6px !important; }
.chat-day-sep { display: flex; justify-content: center; margin: 10px 0 6px; }
.chat-day-sep span { background: var(--fill); color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.chat-empty-hint { margin: auto; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.chat-empty-hint i { font-size: 28px; color: var(--brand-500); background: var(--brand-50); width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }

.chat-bubble-modern {
    max-width: 78% !important; padding: 9px 12px 6px !important; border-radius: 18px !important; font-size: 14.5px !important;
    line-height: 1.4 !important; box-shadow: var(--shadow-sm) !important; border: none !important; gap: 2px !important;
}
.chat-bubble-modern.incoming { background: var(--surface) !important; color: var(--ink) !important; border-bottom-left-radius: 6px !important; }
.chat-bubble-modern.outgoing { background: var(--brand-500) !important; color: #fff !important; border-bottom-right-radius: 6px !important; }
/* Gruplanmış balonlar: aralarındaki boşluk ve kuyruk köşesi yumuşar */
.chat-bubble-modern.grouped { margin-bottom: -3px; }
.chat-bubble-modern.incoming.grouped { border-bottom-left-radius: 18px !important; }
.chat-bubble-modern.outgoing.grouped { border-bottom-right-radius: 18px !important; }
.chat-bubble-text { white-space: pre-wrap; }
.chat-bubble-img { max-width: 220px !important; max-height: 260px !important; border-radius: 12px !important; margin: 2px 0 !important; }
.chat-bubble-footer { justify-content: flex-end; gap: 4px !important; font-size: 10.5px !important; color: var(--muted) !important; margin: 0 !important; }
.chat-bubble-modern.outgoing .chat-bubble-footer { color: rgba(255, 255, 255, 0.85) !important; }
.msg-tick { font-size: 10px; opacity: 0.75; }
.msg-tick.read { opacity: 1; }
.chat-seen { align-self: flex-end; font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 4px 4px; }
.chat-seen.is-read { color: var(--brand-700); }
.location-card-msg { background: rgba(255, 255, 255, 0.18) !important; border: none !important; border-radius: 12px !important; padding: 8px 10px !important;
    color: inherit !important; font-weight: 600; gap: 8px !important; text-decoration: none; }
.chat-bubble-modern.incoming .location-card-msg { background: var(--fill) !important; }
.location-card-msg i { font-size: 15px !important; color: inherit !important; }

/* "Yazıyor..." üç nokta */
#typingIndicatorRow { font-style: normal !important; color: var(--muted) !important; font-weight: 600; gap: 8px !important; padding-left: 4px; }
.typing-dots { display: inline-flex; gap: 3px; background: var(--surface); padding: 7px 10px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: km-typing 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes km-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* --- Hazır sorular --- */
.chat-quick-replies { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; flex-shrink: 0; }
.chat-quick-replies::-webkit-scrollbar { display: none; }
.chat-quick-chip {
    flex-shrink: 0; border: 1.5px solid var(--brand-100); background: var(--surface); color: var(--brand-700);
    font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* --- Yazma alanı --- */
.btn-chat-attach, .btn-chat-location { color: var(--ink-2) !important; font-size: 18px; }
.chat-input-footer { border: none; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-md); padding: 6px 6px 6px 14px; flex-shrink: 0; }
.btn-chat-send { background: var(--brand-grad); width: 40px; height: 40px; }
body.dark-mode .chat-bubble-modern.incoming { background: var(--surface) !important; }

/* Boş durumlar */
.empty-state-icon-box { border-radius: 24px !important; background: var(--surface) !important; border: none !important; box-shadow: var(--shadow-md); }
.empty-state-container h4 { font-size: 17px; font-weight: 700; color: var(--ink); }
.empty-state-container p { color: var(--muted); }

/* Paketler ve sihirbaz */
.package-card-item { border: 2px solid transparent; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.package-card-item.selected { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14), var(--shadow-md); transform: none; }
.package-card-item.highlighted { border-color: var(--gold); background: var(--surface); }
.store-cat-select-card { border: 2px solid transparent; box-shadow: var(--shadow-sm); border-radius: var(--r-md); }
.store-cat-select-card.selected { background: var(--brand-50); border-color: var(--brand-500); box-shadow: none; }
.step-pill { color: var(--muted); }
.step-pill.active { color: var(--brand-600); }
.wizard-footer-actions { background: var(--canvas); border-top: 1px solid var(--line); }
.currency-table { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: none; }

/* ---------- Mağaza sayfası: kapak fotoğrafı ekrana göre ---------- */
#myStoreProfileModal .fullscreen-full-body { max-width: none; }
.store-cover-hero {
    position: relative; width: 100%; flex-shrink: 0;
    /* Telefonda geniş ve ferah (~16:9 ya da ekran yüksekliğinin üçte biri), tablette tavanlı */
    height: clamp(220px, max(56vw, 32vh), 440px);
    background-color: #FFD9B8; background-size: cover; background-position: center; background-repeat: no-repeat;
}
#myStoreAvatar { box-shadow: var(--shadow-md); }
#myStoreProfileModal .fullscreen-full-body > div:nth-child(2) { max-width: 750px; margin-left: auto; margin-right: auto; width: 100%; }

/* ---------- 14. Karanlık mod düzeltmeleri (style.css'teki eski genel kuralları dengeler) ---------- */
body.dark-mode .cat-circle { background: transparent !important; }
body.dark-mode .cat-circle.active .icon-box { border-color: var(--brand-500); }
body.dark-mode .logo-area .logo-word { color: var(--ink) !important; }
/* Başlıkta yalnızca yazı logo: "Kıbrıs" siyah, "İlan" turuncu (çanta yalnızca uygulama logosunda) */
.logo-area .logo-text { font-size: 27px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: #111111; white-space: nowrap; }
.logo-area .logo-text span { color: #FF6A00; margin-left: 6px; }
body.dark-mode .logo-area .logo-text { color: var(--ink) !important; }
body.dark-mode .logo-area .logo-text span { color: #FF7A1A !important; }
@media (max-width: 380px) { .logo-area .logo-text { font-size: 24px; } }
body.dark-mode .logo-area .logo-word span { color: var(--brand-500) !important; }
body.dark-mode .app-top-header, body.dark-mode header { background: var(--surface) !important; }
body.dark-mode .location-badge { background: var(--fill) !important; }
body.dark-mode .hamburger-btn, body.dark-mode .header-icon-btn { background: transparent !important; }

/* =====================================================
   İLANLARIM — özet, sekmeler ve ilan kartları
   ===================================================== */
#editAdModal { z-index: 3200; } /* İlanlarım / Profil penceresinin üstünde açılsın */
.fullscreen-detail-header .myads-add-btn,
body.dark-mode .fullscreen-detail-header .myads-add-btn { background: var(--brand-50) !important; color: var(--brand-600) !important; }

.myads-summary { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px 6px; }
.myads-summary:empty { display: none; }
.myads-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.myads-stat + .myads-stat { border-left: 1px solid var(--line); }
.myads-stat-num { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.myads-stat-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.myads-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -4%; padding: 2px 4% 4px; flex-shrink: 0; }
.myads-filters::-webkit-scrollbar { display: none; }
.myads-filters:empty { display: none; }
.myads-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer;
    background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm);
    font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.myads-chip-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fill); color: var(--muted);
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.myads-chip.active { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.myads-chip.active .myads-chip-count { background: rgba(255,255,255,0.25); color: #fff; }

.myads-list { display: flex; flex-direction: column; gap: 10px; }
.myads-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; color: var(--muted); font-size: 13.5px; text-align: center; }
.myads-empty i { font-size: 26px; color: var(--brand-500); background: var(--brand-50); width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }

.myad-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.myad-main { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.myad-thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--fill); flex-shrink: 0; }
.myad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myad-card.is-dim .myad-thumb img { filter: grayscale(0.6); opacity: 0.75; }
.myad-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.myad-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.myad-price { font-size: 15px; font-weight: 800; color: var(--brand-700); letter-spacing: -0.02em; }
.myad-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 500; }
.myad-meta i { font-size: 11px; margin-right: 2px; }
.myad-state { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.myad-state.is-aktif { background: #E7F8EF; color: #0E8A4F; }
.myad-state.is-sold { background: var(--danger-50); color: var(--danger); }
.myad-state.is-expired { background: #FFF6E0; color: #B45309; }

.myad-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.myad-tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.myad-tag.is-vip { background: #FFF6E0; color: #B45309; }
.myad-tag.is-promo { background: #E8F2FF; color: #1D6FD6; }
.myad-tag.is-wait { background: var(--fill); color: var(--ink-2); }

.myad-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; border-top: 1px solid var(--line); padding-top: 10px; }
.myad-actions-spacer { flex: 1; min-width: 0; }
.myad-segment { display: inline-flex; background: var(--fill); border-radius: 12px; padding: 3px; gap: 2px; }
.myad-segment button { border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.myad-segment button.active { background: var(--surface); box-shadow: 0 1px 3px rgba(28, 34, 48, 0.1); }
.myad-segment button.is-active { color: #0E8A4F; }
.myad-segment button.is-sold { color: var(--danger); }
.myad-btn { border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 9px 10px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.myad-btn-soft { background: var(--brand-50); color: var(--brand-700); }
.myad-btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.myad-expired-note { font-size: 12px; color: var(--muted); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myad-segment { flex-shrink: 0; }
.myad-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: var(--fill); color: var(--ink-2);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.myad-icon-btn.is-danger { background: var(--danger-50); color: var(--danger); }
body.dark-mode .myad-state.is-aktif, body.dark-mode .myad-segment button.is-active { color: #4ADE80; }
body.dark-mode .myad-state.is-aktif { background: #12301E; }
body.dark-mode .myad-state.is-expired, body.dark-mode .myad-tag.is-vip { background: #2A2210; color: #FCD88B; }
body.dark-mode .myad-tag.is-promo { background: #132339; color: #7CB4FF; }

/* =====================================================
   PROFİL SAYFASI — herkesin görebildiği kullanıcı profili
   ===================================================== */
#userProfileBody { padding-top: 0; }
.up-hero { background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow-md);
    margin: 0 -4.2%; padding: 0 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; flex-shrink: 0; }
.up-cover { align-self: stretch; margin: 0 -18px; height: 96px; background: var(--brand-grad); position: relative; overflow: hidden; }
.up-cover::after { content: ""; position: absolute; right: -40px; top: -70px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.up-cover::before { content: ""; position: absolute; left: -30px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.10); }
.up-avatar { width: 96px; height: 96px; border-radius: 50%; margin-top: -48px; border: 4px solid var(--surface); background: var(--brand-grad);
    color: #fff; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-md); position: relative; flex-shrink: 0; }
.up-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-name { font-size: 21px; font-weight: 800; color: var(--ink); margin: 10px 0 4px; letter-spacing: -0.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.up-sub i { margin-right: 3px; }
.up-online { color: var(--success); font-weight: 700; }
.up-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--fill); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.up-stars { color: var(--gold); letter-spacing: 1px; }
.up-stars .is-off { color: var(--line); }
body.dark-mode .up-stars .is-off { color: #3A4150; }
.up-hero-actions { display: flex; gap: 8px; margin-top: 14px; width: 100%; max-width: 420px; }
.up-hero-actions .btn-submit-ad { flex: 1; min-height: 46px; font-size: 14px; }
.up-hero-actions .btn-secondary { flex: 1; min-height: 46px; width: auto; }

.up-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 14px 6px; flex-shrink: 0; }
.up-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.up-stat + .up-stat { border-left: 1px solid var(--line); }
.up-stat-num { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.up-stat-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.up-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 16px; flex-shrink: 0; }
.up-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.up-bio { font-size: 14px; color: var(--ink-2); line-height: 1.6; white-space: pre-line; margin: 0; word-break: break-word; }
.up-bio.is-empty { color: var(--muted); font-style: italic; }
.up-contact { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }

.up-store-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; border: 1.5px solid var(--brand-100);
    background: var(--surface); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-sm); font: inherit; color: inherit; flex-shrink: 0; }
.up-store-link img, .up-store-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 17px; }
.up-store-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.up-store-text strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-store-text span { font-size: 12px; color: var(--muted); }

.up-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 6px 2px -4px; }
.up-section-title h3 { font-size: 17px; font-weight: 800; margin: 0; }
.up-section-title button { background: none; border: none; color: var(--brand-700); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0; }

.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.up-grid .foryou-card { width: auto; flex: none; }
.up-empty { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.up-reviews { display: flex; flex-direction: column; gap: 8px; }
.up-review { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 12px 14px; }
.up-review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.up-review-head .up-stars { font-size: 12px; }
.up-review p { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; word-break: break-word; }

.up-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 0; color: var(--muted); font-size: 13px; }
.up-loading i { font-size: 22px; color: var(--brand-500); }
#userProfileBody .profile-edit { padding-top: 18px; }

/* İlan detayındaki satıcı adı → profile gider */
.seller-profile-link { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.seller-profile-link-hint { font-size: 12px; font-weight: 700; color: var(--brand-700); display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; }
.seller-avatar-img { overflow: hidden; }
.seller-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-privacy-note { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 360px; }
.up-privacy-note i { margin-right: 4px; font-size: 10.5px; }
.seller-profile-info > .seller-profile-link { flex: 1 1 180px; }
#userProfileBody .profile-back { display: none; } /* başlıktaki geri oku zaten profile döner */

/* =====================================================
   MAĞAZA AÇMA SİHİRBAZI (sade düzen) — stores.js
   ===================================================== */
.sw { gap: 14px; }
.sw-progress { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; }
.sw-step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sw-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--fill); color: var(--muted); transition: .2s; }
.sw-step.active { color: var(--brand-700); }
.sw-step.active .sw-dot { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 10px rgba(255, 110, 27, .3); }
.sw-step.done .sw-dot { background: var(--brand-100); color: var(--brand-700); font-size: 0; }
.sw-step.done .sw-dot::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; }
.sw-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line); min-width: 12px; }
@media (max-width: 380px) { .sw-step:not(.active) .sw-lbl { display: none; } }

.sw .wizard-step-pane { gap: 12px; }
.sw-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.sw-head p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sw-head b { color: var(--brand-700); font-weight: 800; margin-left: 4px; }
.sw-head b.zero { color: var(--muted); }
.sw-next { width: auto !important; padding: 12px 26px !important; }
.sw-back { width: auto !important; padding: 12px 20px !important; background: var(--fill) !important; color: var(--ink-2) !important; box-shadow: none !important; }

/* Paketler: tek sütun, sade satırlar (mağaza açma + paket yükseltme) */
.packages-grid-responsive { grid-template-columns: 1fr !important; gap: 10px; max-width: 620px; width: 100%; margin: 0 auto 4px; }
.package-card-item.pkg-row { padding: 14px 14px 12px; border-radius: var(--r-md); background: var(--surface); cursor: pointer; position: relative; }
.pkg-row .pkg-top { display: flex; align-items: center; gap: 10px; }
.pkg-row .pkg-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D5DAE2; flex-shrink: 0; transition: .15s; position: relative; }
.pkg-row.selected .pkg-radio { border-color: var(--brand-500); }
.pkg-row.selected .pkg-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-500); }
.pkg-row h4 { font-size: 15.5px; margin: 0; }
.pkg-row .popular-badge { position: static; font-size: 10px; padding: 2px 8px; box-shadow: none; }
.pkg-row .pkg-price { margin: 0 0 0 auto; font-size: 17px; white-space: nowrap; }
.pkg-row .pkg-features { flex-direction: row; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 30px; }
.pkg-row .pkg-features li { background: var(--fill); color: var(--ink-2); border-radius: 20px; padding: 4px 9px; font-size: 11px; gap: 5px; }
.pkg-row .pkg-features li i { color: var(--success); width: auto; font-size: 10px; }
.pkg-row .pkg-features li.f-gold i { color: var(--gold); }
.pkg-row .pkg-features li.f-blue i { color: var(--sky); }
.pkg-row.selected { background: var(--brand-50); }
.pkg-row.selected .pkg-features li { background: var(--surface); }
.sw-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sw-trust i { color: var(--success); margin-right: 3px; }

/* Bilgiler: kapak + logo önizlemesi */
.sw-brand { position: relative; margin-bottom: 26px; }
.sw-cover { display: flex; align-items: center; justify-content: center; height: 104px; border-radius: var(--r-md); border: 1.5px dashed #D5DAE2; background: var(--fill) center/cover no-repeat; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 700; transition: .15s; }
.sw-cover:hover { border-color: var(--brand-500); color: var(--brand-700); }
.sw-cover-hint i { margin-right: 5px; }
.sw-cover.has-img { border-style: solid; border-color: transparent; }
.sw-cover.has-img .sw-cover-hint { display: none; }
.sw-logo { position: absolute; left: 14px; bottom: -24px; width: 60px; height: 60px; border-radius: 50%; background: var(--surface) center/cover no-repeat; border: 3px solid var(--surface); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--brand-500); font-size: 18px; cursor: pointer; }
.sw-logo.has-img i { display: none; }
.sw-note { font-size: 11.5px; color: var(--muted); margin: -4px 0 2px; }
.sw-rules { font-size: 11.5px; color: var(--ink-2); background: var(--fill); border-radius: var(--r-sm); padding: 9px 11px; line-height: 1.5; }
.sw-rules i { color: var(--sky); margin-right: 4px; }
.sw-opt { font-weight: 600; color: var(--muted); font-size: 11px; }
.sw .form-group { margin-bottom: 0; }

/* Kategoriler: düzenli küçük kutucuklar */
.sw-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .sw-cats { grid-template-columns: repeat(4, 1fr); } }
.sw-cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 72px; padding: 10px 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.sw-cat input { position: absolute; opacity: 0; pointer-events: none; }
.sw-cat i { font-size: 17px; color: var(--ink-2); }
.sw-cat span { font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sw-cat.on { border-color: var(--brand-500); background: var(--brand-50); }
.sw-cat.on i { color: var(--brand-600); }
.sw-cat.on::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 5px; right: 6px; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-500); color: #fff; display: grid; place-items: center; }

/* =====================================================
   İLAN AKIŞINDA KÜÇÜK TANITIM KARTI (promo.js)
   Sade, ince, kapatılabilir. Akışın ortasında tek satır yer kaplar.
   ===================================================== */
.promo-nudge { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 11px 34px 11px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); cursor: pointer; position: relative; overflow: hidden; animation: km-fade-in 300ms ease both; }
.promo-nudge::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-grad); }
.promo-nudge.store::before { background: linear-gradient(135deg, #60A5FA, #2E90FA); }
.promo-nudge .pn-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 17px; background: var(--brand-50); color: var(--brand-600); }
.promo-nudge.store .pn-ic { background: #EEF6FF; color: var(--sky); }
.promo-nudge .pn-txt { flex: 1; min-width: 0; }
.promo-nudge .pn-txt b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-nudge .pn-txt span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-nudge .pn-cta { flex-shrink: 0; border: 0; border-radius: 20px; padding: 7px 13px; font-size: 12px; font-weight: 800; background: var(--brand-grad); color: #fff; cursor: pointer; }
.promo-nudge.store .pn-cta { background: linear-gradient(135deg, #60A5FA, #2E90FA); }
.promo-nudge .pn-x { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: none; color: #B8BFCB; width: 24px; height: 24px; font-size: 12px; cursor: pointer; border-radius: 50%; }
body.dark-mode .promo-nudge.store .pn-ic { background: #16263D; }

/* =====================================================
   MENÜ — Kurumsal Mağaza kartı ve yasal bağlantılar (ui.js)
   ===================================================== */
.menu-store-promo { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; cursor: pointer; border: none; font: inherit;
    background: var(--brand-grad); color: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-brand); position: relative; overflow: hidden; flex-shrink: 0; }
.menu-store-promo::after { content: ""; position: absolute; right: -36px; top: -46px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.14); pointer-events: none; }
.msp-top { display: flex; align-items: center; gap: 12px; position: relative; }
.msp-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.msp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msp-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.msp-text span { font-size: 12.5px; opacity: 0.92; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msp-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; position: relative; }
.msp-features i { margin-right: 6px; opacity: 0.95; }
.menu-store-promo.has-store .msp-features { display: none; }
.msp-cta { align-self: flex-start; background: #fff; color: var(--brand-700); font-size: 13.5px; font-weight: 800; padding: 9px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.menu-legal-list .menu-nav-item { min-height: 50px; padding: 10px 14px; font-size: 14px; }
.menu-legal-list .menu-icon { width: 32px; height: 32px; font-size: 13.5px; }
.menu-footer-note { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; margin: 6px 0 4px; }

/* Hesabım profil kartı: görüntüle + düzenle */
.profile-head-card.is-split { flex-direction: column; align-items: stretch; gap: 12px; cursor: default; }
.profile-head-main { display: flex; align-items: center; gap: 14px; cursor: pointer; min-width: 0; }
.profile-head-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-head-actions button { min-height: 40px; border: none; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,0.22); color: #fff; }
.profile-head-actions button:last-child { background: #fff; color: var(--brand-700); }

/* Yasal metin pencereleri (Çerez, KVKK, İlan Kuralları) */
.legal-doc { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.legal-doc h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 6px 0 0; }
.legal-doc p, .legal-doc ul { margin: 0; }
.legal-doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-doc .legal-updated { font-size: 12px; color: var(--muted); }

/* Menüdeki Kurumsal Mağaza kartı: simge kutusu turuncu, yalnızca mağaza simgesi mavi */
.menu-store-promo .msp-icon { background: linear-gradient(135deg, #FFC78A 0%, #FFA149 100%); color: #1F6FEB; box-shadow: 0 4px 12px rgba(224, 90, 0, 0.25); font-size: 21px; }

/* =====================================================
   SANA ÖZEL — ilan kartlarıyla aynı tarz, biraz daha küçük (promote.js)
   Gölge, köşe, kare fotoğraf ve yazı sırası "Canlı İlanlar" kartlarıyla aynı.
   ===================================================== */
.foryou-row { gap: 10px; padding: 4px 4px 12px; scroll-padding-left: 4px; }
.foryou-row .foryou-card { flex: 0 0 138px; width: 138px; }
.foryou-card {
    border: none; border-radius: 16px; box-shadow: var(--shadow-md); background: var(--surface); padding: 0;
}
.foryou-card.is-vip { box-shadow: 0 0 0 2px var(--gold), var(--shadow-md); }
.foryou-img-wrap { aspect-ratio: 1 / 1; }
.foryou-vip-label, .foryou-ad-label { top: 7px; left: 7px; font-size: 9.5px; padding: 3px 7px; }
.foryou-price { font-size: 14.5px; margin: 9px 10px 2px; }
.foryou-title { font-size: 12px; line-height: 1.35; margin: 0 10px 6px; white-space: normal; min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foryou-city { font-size: 10.5px; margin: auto 10px 10px; }
@media (min-width: 768px) { .foryou-row .foryou-card { flex-basis: 160px; width: 160px; } }

/* =====================================================
   MENÜ — Kurumsal Mağaza reklam kartı (ikna edici düzen)
   ===================================================== */
.menu-store-promo { gap: 11px; padding: 16px 16px 14px; }
.msp-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.22);
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; position: relative; }
.msp-top { align-items: flex-start; }
.msp-text strong { font-size: 16px; line-height: 1.3; }
.msp-text span { white-space: normal; font-size: 12.5px; }
.msp-marketing { display: flex; flex-direction: column; gap: 10px; position: relative; }
.msp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msp-cmp { border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.msp-cmp small { font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.msp-cmp b { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.msp-cmp.is-old { background: rgba(0,0,0,0.14); }
.msp-cmp.is-old b { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.85; }
.msp-cmp.is-new { background: #fff; color: var(--brand-700); }
.msp-cmp.is-new small { color: #6B7280; opacity: 1; }
.msp-features li { line-height: 1.35; display: flex; align-items: flex-start; gap: 0; }
.msp-features li i { margin-top: 2px; }
.msp-cta { align-self: stretch; justify-content: center; font-size: 14.5px; padding: 11px 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.msp-foot { font-size: 11.5px; font-weight: 600; text-align: center; opacity: 0.92; position: relative; }
.menu-store-promo.has-store .msp-marketing, .menu-store-promo.has-store .msp-foot { display: none; }

/* =====================================================
   KARANLIK MOD düzeltmeleri — menü, beyaz zeminli düğmeler, ilan formu
   (style.css'teki "tüm yazılar beyaz" kuralı beyaz zemindeki yazıları kaybettiriyordu)
   ===================================================== */
body.dark-mode .side-drawer, body.dark-mode .drawer-header, body.dark-mode .drawer-body { background-color: var(--canvas) !important; }
body.dark-mode .menu-nav-item { background: var(--surface) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, var(--shadow-md); }
body.dark-mode .menu-icon { background: #262C3A !important; color: #E5E7EB !important; }
body.dark-mode .menu-chevron { color: #6B7280 !important; }
body.dark-mode .menu-group-title, body.dark-mode .menu-footer-note { color: var(--muted) !important; }
/* Beyaz zeminli düğmelerde yazı rengi korunur */
body.dark-mode .msp-cta, body.dark-mode .msp-cta * { color: var(--brand-700) !important; }
body.dark-mode .msp-cmp.is-new b { color: var(--brand-700) !important; }
body.dark-mode .msp-cmp.is-new small { color: #6B7280 !important; }
body.dark-mode .menu-store-promo, body.dark-mode .menu-store-promo span:not(.msp-cta):not(.msp-icon),
body.dark-mode .menu-store-promo strong, body.dark-mode .menu-store-promo li, body.dark-mode .msp-cmp.is-old b,
body.dark-mode .msp-cmp.is-old small { color: #fff !important; }
body.dark-mode .msp-icon, body.dark-mode .msp-icon i { color: #1F6FEB !important; }
body.dark-mode .profile-head-actions button:last-child { color: var(--brand-700) !important; }
/* Alt menüdeki İlan Ver düğmesi: artı işareti her zaman beyaz, çerçeve menüyle aynı ton */
.mob-nav-plus, .mob-nav-plus i { color: #fff !important; }
body.dark-mode .mob-nav-plus { border-color: #171B24; }
/* İlan formu ve diğer giriş alanları: lacivert-siyah yerine uygulamanın gri tonları */
body.dark-mode .form-input, body.dark-mode .form-select, body.dark-mode .form-textarea,
body.dark-mode .mini-input, body.dark-mode .mini-select, body.dark-mode .search-container, body.dark-mode .search-input {
    background-color: var(--fill) !important; border-color: #2E3442 !important; color: var(--ink) !important;
}
body.dark-mode .form-input:focus, body.dark-mode .form-select:focus, body.dark-mode .form-textarea:focus {
    border-color: var(--brand-500) !important; box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18) !important;
}
body.dark-mode #postAdModal .fullscreen-full-body, body.dark-mode #postAdModal { background-color: var(--canvas) !important; }
body.dark-mode #dynamicAttributeContainer { background-color: var(--surface) !important; border-color: #2E3442 !important; }
/* VIP kutusu: kalın kelimelerin etrafında fazladan boşluk olmasın, karanlıkta fiyat okunsun */
.vip-card-benefits li { display: block !important; padding-left: 24px; position: relative; }
.vip-card-benefits li > i:first-child { position: absolute; left: 0; top: 2px; }
body.dark-mode .vip-card-price { color: #FFB547 !important; }
