/* =============================================
   FINDIK DAYIM - Ana Stil Dosyası
   Renk Paleti:
   - Yeşil (Ana):    #1B8C3E / #2DA55D
   - Turuncu:        #F5A623 / #E8971E
   - Krem (Arka):    #FDF6E3
   - Koyu (Footer):  #2D2D2D
   - Beyaz:          #FFFFFF
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Mobilde link/buton tıklamasında beliren mavi (veya gri) flash'ı kaldır.
   Tüm interaktif elementler native look & feel için şeffaf. */
* { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], input, select, textarea, label {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Native uygulama içinde metin seçimini (basılı tutunca) kapat — native his için.
   Sadece is-native-app gövdesinde geçerli; web sitesinde metin seçilebilir kalır.
   Form alanları ve içerik düzenlenebilir öğeler hariç (yazı girilebilsin). */
body.is-native-app,
body.is-native-app * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
body.is-native-app input,
body.is-native-app textarea,
body.is-native-app select,
body.is-native-app [contenteditable],
body.is-native-app [contenteditable] * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
/* Native app'te Facebook ile giriş gizli — native Facebook SDK henüz kurulmadı.
   SDK entegre edilince bu kural kaldırılacak. Web'de buton görünmeye devam eder. */
body.is-native-app .social-login-facebook {
    display: none !important;
}

/* FındıkPuan sayfası — mobil düzen */
@media (max-width: 768px) {
    /* Puan kutusu + davet linki alt alta, kesilmesin */
    .fp-ozet {
        flex-direction: column;
        align-items: stretch !important;
    }
    .fp-ozet > div { min-width: 0 !important; }
    /* "Nasıl Puan Kazanırım?" kartları mobilde 3 sütun */
    .fp-kazan-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .fp-kazan-grid > div { padding: 10px 6px !important; }
    .fp-kazan-grid strong { font-size: 0.72rem; }
    .fp-kazan-grid span { font-size: 0.72rem; }
}

:root, html[data-theme="light"] {
    --white-header: #FFFFFF;  /* Header içinde sabit beyaz (gece modunda değişmez) */
    --green: #1B8C3E;
    --green-dark: #157332;
    --green-light: #2DA55D;
    --orange: #F5A623;
    --orange-dark: #E8971E;
    --orange-light: #FFB84D;
    --cream: #FDF6E3;
    --cream-dark: #F5EDD3;
    --dark: #2D2D2D;
    --dark-light: #3D3D3D;
    --white: #FFFFFF;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --gray-lighter: #F3F4F6;
    --red: #DC2626;
    --body-bg: var(--cream);
    --body-color: #333;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --header-height: 70px;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* ==========================================
   TEMA SEÇİCİ (Panel'deki Switcher)
   ========================================== */
.theme-switcher-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}
.theme-switcher-group {
    display: flex;
    gap: 4px;
    background: var(--gray-lighter);
    padding: 3px;
    border-radius: var(--radius);
    margin-left: auto;
    flex-wrap: wrap;
}
.theme-opt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
    font-family: var(--font-main);
    transition: all 0.2s;
    white-space: nowrap;
}
.theme-opt:hover { color: var(--dark); }
.theme-opt.active {
    background: #fff;
    color: var(--green);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
html[data-theme="dark"] .theme-opt.active { background: #374151; color: var(--green-light); }

/* Ikonsuz (compact) varyant — dashboard'taki tek hücrelik theme card için */
.theme-switcher-card .theme-switcher-group {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
}
.theme-opt-iconly {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 8px 0;
}

@media (max-width: 600px) {
    .theme-switcher-group { width: 100%; margin-left: 0; justify-content: stretch; }
    .theme-opt { flex: 1; justify-content: center; padding: 8px 6px; font-size: 0.72rem; }
    .theme-opt span { display: none; }
}

/* ==========================================
   GECE MODU (DARK MODE)
   ========================================== */
html[data-theme="dark"] {
    --green: #22C55E;           /* Biraz daha parlak yeşil */
    --green-dark: #16A34A;
    --green-light: #4ADE80;
    --orange: #FB923C;
    --orange-dark: #F97316;
    --orange-light: #FDBA74;
    --cream: #1F2937;           /* Açık gri yerine koyu arka plan */
    --cream-dark: #111827;
    --dark: #F3F4F6;            /* Koyu metin → açık */
    --dark-light: #D1D5DB;
    --white: #1F2937;           /* Kart arka planı */
    --gray: #9CA3AF;
    --gray-light: #374151;      /* Kenarlıklar için koyu */
    --gray-lighter: #111827;    /* En koyu gri - sayfa arka planı */
    --red: #F87171;
    --body-bg: #0F172A;
    --body-color: #E5E7EB;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.5);
}
html[data-theme="dark"] body { background-color: var(--body-bg); color: var(--body-color); }
/* Dark modda header ve footer orijinal renklerini korur (değişiklik yok) */
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .ilan-detay-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .form-page-card,
html[data-theme="dark"] .msg-empty-card,
html[data-theme="dark"] .msg-list,
html[data-theme="dark"] .msg-list-item,
html[data-theme="dark"] .sidebar-profile-card,
html[data-theme="dark"] .friend-card,
html[data-theme="dark"] .chat-container,
html[data-theme="dark"] .notif-dropdown,
html[data-theme="dark"] .notif-dropdown-header,
html[data-theme="dark"] .notif-dropdown-footer,
html[data-theme="dark"] .ucret-modal,
html[data-theme="dark"] .ucret-hesaplama {
    background-color: #1F2937;
    color: var(--body-color);
}
html[data-theme="dark"] .dash-stat-card {
    background: #1F2937;
    border-color: #374151;
}
html[data-theme="dark"] .soru-item { background: #111827; }
html[data-theme="dark"] .soru-sor-form { background: #0F172A; }
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #111827;
    color: var(--body-color);
    border-color: #374151;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #6B7280; }
html[data-theme="dark"] .form-message,
html[data-theme="dark"] .flash-success,
html[data-theme="dark"] .flash-info { color: var(--body-color); }
html[data-theme="dark"] .number-stepper { background: #111827; border-color: #374151; }
html[data-theme="dark"] .stepper-btn { background: #374151; color: var(--body-color); }
html[data-theme="dark"] .listings-table { background: #1F2937; }
html[data-theme="dark"] .listings-table-head { background: #374151; color: var(--body-color); }
html[data-theme="dark"] .listing-row { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .listing-row:hover { background: #374151; }
html[data-theme="dark"] .admin-table thead tr { background: #374151; }
html[data-theme="dark"] .admin-table tbody tr { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .admin-table tbody tr:hover { background: #374151; }
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td { color: var(--body-color); }
html[data-theme="dark"] table { background: #1F2937; color: var(--body-color); }
html[data-theme="dark"] table thead tr { background: #374151 !important; color: var(--body-color); }
html[data-theme="dark"] table td { color: var(--body-color); }

/* Status badge'ler dark modda kontrastı koru */
/* status badge dark mode renkleri aşağıda durum bazlı tanımlı */

/* Ghost banner dark modda da kırmızı kalır (uyarı) - değişiklik yok */

/* Notif dropdown okunmamış arkaplan dark modda */
html[data-theme="dark"] .notif-item { border-color: #374151; }
html[data-theme="dark"] .notif-item:hover { background: #374151; }
html[data-theme="dark"] .notif-item-unread { background: rgba(34,197,94,0.08); }
html[data-theme="dark"] .notif-item-icon { background: #374151; }

/* Chat bubbles dark mod */
html[data-theme="dark"] .chat-body { background: #0F172A; }
html[data-theme="dark"] .chat-received .chat-bubble { background: #374151; color: var(--body-color); }
html[data-theme="dark"] .chat-header { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .chat-input-bar { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .chat-input { background: #0F172A; color: var(--body-color); border-color: #374151; }

/* Dropdown menus */
html[data-theme="dark"] .chat-dropdown { background: #1F2937; }
html[data-theme="dark"] .chat-dropdown-item:hover { background: #374151; }
html[data-theme="dark"] .chat-dropdown-item { color: var(--body-color); }

/* Auth pages background */
html[data-theme="dark"] .auth-section { background: transparent; }

/* Form message'lar */
html[data-theme="dark"] .form-message.success { background: rgba(34,197,94,0.15); color: #86EFAC; border-color: #22C55E; }
html[data-theme="dark"] .form-message.error { background: rgba(248,113,113,0.15); color: #FCA5A5; border-color: #F87171; }
html[data-theme="dark"] .form-message.warning { background: rgba(251,146,60,0.15); color: #FDBA74; border-color: #FB923C; }
html[data-theme="dark"] .form-message.info { background: rgba(59,130,246,0.15); color: #93C5FD; border-color: #60A5FA; }

/* Radio/checkbox box dark */
html[data-theme="dark"] .radio-box,
html[data-theme="dark"] .check-box,
html[data-theme="dark"] .role-option .role-card {
    background: #1F2937; border-color: #374151; color: var(--body-color);
}
/* Fotoğraf kırpma modal kutusu (profil avatar) — tema duyarlı */
.crop-modal-box { background: var(--white); color: var(--dark); }
html[data-theme="dark"] .crop-modal-box { background: #1F2937; color: #F3F4F6; }
html[data-theme="dark"] .radio-box span,
html[data-theme="dark"] .check-box span { color: var(--body-color); }
html[data-theme="dark"] .radio-box input:checked + span,
html[data-theme="dark"] .check-box input:checked + span { color: var(--green-light); }

/* Ucret hesaplama */
html[data-theme="dark"] .ucret-hesaplama { background: rgba(34,197,94,0.08); border-color: var(--green); }

/* Modal overlay */
html[data-theme="dark"] .ucret-modal-footer { background: #111827; border-color: #374151; }

/* Friend cards & soru-cevap alt bg */
html[data-theme="dark"] .friend-card:hover,
html[data-theme="dark"] .msg-list-item:hover { background: #374151; }

/* Text colors */
html[data-theme="dark"] .ilan-stats-row { background: linear-gradient(90deg, rgba(34,197,94,0.05), rgba(251,146,60,0.05)); border-color: #374151; }
html[data-theme="dark"] .ilan-stat-item { background: #1F2937; border-color: #374151; }

/* Fieldset dark */
html[data-theme="dark"] .ilan-fieldset { border-color: #374151; background: #1F2937; }
html[data-theme="dark"] .ilan-fieldset legend { background: #1F2937; color: var(--body-color); }
html[data-theme="dark"] .ilan-tur-card { background: #111827; border-color: #374151; color: var(--body-color); }
html[data-theme="dark"] code,
html[data-theme="dark"] .header-account img { opacity: 0.95; }
html[data-theme="dark"] .btn-outline { border-color: #4B5563; color: var(--body-color); background: transparent; }
html[data-theme="dark"] .btn-outline:hover { background: var(--green); color: #fff !important; border-color: var(--green); }
html[data-theme="dark"] .mobile-menu { background: #0F172A; }
html[data-theme="dark"] .mobile-menu-close { background: var(--gray-light); color: #ffffff; }
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] .mobile-nav .mobile-nav-btn { color: var(--body-color); border-color: #374151; }
html[data-theme="dark"] .marquee-bar { background: #374151; color: var(--body-color); }

/* Avatar default (gri SVG) dark modda daha parlak görünsün */
html[data-theme="dark"] img[src*="avatars/default"] { filter: brightness(1.3); }

/* Yumuşak geçiş */
html[data-theme] body,
html[data-theme] .dash-card,
html[data-theme] .header,
html[data-theme] input,
html[data-theme] textarea,
html[data-theme] select { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--cream);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 36px); /* header + test banner */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

/* =============================================
   HEADER
   ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1B8C3E;  /* Sabit yeşil — dark modda değişmez */
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 10px;
    justify-content: space-between;
}

.header-logo { flex-shrink: 0; }

.logo-img {
    height: 140px;
    width: auto;
    margin-top: 80px;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--white-header);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover { background: rgba(255,255,255,0.15); }

.nav-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
}

.nav-text {display: flex;flex-direction: column;line-height: 1.2;align-items: flex-start;}
.nav-text strong { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }
.nav-text small { font-size: 0.65rem; opacity: 0.85; letter-spacing: 0.3px; }

.nav-arrow { width: 16px; height: 16px; opacity: 0.8; transition: transform 0.2s ease; }

.nav-dropdown {position: relative;display: flex;align-items: center;}
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; color: var(--white-header); background: none; border: none;
    border-radius: var(--radius-full); cursor: pointer;
    font-family: var(--font-main); white-space: nowrap; transition: var(--transition);
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,0.15); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 240px; background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18); padding: 8px 0;
    opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; color: var(--dark); font-size: 0.88rem; font-weight: 600;
    transition: var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--green); }
.nav-dropdown-menu a i { color: var(--green); }

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--white-header);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.header-account:hover { background: rgba(255,255,255,0.15); border-color: var(--white-header); }

/* Giriş Yap / Üye Ol Butonları (giriş yapmamış kullanıcılar için) */
.header-auth-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}
.header-auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid;
}
.header-auth-btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: transparent;
}
.header-auth-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.header-auth-btn-solid {
    color: var(--green);
    background: #fff;
    border-color: #fff;
}
.header-auth-btn-solid:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

@media (max-width: 768px) {
    .header-auth-btn span {
        font-size: 8px;
        line-height: 8px;
        font-weight: normal;
        position: absolute;
        bottom: -7px;
        background: #1B8C3E;
        color: #ffffff;
        padding: 3px;
        left: -4px;
        right: 0;
        width: 44px;
        text-align: center;
        border-radius: 5px;
        box-shadow: 0 0 5px #1B8C3E;
    }
    .header-auth-btn { padding: 8px 10px; width: 40px; height: 40px; justify-content: center; }
    .header-auth-btn i { margin: 0; }
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-header);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: var(--transition);
}

.hamburger-btn:hover { background: rgba(255,255,255,0.3); }

/* Test Banner */
.test-banner {
    background: linear-gradient(90deg, var(--orange-light) 0%, var(--orange-dark) 100%);
    color: var(--dark);
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    overflow: hidden;
    white-space: nowrap;
}

.test-banner .marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

.test-banner:hover .marquee {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: var(--white);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.mobile-logo { height: 50px; }

.mobile-menu-close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gray-lighter);
    color: #333;
}

.mobile-nav { display: flex; flex-direction: column; gap: 2px; }

.mobile-nav a,
.mobile-nav .mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 20px;
    border-radius: var(--radius);
    font-weight: 600;
    color: #333;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.mobile-nav a i[data-lucide],
.mobile-nav .mobile-nav-btn i[data-lucide] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gray);
}
.mobile-nav a:hover,
.mobile-nav .mobile-nav-btn:hover { background: var(--cream); color: var(--green); }
.mobile-nav a:hover i[data-lucide],
.mobile-nav .mobile-nav-btn:hover i[data-lucide] { color: var(--green); }

.mobile-nav hr { border: none; border-top: 1px solid var(--gray-light); margin: 6px 0; }

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    padding: 30px 0 50px;
    overflow: hidden;
    display: flex;
    min-height: calc(100vh - 130px - 106px - 30px);
    justify-content: center;
    flex-direction: column;
}

.hero-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-left { flex: 1; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--green);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title .green {}
.hero-title .ve {font-weight: 400;font-size: 70%;text-transform: lowercase;}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--green);
    font-size: 1rem;
    transition: var(--transition);
}

.hero-action:hover { color: var(--green); }

.hero-action .arrow { color: var(--orange); font-size: 1.2rem; font-weight: 800; }
.hero-action .check { color: var(--green); font-size: 1.2rem; }

.hero-right {
    flex: 1.1;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-character {
    position: relative;
    z-index: 2;
    top: 40px;
    left: 30px;
}

.hero-character img {
    max-height: 444px;
    width: auto;
}


/* Hero Butonlar (Karakter etrafı) */
.hero-buttons {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hero-btn {
    position: absolute;
    padding: 6px 15px;
    text-align: center;
    min-width: 190px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--orange-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-dark);
}

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

.hero-btn.green:hover {
    background: var(--green-dark);
}

.hero-btn.orange {
    background: var(--orange-light);
    color: var(--white);
}

.hero-btn.orange:hover {
    background: var(--green);
    color: var(--white);
}

/* Buton pozisyonları — tasarımdaki düzen */
.hero-btn.pos-bahce-bul    {top: 7%;left: 15%;}
.hero-btn.pos-isci-bul     {top: 24%;left: 3%;}
.hero-btn.pos-tirpan       {top: 44%;left: 0%;}
.hero-btn.pos-patoz        {top: 64%;left: 3%;}
.hero-btn.pos-bahceleme    {top: 82%;left: 8%;}
.hero-btn.pos-patpat       {top: 5%;right: 13%;}
.hero-btn.pos-asci         {top: 25%;right: 0%;}
.hero-btn.pos-servis       {top: 45%;right: 0%;}

/* =============================================
   STATS BAR
   ============================================= */

.stats-bar {
    background: var(--orange);
    padding: 24px 0;
    border-bottom: 5px solid #D88C21;
    margin-bottom: 20px;
}

.stats-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 4px;
}

/* =============================================
   İLAN LİSTESİ (Tablo)
   ============================================= */

.listings-section {
    padding: 20px 0 20px;
}

.listings-header {
    max-width: 1340px;
    margin: 0 auto 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.listings-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.listings-count {
    font-size: 0.9rem;
    color: var(--gray);
}

.listings-count strong { color: var(--green); font-weight: 700; }

.listings-table-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.listings-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.listings-table-head {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.1fr 0.85fr 0.75fr 1.3fr 120px;
    padding: 14px 20px;
    background: var(--gray-lighter);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    gap: 10px;
    align-items: center;
}

.listings-table-head .col { display: flex; align-items: center; gap: 6px; }

.listing-row {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.1fr 0.85fr 0.75fr 1.3fr 120px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.88rem;
    gap: 10px;
    align-items: center;
    transition: var(--transition);
}

.listing-row:last-child { border-bottom: none; }
.listing-row:hover {background: var(--gray-lighter);}

.listing-boosted {
    background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, rgba(245,166,35,0.02) 100%);
    border-left: 3px solid var(--orange);
    font-weight: 500;
}
.listing-boosted .listing-name { font-weight: 700; }
.listing-boosted::after {
    content: '⭐';
    font-size: 0.7rem;
    position: absolute;
    top: 4px;
    right: 8px;
}
.listing-boosted { position: relative; }

.listing-boost-uste_sabitle {
    background: linear-gradient(135deg, rgba(27,140,62,0.06) 0%, rgba(27,140,62,0.02) 100%);
    border-left: 3px solid var(--green);
}
.listing-boost-uste_sabitle::after { content: '📌'; }
.listing-row.highlight { background: rgba(45, 165, 93, 0.08); }

/* Başvuruya kapalı ilan — listede soluk gösterilir + rozet */
.listing-row.listing-kapali { opacity: 0.72; }
.listing-row.listing-kapali:hover { opacity: 1; }
.listing-kapali-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #b91c1c;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
html[data-theme="dark"] .listing-kapali-badge { color: #fca5a5; background: rgba(239,68,68,0.18); }

.listing-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.listing-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.listing-avatar i { color: var(--gray); }

.listing-name { font-weight: 600; }

/* Yeni: başlık + isim altyazı düzeni */
.listing-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.listing-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.listing-sub {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.listing-boosted .listing-title { font-weight: 800; }

/* Tarih hücresi — ana tarih + "X gün sonra" rozeti */
.listing-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}
.listing-date-main { font-weight: 600; font-size: 0.86rem; }
.listing-date-rel {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 500;
}

/* Öne çıkan ilan — dark mode vurgusu (aksi halde genel .listing-row dark rengi override ediyor) */
html[data-theme="dark"] .listing-boosted {
    background: linear-gradient(135deg, rgba(251,146,60,0.22) 0%, rgba(251,146,60,0.06) 100%);
    border-left: 3px solid #FB923C;
}
html[data-theme="dark"] .listing-boosted:hover {
    background: linear-gradient(135deg, rgba(251,146,60,0.3) 0%, rgba(251,146,60,0.1) 100%);
}
html[data-theme="dark"] .listing-boost-uste_sabitle {
    background: linear-gradient(135deg, rgba(34,197,94,0.22) 0%, rgba(34,197,94,0.06) 100%);
    border-left: 3px solid #22C55E;
}
html[data-theme="dark"] .listing-boost-uste_sabitle:hover {
    background: linear-gradient(135deg, rgba(34,197,94,0.3) 0%, rgba(34,197,94,0.1) 100%);
}

/* Neler Dahil ikonları */
.includes-icons { display: flex; gap: 6px; align-items: center; }

.include-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.include-icon .inc-main {
    color: var(--dark);
    opacity: 0.7;
}

.include-icon .inc-status {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
}
[class*=hint--][aria-label]:after{
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
}
.include-icon .inc-yes { color: var(--green); }
.include-icon .inc-no { color: var(--red); opacity: 0.7; }

.btn-incele {
    display: inline-block;
    padding: 8px 20px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    text-align: center;
    transition: var(--transition);
}

.btn-incele:hover { background: var(--orange-dark); transform: translateY(-1px); }

.listings-more {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.btn-more {
    display: inline-block;
    padding: 12px 32px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-more:hover { background: var(--green-dark); }

/* =============================================
   FAB BUTTON (Sol alt sabit buton)
   ============================================= */

.fab-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.fab-button:hover { background: var(--orange-dark); transform: translateY(-2px); }
/* İlan formu sayfalarında FAB gereksiz */
body.page-ilan-ver .fab-button,
body.page-ilan-duzenle .fab-button { display: none !important; }
.fab-button span { font-size: 1.2rem; }

/* =============================================
   MOBİL ALT NAV (instagram tarzı)
   ============================================= */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 58px;
        background: #fff;
        border-top: 1px solid var(--gray-light);
        padding: 0 4px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        box-sizing: border-box;
    }
    .mobile-bottom-nav .mb-item {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6B7280;
        text-decoration: none;
        position: relative;
        transition: color 0.15s, transform 0.1s;
    }
    .mobile-bottom-nav .mb-item:active { transform: scale(0.92); }
    .mobile-bottom-nav .mb-item i[data-lucide],
    .mobile-bottom-nav .mb-item svg.lucide {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }
    .mobile-bottom-nav .mb-item.active {
        color: var(--green);
    }
    .mobile-bottom-nav .mb-item.active i[data-lucide],
    .mobile-bottom-nav .mb-item.active svg.lucide {
        stroke-width: 2.4;
    }
    .mobile-bottom-nav .mb-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid transparent;
        background: var(--gray-lighter);
    }
    .mobile-bottom-nav .mb-profile.active .mb-avatar {
        border-color: var(--green);
    }
    .mobile-bottom-nav .mb-badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 18px);
        background: var(--red);
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-sizing: content-box;
    }

    /* Bar altında içerik kalmasın */
    body.has-bottom-nav { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

    /* Header'daki hesap linki gizle (profil artık bar'da) */
    body.has-bottom-nav .header-account { display: none !important; }

    /* FAB'i bar ile çakışmasın diye yukarı it */
    body.has-bottom-nav .fab-button {
        bottom: calc(58px + env(safe-area-inset-bottom) + 16px);
    }
}

/* Dark mode */
html[data-theme="dark"] .mobile-bottom-nav {
    background: #111827;
    border-top-color: #374151;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .mobile-bottom-nav .mb-item { color: #9CA3AF; }
html[data-theme="dark"] .mobile-bottom-nav .mb-item.active { color: var(--green-light); }
html[data-theme="dark"] .mobile-bottom-nav .mb-avatar {
    background: #374151;
}
html[data-theme="dark"] .mobile-bottom-nav .mb-profile.active .mb-avatar {
    border-color: var(--green-light);
}
html[data-theme="dark"] .mobile-bottom-nav .mb-badge {
    border-color: #111827;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: #0b1222;
    color: #FFFFFF;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 40px;
}

.footer-brand {}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo { height: 60px; border-radius: 8px; }

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: block;
}

.footer-logo-wrap small { color: #aaa; font-size: 0.8rem; }

.footer-desc {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links a {
    display: block;
    padding: 4px 0;
    color: #bbb;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-links-wide {}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

/* =============================================
   ÇEREZ RIZA BANNER
   ============================================= */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    background: #1F2937;
    color: #F3F4F6;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    max-width: 720px;
    margin: 0 auto;
    animation: cookieSlideUp 0.35s ease;
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-inner {
    display: flex;
    gap: 20px;
    padding: 18px 22px;
    align-items: center;
    flex-wrap: wrap;
}
.cookie-consent-text { flex: 1 1 300px; min-width: 0; }
.cookie-consent-text strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.cookie-consent-text p { font-size: 0.82rem; line-height: 1.5; color: #D1D5DB; margin: 0; }
.cookie-consent-text a { color: var(--green-light); text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-consent-actions .btn-outline {
    border-color: #6B7280;
    color: #D1D5DB;
    background: transparent;
}
.cookie-consent-actions .btn-outline:hover { background: #374151; border-color: #9CA3AF; }

/* Alt navbar ile çakışmaması için giriş yapan kullanıcılarda ek yukarı kayma */
body.has-bottom-nav .cookie-consent {
    bottom: calc(58px + env(safe-area-inset-bottom) + 16px);
}

@media (max-width: 600px) {
    .cookie-consent { left: 8px; right: 8px; bottom: 8px; }
    .cookie-consent-inner { padding: 14px 16px; gap: 12px; }
    .cookie-consent-actions { width: 100%; justify-content: flex-end; }
}

/* Footer Sosyal Medya */
.footer-social {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Footer App Store Butonları */
.footer-stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0 24px;
}
.footer-stores .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid #222;
    text-decoration: none;
    min-width: 170px;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.footer-stores .store-btn:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
    transform: translateY(-2px);
}
.footer-stores .store-btn svg { flex-shrink: 0; }
.footer-stores .store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.footer-stores .store-btn small {
    font-size: 0.62rem;
    opacity: 0.75;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.footer-stores .store-btn strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    padding: 16px 30px;
    border-radius: var(--radius-lg);
}

.social-count {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.social-facebook {background: #1877F2;}
.social-instagram {background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);}
.social-tiktok { background: var(--white); color: var(--dark); }

.social-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Footer Copyright */
.footer-copyright {
    text-align: center;
    padding: 16px 20px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

/* =============================================
   FLASH MESSAGES
   ============================================= */

/* =============================================
   TOAST BİLDİRİM SİSTEMİ
   ============================================= */

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-success {
    background: rgba(222, 247, 236, 0.95);
    color: #03543F;
    border-left: 4px solid #10B981;
}

.toast-error {
    background: rgba(254, 226, 226, 0.95);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.toast-warning {
    background: rgba(254, 243, 199, 0.95);
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.toast-info {
    background: rgba(219, 234, 254, 0.95);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.toast-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-message {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.4;
    color: inherit;
    line-height: 1;
    padding: 0;
    margin: -4px -4px 0 0;
}
.toast-close:hover { opacity: 0.8; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.06);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 0 0 0 var(--radius-lg);
}

.toast-success .toast-progress-bar { background: #10B981; }
.toast-error .toast-progress-bar { background: #EF4444; }
.toast-warning .toast-progress-bar { background: #F59E0B; }
.toast-info .toast-progress-bar { background: #3B82F6; }


/* Eski flash class'ları da toast gibi çalışsın (geriye uyumluluk) */
.flash-message { display: none; }

/* form-message (AJAX formlarındaki inline mesajlar — bunlar kalacak) */

/* =============================================
   DASHBOARD & ADMIN
   ============================================= */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.role-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--green);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 4px;
}
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.dash-stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}
.dash-stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dash-stat-number { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.dash-stat-label { font-size: 0.8rem; color: var(--gray); }
body.page-panel .dash-grid{grid-template-columns: repeat(2, 1fr);} 
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    body.page-panel .dash-grid,
    .dash-grid { grid-template-columns: 1fr; gap: 12px; }
}

.dash-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
}
.dash-card-header h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 700;
}
.dash-card-body { padding: 16px 20px; }

/* İlanlarım aksiyon popup (default: desktop'ta inline flex, mobilde 3-nokta açılır menü) */
.dash-item-actions { display: flex; align-items: center; }
.dash-actions-popup {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.dash-actions-toggle {
    display: none;
    background: none;
    border: 1px solid transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray);
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.dash-actions-toggle:hover,
.dash-actions-toggle.active { background: var(--gray-lighter); color: var(--dark); }
/* Dark mode popup arka planı — desktop'ta inline flex olduğu için görünmez, sadece mobile active popup'ı etkiler */
@media (max-width: 768px) {
    html[data-theme="dark"] .dash-actions-popup { background: #1F2937; border-color: #374151; }
}
html[data-theme="dark"] .dash-actions-toggle:hover,
html[data-theme="dark"] .dash-actions-toggle.active { background: #374151; color: #F3F4F6; }

.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-lighter);
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item strong { display: block; font-size: 0.88rem; }
.dash-list-item small { display: block; }

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
}
.empty-state p { margin: 12px 0; font-size: 0.9rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}
.status-aktif       { background: #DEF7EC; color: #03543F; border-color: #86EFAC; }
.status-beklemede   { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.status-onay_bekliyor { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.status-duzeltme_bekleniyor { background: #FFEDD5; color: #9A3412; border-color: #FDBA74; }
.status-tamamlandi  { background: #DBEAFE; color: #1E40AF; border-color: #93C5FD; }
.status-pasif       { background: #F3F4F6; color: #6B7280; border-color: #D1D5DB; }
.status-iptal       { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.status-onaylandi   { background: #D1FAE5; color: #065F46; border-color: #34D399; }
.status-reddedildi  { background: #FEE2E2; color: #991B1B; border-color: #F87171; }
.status-kapali      { background: #FEF3C7; color: #92400E; border-color: #F59E0B; }

/* Dark mode — yarı saydam doygun arka plan + açık/doygun renk */
html[data-theme="dark"] .status-aktif       { background: rgba(34,197,94,0.18);  color: #4ADE80; border-color: rgba(34,197,94,0.5); }
html[data-theme="dark"] .status-beklemede,
html[data-theme="dark"] .status-onay_bekliyor { background: rgba(245,158,11,0.18); color: #FCD34D; border-color: rgba(245,158,11,0.5); }
html[data-theme="dark"] .status-duzeltme_bekleniyor { background: rgba(234,88,12,0.18); color: #FDBA74; border-color: rgba(234,88,12,0.5); }
html[data-theme="dark"] .status-tamamlandi  { background: rgba(59,130,246,0.18); color: #93C5FD; border-color: rgba(59,130,246,0.5); }
html[data-theme="dark"] .status-pasif       { background: rgba(148,163,184,0.15); color: #CBD5E1; border-color: rgba(148,163,184,0.4); }
html[data-theme="dark"] .status-iptal       { background: rgba(220,38,38,0.18);  color: #FCA5A5; border-color: rgba(220,38,38,0.5); }
html[data-theme="dark"] .status-onaylandi   { background: rgba(34,197,94,0.22);  color: #86EFAC; border-color: rgba(34,197,94,0.55); }
html[data-theme="dark"] .status-reddedildi  { background: rgba(220,38,38,0.22);  color: #FCA5A5; border-color: rgba(220,38,38,0.55); }
html[data-theme="dark"] .status-kapali      { background: rgba(245,158,11,0.22);  color: #FCD34D; border-color: rgba(245,158,11,0.55); }

/* Form sayfaları */
.form-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.form-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 28px;
    color: var(--dark);
    justify-content: center;
}

/* =============================================
   GLOBAL FORM STİLLERİ
   ============================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}
#step1 .form-group{
	max-width: 350px;
	margin: 0 auto;
}
.form-row .form-group,
.wizard-form .form-row .form-group {
    /* margin-bottom: 0; */
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group label svg{
	width: 18px;
	height: 18px;
}
.form-group label.radio-box,
.form-group label.check-box{
    display: flex;
    gap: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
    background: var(--white);
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(27, 140, 62, 0.1);
}

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

.form-group small {
    font-size: 0.75rem;
    color: var(--gray);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row-lg {
    gap: 20px;
}

/* Wizard form içindeki group'lar arasına daha fazla boşluk */
.wizard-form .form-group {
    margin-bottom: 20px;
}

.wizard-form .form-row {
    margin-bottom: 20px;
}

.wizard-form .form-row .form-group {
    margin-bottom: 0;
}

/* Zorunlu alan yıldızı */
.req { color: var(--red); font-weight: 700; }

.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    padding: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--green);
}

.auth-link { color: var(--green); font-size: 0.88rem; }
.auth-link:hover { text-decoration: underline; }

/* İlan Türü Seçici */
.ilan-tur-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.ilan-tur-option { cursor: pointer; }
.ilan-tur-option input { display: none; }
.ilan-tur-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.ilan-tur-card:hover { border-color: var(--green-light); background: var(--cream); }
.ilan-tur-option input:checked + .ilan-tur-card {
    border-color: var(--green);
    background: rgba(27,140,62,0.05);
    box-shadow: 0 0 0 3px rgba(27,140,62,0.1);
}
.ilan-tur-card strong { font-size: 0.85rem; }
.ilan-tur-card small { font-size: 0.75rem; color: var(--gray); line-height: 1rem; }

/* Rol Seçici (Kayıt) */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.role-selector .role-option {cursor: pointer;display: block;height: 100%;}
.role-option input { display: none; }
.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.role-card:hover { border-color: var(--green-light); background: var(--cream); }
.role-option input:checked + .role-card {
    border-color: var(--green);
    background: rgba(27,140,62,0.05);
    box-shadow: 0 0 0 3px rgba(27,140,62,0.1);
}
.role-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
}
.role-option input:checked + .role-card .role-icon {
    background: var(--green);
    color: var(--white);
}
.role-card strong { font-size: 0.88rem; color: var(--dark); }
.role-card small { font-size: 0.7rem; color: var(--gray); line-height: 1.3; }

/* Auth sayfaları */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
/* Register: biraz daha geniş (form alanları fazla olduğu için) */
.auth-card.auth-card-register { max-width: 440px; }
@media (max-width: 600px) {
    .auth-card.auth-card-register .form-row-lg { flex-direction: column; }
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
} 
.auth-logo {
    height: 70px;
    margin: 0 auto 15px;
}
.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.auth-header p { color: var(--gray); font-size: 0.9rem; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.9rem;
    color: var(--gray);
}

/* AJAX mesaj kutusu */
.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
    animation: fadeInDown 0.3s ease;
}
.form-message.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.form-message.success { background: #DEF7EC; color: #03543F; border: 1px solid #A7F3D0; }
.form-message.warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* OTP Kutuları */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-main);
    background: var(--white);
}

.otp-box:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(27, 140, 62, 0.15);
}

/* Gizle/Göster */
.hidden { display: none !important; }

/* Spinner */
.spinner { animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }

/* Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* =============================================
   WIZARD FORM (Adımlı Form)
   ============================================= */

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.wizard-step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--gray-light);
    color: var(--gray);
    transition: var(--transition);
}

.wizard-step-indicator.active {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
}

.wizard-step-indicator.completed {
    background: var(--green);
    color: var(--white);
}

.wizard-step {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.wizard-step.active { display: block; }

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

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

/* İlan Türü Kartları (resimli, 3 sütun) */
.ilan-tur-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}
.ilan-tur-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* ============================================================
   SÖZLEŞMELER (sidebar layout)
   ============================================================ */
.sozlesme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}
.sozlesme-content { min-width: 0; }

.sozlesme-sidebar {
    position: sticky; top: 90px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.sozlesme-sidebar-title {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dark);
    display: flex; align-items: center; gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}
.sozlesme-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sozlesme-sidebar-link {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.35;
    transition: background 0.15s, color 0.15s;
}
.sozlesme-sidebar-link i,
.sozlesme-sidebar-link svg { flex-shrink: 0; margin-top: 1px; width: 16px; height: 16px; }
.sozlesme-sidebar-title svg { width: 16px; height: 16px; }
.sozlesme-sidebar-all svg { width: 16px; height: 16px; }
.sozlesme-sidebar-link:hover { background: var(--gray-lighter); color: var(--dark); }
.sozlesme-sidebar-link.active { background: rgba(27,140,62,0.08); color: var(--green); font-weight: 700; }
.sozlesme-sidebar-all {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: var(--gray-lighter);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px dashed var(--gray-light);
}
.sozlesme-sidebar-all:hover { background: var(--cream); color: var(--dark); }

html[data-theme="dark"] .sozlesme-sidebar { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .sozlesme-sidebar-title { border-bottom-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .sozlesme-sidebar-link { color: #9CA3AF; }
html[data-theme="dark"] .sozlesme-sidebar-link:hover { background: rgba(255,255,255,0.05); color: #F3F4F6; }
html[data-theme="dark"] .sozlesme-sidebar-link.active { background: rgba(34,197,94,0.10); color: #4ADE80; }
html[data-theme="dark"] .sozlesme-sidebar-all { background: rgba(255,255,255,0.04); border-color: #374151; color: #9CA3AF; }

/* Sözleşmeler index grid */
.sozlesme-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.sozlesme-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.sozlesme-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.sozlesme-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sozlesme-card-body { flex: 1; min-width: 0; }
.sozlesme-card-body strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.sozlesme-card-body p { margin: 0 0 4px; font-size: 0.82rem; color: var(--gray); line-height: 1.4; }
.sozlesme-card-body small { font-size: 0.72rem; color: var(--gray); display: inline-flex; align-items: center; gap: 4px; }
.sozlesme-card-body small svg { width: 16px; height: 16px; }
.sozlesme-card-arrow { color: var(--gray); flex-shrink: 0; }

html[data-theme="dark"] .sozlesme-card { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .sozlesme-card-icon { background: rgba(34,197,94,0.10); color: #4ADE80; }
html[data-theme="dark"] .sozlesme-card-body strong { color: #F3F4F6; }

@media (max-width: 900px) {
    .sozlesme-layout { grid-template-columns: 1fr; }
    .sozlesme-sidebar { position: static; }
}

/* Ekip adı uygunluk durumu (ekip-olustur / ekip-duzenle) */
.ekip-adi-status { font-size: 0.78rem; font-weight: 600; }
.ekip-adi-status.checking { color: var(--gray); }
.ekip-adi-status.ok { color: var(--green); }
.ekip-adi-status.warn { color: var(--orange); }
.ekip-adi-status.error { color: var(--red); }

/* İlan detay — harita bölümü */
.harita-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    margin-top: 10px;
    background: var(--gray-lighter);
}
.harita-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.harita-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.harita-yukleniyor { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gray); font-size: 0.85rem; }
.harita-canvas .leaflet-container { width: 100%; height: 100%; }
/* Leaflet hizmet bölgesi etiketi (çember üzerinde il/ilçe) */
.harita-bolge-etiket {
    background: rgba(255,255,255,0.92);
    border: 1px solid #1B8C3E;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #14532D;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    white-space: nowrap;
}
.harita-bolge-etiket::before { display: none; } /* tooltip ok işaretini gizle */
/* Google Maps özel etiket konteyneri (OverlayView ile çember merkezine) */
.harita-google-etiket { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }

/* FındıkPuan davet linki — mobilde input tam genişlik üstte, 2 buton %50 altında */
@media (max-width: 600px) {
    .fp-davet-row { flex-wrap: wrap; }
    /* inline flex:1'i ezmek için !important gerekli */
    .fp-davet-row > #davetUrl { flex: 0 0 100% !important; }
    .fp-davet-row > .btn { flex: 1 1 0 !important; min-width: 0; }
}

/* Üye olmayanlara fiyat gizli (???? + tooltip) */
.fiyat-gizli { cursor: help; letter-spacing: 1px; }

/* Başvuru bölümü — ilan iletişim telefonu (bot-korumalı) */
.basvuru-ilan-tel {
    background: rgba(27,140,62,0.06);
    border: 1px solid rgba(27,140,62,0.28);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
}
.basvuru-ilan-tel-head { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.basvuru-ilan-tel .js-tel-goster { font-size: 1.15rem; font-weight: 800; letter-spacing: 1px; color: var(--dark); }
html[data-theme="dark"] .basvuru-ilan-tel .js-tel-goster { color: #F3F4F6; }

/* Ekip ilanında ekipten gelen kilitli alanlar */
.ekip-kilit { pointer-events: none; opacity: 0.75; cursor: not-allowed; }
.ekip-kilit:focus { outline: none; }
input.ekip-kilit, select.ekip-kilit { background: var(--gray-lighter) !important; }
html[data-theme="dark"] input.ekip-kilit, html[data-theme="dark"] select.ekip-kilit { background: #111827 !important; }

/* Tanımlı sayfa içeriği popup'ı (sözleşmeler vb.) */
.sayfa-popup-overlay { position: fixed; inset: 0; z-index: 10001; background: rgba(15,23,42,0.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.sayfa-popup-overlay.acik { display: flex; }
.sayfa-popup-box { background: var(--white); color: var(--dark); border-radius: 12px; width: 100%; max-width: 760px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden; }
.sayfa-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--gray-light); flex-shrink: 0; }
.sayfa-popup-head h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.sayfa-popup-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--gray); padding: 0 4px; }
.sayfa-popup-close:hover { color: var(--dark); }
.sayfa-popup-body { padding: 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sayfa-popup-body .sozlesme-content { max-width: none; width: 100%; margin: 0; }
.sayfa-popup-body section { padding: 0 !important; }
html[data-theme="dark"] .sayfa-popup-box { background: #1F2937; color: #F3F4F6; }
html[data-theme="dark"] .sayfa-popup-head { border-color: #374151; }
html[data-theme="dark"] .sayfa-popup-close:hover { color: #F3F4F6; }
@media (max-width: 600px) {
    .sayfa-popup-overlay { padding: 0; }
    .sayfa-popup-box { max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
}
.harita-konum-yazi {
    display: flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 0.92rem; color: var(--dark);
    margin-top: 6px;
}
.harita-bolge-cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.harita-bolge-cip {
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--gray-light); background: var(--white);
    color: var(--gray); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.harita-bolge-cip:hover { border-color: var(--green); color: var(--dark); }
.harita-bolge-cip.active { background: var(--green); color: #fff; border-color: var(--green); }
.is-detay-grup-tam { grid-column: 1 / -1; }
html[data-theme="dark"] .harita-bolge-cip { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .harita-konum-yazi { color: #F3F4F6; }

/* AI ayarları — key satırı + test sonucu */
.ai-key-row { display: flex; gap: 8px; align-items: stretch; }
.ai-key-row input { flex: 1; min-width: 0; }
.ai-key-row .ai-test-btn { flex-shrink: 0; white-space: nowrap; }
.ai-test-sonuc { font-weight: 600; }
.ai-test-sonuc.ok { color: var(--green); }
.ai-test-sonuc.hata { color: var(--red); }

/* Admin: ilan durum değiştirme formu */
.admin-durum-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--gray-light);
}
.admin-durum-form label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.admin-durum-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-durum-row select {
    flex: 1; min-width: 160px;
    padding: 8px 10px; border: 2px solid var(--gray-light);
    border-radius: var(--radius); font-family: var(--font-main);
}

/* İlan notları */
.ilan-not-item {
    display: flex; gap: 10px;
    padding: 12px;
    background: var(--gray-lighter);
    border-radius: var(--radius);
    border-left: 3px solid var(--green);
}
.ilan-not-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ilan-not-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ilan-not-body { flex: 1; min-width: 0; }
.ilan-not-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ilan-not-head strong { font-size: 0.9rem; }
.ilan-not-badge {
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(34,197,94,0.12); color: var(--green);
}
.ilan-not-bildirim {
    font-size: 0.7rem; font-weight: 600;
    padding: 2px 8px; border-radius: 999px;
    background: var(--cream); color: var(--orange);
}
.ilan-not-date { color: var(--gray); font-size: 0.74rem; margin-left: auto; }
.ilan-not-metin { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--body-color); white-space: pre-wrap; }
html[data-theme="dark"] .ilan-not-item { background: rgba(255,255,255,0.04); }

/* Başlama tarihi/özel girişi kapatma butonu */
.baslangic-kapat-btn {
    position: absolute;
    top: -8px; right: -8px;
    width: 22px; height: 22px;
    border: none; border-radius: 50%;
    background: var(--red); color: #fff;
    cursor: pointer;
    font-size: 0.85rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 2;
}
.baslangic-kapat-btn:hover { background: #B91C1C; }

/* İlan formu hizmet bölgesi sil butonu */
.ibolge-sil {
    height: 38px;
    font-size: 1.1rem;
    line-height: 1;
}

/* Konum yanındaki ek hizmet bölgesi linki (+ N ilçe) */
.konum-ekstra-link {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: var(--cream);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.konum-ekstra-link:hover { background: var(--green); color: #fff; }
html[data-theme="dark"] .konum-ekstra-link { background: rgba(34,197,94,0.12); }
html[data-theme="dark"] .konum-ekstra-link:hover { background: var(--green); color: #fff; }

/* Yan işler — iş türünde seçilen pasif */
.yan-is-label.yan-is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.yan-is-label.yan-is-disabled span { text-decoration: line-through; }

/* Readonly input görünümü (örn. ekip ilanında kişi sayısı) */
input.input-readonly,
input[readonly].input-readonly {
    background: var(--gray-lighter);
    color: var(--gray);
    cursor: not-allowed;
}
html[data-theme="dark"] input.input-readonly { background: rgba(255,255,255,0.05); }

/* İlan Resimleri (ilan-ver / ilan-duzenle) */
.ilan-resim-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 5px;
}
.ilan-resim-box {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    background: var(--gray-lighter);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.ilan-resim-box:hover { border-color: var(--green); }
.ilan-resim-box.has-img { border-style: solid; border-color: var(--gray-light); cursor: default; }
.ilan-resim-box.is-cover { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(247,168,68,0.25); }
.ilan-resim-box .resim-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.ilan-resim-box .resim-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--gray);
    font-size: 0.72rem;
}
.ilan-resim-box .resim-cover-btn,
.ilan-resim-box .resim-sil-btn {
    position: absolute; top: 4px;
    width: 24px; height: 24px;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    color: #fff;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ilan-resim-box .resim-cover-btn { left: 4px; background: rgba(0,0,0,0.55); }
.ilan-resim-box .resim-cover-btn i { width: 14px; height: 14px; }
.ilan-resim-box.is-cover .resim-cover-btn { background: var(--orange); }
.ilan-resim-box .resim-sil-btn { right: 4px; background: var(--red); }
.ilan-resim-box .resim-sil-btn i { width: 14px; height: 14px; }
.ilan-resim-box.has-img .resim-cover-btn,
.ilan-resim-box.has-img .resim-sil-btn { display: inline-flex; }

html[data-theme="dark"] .ilan-resim-box { background: rgba(255,255,255,0.04); border-color: #374151; }
html[data-theme="dark"] .ilan-resim-box.has-img { border-color: #374151; }

@media (max-width: 600px) {
    .ilan-resim-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ekip yetersiz üye uyarısı (ekip detay sayfası) */
.ekip-yetersiz-uyari {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #FEF3C7;
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    color: #92400E;
}
.ekip-yetersiz-uyari > i { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.ekip-yetersiz-uyari > div > strong:first-child { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.ekip-yetersiz-uyari small { display: block; font-size: 0.82rem; line-height: 1.45; }
.ekip-yetersiz-uyari small strong { font-weight: 700; }
html[data-theme="dark"] .ekip-yetersiz-uyari { background: rgba(245,158,11,0.10); color: #FCD34D; border-color: rgba(245,158,11,0.40); }


/* Silinmiş ekip uyarı banner'ı */
.silinmis-ekip-banner {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius);
    color: #991B1B;
    font-size: 0.9rem;
}
.silinmis-ekip-banner > i { color: #DC2626; flex-shrink: 0; }
.silinmis-ekip-banner strong { display: block; }
.silinmis-ekip-banner small { display: block; font-size: 0.78rem; color: #B91C1C; }
html[data-theme="dark"] .silinmis-ekip-banner { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.40); color: #FCA5A5; }
html[data-theme="dark"] .silinmis-ekip-banner small { color: #F87171; }

/* Sorumluluk onay kutusu */
.sorumluluk-box {
    padding: 14px 16px;
    background: var(--cream);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
}
html[data-theme="dark"] .sorumluluk-box { background: rgba(245,158,11,0.06); }

/* Ekip yok uyarısı (ilan-ver) */
.ekip-yok-uyari {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    background: #FEF3C7;
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    color: #92400E;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.ekip-yok-uyari > i { color: var(--orange); flex-shrink: 0; }
.ekip-yok-uyari .ekip-yok-msg { flex: 1; min-width: 200px; line-height: 1.4; }
.ekip-yok-uyari strong { color: var(--orange); }
.ekip-yok-uyari .btn { flex-shrink: 0; }
html[data-theme="dark"] .ekip-yok-uyari { background: rgba(245,158,11,0.10); color: #FCD34D; }
html[data-theme="dark"] .ekip-yok-uyari strong { color: #FBBF24; }
@media (max-width: 600px) {
    .ekip-yok-uyari .btn { width: 100%; }
}

.ilan-tur-3col .ilan-tur-option,
.ilan-tur-2col .ilan-tur-option {
    display: flex;
}

.ilan-tur-3col .ilan-tur-card,
.ilan-tur-2col .ilan-tur-card {
    padding: 20px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    flex: 1;
}

.ilan-tur-3col .ilan-tur-card strong,
.ilan-tur-2col .ilan-tur-card strong {
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
}

/* Başlık+alt yazı sarmalı (desktop: ortalı dikey, mobil: sol hizalı) */
.ilan-tur-card .ilan-tur-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ilan-tur-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: var(--transition);
}

.ilan-tur-icon i,
.ilan-tur-icon svg {
    width: 44px;
    height: 44px;
}

.ilan-tur-option input:checked + .ilan-tur-card .ilan-tur-icon {
    box-shadow: 0 0 0 3px var(--green);
}

.isveren-field {
    display: block;
}

/* Radio Box Grid */
.radio-box-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 14px;
}

.radio-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
}

.radio-box:hover { background: var(--cream); }

.radio-box input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.radio-box input:checked + span { color: var(--green); font-weight: 600; }

/* Checkbox Box List */
.check-box-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 14px;
}

.check-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.check-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
}
.check-box-list input[type="checkbox"],
.check-box input[type="checkbox"] { flex: none; }

.check-box:hover { background: var(--cream); }

.check-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.check-box input:checked + span { color: var(--green); font-weight: 600; }

/* Input Footer (desc + char counter) */
.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.input-footer .desc {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.4;
    flex: 1;
}

.desc {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.char-counter.limit-near { color: var(--orange); }
.char-counter.limit-reached { color: var(--red); font-weight: 700; }


/* =============================================
   UTILITIES
   ============================================= */

.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-gray { color: var(--gray); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* =============================================
   BUTTONS (Genel Standart)
   Tüm butonlar aynı yükseklik/font standartında
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-main);
    vertical-align: middle;
    height: 38px;
    box-sizing: border-box;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Renk varyantları */
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-red { background: #DC2626; color: var(--white); border-color: #DC2626; }
.btn-red:hover { background: #B91C1C; border-color: #B91C1C; }

.btn-yellow { background: #F59E0B; color: var(--white); border-color: #F59E0B; }
.btn-yellow:hover { background: #D97706; border-color: #D97706; }

.btn-dark { background: #991B1B; color: var(--white); border-color: #991B1B; }
.btn-dark:hover { background: #7F1D1D; border-color: #7F1D1D; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white) !important; border-color: var(--green); }

/* Boyut varyantları */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    height: 32px;
    gap: 4px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 0.95rem;
    height: 44px;
    gap: 8px;
}

/* İkon butonları (sadece ikon, metin yok) */
.btn-icon {
    width: 38px;
    padding: 0;
    justify-content: center;
}
.btn-icon.btn-sm { width: 32px; }
.btn-icon.btn-lg { width: 44px; }

/* =============================================
   İLAN DETAY SAYFASI
   ============================================= */

/* İlan Detay - Sol/Sağ Layout */
.ilan-show-layout,
.page-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.ilan-show-main,
.page-sidebar-main { min-width: 0; }
.ilan-show-sidebar,
.page-sidebar-right { position: sticky; top: calc(var(--header-height) + 16px); min-width: 0; }
@media (max-width: 900px) {
    .page-sidebar-layout { grid-template-columns: 1fr; }
    .page-sidebar-right { position: static; }
}

.sidebar-profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 24px 20px;
}
.sidebar-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.sidebar-stat {
    background: var(--gray-lighter);
    padding: 8px 12px;
    border-radius: var(--radius);
}
.sidebar-stat small { display: block; color: var(--gray); font-size: 0.7rem; }
.sidebar-stat strong { font-size: 0.82rem; }

.sidebar-stat-contact strong { font-size: 0.75rem; letter-spacing: 0.01em; }
.sidebar-stat-contact small { font-size: 0.65rem; }

/* Verified badge - küçük yeşil daire + check */
.sidebar-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    flex-shrink: 0;
}

/* Avatar with online dot */
.sidebar-avatar-wrap {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}
.sidebar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--green);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.sidebar-online-dot.online { background: #22c55e; }
.sidebar-online-dot.offline { background: #9ca3af; }

/* Inline dot for text */
.sidebar-online-dot-inline {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 3px;
}
.sidebar-online-dot-inline.online { background: #22c55e; }
.sidebar-online-dot-inline.offline { background: #9ca3af; }

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}
.sidebar-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}
.sidebar-actions-row .sidebar-action-btn { flex: 1; font-size: 0.78rem; padding: 8px 6px; }
.sidebar-action-btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sidebar-ilan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    margin-bottom: 6px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    min-width: 0;       /* nowrap başlık kolonu genişletmesin (mobil yatay scroll fix) */
    overflow: hidden;
}
.sidebar-ilan-item:hover { background: var(--cream); }

@media (max-width: 900px) {
    .ilan-show-layout {
        grid-template-columns: 1fr;
    }
    .ilan-show-sidebar {
        position: static;
    }
}

.ilan-detay-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* İlan İstatistikleri (info grid altı) */
.ilan-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(90deg, rgba(27,140,62,0.03), rgba(245,166,35,0.03));
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}
.ilan-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}
.ilan-stat-item small { display: block; font-size: 0.7rem; color: var(--gray); }
.ilan-stat-item strong { font-size: 0.95rem; font-weight: 700; }

/* Beğeni butonu (tıklanabilir stat) */
button.ilan-stat-item {
    font-family: var(--font-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    position: relative;
}
.ilan-stat-clickable { cursor: pointer; }
/* Aşağıdaki kırmızı-tonlu hover sadece eski .ilan-stat-item (ilan-stats-row) için.
   Yeni .ilan-stat-mini için ayrıca aşağıda nötr hover tanımlandı. */
.ilan-stat-item.ilan-stat-clickable:hover {
    border-color: #EF4444;
    background: #FEF2F2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.18);
}
.ilan-stat-item.ilan-stat-clickable:hover i[data-lucide="heart"],
.ilan-stat-item.ilan-stat-clickable:hover svg.lucide { fill: #EF4444; transform: scale(1.15); }
.ilan-stat-clickable i[data-lucide="heart"],
.ilan-stat-clickable svg.lucide { transition: transform 0.15s; }
.ilan-stat-clickable:active { transform: translateY(0); }
.ilan-stat-clickable:disabled { opacity: 0.6; cursor: wait; }
.ilan-stat-like-active { border-color: #EF4444 !important; background: rgba(239,68,68,0.10) !important; }
.ilan-stat-like-active strong { color: #DC2626; }
.ilan-stat-like-active:hover {
    background: rgba(239,68,68,0.16) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.ilan-stat-like-active:hover::after {
    content: 'Beğeniyi kaldır';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
html[data-theme="dark"] .ilan-stat-item.ilan-stat-clickable:hover { background: rgba(239,68,68,0.12); }
html[data-theme="dark"] .ilan-stat-like-active { background: rgba(239,68,68,0.18) !important; }
html[data-theme="dark"] .ilan-stat-like-active strong { color: #F87171; }

@media (max-width: 600px) {
    .ilan-stats-row { grid-template-columns: repeat(2, 1fr); padding: 12px 14px; }
}

/* Soru-Cevap Bölümü */
.ilan-sorular-section { border-top: 1px solid var(--gray-light); }
.soru-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.soru-item {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 12px 14px;
    border-left: 3px solid var(--green);
}
.soru-item.soru-beklemede { border-left-color: var(--orange); opacity: 0.92; }

.soru-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.soru-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray-light);
    flex-shrink: 0;
}
.soru-avatar img { width: 100%; height: 100%; object-fit: cover; }
.soru-avatar-sahibi { border-color: var(--green); }
.soru-header strong { font-size: 0.88rem; }

.soru-body { padding-left: 46px; }
.soru-body p { font-size: 0.88rem; line-height: 1.5; color: var(--dark); margin: 0; white-space: pre-wrap; }

.soru-cevap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-light);
    background: rgba(27,140,62,0.04);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.soru-cevap-form { margin-top: 10px; padding-left: 46px; }

.soru-sor-form {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--cream);
    border-radius: var(--radius);
}
.ilan-detay-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 24px 56px 24px 28px; border-bottom: 1px solid var(--gray-light); flex-wrap: wrap; gap: 12px; }
.ilan-detay-header-title { min-width: 0; flex: 1 1 auto; }

/* İlan durum köşe şeridi (sağ üst) — açık/pasif PNG köşe rozeti */
.ilan-durum-serit {
    position: absolute; top: -9px; right: -9px;
    width: 120px; height: auto; display: block;
    pointer-events: none; user-select: none; z-index: 4;
}
@media (max-width: 768px) {
    .ilan-durum-serit { top: -7px; right: -7px; width: 90px; }
}
.ilan-detay-header h1 {
    font-size: 21px;
    line-height: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}
.ilan-detay-header .ilan-detay-header-meta { color: var(--gray); font-size: 0.85rem; }

/* Header içindeki mini istatistikler (eski .ilan-stats-row'un kompakt hâli) */
.ilan-stats-mini { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.ilan-stats-mini .ilan-stat-mini {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    background: var(--cream);
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    font-size: 0.78rem; line-height: 1;
    color: var(--dark);
    font-family: var(--font-main);
}
.ilan-stats-mini .ilan-stat-mini > * { display: inline-flex; align-items: center; line-height: 1; }
.ilan-stats-mini .ilan-stat-mini span { font-weight: 700; }
.ilan-stats-mini .ilan-stat-mini small { color: var(--gray); font-size: 0.7rem; font-weight: 500; width: auto; }
.ilan-stats-mini .ilan-stat-mini:hover #likeCount { color: #000; }
button.ilan-stat-mini { cursor: pointer; position: relative; overflow: visible; font-family: var(--font-main); }
.ilan-stats-mini .ilan-stat-mini-link:hover {
    border-color: var(--green);
    background: rgba(27,140,62,0.06);
}
.ilan-stats-mini .ilan-stat-mini-like.ilan-stat-clickable:hover {
    border-color: #EF4444; background: #FEF2F2;
}
.ilan-stats-mini .ilan-stat-mini-like.ilan-stat-like-active {
    border-color: #EF4444; background: rgba(239,68,68,0.10);
}
.ilan-stats-mini .ilan-stat-mini-like span,
.ilan-stats-mini .ilan-stat-mini-like:hover span,
.ilan-stats-mini .ilan-stat-mini-like.ilan-stat-like-active span,
.ilan-stats-mini .ilan-stat-mini-like.ilan-stat-like-active:hover span {
    display: inline-block;
    visibility: visible;
}
.ilan-stats-mini .ilan-stat-mini-like.ilan-stat-like-active span { color: #DC2626; }
html[data-theme="dark"] .ilan-stats-mini .ilan-stat-mini { background: #1F2937; border-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .ilan-stats-mini .ilan-stat-mini small { color: #9CA3AF; }
@media (max-width: 600px) {
    .ilan-stats-mini .ilan-stat-mini small { display: none; }
}

.ilan-info-grid { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 20px 28px; }

/* Ücret kutusu — sağda Başvur / İlan Durumu CTA */
.ilan-info-grid .ilan-info-item-ucret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ilan-info-grid .ilan-info-item-ucret .ilan-info-ucret-text { flex: 1 1 auto; min-width: 0; }
.ilan-info-grid .ilan-info-item-ucret strong { font-size: 1.45rem; font-weight: 800; color: var(--green); line-height: 1.2; }
.ilan-info-grid .ilan-info-item-ucret .ilan-info-ucret-tip { font-size: 0.82rem; font-weight: 600; color: var(--gray); }

/* İlan özeti — info-grid + sikayet butonu wrapper */
.ilan-ozet { padding: 0 15px 15px 0; }
.ilan-sikayet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    border-color: var(--red);
    color: var(--red);
    font-size: 0.82rem;
}
.ilan-sikayet-btn:hover { background: var(--red); color: #fff; }

.ilan-ozet-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-main);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}
.ilan-ozet-cta-btn i, .ilan-ozet-cta-btn svg.lucide { width: 14px; height: 14px; }
.ilan-ozet-cta-apply { background: var(--green); color: #fff; }
.ilan-ozet-cta-apply:hover { background: #146d31; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(27,140,62,0.25); }
.ilan-ozet-cta-status { background: var(--gray-light); color: var(--dark); }
.ilan-ozet-cta-status.status-pasif,
.ilan-ozet-cta-status.status-kapali { background: #FEF3C7; color: #92400E; }
.ilan-ozet-cta-status.status-tamamlandi { background: #DBEAFE; color: #1E40AF; }
.ilan-ozet-cta-status.status-iptal { background: #FEE2E2; color: #991B1B; }
.ilan-ozet-cta-status.status-onay_bekliyor { background: #FEF3C7; color: #92400E; }
.ilan-ozet-cta-status:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.08); }
@media (max-width: 800px) {
    .ilan-ozet { padding: 0 15px 15px 15px; }
    .ilan-ozet-cta-btn { margin-left: 0; justify-content: center; }
}
/* Sidebar Ekip Kartı (ilan-show-sidebar) */
.sidebar-ekip-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 18px 18px 16px;
}
.sidebar-ekip-head { text-align: center; margin-bottom: 14px; }
.sidebar-ekip-avatar-wrap { position: relative; display: inline-block; }
.sidebar-ekip-avatar {
    width: 90px; height: 90px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--orange);
    margin: 0 auto 8px;
}
.sidebar-ekip-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-ekip-avatar-wrap .sidebar-online-dot {
    top: 2px;
    width: 20px;
    height: 20px;
}
.sidebar-ekip-name {
    display: block; margin-top: 6px;
    font-weight: 800; font-size: 1.05rem;
    color: var(--dark); text-decoration: none;
}
.sidebar-ekip-name:hover { color: var(--green); }
.sidebar-ekip-online { font-size: 0.72rem; color: var(--gray); margin-top: 3px; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* Lider satırı: solda resim, sağda ad+rol */
.sidebar-ekip-lider {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--cream);
    border-radius: var(--radius);
    text-decoration: none; color: inherit;
    margin-bottom: 12px;
    transition: background 0.15s;
}
.sidebar-ekip-lider:hover { background: rgba(247,168,68,0.15); }
.sidebar-ekip-lider-avatar {
    width: 42px; height: 42px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid var(--orange);
    flex-shrink: 0;
}
.sidebar-ekip-lider-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-ekip-lider-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar-ekip-lider-info strong { font-size: 0.92rem; color: var(--dark); }
.sidebar-ekip-lider-info small { font-size: 0.72rem; color: var(--orange); font-weight: 600; }

/* Üye avatarları kutusu (başlıklı) */
.sidebar-ekip-uyeler-wrap {
    background: var(--gray-lighter);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 12px;
    text-align: center;
}
.sidebar-ekip-uyeler-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
html[data-theme="dark"] .sidebar-ekip-uyeler-wrap { background: rgba(255,255,255,0.04); }

/* Üye avatar satırı (max 6, ortalı) */
.sidebar-ekip-uyeler {
    display: flex; justify-content: center; align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.sidebar-ekip-uye {
    width: 34px; height: 34px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid var(--gray-light);
    flex-shrink: 0;
    transition: transform 0.1s, border-color 0.15s;
}
.sidebar-ekip-uye:hover { transform: translateY(-2px); border-color: var(--green); }
.sidebar-ekip-uye img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ekip Puanı bölümü */
.sidebar-ekip-puan {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}
.sidebar-ekip-puan > small {
    display: block; color: var(--gray);
    font-size: 0.7rem; font-weight: 600; margin-bottom: 6px;
}
.sidebar-ekip-stars { display: inline-flex; gap: 2px; align-items: center; }
.sidebar-ekip-stars-num {
    margin-left: 6px;
    color: #f59e0b; font-weight: 700; font-size: 0.92rem;
}
.sidebar-ekip-yorum-bos {
    margin: 6px 0 0; font-size: 0.78rem; color: var(--gray); font-style: italic;
}
.sidebar-ekip-yorum-snippet {
    margin: 8px 0 4px; font-size: 0.78rem; color: var(--body-color); font-style: italic; line-height: 1.4;
}
.sidebar-ekip-yorum-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 4px;
    font-size: 0.76rem; color: var(--green); text-decoration: none; font-weight: 600;
}
.sidebar-ekip-yorum-link:hover { color: var(--dark); }

/* Hizmetler stat — 2 satır + ellipsis */
.sidebar-stat-hizmetler {
    display: -webkit-inline-box;
    display: inline-block;
    font-size: 0.78rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: calc(0.78rem * 1.4 * 2);
}
@supports (-webkit-line-clamp: 2) {
    .sidebar-stat-hizmetler {
        display: -webkit-box;
        max-height: none;
        white-space: normal;
    }
}

html[data-theme="dark"] .sidebar-ekip-card { background: #1F2937; }
html[data-theme="dark"] .sidebar-ekip-name { color: #F3F4F6; }
html[data-theme="dark"] .sidebar-ekip-lider { background: rgba(247,168,68,0.10); }
html[data-theme="dark"] .sidebar-ekip-lider-info strong { color: #F3F4F6; }
html[data-theme="dark"] .sidebar-ekip-uye { border-color: #374151; }



/* İş Detayları — gruplu liste */
.is-detaylari {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.is-detay-grup {
    background: var(--gray-lighter);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.is-detay-grup h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-light);
}
.is-detay-liste {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.85rem;
}
.is-detay-liste li {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0;
}
.is-detay-liste li.on { color: var(--green); font-weight: 600; }
.is-detay-liste li.on i { color: var(--green); }
.is-detay-liste li.off { color: var(--gray); opacity: 0.7; }
.is-detay-liste li.off i { color: var(--gray-light); }

/* Breadcrumb (sayfa üstü kırıntı navigasyonu) */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--gray);
}
.breadcrumb a {
    color: var(--green);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .breadcrumb-sep { color: var(--gray-light); }
.breadcrumb i,
.breadcrumb svg.lucide { width: 14px; height: 14px; }
.breadcrumb a[aria-label="Anasayfa"] i,
.breadcrumb a[aria-label="Anasayfa"] svg.lucide { width: 13px; height: 13px; }
html[data-theme="dark"] .is-detay-grup { background: rgba(255,255,255,0.04); }
html[data-theme="dark"] .is-detay-grup h4 { color: #F3F4F6; border-color: #374151; }

/* Şikayet modal */
.sikayet-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,23,42,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.sikayet-modal[hidden] { display: none; }
.sikayet-modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.sikayet-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--gray);
}
.sikayet-modal-card h3 {
    font-size: 1rem; font-weight: 700; color: var(--dark);
    margin: 0 0 18px;
}
.sikayet-radio-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 18px;
}
.sikayet-radio-item {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--dark);
}
.sikayet-radio-item input[type="radio"] {
    width: 18px; height: 18px;
    accent-color: var(--blue, #3B82F6);
    cursor: pointer;
}
.sikayet-aciklama-label {
    display: block;
    font-size: 0.92rem; font-weight: 700; color: var(--dark);
    margin-bottom: 6px;
}
.sikayet-aciklama-label small { font-weight: 400; color: var(--gray); }
.sikayet-textarea-wrap { position: relative; }
.sikayet-textarea-wrap textarea {
    width: 100%;
    padding: 10px 12px 26px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    resize: vertical; min-height: 80px;
    background: var(--white); color: var(--dark);
}
.sikayet-textarea-wrap textarea:focus { outline: none; border-color: var(--blue, #3B82F6); }
.sikayet-counter {
    position: absolute; bottom: 8px; right: 12px;
    font-size: 0.72rem; color: var(--gray);
}
.sikayet-modal-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 18px;
}
.sikayet-modal-actions .btn { padding: 10px 24px; }
.btn-blue { background: #3B82F6; color: #fff; border: 1px solid #3B82F6; }
.btn-blue:hover { background: #2563EB; border-color: #2563EB; color: #fff; }

html[data-theme="dark"] .sikayet-modal-card { background: #1F2937; }
html[data-theme="dark"] .sikayet-modal-card h3 { color: #F3F4F6; }
html[data-theme="dark"] .sikayet-radio-item { color: #E5E7EB; }
html[data-theme="dark"] .sikayet-aciklama-label { color: #F3F4F6; }
html[data-theme="dark"] .sikayet-textarea-wrap textarea {
    background: #111827; border-color: #374151; color: #F3F4F6;
}
.ilan-detay-main { display: grid; grid-template-columns: 3fr 2fr; gap: 0; align-items: start; }
.ilan-detay-main .ilan-info-grid { padding: 16px 0px 12px; }

/* Galeri */
.ilan-galeri { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.ilan-galeri-main { position: relative; aspect-ratio: 4 / 3; background: var(--gray-lighter); border-radius: var(--radius); overflow: hidden; user-select: none; }
.ilan-galeri-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; touch-action: pan-y; }
.galeri-zoom-btn,
.galeri-nav {
    position: absolute;
    border: none; cursor: pointer;
    background: rgba(15,23,42,0.55); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.galeri-zoom-btn { top: 8px; right: 8px; width: 36px; height: 36px; }
.galeri-zoom-btn:hover { background: rgba(15,23,42,0.8); }
.galeri-nav { top: 50%; transform: translateY(-50%); width: 36px; height: 36px; opacity: 0; }
.galeri-nav-prev { left: 8px; }
.galeri-nav-next { right: 8px; }
.ilan-galeri-main:hover .galeri-nav { opacity: 1; }
.galeri-nav:hover { background: rgba(15,23,42,0.8); }

.ilan-galeri-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ilan-galeri-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 0; border: 2px solid transparent;
    background: var(--gray-lighter); cursor: pointer;
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.15s, transform 0.1s;
}
.ilan-galeri-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ilan-galeri-thumb:hover { border-color: var(--green-light); }
.ilan-galeri-thumb.active { border-color: var(--green); }

html[data-theme="dark"] .ilan-galeri { background: #1F2937; }
html[data-theme="dark"] .ilan-galeri-main,
html[data-theme="dark"] .ilan-galeri-thumb { background: #111827; }

/* Lightbox */
.galeri-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 60px;
}
.galeri-lightbox[hidden] { display: none; }
.galeri-lightbox img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    user-select: none;
}
.galeri-lightbox-close,
.galeri-lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.10); color: #fff;
    border: none; cursor: pointer;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.galeri-lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; }
.galeri-lightbox-close:hover { background: rgba(255,255,255,0.20); }
.galeri-lightbox-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.galeri-lightbox-nav.prev { left: 16px; }
.galeri-lightbox-nav.next { right: 16px; }
.galeri-lightbox-nav:hover { background: rgba(255,255,255,0.20); }
.galeri-lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 999px;
}

@media (max-width: 800px) {
    .ilan-detay-main { grid-template-columns: 1fr; }
    .ilan-galeri-thumbs { grid-template-columns: repeat(6, 1fr); }
    .galeri-lightbox { padding: 20px; }
    .galeri-lightbox-nav { width: 40px; height: 40px; }
}
.ilan-info-item { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.ilan-info-item > i, .ilan-info-item > svg.lucide { width: 16px; height: 16px; flex-shrink: 0; }
.ilan-info-item small { width: 100px; font-size: 0.78rem; color: var(--gray); flex-shrink: 0; }
.ilan-info-item strong { font-size: 0.88rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* .ilan-ozet-ust — Ücret + Konum bölümü (info-grid'in üstünde) */
.ilan-ozet-ust { padding: 16px 0px 12px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px dashed var(--gray-light); margin-bottom: 6px; }
.ilan-ozet-ust .ilan-info-item-ucret {
    padding: 0;
    display: flex;
    justify-content: space-between;
}
.ilan-ozet-ust .ilan-info-item-ucret strong { display: flex; gap: 10px; align-items: center; font-size: 1.45rem; font-weight: 800; color: var(--green); line-height: 1.2; overflow: visible; }
span.ilan-info-ucret-tip {
    display: inline-block;
    font-weight: 400;
    font-size: 15px;
}
.ilan-ozet-ust .ilan-info-item-konum strong { font-size: 0.95rem; font-weight: 600; color: var(--dark); overflow: visible; }
html[data-theme="dark"] .ilan-ozet-ust { border-color: #374151; }
html[data-theme="dark"] .ilan-ozet-ust .ilan-info-item-konum strong { color: #F3F4F6; }
.ilan-detay-section { padding: 20px 28px; border-top: 1px solid var(--gray-light); }
.ilan-detay-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.detay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--gray-lighter); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500; }
.chip-yes { background: #DEF7EC; color: #03543F; }
.chip-no { background: #FEE2E2; color: #991B1B; }
.ilan-actions { padding: 24px 28px; border-top: 1px solid var(--gray-light); display: flex; gap: 12px; justify-content: center; }

/* =============================================
   AVATAR GRID (Profil Sayfası)
   ============================================= */

.avatar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.avatar-item { cursor: pointer; background: none; border: none; padding: 0; }
.avatar-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gray-light); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: all 0.3s ease; background: var(--gray-lighter); }
.avatar-circle:hover { border-color: var(--green-light); transform: scale(1.05); }
.avatar-circle.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,140,62,0.2); }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   DUYURU POPUP
   ============================================= */

.duyuru-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.duyuru-popup-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.duyuru-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.duyuru-popup-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
}
.duyuru-popup-close:hover { opacity: 1; }

.duyuru-popup-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.duyuru-popup-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}
.duyuru-popup-item:last-child { border-bottom: none; }
.duyuru-popup-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: var(--dark); }
.duyuru-popup-item p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; margin: 0; }

.duyuru-popup-footer {
    padding: 12px 20px 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================
   İLAN FIELDSET
   ============================================= */

.ilan-fieldset {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    background: var(--white);
    transition: var(--transition);
}

.ilan-fieldset:focus-within {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(27,140,62,0.06);
}

.ilan-fieldset legend {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    padding: 0 10px;
    margin-left: -4px;
}

@media (max-width: 480px) {
    .ilan-fieldset { padding: 14px 12px; }
}

/* =============================================
   FİLTRE BAR
   ============================================= */
.filter-bar{max-width:1340px;margin:0 auto 16px;padding:0 20px;}
.filter-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;background:var(--white);border:2px solid var(--green);color:var(--green);border-radius:var(--radius-full);font-weight:600;font-size:0.85rem;cursor:pointer;transition:var(--transition);position:relative;}
.filter-toggle:hover{background:var(--green);color:var(--white);}
.filter-count{position:absolute;top:-6px;right:-6px;background:var(--red);color:var(--white);font-size:0.65rem;font-weight:700;width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;}
.filter-panel{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:16px 20px;margin-top:10px;animation:fadeInDown 0.2s ease;}
.filter-row{display:flex;gap:12px;margin-bottom:12px;}
.filter-row-4 .filter-group{flex:1;min-width:0;}
.filter-group{flex:1;min-width:0;}
.filter-group label{display:block;font-size:0.78rem;font-weight:600;color:var(--dark);margin-bottom:4px;}
.filter-input{width:100%;padding:8px 12px;border:2px solid var(--gray-light);border-radius:var(--radius);font-size:0.85rem;font-family:var(--font-main);transition:var(--transition);outline:none;background:var(--white);}
.filter-input:focus{border-color:var(--green);}
.filter-chip{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:2px solid var(--gray-light);border-radius:var(--radius-full);font-size:0.8rem;cursor:pointer;transition:var(--transition);}
.filter-chip:has(input:checked){border-color:var(--green);background:rgba(27,140,62,0.05);color:var(--green);font-weight:600;}
.filter-chip input{display:none;}
.filter-actions{display:flex;gap:8px;padding-top:8px;border-top:1px solid var(--gray-light);}
@media(max-width:768px){.filter-row-4{flex-wrap:wrap;}.filter-row-4 .filter-group{flex:1 1 45%;min-width:120px;}}
@media(max-width:480px){.filter-row{flex-direction:column;gap:8px;}.filter-bar{padding:0 12px;}.filter-row-4 .filter-group{flex:1 1 100%;}}

/* =============================================
   SAYFA GEÇİŞ EFEKTİ (App-like)
   ============================================= */

main {
    animation: pageSlideIn 0.3s ease-out;
    padding-top: 60px;
}

/* Anasayfa hero kendi spacing'ini yönetiyor */
.homepage main { padding-top: 30px; }

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

/* =============================================
   RESPONSIVE — MOBİL FIRST
   ============================================= */

@media (max-width: 1024px) {
    .header-nav { display: none; }
    .hero-inner { flex-direction: column; text-align: center; align-items: stretch; }
    .hero-right { flex: 1; }
    .hero-title { font-size: 2rem; }
    .hero-actions { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .stats-inner {justify-content: center;}
    .stat-item { min-width: 100px; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }

    /* === Tek tip header altı boşluk (tüm sayfalarda aynı) === */
    body { padding-top: calc(var(--header-height) + 32px); }
    main { padding-top: 0 !important; }

    /* === Tek tip sol-sağ padding — container 12px veriyor, iç bileşenler tekrar vermesin === */
    .container { padding: 0 12px; }
    .container .listings-header,
    .container .listings-table-wrap {
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }
    /* Ama container dışında kullanılırsa default (kendi 12px padding'i) korunur — mobile kuralıyla */
    .logo-img { height: 80px; margin-top: 40px; }

    .header-account .nav-text small {
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px;
    }
    .header-account { padding: 6px 8px; }
    .header-account.header-admin { display: none; }

    .hero { padding: 24px 0 12px; }
    .hero-title { font-size: 1.5rem; }
    .hero-left { text-align: center; }
    .hero-right {
        display: flex;
        flex-direction: row-reverse;
        gap: 10px;
        min-height: unset;
        align-items: center;
        justify-content: center;
    }
     .hero-character {    top: 0; left: 0;}
    .hero-character img { max-height: 250px; }
    .hero-buttons {
        position: relative; display: grid; grid-template-columns: 1fr 1fr;
        gap: 6px; justify-items: stretch;
    }
    .hero-buttons .hero-btn {
        position: relative; left: unset; top: unset; right: unset;
        min-width: unset; text-align: center;
        font-size: 0.72rem;
        padding: 6px 12px;
        letter-spacing: 0.2px;
    }

    /* Chat (mesaj detay) sayfasında header altına biraz boşluk */
    .chat-section { padding-top: 14px; }

    .stats-inner {gap: 5px;padding: 0 8px;}
    .stats-bar { padding: 16px 0; }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.6rem; letter-spacing: 0; }

    .listings-header { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 12px; }
    .listings-title { font-size: 1.1rem; }

    /* ===== İLAN TABLOSU → MOBİL KART ===== */
    .listings-table-wrap { overflow-x: visible; padding: 0 12px; }
    .listings-table { min-width: 0; }
    .listings-table-head {display: none;}

    .listing-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--gray-light);
        grid-template-columns: none;
        align-items: stretch;
    }

    .listing-row .listing-user {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .listing-row .listing-user .listing-avatar { width: 40px; height: 40px; flex-shrink: 0; }
    .listing-row .listing-name { font-size: 0.9rem; }
    .listing-row .listing-title { font-size: 0.95rem; }
    .listing-row .listing-sub { font-size: 0.72rem; }

    /* Mobilde sadece user + iş türü (2. child) + konum (3. child) görünür, diğerleri gizli */
    .listing-row > div:nth-child(2),
    .listing-row > div:nth-child(3) {
        font-size: 0.8rem;
        color: var(--gray);
        padding: 2px 8px;
        background: var(--gray-lighter);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
    }
    .listing-row > *:nth-child(n+4) { display: none !important; }

    /* Tüm row tıklanabilir (buton gizli) */
    .listing-row { cursor: pointer; }

    .listings-more { padding: 14px; }
    .btn-more { width: 100%; text-align: center; }

    /* Footer Sosyal — 3'lü tek satır, btn üstte + count altta */
    .footer-social {
        gap: 6px;
        padding: 12px;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
    }
    .social-box {
        flex: 1;
        min-width: 0;
        flex-direction: column-reverse;  /* count önce sonra btn → tersine = btn üstte, count altta */
        gap: 4px;
        padding: 10px 6px;
        justify-content: center;
        align-items: center;
    }
    .social-box .social-count { font-size: 0.85rem; font-weight: 700; text-align: center; }
    .social-btn { padding: 6px 10px; font-size: 0.72rem; justify-content: center; width: 100%; }

    .fab-button { bottom: 12px; left: 12px; padding: 10px 16px; font-size: 0.8rem; }

    /* Form sayfaları */
    .form-page-card { padding: 20px 16px; margin: 0 4px; }
    .form-page-title { font-size: 1.1rem; }
    .wizard-progress { gap: 6px; }
    .wizard-step-indicator { width: 30px; height: 30px; font-size: 0.8rem; }

    /* Dashboard */
    .dashboard-welcome { padding: 16px; flex-direction: column; text-align: center; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dash-stat-card { padding: 14px; }
    .dash-stat-number { font-size: 1.2rem; }

    /* Detay sayfası */
    .ilan-detay-header { padding: 16px 42px 16px 16px; }
    .ilan-durum-serit { top: -7px; right: -7px; width: 80px; }
    .ilan-stats-mini { transform: scale(0.82); transform-origin: left; }
    .ilan-info-grid { padding: 14px; grid-template-columns: 1fr; gap: 5px; }
    .ilan-detay-section { padding: 14px; }
    .ilan-actions { padding: 14px; flex-wrap: wrap; }

    /* Duyuru popup */
    .duyuru-popup-card { margin: 12px; }

    /* Toast */
    .toast-container { right: 8px; left: 8px; max-width: none; top: 64px; }

    /* Form Row — mobilde varsayılan stack, "pair" class'ı olanlar yan yana */
    .form-row {flex-direction: column;gap: 12px;flex-direction: row;}
    .form-row.form-row-pair { flex-direction: row; gap: 10px; }
    .form-row.form-row-pair > .form-group { flex: 1 1 0; min-width: 0; }
    /* form-row-lg (pair olmayan) — mobilde alt alta (örn. İş Türü / Çalışma Koşulları) */
    .form-row.form-row-lg:not(.form-row-pair) { flex-direction: column; gap: 16px; }

    /* Reklam paket etiketleri mobilde kompakt */
    .reklam-paket-label { padding: 5px !important; }
    .reklam-paket-label strong { font-size: 14px; }
    .reklam-paket-label span { font-weight: 600; }
    .ilan-tur-3col,
    .ilan-tur-2col { grid-template-columns: 1fr 1fr !important; }
    .auth-form{gap:10px}

    /* Admin Reklam — Reklam Türü ve Süre mobilde ayrı satır */
    .ad-form-row { flex-direction: column; align-items: stretch; }
    .ad-form-row > div { min-width: 0 !important; width: 100%; }
    .ad-form-row > div select,
    .ad-form-row > div button { width: 100%; }

    /* İlanlarım: .dash-list-item sağdaki aksiyonlar 3-nokta menüsüne düşer */
    .dash-list-item { align-items: flex-start; gap: 8px; }

    /* Ekiplerim: mobilde butonlar tam genişlikte alt satıra iner (yazılar sıkışmasın) */
    .ekip-satir { flex-wrap: wrap; }
    .ekip-satir-btns { flex-basis: 100%; margin-top: 8px; }
    .ekip-satir-btns .btn,
    .ekip-satir-btns form { flex: 1; }
    .ekip-satir-btns form .btn { width: 100%; }
    .dash-item-actions { position: relative; flex-shrink: 0; }
    .dash-actions-toggle { display: inline-flex !important; }
    .dash-actions-popup {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        z-index: 500;
        background: var(--white);
        border: 1px solid var(--gray-light);
        border-radius: var(--radius);
        box-shadow: 0 6px 20px rgba(0,0,0,0.18);
        padding: 8px;
        flex-direction: column;
        gap: 6px;
        min-width: 170px;
        align-items: stretch;
    }
    .dash-actions-popup.active { display: flex; }
    .dash-actions-popup > * { width: 100%; text-align: center; justify-content: center; }
    .dash-actions-popup form { width: 100%; display: block; }
    .dash-actions-popup form .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero-title {font-size: 32px;}
    .hero-actions {font-size: 0.8rem;gap: 5px;}
    .stat-item {min-width: 60px;}

    .form-row {gap: 12px;}
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .ilan-info-grid { grid-template-columns: 1fr; }
    .avatar-grid { grid-template-columns: repeat(4, 1fr); }
    .ilan-tur-3col,
    .ilan-tur-2col { grid-template-columns: 1fr !important; }
    .role-selector { grid-template-columns: 1fr; }
    .radio-box-grid { grid-template-columns: 1fr; gap: 0; }
    .check-box-list { gap: 0; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 0.8rem; padding: 10px; }

    /* İlan hizmet bölgeleri satırı — mobilde dar boşluk + kompakt sil */
    #ilanBolgeListesi .bolge-satir { gap: 5px; }
    #ilanBolgeListesi .ibolge-sil { padding: 5px; height: 38px; min-width: 32px; }
    .check-grid-2 { grid-template-columns: 1fr; }

    /* İlan türü kartı: ikon solda, yazılar sağda; ikon yarı boyut */
    .ilan-tur-3col .ilan-tur-card,
    .ilan-tur-2col .ilan-tur-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        min-height: auto;
        padding: 14px 16px;
    }
    .ilan-tur-card .ilan-tur-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        flex: 1;
        min-width: 0;
    }
    .ilan-tur-3col .ilan-tur-card .ilan-tur-icon,
    .ilan-tur-2col .ilan-tur-card .ilan-tur-icon {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }
    .ilan-tur-3col .ilan-tur-card .ilan-tur-icon svg,
    .ilan-tur-2col .ilan-tur-card .ilan-tur-icon svg { width: 24px; height: 24px; }
    .ilan-tur-3col .ilan-tur-card strong,
    .ilan-tur-2col .ilan-tur-card strong {
        text-align: left;
        min-height: auto;
        justify-content: flex-start;
    }
    .ilan-tur-3col .ilan-tur-card small,
    .ilan-tur-2col .ilan-tur-card small { text-align: left; display: block; }
    .otp-box { width: 42px; height: 48px; font-size: 1.2rem; }
    .otp-inputs { gap: 6px; }
    .btn-lg { font-size: 0.88rem; padding: 10px 24px; height: 40px; }
    .auth-card { padding: 24px 16px; }
}

/* ==========================================
   HEADER MESSAGE ICON
   ========================================== */
.header-msg-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-msg-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.header-msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--green-dark, #1b5e20);
    line-height: 1;
}

/* ==========================================
   HEADER BİLDİRİM DROPDOWN
   ========================================== */
.header-notif-wrap {
    position: relative;
}
/* Dropdown açıkken arka planı karartan backdrop */
.notif-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.notif-backdrop.active { opacity: 1; visibility: visible; }

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 2000;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    animation: notif-drop-in 0.18s ease;
}
@keyframes notif-drop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.notif-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--gray-light);
    border-top: 1px solid var(--gray-light);
    transform: rotate(45deg);
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    background: var(--cream);
}
.notif-dropdown-header strong { font-size: 0.9rem; color: var(--dark); }
.notif-markall-btn {
    background: none;
    border: none;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font-main);
}
.notif-markall-btn:hover { background: rgba(27,140,62,0.08); }

.notif-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-lighter);
    text-decoration: none;
    color: var(--dark);
    transition: background 0.15s;
    position: relative;
}
.notif-item:hover { background: var(--cream); }
.notif-item-unread { background: rgba(27,140,62,0.04); }
.notif-item-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    background: var(--gray-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}
.notif-item-body p {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0 0 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item-body small {
    font-size: 0.68rem;
    color: var(--gray);
}
.notif-item-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-top: 14px;
    flex-shrink: 0;
}

.notif-dropdown-footer {
    display: block;
    padding: 12px 16px;
    text-align: center;
    background: var(--cream);
    border-top: 1px solid var(--gray-light);
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.notif-dropdown-footer:hover { background: rgba(27,140,62,0.08); }

@media (max-width: 600px) {
    /* Mobilde: dropdown'u parent'tan kopar, viewport'a sabitle */
    .notif-dropdown {
        position: fixed;
        top: calc(var(--header-height, 70px) + 6px);
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - var(--header-height, 70px) - 20px);
        display: flex;
        flex-direction: column;
    }
    .notif-dropdown::before { display: none; }
    .notif-dropdown-body { flex: 1; min-height: 0; }
}

/* Zil animasyonu yeni bildirim geldiğinde */
.header-msg-btn.bell-shake i { animation: bell-shake 0.6s ease; }
@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

/* ==========================================
   MESSAGES LIST PAGE
   ========================================== */
.msg-section { padding: 30px 0; }

.msg-page-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.msg-page-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-page-subtitle {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 2px;
}

.msg-empty-card {
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.msg-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(27,140,62,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.msg-empty-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.msg-empty-card p { font-size: 0.85rem; color: var(--gray); max-width: 340px; margin: 0 auto; line-height: 1.6; }

.msg-avatar-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid #fff;
}
.msg-avatar { position: relative; }

.msg-list {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}
.msg-list-item:last-child { border-bottom: none; }
.msg-list-item:hover { background: var(--cream); }
.msg-list-item.msg-unread { background: rgba(27,140,62,0.04); }
.msg-list-item.msg-blocked { opacity: 0.5; }

.msg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gray-light);
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.msg-info { flex: 1; min-width: 0; }
.msg-info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.msg-name { font-size: 0.9rem; font-weight: 600; }
.msg-time { font-size: 0.75rem; color: var(--gray); flex-shrink: 0; }
.msg-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.msg-preview {
    font-size: 0.82rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.msg-unread .msg-preview { color: var(--dark); font-weight: 500; }
.msg-badge {
    background: var(--green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}
.msg-block-icon { font-size: 0.9rem; flex-shrink: 0; }

/* ==========================================
   CHAT / CONVERSATION PAGE
   ========================================== */
.chat-section { padding: 0; }

.chat-container {
    display: flex;
    flex-direction: column;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-light);
    background: #fff;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
}
.chat-back-btn {
    color: var(--dark);
    display: flex;
    align-items: center;
}
.chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: var(--dark);
}
.chat-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
}
.chat-user-info strong { font-size: 0.9rem; }
.chat-user-info small { display: block; font-size: 0.75rem; }

.chat-actions { position: relative; }
.chat-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--gray);
    border-radius: 50%;
    display: flex;
}
.chat-menu-btn:hover { background: var(--gray-lighter); color: var(--dark); }

.chat-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}
.chat-dropdown.active { display: block; }
.chat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.chat-dropdown-item:hover { background: var(--gray-lighter); }
.chat-dropdown-danger { color: var(--red); }
.chat-dropdown-danger:hover { background: rgba(239,68,68,0.06); }

/* Chat Banner */
.chat-banner {
    padding: 10px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.chat-banner-red { background: #FEE2E2; color: #991B1B; }
.chat-banner-orange { background: #FEF3C7; color: #92400E; }

/* Chat Body */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    margin: auto 0;
}
.chat-empty p { margin-top: 8px; font-size: 0.9rem; }

/* Chat Bubbles */
.chat-bubble-wrap {
    display: flex;
    transition: all 0.3s ease;
}
.chat-sent { justify-content: flex-end; }
.chat-received { justify-content: flex-start; }

.chat-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 16px;
    position: relative;
    word-break: break-word;
    line-height: 1.4;
    font-size: 0.88rem;
}
.chat-sent .chat-bubble {
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-received .chat-bubble {
    background: #fff;
    color: var(--dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-bubble-text { margin-bottom: 2px; }

.chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.chat-bubble-time {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* Bubble hover actions */
.chat-bubble-actions {
    position: absolute;
    top: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.chat-sent .chat-bubble-actions { left: -28px; }
.chat-received .chat-bubble-actions { right: -28px; }
.chat-bubble-wrap:hover .chat-bubble-actions { opacity: 1; }

.chat-action-btn {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-action-btn:hover { color: var(--red); border-color: var(--red); }

/* Chat Input Bar */
.chat-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--gray-light);
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-family: var(--font-main);
    resize: none;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--green); }
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.chat-send-btn:hover { background: var(--green-dark, #15803d); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Report Modal */
.chat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.chat-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}
.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
}
.chat-modal-header h3 { font-size: 1rem; }
.chat-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray);
    padding: 4px;
}
.chat-modal-body { padding: 16px; }
.chat-modal-body textarea {
    width: 100%;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 10px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    resize: vertical;
}
.chat-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-light);
}
html[data-theme="dark"] .chat-modal { background: #1F2937; color: #F3F4F6; }
html[data-theme="dark"] .chat-modal-header,
html[data-theme="dark"] .chat-modal-footer { border-color: #374151; }
html[data-theme="dark"] .chat-modal-close { color: #9CA3AF; }
html[data-theme="dark"] .chat-modal-body textarea { background: #111827; color: #F3F4F6; border-color: #374151; }

/* ==========================================
   MESSAGES RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .chat-container { height: 420px; }
    .chat-bubble { max-width: 85%; }
    .msg-avatar { width: 42px; height: 42px; }
    .msg-list-item { padding: 12px 14px; }
    .header-msg-btn {}
}

@media (max-width: 480px) {
    .chat-bubble { max-width: 90%; font-size: 0.85rem; }
    .chat-input { padding: 8px 12px; font-size: 0.85rem; }
    .chat-send-btn { width: 38px; height: 38px; }
}

/* ==========================================
   SOSYAL GİRİŞ BUTONLARI
   ========================================== */
.social-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--gray);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-light);
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font-main);
}
.social-login-btn:hover {
    border-color: var(--dark);
    background: var(--gray-lighter);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: var(--dark);
}
.social-login-google:hover { border-color: #4285F4; color: #4285F4; }
.social-login-facebook:hover { border-color: #1877F2; color: #1877F2; }

/* ==========================================
   GİRİŞ SAYFASI SEKMELERİ
   ========================================== */
.login-tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-lighter);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.2s;
}
.login-tab:hover { color: var(--dark); }
.login-tab.active {
    background: var(--green);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.login-tab.active:hover { color: #fff; }

/* Kayıt formu — 5dk geri sayım barı */
.kayit-countdown {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 6px 12px; margin-bottom: 14px;
    background: var(--gray-lighter); border-radius: var(--radius);
    font-size: 0.78rem;
}
.kayit-countdown-text { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); }
.kayit-countdown-text strong { color: var(--orange); font-variant-numeric: tabular-nums; }
.kayit-countdown-iptal {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 999px;
    background: var(--white); color: var(--red); text-decoration: none;
    border: 1px solid var(--red); font-weight: 600; font-size: 0.74rem;
    transition: background 0.15s;
}
.kayit-countdown-iptal:hover { background: var(--red); color: #fff; }
html[data-theme="dark"] .kayit-countdown { background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .kayit-countdown-iptal { background: transparent; }

/* ==========================================
   ADMIN HAYALET GEÇİŞ BANNER
   ========================================== */
.ghost-banner {
    background: linear-gradient(90deg, #DC2626, #991B1B);
    color: #fff;
    padding: 10px 0;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1005;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: ghost-pulse 4s ease-in-out infinite;
    min-height: 56px;
    display: flex;
    align-items: center;
}

/* Ghost modda header'ı aşağı kaydır, body padding'ini artır */
body.ghost-active .header { top: 56px; }
body.ghost-active { padding-top: calc(var(--header-height) + 56px + 36px); }
@media (max-width: 768px) {
    .ghost-banner { min-height: 72px; font-size: 0.78rem; }
    body.ghost-active .header { top: 72px; }
    body.ghost-active { padding-top: calc(var(--header-height) + 72px + 32px); }
}
@keyframes ghost-pulse {
    0%, 100% { background: linear-gradient(90deg, #DC2626, #991B1B); }
    50% { background: linear-gradient(90deg, #991B1B, #DC2626); }
}
.ghost-banner strong { font-weight: 700; }
.ghost-banner small { font-size: 0.72rem; }

/* ==========================================
   ADMIN ICON BUTONLARI (tooltip ile)
   ========================================== */
.admin-action-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    background: #fff;
    color: var(--dark);
    transition: all 0.15s;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

.icon-btn-outline { border-color: var(--gray-light); color: var(--dark); }
.icon-btn-outline:hover { border-color: var(--green); color: var(--green); background: rgba(27,140,62,0.06); }

.icon-btn-red { border-color: #FCA5A5; color: #DC2626; background: #FEE2E2; }
.icon-btn-red:hover { background: #DC2626; color: #fff; border-color: #DC2626; }

.icon-btn-red-solid { background: #DC2626; color: #fff; border-color: #DC2626; }
.icon-btn-red-solid:hover { background: #991B1B; border-color: #991B1B; }

.icon-btn-green { border-color: #86EFAC; color: #059669; background: #D1FAE5; }
.icon-btn-green:hover { background: #059669; color: #fff; border-color: #059669; }

.icon-btn-yellow { border-color: #FCD34D; color: #B45309; background: #FEF3C7; }
.icon-btn-yellow:hover { background: #D97706; color: #fff; border-color: #D97706; }

.icon-btn-dark { border-color: #9CA3AF; color: #374151; background: #F3F4F6; }
.icon-btn-dark:hover { background: #1F2937; color: #fff; border-color: #1F2937; }

.icon-btn-orange-solid { background: var(--orange); color: #fff; border-color: var(--orange); }
.icon-btn-orange-solid:hover { background: #D97706; border-color: #D97706; }

/* Admin tablo başlıklarındaki ikonlar - kompakt ve hizalı */
table thead th > i[data-lucide],
table thead th > svg.lucide {
    width: 14px !important;
    height: 14px !important;
    display: inline-block;
    vertical-align: -2px;
    color: var(--gray);
    stroke-width: 2.2;
    margin-right: 3px;
}
/* Icon button içindeki SVG'ler 16px */
.icon-btn i[data-lucide],
.icon-btn svg.lucide {
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================
   BAŞVURU DURUM KUTULARI (ilan detay, başvuran tarafı)
   ========================================== */
.basvuru-status-box {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.basvuru-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.basvuru-status-header strong { font-size: 0.95rem; }
.basvuru-status-desc { margin-top: 8px; font-size: 0.88rem; color: inherit; opacity: 0.9; }

/* Onaylandı */
.basvuru-status-onaylandi {
    background: #DEF7EC;
    border-color: #86EFAC;
    color: #03543F;
}
/* Beklemede */
.basvuru-status-beklemede {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #92400E;
}
/* Reddedildi — cooldown aktif */
.basvuru-status-reddedildi-box {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
}
/* Kalıcı engel */
.basvuru-status-engel {
    background: #FEF2F2;
    border: 2px solid #DC2626;
    color: #7F1D1D;
}
/* İlan sahibi kapattı */
.basvuru-status-kapali-box {
    background: #FEF3C7;
    border-left: 4px solid var(--orange);
    color: #92400E;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    align-items: center;
}
/* Tekrar deneyebilir info */
.basvuru-retry-info {
    background: #DBEAFE;
    border: 1px solid #93C5FD;
    color: #1E3A8A;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.basvuru-cooldown-warning {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.15);
    font-size: 0.88rem;
}
.basvuru-cooldown-warning em { opacity: 0.85; font-style: italic; }
.basvuru-onyazi-box {
    background: var(--gray-lighter);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.basvuru-onyazi-box small { color: var(--gray); display: block; margin-bottom: 4px; }
.basvuru-onyazi-box p { font-size: 0.9rem; margin: 0; }

/* Dark mode override'ları */
html[data-theme="dark"] .basvuru-status-onaylandi {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86EFAC;
}
html[data-theme="dark"] .basvuru-status-beklemede {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FCD34D;
}
html[data-theme="dark"] .basvuru-status-reddedildi-box {
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(220, 38, 38, 0.45);
    color: #FCA5A5;
}
html[data-theme="dark"] .basvuru-status-engel {
    background: rgba(220, 38, 38, 0.15);
    border-color: #F87171;
    color: #FCA5A5;
}
html[data-theme="dark"] .basvuru-status-kapali-box {
    background: rgba(245, 158, 11, 0.10);
    color: #FCD34D;
}
html[data-theme="dark"] .basvuru-retry-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93C5FD;
}
html[data-theme="dark"] .basvuru-cooldown-warning {
    border-top-color: rgba(255,255,255,0.12);
}
html[data-theme="dark"] .basvuru-onyazi-box {
    background: #111827;
}
html[data-theme="dark"] .basvuru-onyazi-box small { color: #9CA3AF; }
html[data-theme="dark"] .basvuru-onyazi-box p { color: #E5E7EB; }

/* ==========================================
   İLAN SAHİBİ: BAŞVURANLAR LİSTESİ
   ========================================== */
.basvuranlar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.basvuran-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    align-items: center;
    transition: border-color 0.15s;
}
.basvuran-card:hover { border-color: var(--green-light); }
.basvuran-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}
.basvuran-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
    background: var(--gray-lighter);
}
.basvuran-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22C55E;
    border: 2px solid var(--white);
    border-radius: 50%;
}
.basvuran-info { min-width: 0; }
.basvuran-info p, .basvuran-info small { margin: 0; }
.basvuran-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.basvuran-tag-bireysel { background: rgba(107, 114, 128, 0.12); color: #6B7280; }
.basvuran-tag-ekip     { background: rgba(99, 102, 241, 0.15); color: #6366F1; }
.basvuran-date { font-size: 0.72rem; color: var(--gray); }
.basvuran-phone {
    display: inline-block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 2px;
}
.basvuran-mesaj {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--dark-light);
    background: var(--gray-lighter);
    padding: 8px 10px;
    border-radius: 6px;
    line-height: 1.45;
}
.basvuran-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
@media (max-width: 600px) {
    .basvuran-card { grid-template-columns: 40px 1fr; gap: 10px; }
    .basvuran-avatar-wrap, .basvuran-avatar { width: 40px; height: 40px; }
    .basvuran-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 6px; }
}
html[data-theme="dark"] .basvuran-card {
    background: #1F2937;
    border-color: #374151;
}
html[data-theme="dark"] .basvuran-card:hover { border-color: var(--green-light); }
html[data-theme="dark"] .basvuran-mesaj {
    background: #111827;
    color: #D1D5DB;
}
html[data-theme="dark"] .basvuran-avatar { border-color: #4B5563; }

/* Admin tablo satırları — onay bekleyen ilan vurgusu (dark mode uyumlu) */
.admin-row-pending { background: #FEF9E7; }
html[data-theme="dark"] .admin-row-pending {
    background: rgba(245, 158, 11, 0.10);
}

/* Dark mode: outline icon butonunda beyaz arkaplan + açık ikon görünmezliğini düzelt */
html[data-theme="dark"] .icon-btn {
    background: #1F2937;
}
html[data-theme="dark"] .icon-btn-outline {
    background: #1F2937;
    border-color: #4B5563;
    color: #F3F4F6;
}
html[data-theme="dark"] .icon-btn-outline:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--green-light);
    color: var(--green-light);
}

/* Dark mode: renkli variant'ların okunabilirliği için arka planları biraz koyulaştır */
html[data-theme="dark"] .icon-btn-green  { background: rgba(34, 197, 94, 0.18);  border-color: rgba(34, 197, 94, 0.45);  color: #4ADE80; }
html[data-theme="dark"] .icon-btn-red    { background: rgba(239, 68, 68, 0.18);  border-color: rgba(239, 68, 68, 0.45);  color: #FCA5A5; }
html[data-theme="dark"] .icon-btn-yellow { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.45); color: #FCD34D; }

/* ==========================================
   ARKADAŞLIK SİSTEMİ
   ========================================== */
.friend-tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-lighter);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.friend-tab {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: var(--font-main);
}
.friend-tab:hover { color: var(--dark); }
.friend-tab.active { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.friend-tab-count {
    background: rgba(107,114,128,0.15);
    color: var(--gray);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}
.friend-tab.active .friend-tab-count { background: rgba(27,140,62,0.12); color: var(--green); }
.friend-tab-count-badge { background: var(--orange); color: #fff !important; animation: pulse-bg 2s infinite; }
@keyframes pulse-bg { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.friend-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "avatar info"
        "actions actions";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.friend-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); }
.friend-card .friend-avatar-link { grid-area: avatar; }
.friend-card .friend-info { grid-area: info; }
.friend-card .friend-actions { grid-area: actions; justify-content: flex-end; padding-top: 4px; border-top: 1px dashed var(--gray-light); }

/* Tek aksiyonlu kartlar (arkadaşlıktan çıkar gibi) tek satırda */
.friend-card-compact {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "avatar info actions";
}
.friend-card-compact .friend-actions { padding-top: 0; border-top: none; justify-content: flex-end; }

.friend-avatar-link { flex-shrink: 0; }
.friend-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray-light);
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}
.friend-info { flex: 1; min-width: 0; }
.friend-name {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-name:hover { color: var(--green); }
.friend-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sidebar-friend-area .friend-btn {
    transition: all 0.2s;
}
.sidebar-friend-area .friend-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Arkadaş kabul flash animasyonu */
.friend-flash {
    animation: friend-flash 0.8s ease;
}
@keyframes friend-flash {
    0% { box-shadow: 0 0 0 3px rgba(27,140,62,0.6); transform: scale(1.03); }
    50% { box-shadow: 0 0 0 6px rgba(27,140,62,0.3); transform: scale(1.01); }
    100% { box-shadow: 0 0 0 0 rgba(27,140,62,0); transform: scale(1); }
}

/* ==========================================
   ÜCRET TABLOSU POPUP
   ========================================== */
.ucret-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tour-fade-in 0.25s ease;
}
.ucret-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ucret-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(135deg, rgba(27,140,62,0.08), rgba(27,140,62,0.02));
}
.ucret-modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.ucret-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0 4px;
    line-height: 1;
}
.ucret-modal-close:hover { color: var(--red); }
.ucret-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.ucret-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ucret-modal-table thead tr {
    background: var(--green);
    color: #fff;
    position: sticky;
    top: 0;
}
.ucret-modal-table th {
    padding: 11px 18px;
    text-align: left;
    font-weight: 600;
}
.ucret-modal-table td {
    padding: 10px 18px;
    border-bottom: 1px solid var(--gray-light);
}
.ucret-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--cream);
}
@media (max-width: 600px) {
    .ucret-modal-table th, .ucret-modal-table td { padding: 9px 12px; font-size: 0.82rem; }
    .ucret-modal-header h3 { font-size: 0.95rem; }
}

/* ==========================================
   NUMBER STEPPER (- [input] +)
   ========================================== */
.number-stepper {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}
.number-stepper:focus-within { border-color: var(--green); }
.number-stepper input[type="number"] {
    flex: 1;
    text-align: center;
    border: none;
    padding: 10px 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
    min-width: 0;
}
.number-stepper input[type="number"]::-webkit-outer-spin-button,
.number-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stepper-btn {
    width: 38px;
    background: var(--gray-lighter);
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.stepper-btn:hover { background: var(--green); color: #fff; }
.stepper-btn:active { transform: scale(0.95); }

/* ==========================================
   ÜCRET HESAPLAMA KUTUSU
   ========================================== */
.ucret-hesaplama {
    background: linear-gradient(135deg, rgba(27,140,62,0.06), rgba(27,140,62,0.02));
    border: 1px dashed var(--green);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ucret-hesaplama .hesap-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ucret-hesaplama .hesap-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.ucret-hesaplama .hesap-toplam {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green);
}

/* ==========================================
   REKLAM PAKET SEÇİMİ (güncellendi)
   ========================================== */
.reklam-paket-label {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border-right: 1px solid var(--gray-light);
    text-align: center;
    transition: all 0.2s;
    position: relative;
    border: 2px solid transparent;
}
.reklam-paket-label input[type="radio"] { display: none; }
.reklam-paket-label:hover { background: rgba(27,140,62,0.04); }
.reklam-paket-label.selected {
    background: rgba(27,140,62,0.08);
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}
.reklam-paket-label.selected::before {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--green);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
/* "Seçme" özel style */
.reklam-paket-secme {
    background: var(--gray-lighter);
}
.reklam-paket-secme .secme-icon {
    display: flex;
    justify-content: center;
    color: var(--gray);
    margin-bottom: 2px;
}
.reklam-paket-secme .secme-label {
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 600;
}
.reklam-paket-secme.selected {
    background: #FEE2E2;
    border-color: #991B1B;
    box-shadow: inset 0 0 0 1px #991B1B;
}
.reklam-paket-secme.selected::before {
    content: '✕';
    background: #991B1B;
}
.reklam-paket-secme.selected .secme-icon,
.reklam-paket-secme.selected .secme-label {
    color: #991B1B;
}

/* ==========================================
   DEMO TOUR - İlk Kullanıcı Gezintisi
   ========================================== */
#tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
#tour-mask {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 0;
    height: 0;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 3px solid #F59E0B;
    animation: tour-pulse 1.5s ease-in-out infinite;
}
@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72), 0 0 0 0 rgba(245, 158, 11, 0.6); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72), 0 0 0 10px rgba(245, 158, 11, 0); }
}
.tour-highlighted {
    position: relative;
    z-index: 100000;
    pointer-events: auto;
}
#tour-tooltip {
    position: fixed;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 20px 22px;
    max-width: 340px;
    min-width: 280px;
    z-index: 100001;
    pointer-events: auto;
    animation: tour-fade-in 0.3s ease;
}
@keyframes tour-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
#tour-step-count {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}
#tour-tooltip h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--dark);
}
#tour-tooltip p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 16px;
}
#tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
#tour-actions > div { display: flex; gap: 6px; }
#tour-actions button {
    padding: 8px 14px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
#tour-skip {
    background: none;
    color: var(--gray);
    border: none !important;
    padding: 8px 6px !important;
    font-size: 0.78rem !important;
    text-decoration: underline;
}
#tour-skip:hover { color: var(--red); }
#tour-prev {
    background: var(--white);
    border-color: var(--gray-light) !important;
    color: var(--dark);
}
#tour-prev:hover { background: var(--gray-lighter); }
#tour-next {
    background: var(--green);
    color: #fff;
    border: none !important;
}
#tour-next:hover { background: #15803d; transform: translateX(2px); }

@media (max-width: 600px) {
    #tour-tooltip { max-width: calc(100vw - 30px); min-width: 0; padding: 16px 18px; }
    #tour-tooltip h3 { font-size: 1rem; }
    #tour-tooltip p { font-size: 0.82rem; }
}

/* Gece modu uyumu */
html[data-theme="dark"] #tour-tooltip {
    background: #1F2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid #374151;
}
html[data-theme="dark"] #tour-tooltip h3 { color: #F3F4F6; }
html[data-theme="dark"] #tour-tooltip p  { color: #D1D5DB; }
html[data-theme="dark"] #tour-step-count {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
}
html[data-theme="dark"] #tour-skip { color: #9CA3AF; }
html[data-theme="dark"] #tour-skip:hover { color: #F87171; }
html[data-theme="dark"] #tour-prev {
    background: #374151;
    border-color: #4B5563 !important;
    color: #F3F4F6;
}
html[data-theme="dark"] #tour-prev:hover { background: #4B5563; }

/* =============================================
   LEGAL DOCUMENT (KVKK / Gizlilik / Sözleşme vb.)
   ============================================= */
.kvkk-doc {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow);
    line-height: 1.75;
    color: var(--body-color);
}
.kvkk-head { border-bottom: 2px solid var(--green); padding-bottom: 16px; margin-bottom: 24px; }
.kvkk-head h1 { font-size: 1.6rem; color: var(--green); margin-bottom: 6px; }
.kvkk-subtitle { font-size: 0.88rem; color: var(--gray); margin: 0; }
.kvkk-toc {
    background: var(--cream);
    border-left: 4px solid var(--green);
    padding: 14px 18px 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.kvkk-toc strong { display: block; font-size: 0.95rem; margin-bottom: 8px; color: var(--green-dark); }
.kvkk-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 20px; }
.kvkk-toc li { font-size: 0.85rem; margin-bottom: 4px; break-inside: avoid; }
.kvkk-toc a { color: var(--body-color); text-decoration: none; }
.kvkk-toc a:hover { color: var(--green); text-decoration: underline; }
.kvkk-doc section { margin-bottom: 28px; scroll-margin-top: 80px; }
.kvkk-doc h2 {
    font-size: 1.2rem;
    color: var(--green-dark);
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-light);
}
.kvkk-doc h3 { font-size: 1rem; color: var(--dark); margin: 18px 0 8px; }
.kvkk-doc ul, .kvkk-doc p { margin-bottom: 10px; }
.kvkk-doc ul { padding-left: 22px; }
.kvkk-doc li { margin-bottom: 6px; font-size: 0.93rem; }
.kvkk-doc code {
    background: var(--gray-lighter);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
}
.kvkk-doc a { color: var(--green); text-decoration: underline; }
html[data-theme="dark"] .kvkk-doc {
    background: #1F2937;
    border-color: #374151;
}
html[data-theme="dark"] .kvkk-toc {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: var(--green-light);
}
html[data-theme="dark"] .kvkk-toc strong { color: var(--green-light); }
html[data-theme="dark"] .kvkk-doc h2 {
    color: var(--green-light);
    border-bottom-color: #374151;
}
html[data-theme="dark"] .kvkk-doc code {
    background: #111827;
    color: #E5E7EB;
}
@media (max-width: 600px) {
    .kvkk-doc { padding: 20px 18px; }
    .kvkk-head h1 { font-size: 1.3rem; }
    .kvkk-toc ol { columns: 1; }
    .kvkk-doc h2 { font-size: 1.05rem; }
}

/* ============================================================
   BAŞVURU FORMU — EKİP/ŞAHSİ SEÇİCİ (views/listings/show.php)
   ============================================================ */
.basvuru-tip-list { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
.basvuru-tip-item { cursor: pointer; flex: 1 1 0; min-width: 0; display: flex; }
.basvuru-tip-item input { display: none; }
.basvuru-tip-item > .basvuru-tip-card { width: 100%; }
@media (max-width: 600px) {
    .basvuru-tip-list { flex-direction: column; }
    .basvuru-tip-item { flex: 1 1 100%; }
}
.basvuru-tip-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    transition: border-color 0.15s, background 0.15s;
    background: var(--white);
}
.basvuru-tip-item input:checked + .basvuru-tip-card {
    border-color: var(--green);
    background: rgba(27,140,62,0.05);
}
.basvuru-tip-avatar {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--gray-light);
}
.basvuru-tip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.basvuru-tip-text { flex: 1; min-width: 0; }
.basvuru-tip-text strong { display: block; font-size: 0.92rem; }
.basvuru-tip-text small { color: var(--gray); font-size: 0.78rem; }
.basvuru-tip-card-readonly {
    cursor: default !important;
    border-color: var(--green) !important;
    background: rgba(27,140,62,0.05) !important;
}
html[data-theme="dark"] .basvuru-tip-card { background: #1F2937; border-color: #374151; }
html[data-theme="dark"] .basvuru-tip-item input:checked + .basvuru-tip-card,
html[data-theme="dark"] .basvuru-tip-card-readonly { background: rgba(34,197,94,0.10) !important; border-color: var(--green) !important; }

/* İlan detay sayfası — kartlar arası dikey boşluk */
.ilan-detay-card + .ilan-detay-card { margin-top: 16px; }

/* Ekip sayfası — Alınan İşler tablosunda sadece İlan/İş Türü/Konum/İşe Başlama */
.alinan-isler-table > .listings-table-wrap { padding: 0; }
.alinan-isler-table .listings-table-head,
.alinan-isler-table .listing-row {
    grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr !important;
}
.alinan-isler-table .listings-table-head .col:nth-child(4),
.alinan-isler-table .listings-table-head .col:nth-child(5),
.alinan-isler-table .listings-table-head .col:nth-child(6),
.alinan-isler-table .listings-table-head .col:nth-child(8),
.alinan-isler-table .listing-row > div:nth-child(4),
.alinan-isler-table .listing-row > div:nth-child(5),
.alinan-isler-table .listing-row > div:nth-child(6),
.alinan-isler-table .listing-row > div:nth-child(8) { display: none !important; }

/* Başvuran kartı: meta satırları */
.basvuran-meta, .basvuran-team-stats {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 4px; font-size: 0.78rem; color: var(--gray);
}
.basvuran-team-stats span {
    display: inline-block;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    padding: 2px 8px;
    background: var(--gray-lighter);
    border-radius: 999px;
}
html[data-theme="dark"] .basvuran-team-stats span { background: rgba(255,255,255,0.05); }

/* ============================================================
   EKİP / TAKIM SAYFASI (views/teams/members.php)
   ============================================================ */
.team-container { position: relative; }

.team-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.team-header-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--green);
}
.team-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-header-info { flex: 1; min-width: 200px; }
.team-header-info h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.team-header-meta { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 0.88rem; color: var(--gray); }
.team-header-meta li { display: flex; align-items: center; gap: 6px; }
.team-header-meta strong { color: var(--dark); }

.team-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.team-stats {
    display: flex;
    border-top: 1px solid var(--gray-light);
}
.team-stat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid var(--gray-light);
}
.team-stat:last-child { border-right: none; }
.team-stat-num { font-size: 1.3rem; font-weight: 800; }
.team-stat small {
    color: var(--gray);
    font-size: 0.75rem;
    line-height: normal;
    display: block;
}

/* Modal */
.t-modal {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tModalFade 0.2s ease;
}
@keyframes tModalFade { from { opacity: 0; } to { opacity: 1; } }
.t-modal[hidden] { display: none; }
.t-modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    animation: tModalSlide 0.25s ease;
}
@keyframes tModalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.t-modal-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 12px; color: var(--dark); }
.t-modal-card p { margin: 0 0 12px; line-height: 1.6; color: var(--body-color); }
.t-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.15s;
}
.t-modal-close:hover { background: var(--gray-lighter); color: var(--dark); }

.t-link-box { display: flex; gap: 6px; margin: 12px 0; }
.t-link-box input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: var(--gray-lighter);
}
.t-davet-info {
    background: var(--cream);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin: 10px 0;
}
.t-davet-info code {
    background: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--green);
    border: 1px solid var(--gray-light);
}
.t-davet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t-help { font-size: 0.78rem !important; color: var(--gray) !important; margin: 12px 0 0 !important; line-height: 1.5 !important; }

html[data-theme="dark"] .t-modal-card { background: #1F2937; }
html[data-theme="dark"] .t-link-box input { background: #111827; border-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .t-davet-info { background: rgba(34,197,94,0.08); }
html[data-theme="dark"] .t-davet-info code { background: #111827; border-color: #374151; color: #4ADE80; }

/* Ekip tablosu */
.ekip-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ekip-table thead tr { background: var(--gray-lighter); text-align: left; }
.ekip-table th { padding: 10px 12px; font-weight: 700; }
.ekip-table td { padding: 10px 12px; vertical-align: middle; }
.ekip-table tbody tr.ekip-row { border-bottom: 1px solid var(--gray-light); transition: background 0.15s; }
.ekip-table tbody tr.ekip-row.is-ben { background: rgba(27,140,62,0.04); }
.ekip-table tbody tr.ekip-row.dragging { opacity: 0.4; }
.ekip-table tbody tr.ekip-row.drag-over { box-shadow: inset 0 2px 0 var(--green); }
.ekip-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.ekip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ekip-name { font-weight: 600; }
.ekip-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.col-drag { width: 28px; text-align: center; }
.drag-handle { cursor: grab; color: var(--gray); display: inline-flex; }
.drag-handle:active { cursor: grabbing; }
.lider-pin { display: inline-flex; }
.ekip-row-lider { background: rgba(247,168,68,0.06); }
.ekip-avatar.lider { border: 2px solid var(--orange); }
.gorev-badge.gorev-lider { background: var(--orange); color: #fff; font-weight: 600; }

.gorev-select {
    padding: 5px 8px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--white);
    color: var(--dark);
    max-width: 160px;
}
.gorev-select:focus { outline: none; border-color: var(--green); }
.gorev-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cream);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--dark);
    white-space: nowrap;
}
html[data-theme="dark"] .gorev-select { background: #111827; border-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .gorev-badge { background: rgba(34,197,94,0.12); color: #4ADE80; }

/* Mobil expand */
.show-mobile { display: none !important; }
.ekip-row-detail[hidden] { display: none !important; }
.col-toggle { width: 36px; text-align: right; }
.row-toggle {
    background: none; border: none; cursor: pointer;
    padding: 6px; border-radius: 50%; color: var(--gray);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.15s;
}
.row-toggle:hover { background: var(--gray-lighter); color: var(--dark); }
.row-toggle.open { transform: rotate(180deg); }
.ekip-row-detail td { background: var(--gray-lighter); padding: 14px 16px; }
html[data-theme="dark"] .ekip-row-detail td { background: rgba(255,255,255,0.03); }
.ekip-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 0.85rem; }
.ekip-detail-grid > div { display: flex; flex-direction: column; gap: 2px; }
.ekip-detail-grid > div span { color: var(--gray); font-size: 0.75rem; text-transform: uppercase; }
.ekip-detail-grid > div strong { font-weight: 600; }
.ekip-detail-actions { grid-column: 1 / -1; display: flex !important; flex-direction: row !important; gap: 6px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--gray-light); }
.btn-icon-x { padding: 6px 9px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* Yorumlar */
.yorum-form { margin-bottom: 22px; padding: 14px; background: var(--gray-lighter); border-radius: var(--radius); }
.yorum-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.yorum-stars-label { font-size: 0.85rem; color: var(--gray); margin-right: 6px; }
.star-btn {
    background: none; border: none; cursor: pointer; padding: 2px;
    color: var(--gray-light); transition: color 0.15s, transform 0.1s;
    display: inline-flex;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.active { color: #f59e0b; }
.star-btn.active i { fill: #f59e0b; stroke: #f59e0b; }
.yorum-textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--gray-light);
    border-radius: var(--radius); font-family: inherit; font-size: 0.9rem;
    background: var(--white); color: var(--dark); resize: vertical; min-height: 70px;
}
.yorum-textarea:focus { outline: none; border-color: var(--green); }
.yorum-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
html[data-theme="dark"] .yorum-form { background: rgba(255,255,255,0.03); }
html[data-theme="dark"] .yorum-textarea { background: #111827; border-color: #374151; color: #F3F4F6; }

.yorum-list { display: flex; flex-direction: column; gap: 16px; }
.yorum-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.yorum-item:last-child { border-bottom: none; }
.yorum-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.yorum-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yorum-body { flex: 1; min-width: 0; }
.yorum-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.yorum-author { font-weight: 700; color: var(--dark); text-decoration: none; font-size: 0.92rem; }
.yorum-author:hover { color: var(--green); }
.yorum-stars-display { display: inline-flex; gap: 1px; }
.yorum-date { font-size: 0.78rem; color: var(--gray); }
.yorum-sil-btn {
    background: none; border: none; cursor: pointer; color: var(--gray);
    padding: 4px; border-radius: 4px; display: inline-flex;
}
.yorum-sil-btn:hover { color: var(--red); background: rgba(239,68,68,0.08); }
.yorum-text { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--body-color); white-space: pre-wrap; }

@media (max-width: 700px) {
    .ekip-table .hide-mobile { display: none !important; }
    .ekip-table th.show-mobile,
    .ekip-table td.show-mobile { display: table-cell !important; }
    .ekip-table tr.show-mobile { display: table-row !important; }
    .ekip-table tr.show-mobile[hidden] { display: none !important; }
    .ekip-table th, .ekip-table td { padding: 10px 8px; }
    .gorev-select { max-width: 130px; font-size: 0.8rem; }
    .col-drag, .drag-handle { display: none !important; }
    .ekip-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .team-header-actions .btn { flex: 1; }
    .team-header-meta { grid-template-columns: 1fr; }
}

/* ============================================================
   SOSYAL PAYLAŞIM SİSTEMİ (/sosyal + profil)
   ============================================================ */
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Profil kartı header / body ayrımı + mobil collapse */
.profil-card-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}
.profil-card-toggle {
    display: none;
    position: absolute; top: -4px; right: -4px;
    width: 32px; height: 32px;
    border: none; background: var(--gray-lighter);
    border-radius: 50%; cursor: pointer;
    color: var(--gray);
    align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.15s;
}
.profil-card-toggle:hover { background: var(--cream); color: var(--dark); }
.profil-card-toggle.open { transform: rotate(180deg); }
html[data-theme="dark"] .profil-card-toggle { background: rgba(255,255,255,0.05); }

/* Feed sort bar */
.feed-sort-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.feed-sort-bar small { color: var(--gray); font-weight: 600; }
.feed-sort-link {
    padding: 4px 10px; border-radius: 999px;
    background: var(--gray-lighter);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem; font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.feed-sort-link:hover { background: var(--cream); color: var(--dark); }
.feed-sort-link.active { background: var(--green); color: #fff; }
html[data-theme="dark"] .feed-sort-bar { background: #1F2937; }
html[data-theme="dark"] .feed-sort-link { background: rgba(255,255,255,0.05); }

/* Aktivite kartı (ekip/ilan oluşturma) */
.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
}
.activity-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.activity-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.activity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-meta { flex: 1; min-width: 0; }
.activity-card-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; }
.activity-user { font-weight: 700; color: var(--dark); text-decoration: none; }
.activity-user:hover { color: var(--green); }
.activity-verb { display: inline-flex; align-items: center; gap: 4px; color: var(--gray); font-size: 0.85rem; }
.activity-verb i { color: var(--green); }
.activity-ilan .activity-verb i { color: var(--orange); }
.activity-date { display: block; color: var(--gray); font-size: 0.72rem; margin-top: 2px; }

.activity-body {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: var(--gray-lighter);
    border-radius: var(--radius);
    text-decoration: none; color: inherit;
    transition: background 0.15s, transform 0.1s;
}
.activity-body:hover { background: var(--cream); transform: translateY(-1px); }
.activity-thumb {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--white); border: 2px solid var(--gray-light);
    flex-shrink: 0;
}
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-thumb-ilan {
    display: flex; align-items: center; justify-content: center;
    background: var(--cream); border-color: var(--orange); color: var(--orange);
    border-radius: 10px;
}
.activity-body-info { flex: 1; min-width: 0; }
.activity-body-info strong { display: block; font-size: 0.92rem; color: var(--dark); }
.activity-body-info small { color: var(--gray); font-size: 0.78rem; }
html[data-theme="dark"] .activity-card { background: #1F2937; }
html[data-theme="dark"] .activity-user,
html[data-theme="dark"] .activity-body-info strong { color: #F3F4F6; }
html[data-theme="dark"] .activity-body { background: rgba(255,255,255,0.04); }
html[data-theme="dark"] .activity-body:hover { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .activity-thumb { background: #111827; border-color: #374151; }

.profile-share-title {
    font-size: 1.3rem; font-weight: 800;
    margin: 0;
    display: flex; align-items: center; gap: 8px;
    color: var(--dark);
}
html[data-theme="dark"] .profile-share-title { color: #F3F4F6; }
.profile-sidebar { position: sticky; top: 90px; }
@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    /* Sidebar mobile'da en üste gelsin */
    .profile-layout > .profile-main { order: 2; }
    .profile-sidebar { position: static; order: 1; }

    /* Profil kart body'sini varsayılan gizle, açma butonu göster */
    .profil-card-toggle { display: inline-flex; }
    .profil-card-body { display: none; }
    .profil-card-body.open { display: block; }
}

.post-new-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    margin-bottom: 14px;
}
.post-new-row { display: flex; gap: 10px; align-items: flex-start; }
.post-new-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; flex-shrink: 0;
    object-fit: cover; border: 2px solid var(--gray-light);
}
.post-new-form textarea {
    flex: 1;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    min-width: 0;
}
.post-new-form textarea:focus { outline: none; border-color: var(--green); }
.post-new-files { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0 50px; }
.post-new-file {
    position: relative;
    width: 64px; height: 64px;
    border-radius: 6px;
    background-size: cover; background-position: center;
    background-color: var(--gray-lighter);
    border: 1px solid var(--gray-light);
}
.post-new-file-rm {
    position: absolute; top: -6px; right: -6px;
    width: 18px; height: 18px;
    border: none; border-radius: 50%;
    background: var(--red); color: #fff;
    font-size: 14px; line-height: 1;
    cursor: pointer;
}
.post-new-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--gray-light);
}
.post-new-attach {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: var(--gray-lighter);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem; color: var(--gray);
    transition: background 0.15s;
}
.post-new-attach:hover { background: var(--cream); color: var(--green); }
html[data-theme="dark"] .post-new-form { background: #1F2937; }
html[data-theme="dark"] .post-new-form textarea { background: #111827; border-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .post-new-attach { background: rgba(255,255,255,0.05); }

.post-feed { display: flex; flex-direction: column; gap: 14px; }

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.post-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
}
.post-avatar { flex-shrink: 0; }
.post-avatar img {
    width: 42px; height: 42px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gray-light);
    display: block;
}
.post-author { flex: 1; min-width: 0; }
.post-name {
    display: block; font-weight: 700; color: var(--dark);
    text-decoration: none; font-size: 0.92rem;
}
.post-name:hover { color: var(--green); }
.post-date { font-size: 0.72rem; color: var(--gray); }
.post-del-btn {
    background: none; border: none; cursor: pointer;
    color: var(--gray); padding: 6px; border-radius: 50%;
    display: inline-flex; transition: background 0.15s, color 0.15s;
}
.post-del-btn:hover { background: rgba(239,68,68,0.10); color: var(--red); }

.post-body {
    padding: 0 16px 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--body-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-images {
    display: grid;
    gap: 3px;
    width: 100%;
}
.post-images-one { grid-template-columns: 1fr; }
.post-images-one .post-image { aspect-ratio: 4/3; }
.post-images-two { grid-template-columns: 1fr 1fr; }
.post-images-two .post-image { aspect-ratio: 1/1; }
.post-images-three { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images-three .post-image:first-child { grid-row: 1 / 3; aspect-ratio: 1/1; }
.post-images-three .post-image { aspect-ratio: 2/1; }
.post-images-many { grid-template-columns: 1fr 1fr 1fr; }
.post-images-many .post-image { aspect-ratio: 1/1; }
.post-image {
    background-size: cover;
    background-position: center;
    background-color: var(--gray-lighter);
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.post-image:hover { opacity: 0.95; }

.post-stats {
    display: flex; gap: 14px;
    padding: 8px 16px;
    font-size: 0.78rem; color: var(--gray);
    border-bottom: 1px solid var(--gray-light);
}
.post-stats span { display: inline-flex; align-items: center; gap: 4px; }
.post-stats .hidden { display: none; }

.post-actions {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
}
.post-action {
    flex: 1;
    background: none; border: none; cursor: pointer;
    padding: 10px 12px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--gray);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.post-action:hover { background: var(--gray-lighter); color: var(--dark); }
.post-action.liked { color: #EF4444; }
.post-action.liked i { fill: #EF4444; stroke: #EF4444; }

.post-comments { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.post-comment {
    display: flex; align-items: flex-start; gap: 8px;
    position: relative;
}
.post-comment-avatar img {
    width: 30px; height: 30px;
    border-radius: 50%; object-fit: cover; display: block;
}
.post-comment-body {
    flex: 1; min-width: 0;
    background: var(--gray-lighter);
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 0.85rem;
}
.post-comment-name { font-weight: 700; color: var(--dark); text-decoration: none; display: block; font-size: 0.82rem; }
.post-comment-name:hover { color: var(--green); }
.post-comment-text { color: var(--body-color); display: block; word-wrap: break-word; white-space: pre-wrap; }
.post-comment-date { font-size: 0.7rem; color: var(--gray); margin-top: 3px; display: inline-block; }
.post-comment-del {
    background: none; border: none; cursor: pointer; padding: 2px;
    color: var(--gray); border-radius: 50%;
    align-self: flex-start; opacity: 0.6;
}
.post-comment-del:hover { color: var(--red); opacity: 1; }
html[data-theme="dark"] .post-comment-body { background: rgba(255,255,255,0.06); }

.post-comment-form {
    display: flex; gap: 8px; align-items: center;
    padding: 10px 16px;
}
.post-comment-form-avatar {
    width: 30px; height: 30px;
    border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.post-comment-form input {
    flex: 1;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.88rem;
    background: var(--gray-lighter);
    min-width: 0;
}
.post-comment-form input:focus { outline: none; background: var(--white); border-color: var(--green); }
.post-comment-form button {
    background: none; border: none; cursor: pointer;
    color: var(--green); padding: 6px; border-radius: 50%;
}
.post-comment-form button:hover { background: var(--gray-lighter); }
html[data-theme="dark"] .post-card { background: #1F2937; }
html[data-theme="dark"] .post-comment-form input { background: rgba(255,255,255,0.06); border-color: #374151; color: #F3F4F6; }
html[data-theme="dark"] .post-comment-form input:focus { background: #111827; }

.post-img-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.post-img-modal img {
    max-width: 95%; max-height: 95vh;
    border-radius: 8px;
}
.post-img-modal-close {
    position: absolute; top: 16px; right: 20px;
    background: rgba(255,255,255,0.15); color: #fff;
    border: none; border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 24px; line-height: 1;
    cursor: pointer;
}
