/* ============================================================
   ILINTIX ANA STİL DOSYASI v2.0
   Modern, premium, dönüşüm odaklı tasarım
   ============================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500&display=swap');

/* --- CSS DEĞİŞKENLERİ --- */
:root {
    /* Renk paleti - Koyu lüks tema (varsayılan) */
    --color-bg: #0b0d14;
    --color-bg-secondary: #11141f;
    --color-surface: #181b28;
    --color-surface-hover: #1f2233;
    --color-surface-elevated: #242840;
    --color-border: rgba(255,255,255,0.06);
    --color-border-hover: rgba(255,255,255,0.12);
    
    /* Ana renk */
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #5b21b6;
    --color-primary-glow: rgba(124,58,237,0.3);
    --color-accent: #f59e0b;
    --color-accent-glow: rgba(245,158,11,0.3);
    
    /* Metin */
    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #475569;
    --color-text-inverse: #0b0d14;
    
    /* Durum */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Boyutlar */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.3), 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --shadow-glow-accent: 0 0 30px var(--color-accent-glow);
    
    /* Font */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;
}

/* --- AYDINLIK TEMA --- */
[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-surface-elevated: #e2e8f0;
    --color-border: rgba(0,0,0,0.08);
    --color-border-hover: rgba(0,0,0,0.16);
    
    --color-primary: #6d28d9;
    --color-primary-light: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-primary-glow: rgba(109,40,217,0.2);
    --color-accent: #d97706;
    --color-accent-glow: rgba(217,119,6,0.2);
    
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

/* Light tema scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--color-bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--color-surface-elevated); }

/* Light tema body arka planı */
[data-theme="light"] body {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(109,40,217,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.03) 0%, transparent 50%);
}

/* Light tema header */
[data-theme="light"] .site-header {
    background: rgba(248,250,252,0.8);
}
[data-theme="light"] .site-header.scrolled {
    background: rgba(248,250,252,0.95);
}

/* Light tema auth card */
[data-theme="light"] .auth-card {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* --- TEMA GEÇİŞ ANİMASYONU --- */
body, .site-header, .auth-card, .listing-card, .category-card,
.flash, .alert, .search-form, .hero-search,
.form-group input, .form-group textarea, .form-group select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- TEMA TOGGLE BUTONU (Pill Switch) --- */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: var(--radius-full);
}

.theme-toggle-track {
    display: flex;
    align-items: center;
    width: 52px;
    height: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 2px;
}

[data-theme="light"] .theme-toggle-thumb {
    left: 2px;
    background: var(--color-primary);
}

[data-theme="dark"] .theme-toggle-thumb {
    left: 26px;
    background: var(--color-accent);
}

.theme-toggle-thumb i {
    font-size: 0.7rem;
    color: white;
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-toggle-thumb i {
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle-thumb i {
    transform: rotate(180deg);
}

.theme-toggle-track::before {
    content: '\2600\FE0F';
    position: absolute;
    left: 8px;
    font-size: 0.6rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.theme-toggle-track::after {
    content: '\1F319';
    position: absolute;
    right: 8px;
    font-size: 0.6rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle-track::before {
    opacity: 0.3;
}

[data-theme="dark"] .theme-toggle-track::after {
    opacity: 0.5;
}

.theme-toggle:hover .theme-toggle-track {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(124,58,237,0.1);
}

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

html { 
    font-size: 16px; 
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139,92,246,0.05) 0%, transparent 50%);
}

a { color: var(--color-primary-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-text); }

img { max-width: 100%; height: auto; }
::selection { background: var(--color-primary); color: white; }

/* --- ANA İÇERİK (header fixed olduğu için padding) --- */
.main-content {
    padding-top: var(--header-height);
}

/* --- ONBOARDING BANNER --- */
.onboarding-banner {
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 16px;
    position: relative;
    z-index: 20;
}

.onboarding-banner-inner {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.onboarding-banner-text {
    flex: 1;
    min-width: 220px;
}

.onboarding-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #7c3aed;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 21;
    cursor: pointer;
}

.onboarding-banner-btn:hover {
    background: #f3e8ff;
    color: #6d28d9;
}

/* Banner varken hero yukarı taşmasın (tıklamayı engelliyordu) */
.onboarding-banner + .hero {
    margin-top: 0;
}

/* --- HERO SECTION — tek blok halinde birlestirildi --- */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-height));
    min-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 8px);
    padding-bottom: 36px;
    overflow: hidden;
    z-index: 1;
}

/* --- YILDIZLI ARKA PLAN (HOMEPAGE) --- */
.stars-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars-bg::before {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow:
        100px 200px 2px rgba(255,255,255,0.3),
        300px 400px 1px rgba(255,255,255,0.2),
        500px 100px 3px rgba(255,255,255,0.15),
        700px 500px 2px rgba(255,255,255,0.25),
        900px 300px 1px rgba(255,255,255,0.2),
        200px 700px 2px rgba(255,255,255,0.15),
        600px 800px 1px rgba(255,255,255,0.2),
        1000px 600px 3px rgba(255,255,255,0.1),
        400px 900px 2px rgba(255,255,255,0.2);
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(11,13,20,0.75);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11,13,20,0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo - Modern wordmark */
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '✦';
    -webkit-text-fill-color: initial;
    color: var(--color-primary-light);
    font-size: 1.2rem;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigasyon */
.nav-links { 
    display: flex; 
    gap: 8px; 
    flex: 1;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.nav-links a:hover { 
    color: var(--color-text); 
    background: rgba(255,255,255,0.05);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- HEADER DROPDOWN (Keşfet & Hesap) --- */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
    color: var(--color-text);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="light"] .nav-dropdown-trigger:hover,
[data-theme="light"] .nav-dropdown.open .nav-dropdown-trigger {
    background: rgba(124,58,237,0.07);
    border-color: rgba(124,58,237,0.12);
}

.nav-chev {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-chev { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu-right { left: auto; right: 0; }

.nav-dropdown-menu a,
.nav-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: transparent;
    border: 0;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover {
    background: rgba(124,58,237,0.10);
    color: var(--color-text);
}

.nav-dropdown-menu a i,
.nav-dropdown-menu button i {
    width: 16px;
    color: #a78bfa;
    font-size: 0.85rem;
    text-align: center;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.nav-dropdown-form { margin: 0; padding: 0; }
.nav-dropdown-form button { font: inherit; }

/* Hesap trigger: büyük avatar + nick */
.account-trigger { padding: 4px 10px 4px 4px; gap: 10px; }

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.account-avatar-fallback i { font-size: 0.95rem; }

.account-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- MOBİL MENÜ --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mobile-menu.active { display: flex; }

.mobile-menu a,
.mobile-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    background: transparent;
    border: 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: rgba(124,58,237,0.10);
    color: var(--color-text);
}

.mobile-menu a i,
.mobile-menu button i {
    width: 18px;
    color: #a78bfa;
    text-align: center;
}

.mobile-menu-section {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    padding: 14px 10px 6px;
    margin-top: 4px;
    border-top: 1px solid var(--color-border);
}

.mobile-menu-section:first-child {
    margin-top: 0;
    border-top: 0;
}

#mobile-menu-btn { display: none; }

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-160%);
    transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- BUTONLAR --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
}

.btn:hover { 
    border-color: var(--color-border-hover); 
    background: var(--color-surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.05);
    transform: none;
    box-shadow: none;
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }


.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-particle:nth-child(1) {
    width: 4px; height: 4px;
    background: var(--color-primary-light);
    top: 20%; left: 10%;
    animation-delay: 0s;
    opacity: 0.5;
}

.hero-particle:nth-child(2) {
    width: 6px; height: 6px;
    background: var(--color-accent);
    top: 40%; right: 15%;
    animation-delay: -5s;
    opacity: 0.4;
}

.hero-particle:nth-child(3) {
    width: 3px; height: 3px;
    background: var(--color-info);
    top: 60%; left: 20%;
    animation-delay: -10s;
    opacity: 0.6;
}

.hero-particle:nth-child(4) {
    width: 5px; height: 5px;
    background: var(--color-primary);
    top: 30%; right: 30%;
    animation-delay: -15s;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(15px); }
    50% { transform: translateY(-15px) translateX(-10px); }
    75% { transform: translateY(-40px) translateX(20px); }
}

.hero-content {
    position: relative;
    max-width: 720px;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-primary-light);
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, white 30%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 4px;
    transition: all 0.3s ease;
}

.hero-search-wide {
    max-width: 680px;
}

.hero-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}

.hero-search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
}

.hero-search input::placeholder { color: var(--color-text-muted); }

.hero-search .btn {
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 10px;
}

/* En alttaki hero (homepage) */
.hero-bottom {
    margin-top: 0 !important;
    min-height: auto;
    padding: 48px 24px 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- SECTION --- */
.section {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 16px;
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: 4px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

/* --- KATEGORİ KARTLARI --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before { opacity: 1; }

.category-card:hover {
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.1);
    background: var(--color-surface-hover);
}

.category-card .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.category-card h3 { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.category-card .count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 4px;
}

/* --- ROOT KATEGORİ KARTLARI (Level 1) --- */
.root-category-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.root-category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.root-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.root-category-card:hover::before { opacity: 1; }

.root-category-card:hover {
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.08);
    background: var(--color-surface-hover);
}

.root-category-card .root-category-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.root-category-card .root-category-info {
    flex: 1;
    min-width: 0;
}

.root-category-card .root-category-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.root-category-card .root-category-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.root-category-card .root-category-arrow {
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.root-category-card:hover .root-category-arrow {
    transform: translateX(4px);
    color: var(--color-primary-light);
}

.root-category-card.placeholder {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.root-category-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
}

/* --- Optgroup stilleri (kategori seçici) --- */
select optgroup {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 4px 0;
}

/* --- YAYIN KARTLARI --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.listing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.listing-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--color-surface-hover);
}

.listing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.1);
    color: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.date { 
    font-size: 0.75rem; 
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.listing-card h3 a { color: var(--color-text); }
.listing-card h3 a:hover { color: var(--color-primary-light); }

.listing-card .description {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

/* --- KURUCU BİYOGRAFİSİ --- */
.founder-bio { margin-top: 8px; }
.founder-bio h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin: 28px 0 10px; }
.founder-bio p { margin-bottom: 14px; }
.founder-bio ul { margin: 12px 0; padding-left: 20px; }
.founder-bio li { margin-bottom: 6px; }
.founder-bio a { color: var(--color-primary-light); text-decoration: underline; }
.founder-bio hr { border: none; border-top: 1px solid var(--color-border); margin: 28px 0; }
.founder-bio .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--radius);
}
.founder-bio .video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: var(--radius);
}
.founder-bio strong { color: var(--color-text); }
.founder-bio code { background: var(--color-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }
.founder-bio .highlight-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    color: var(--color-text);
}

.user-link { 
    font-weight: 600; 
    font-size: 0.88rem; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-link::before {
    content: '';
    display: inline-block;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0.3;
}

.location {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- AUTH SAYFALARI --- */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px;
    flex: 1;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-accent));
}

.auth-card h1 { 
    font-size: 1.6rem; 
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-card > p { 
    color: var(--color-text-secondary); 
    margin-bottom: 32px;
    font-size: 0.92rem;
}

.auth-card .auth-alt { margin-top: 28px; }

/* --- FORM --- */
.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
    background: var(--color-bg-secondary);
}

.form-group input::placeholder { color: var(--color-text-muted); }

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

.form-group small { 
    display: block; 
    margin-top: 6px; 
    font-size: 0.78rem; 
    color: var(--color-text-muted);
}

/* --- FLASH MESAJLAR --- */
.flash-messages {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.flash {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.88rem;
    display: flex;
    gap: 12px;
    align-items: center;
    backdrop-filter: blur(20px);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.flash-success { 
    background: rgba(34,197,94,0.1); 
    color: var(--color-success); 
    border-color: rgba(34,197,94,0.2);
}

.flash-error { 
    background: rgba(239,68,68,0.1); 
    color: var(--color-error); 
    border-color: rgba(239,68,68,0.2);
}

.flash-warning { 
    background: rgba(245,158,11,0.1); 
    color: var(--color-warning); 
    border-color: rgba(245,158,11,0.2);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
    padding: 0 4px;
    transition: opacity 0.2s ease;
}

.flash-close:hover { opacity: 1; }

@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- ALERT --- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(59,130,246,0.1);
    color: var(--color-info);
    border-color: rgba(59,130,246,0.2);
}

/* --- SAYFALAMA / PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.page-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0 12px;
}

/* --- YAYIN DETAY --- */
.listing-detail-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.listing-detail h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.listing-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.listing-tags { margin-bottom: 32px; }
.listing-tags h3 { font-size: 0.9rem; margin-bottom: 12px; color: var(--color-text-secondary); }

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

.tag {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    background: rgba(124,58,237,0.05);
}

.listing-contact {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.listing-contact h3 { 
    font-size: 0.9rem; 
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.contact-methods { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.contact-btn.whatsapp { background: rgba(34,197,94,0.1); color: var(--color-success); border: 1px solid rgba(34,197,94,0.2); }
.contact-btn.whatsapp:hover { background: rgba(34,197,94,0.2); }

.contact-btn.telegram { background: rgba(59,130,246,0.1); color: var(--color-info); border: 1px solid rgba(59,130,246,0.2); }
.contact-btn.telegram:hover { background: rgba(59,130,246,0.2); }

.contact-btn.email { background: rgba(245,158,11,0.1); color: var(--color-warning); border: 1px solid rgba(245,158,11,0.2); }
.contact-btn.email:hover { background: rgba(245,158,11,0.2); }

.listing-actions { display: flex; gap: 12px; margin-top: 24px; }

/* --- BOŞ DURUM --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 18px 24px 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand .logo {
    font-size: .95rem;
    margin-bottom: 3px;
    display: inline-flex;
}

.footer-brand p {
    font-size: .74rem;
    color: var(--color-text-muted);
    max-width: 460px;
    line-height: 1.45;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: flex-end;
}

.footer-links a,
.footer-logout button {
    font-size: .78rem;
    color: var(--color-text-secondary);
    transition: color .2s ease;
    white-space: nowrap;
}

.footer-links a:hover,
.footer-logout button:hover { color: var(--color-primary-light); }

.footer-logout { margin: 0; display: inline-flex; }
.footer-logout button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-size: .7rem;
    color: var(--color-text-muted);
    padding-top: 9px;
    border-top: 1px solid var(--color-border);
}

/* --- BREADCRUMB --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb span:last-child { color: var(--color-text); }

/* --- KATEGORİ DETAY --- */
.category-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* --- SEARCH FORM --- */
.search-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.search-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-form-row input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-form-row input:focus {
    border-color: var(--color-primary);
}

.search-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem !important;
    text-transform: none !important;
    color: var(--color-text) !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--color-primary);
}

/* --- HR (bölücü) --- */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-container { justify-content: center; text-align: center; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        /* Masaüstünde .hero, sabit başlığın ARDINA uzansın diye
           margin-top: calc(-1 * --header-height) alır; içeriği de
           min-height + align-items:center aşağı iter, böylece
           başlığın altında kalmaz.
           Mobilde min-height auto olunca o pay yok oluyor ve rozet
           ile h1 başlığın altında kayboluyordu (ölçüldü: rozet
           22–59px, başlık 0–72px). Negatif payı burada iptal
           ediyoruz: .main-content zaten header kadar üst boşluk
           veriyor, kahramanın onu tekrar yok etmesine gerek yok. */
        min-height: auto;
        margin-top: 0;
        padding: 18px 16px 26px;
    }
    .hero h1 { font-size: 1.6rem; }
    .hero h1 .highlight { font-size: 1.8rem; }
    .hero p { font-size: 0.88rem; max-width: 100%; line-height: 1.55; margin-top: 10px; }
    .hero-badge { font-size: 0.75rem; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 8px;
    }
    .hero-stat-value { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.7rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius); background: transparent; border: none; gap: 8px; max-width: 100%; }
    .hero-search input { background: var(--color-surface); border-radius: var(--radius); border: 1px solid var(--color-border); padding: 12px 16px; }
    .hero-search .btn { width: 100%; border-radius: var(--radius); }

    /* Layout */
    .listing-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-card { padding: 14px 10px; }
    .category-card h3 { font-size: 0.78rem; }
    .root-category-card { padding: 16px; gap: 12px; }
    .root-category-card .root-category-icon { font-size: 1.5rem; width: 40px; height: 40px; }
    .root-category-card .root-category-info h3 { font-size: 0.95rem; }
    .root-category-card .root-category-info p { font-size: 0.78rem; }
    .root-category-card .root-category-arrow { font-size: 0.9rem; }

    /* Header & Nav */
    .nav-links { display: none; }
    .nav-container { gap: 12px; padding: 0 12px; }
    .logo { font-size: 1.1rem; flex-shrink: 0; }
    .nav-actions { gap: 6px; margin-left: auto; }
    .nav-actions .btn { font-size: 0.78rem; padding: 6px 10px; }
    .nav-actions .btn span { display: inline; }
    .theme-toggle { margin-left: 6px; flex-shrink: 0; }
    #mobile-menu-btn { display: inline-flex; }

    /* Hesap dropdown mobilde sadece avatar */
    .account-name, .nav-dropdown .nav-chev { display: none; }
    .account-trigger { padding: 4px; }
    .account-avatar { width: 30px; height: 30px; }

    /* Sektionlar */
    .section { padding: 22px 12px; }
    .section-header { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .section-header h2 { font-size: 1.2rem; }
    .section-label { font-size: 0.68rem; }

    /* Auth cards */
    .auth-card { padding: 24px 18px; }
    .auth-card h1 { font-size: 1.3rem; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }

    /* Uzun tablolar scrollable */
    .card > div[style*="overflow-x"], 
    div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
    table { font-size: 0.8rem !important; }
    th, td { padding: 8px 10px !important; }

    /* Footer */
    .footer-container { flex-direction: column; gap: 10px; text-align: center; }
    .footer-brand p { max-width: 100%; font-size: .74rem; }
    .footer-links { justify-content: center; }
    .site-footer { padding: 14px 16px 8px; }
    .footer-bottom { font-size: .68rem; padding-top: 8px; }

    /* Search */
    .search-filters { flex-direction: column; gap: 8px; }
    .search-form-row { flex-direction: column; gap: 8px; }

    /* Listing detail */
    .listing-detail h1 { font-size: 1.3rem; }
    .listing-meta { gap: 10px; font-size: 0.85rem; }
    .listing-description { font-size: 0.92rem; }
    .contact-methods { flex-direction: column; }
    .contact-btn { width: 100%; justify-content: center; }
    .listing-actions { flex-wrap: wrap; gap: 6px; }
    .listing-actions .btn { font-size: 0.78rem; padding: 8px 12px; }
    .listing-card { padding: 16px; }

    /* Profil */
    .profile-header { flex-direction: column; gap: 14px; }
    .profile-header-main { flex-direction: column; align-items: flex-start; gap: 10px; }
    .profile-avatar { width: 52px; height: 52px; }
    .profile-header h1 { font-size: 1.4rem; }
    .profile-header-actions { width: 100%; flex-wrap: wrap; }
    .profile-grid { grid-template-columns: 1fr; gap: 16px; }
    .profile-section { padding: 16px; }
    .profile-section h2 { font-size: 0.8rem; }

    /* Stats grid */
    div[style*="grid-template-columns:repeat(auto-fit,minmax(200px, 1fr))"] {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 8px !important;
    }

    /* Modal */
    .modal-content { padding: 20px 16px; width: 95%; }
    .report-option { padding: 12px !important; }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 8px; }

    /* Breadcrumb */
    .breadcrumb { font-size: 0.75rem; flex-wrap: wrap; }

    /* Tag list */
    .tag-list { gap: 6px; }
    .tag { padding: 4px 10px; font-size: 0.73rem; }

    /* Boş durum */
    .empty-state { padding: 40px 16px; }
    .empty-state-icon { font-size: 2.2rem; }

    /* Skill tags */
    .skill-list { gap: 6px; }
    .skill-tag { padding: 4px 10px; font-size: 0.75rem; }

    /* External links */
    .external-link-item { padding: 8px 12px; font-size: 0.8rem; }

}

@media (max-width: 480px) {
    .hero { margin-top: 0; padding: 14px 12px 20px; }
    .hero h1 { font-size: 1.35rem; }
    .hero h1 .highlight { font-size: 1.5rem; }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-card { padding: 14px 10px; }
    .category-card h3 { font-size: 0.75rem; }

    .listing-card { padding: 14px; }
    .listing-card h3 { font-size: 0.9rem; }

    .root-category-card { padding: 14px 12px; }
    .root-category-card .root-category-icon { font-size: 1.3rem; width: 36px; height: 36px; }
    .root-category-card .root-category-info h3 { font-size: 0.88rem; }

    .hero-stats { gap: 8px 6px; }
    .hero-stat-value { font-size: 1.1rem; }

    .section { padding: 16px 8px; }
    .section-header { margin-bottom: 10px; }
    .section-header h2 { font-size: 1.05rem; }

    .nav-actions .btn { font-size: 0.72rem; padding: 5px 8px; }
    .logo { font-size: 1rem; }

    .auth-card { padding: 20px 14px; }
    .auth-card h1 { font-size: 1.15rem; }

    .modal-content { padding: 16px 12px; }
    .report-option { padding: 10px 12px !important; }
    .report-option strong { font-size: 0.85rem; }

    .footer-container { gap: 8px; }
    .footer-links { gap: 4px 12px; }
    .footer-links a, .footer-logout button { font-size: .73rem; }

    .pagination .btn { font-size: 0.75rem; padding: 6px 10px; }
}

/* --- PROFİL --- */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

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

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-location {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.profile-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.profile-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.profile-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

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

.skill-tag {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--color-primary-light);
    font-weight: 500;
}

.portfolio-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.portfolio-item:last-child { border-bottom: none; }

.portfolio-item h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.portfolio-item p {
    font-size: 0.85rem;
}

.external-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.external-link-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.external-link-item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.external-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.form-card {
    max-width: 560px;
    margin: 0 auto;
}

.form-card-wide {
    max-width: 720px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

@media (max-width: 768px) {
    .profile-header { flex-direction: column; }
    .profile-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .profile-header-actions { width: 100%; }
}

/* --- ŞİKAYET MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.report-option:hover { border-color: var(--color-primary) !important; }

.report-option input[type="radio"]:checked + div strong { color: var(--color-primary-light); }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }


/* ════════════════════════════════════════════════════════════
   ILINTIX v3.0 — YETKİNLİK PLATFORMU BİLEŞENLERİ

   Kural: Hiçbir sayfa "bembeyaz" olmaz. Tüm yüzeyler
   --color-surface / --color-bg değişkenlerinden beslenir,
   böylece koyu ve aydınlık tema aynı özenle çalışır.
   ════════════════════════════════════════════════════════════ */

:root {
    --ix-teach:  #22c55e;
    --ix-learn:  #3b82f6;
    --ix-offer:  #7c3aed;
    --ix-seek:   #f59e0b;
    --ix-collab: #ec4899;
    --ix-ai:     #a78bfa;
}

/* ── ORTAK BÖLÜM BAŞLIĞI ───────────────────────────────── */
.ix-section-note {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 68ch;
    margin: -4px 0 22px;
}

.ix-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.ix-panel + .ix-panel { margin-top: 20px; }

.ix-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ix-panel-head h2,
.ix-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.ix-panel-head h2 i,
.ix-panel-head h3 i { color: var(--color-primary-light); font-size: 0.95em; }

.ix-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 6px 0 18px;
}

/* ── MANİFESTO / DÖNGÜ ─────────────────────────────────── */
.ix-manifesto {
    text-align: center;
    padding: 8px 0 4px;
}
.ix-manifesto blockquote {
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    margin: 0 auto 12px;
    max-width: 24ch;
    background: linear-gradient(120deg, var(--color-text) 30%, var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ix-manifesto p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 62ch;
    margin: 0 auto;
}

.ix-cycle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 26px 0 0;
}
.ix-cycle-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    transition: border-color .22s, color .22s, transform .22s;
}
.ix-cycle-step:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}
.ix-cycle-step i { font-size: 0.78em; opacity: .75; }
.ix-cycle-arrow { color: var(--color-text-muted); font-size: 0.68rem; }

/* ── ALAN KARTLARI (Ana sayfa) ─────────────────────────── */
.ix-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 12px;
}
.ix-domain-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s, background .2s;
}
.ix-domain-card:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
    transform: translateY(-2px);
}
.ix-domain-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 1.25rem;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(139,92,246,.06));
    border: 1px solid rgba(124,58,237,.16);
}
.ix-domain-body { min-width: 0; flex: 1; }
.ix-domain-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ix-domain-body span {
    font-size: 0.74rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── YETKİNLİK KARTI ───────────────────────────────────── */
.ix-comp {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color .2s;
}
.ix-comp:hover { border-color: var(--color-border-hover); }
.ix-comp + .ix-comp { margin-top: 12px; }

.ix-comp-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.ix-comp-path {
    font-size: 0.73rem;
    color: var(--color-text-muted);
    letter-spacing: .01em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ix-comp-path i { opacity: .5; font-size: .6rem; }
.ix-comp-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
}
.ix-comp-label {
    font-weight: 500;
    color: var(--color-primary-light);
    font-size: 0.92rem;
}

/* Ölçüm satırı */
.ix-comp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
.ix-comp-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ix-comp-meta i { color: var(--color-text-muted); font-size: .85em; }
.ix-comp-years { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--color-text); }

/* Skor çubuğu */
.ix-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.ix-score-track {
    flex: 1;
    height: 6px;
    min-width: 90px;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    overflow: hidden;
}
.ix-score-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.ix-score-fill.is-ai {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.ix-score-value {
    font-size: 0.82rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: right;
}
.ix-score-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    background: var(--color-surface-elevated);
    color: var(--color-text-muted);
}
.ix-score-tag.is-ai {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.22);
}

/* Niyet rozetleri */
.ix-intents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ix-intent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid currentColor;
    background: color-mix(in srgb, currentColor 10%, transparent);
}
.ix-intent i { font-size: .85em; }
.ix-intent[data-k="is_teaching"]      { color: var(--ix-teach); }
.ix-intent[data-k="is_learning"]      { color: var(--ix-learn); }
.ix-intent[data-k="is_offering"]      { color: var(--ix-offer); }
.ix-intent[data-k="is_seeking"]       { color: var(--ix-seek); }
.ix-intent[data-k="is_collaborating"] { color: var(--ix-collab); }

/* Ücret etiketi */
.ix-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 650;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    white-space: nowrap;
}
.ix-price[data-p="free"]       { color: #22c55e; border-color: rgba(34,197,94,.25);  background: rgba(34,197,94,.08); }
.ix-price[data-p="paid"]       { color: var(--color-accent); border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.08); }
.ix-price[data-p="negotiable"] { color: var(--color-info); border-color: rgba(59,130,246,.25); background: rgba(59,130,246,.08); }
.ix-price[data-p="depends"]    { color: var(--color-primary-light); border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.08); }

/* Yetkinlik açıklaması */
.ix-comp-desc {
    margin: 12px 0 0;
    font-size: 0.88rem;
    line-height: 1.72;
    color: var(--color-text-secondary);
}

/* Kanıtlar */
.ix-evidence {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ix-evidence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    font-size: 0.84rem;
    transition: border-color .2s, background .2s;
}
.ix-evidence-item:hover { border-color: var(--color-primary); background: var(--color-surface-hover); }
.ix-evidence-item i:first-child {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(124,58,237,.1);
    color: var(--color-primary-light);
    font-size: .82rem;
}
.ix-evidence-item strong { font-weight: 620; }
.ix-evidence-meta { color: var(--color-text-muted); font-size: 0.76rem; margin-left: auto; white-space: nowrap; }

/* ── ÖZET ŞERİDİ ───────────────────────────────────────── */
.ix-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ix-summary-cell {
    background: var(--color-surface);
    padding: 15px 12px;
    text-align: center;
}
.ix-summary-cell b {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--color-primary-light);
}
.ix-summary-cell span {
    display: block;
    margin-top: 4px;
    font-size: 0.71rem;
    color: var(--color-text-muted);
    letter-spacing: .03em;
}

/* ── İLETİŞİM KANALLARI + SİTELER (yan yana) ──────────── */
.ix-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
}
.ix-channel {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .18s, background .2s;
}
.ix-channel:hover {
    border-color: currentColor;
    background: var(--color-surface-hover);
    transform: translateX(2px);
}
.ix-channel + .ix-channel { margin-top: 8px; }
.ix-channel-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 9px;
    font-size: 1.02rem;
    color: #fff;
}
.ix-channel-body { min-width: 0; }
.ix-channel-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 640;
    color: var(--color-text);
}
.ix-channel-body span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Üyenin İnternet Siteleri */
.ix-site {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .18s;
}
.ix-site:hover { border-color: var(--color-primary); transform: translateX(2px); }
.ix-site + .ix-site { margin-top: 8px; }
.ix-site img, .ix-site .ix-site-fallback {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    object-fit: contain;
    background: var(--color-surface-elevated);
}
.ix-site-fallback { display: grid; place-items: center; color: var(--color-primary-light); font-size: .8rem; }
.ix-site-body { min-width: 0; flex: 1; }
.ix-site-body strong { display: block; font-size: 0.83rem; font-weight: 640; }
.ix-site-body span {
    display: block;
    font-size: 0.73rem;
    color: var(--color-text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Sosyal hesap çipleri */
.ix-accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-account {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px 7px 9px;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.79rem;
    font-weight: 550;
    transition: border-color .2s, color .2s, transform .18s;
}
.ix-account:hover { transform: translateY(-2px); color: var(--color-text); border-color: var(--brand, var(--color-border)); }
.ix-account i { font-size: 0.95rem; }

/* ── BELGELER ──────────────────────────────────────────── */
.ix-cert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}
.ix-cert + .ix-cert { margin-top: 9px; }
.ix-cert-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(245,158,11,.1);
    color: var(--color-accent);
    font-size: 1rem;
}
.ix-cert-body { flex: 1; min-width: 0; }
.ix-cert-body strong { display: block; font-size: 0.88rem; font-weight: 640; line-height: 1.35; }
.ix-cert-body .ix-cert-sub { font-size: 0.77rem; color: var(--color-text-muted); margin-top: 2px; }
.ix-cert-links { display: flex; gap: 12px; margin-top: 7px; }
.ix-cert-links a { font-size: 0.76rem; color: var(--color-primary-light); text-decoration: none; }
.ix-cert-links a:hover { text-decoration: underline; }

/* ── AI SOHBET WIDGET (her sayfada, sağ alt) ──────────── */
.ix-ai-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 960;
    width: 58px; height: 58px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.32rem;
    background: linear-gradient(135deg, var(--color-primary), #9333ea);
    box-shadow: 0 8px 28px rgba(124,58,237,.42), 0 2px 8px rgba(0,0,0,.3);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.ix-ai-fab:hover { transform: scale(1.07) translateY(-2px); box-shadow: 0 12px 34px rgba(124,58,237,.5); }
.ix-ai-fab:active { transform: scale(.96); }
.ix-ai-fab.is-open i.fa-comment-dots { display: none; }
.ix-ai-fab:not(.is-open) i.fa-xmark { display: none; }

.ix-ai-fab-dot {
    position: absolute;
    top: 3px; right: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--color-bg);
    animation: ixPulse 2.4s ease-in-out infinite;
}
@keyframes ixPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.22); opacity: .72; }
}

.ix-ai-panel {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 959;
    width: min(400px, calc(100vw - 32px));
    /* dvh: mobil tarayıcıda adres çubuğu açılıp kapandıkça GERÇEK
       görünür yüksekliği verir. vh, adres çubuğunu da sayar ve panelin
       alt kısmı (yazma alanı) ekranın dışında kalır. */
    height: min(600px, calc(100vh - 140px));
    height: min(600px, calc(100dvh - 140px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
    animation: ixSlideUp .26s cubic-bezier(.2,.9,.3,1);
}
.ix-ai-panel.is-open { display: flex; }

/* ── Sürükleme tutamacı ─────────────────────────────────────
   Masaüstünde gizli. Mobilde panelin tepesinde durur; parmakla
   yukarı çekilince tam ekran, aşağı çekilince kapanır. Ayrıca
   tek dokunuşla tam ekran ↔ yarım ekran arasında geçiş yapar. */
.ix-ai-grip {
    display: none;
    width: 100%;
    padding: 9px 0 5px;
    border: 0;
    background: transparent;
    cursor: grab;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    touch-action: none;        /* sürükleme tarayıcıya kapılmasın */
    -webkit-tap-highlight-color: transparent;
}
.ix-ai-grip:active { cursor: grabbing; }
.ix-ai-grip-bar {
    width: 42px; height: 4px;
    border-radius: 999px;
    background: var(--color-border-hover);
    transition: background .18s, width .18s;
}
.ix-ai-grip:hover .ix-ai-grip-bar,
.ix-ai-grip:focus-visible .ix-ai-grip-bar { background: var(--color-primary); width: 54px; }

/* ── Panel açıkken arka planın kaydırılmasını durdur ────────
   Mobilde en can sıkıcı hata buydu: panel içinde parmakla
   kaydırmaya çalışırken arkadaki sayfa kayıyor, mesajlar
   yerinde duruyordu. Gövde sabitlenir, konum JS'te saklanır. */
body.ix-ai-locked {
    position: fixed;
    left: 0; right: 0;
    width: 100%;
    overflow: hidden;
}
@keyframes ixSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ix-ai-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    flex-shrink: 0;
}
.ix-ai-avatar {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--color-primary), #9333ea);
    color: #fff;
    font-size: .88rem;
    flex-shrink: 0;
}
.ix-ai-head-body { flex: 1; min-width: 0; }
.ix-ai-head-body strong { display: block; font-size: .86rem; font-weight: 680; }
.ix-ai-head-body span { display: block; font-size: .71rem; color: var(--color-text-muted); }
.ix-ai-head-actions { display: flex; gap: 3px; }
.ix-ai-icon-btn {
    width: 30px; height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: grid; place-items: center;
    font-size: .84rem;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.ix-ai-icon-btn:hover { background: var(--color-surface-hover); color: var(--color-text); }

/* İlerleme çubuğu — 2 saate ne kadar kaldı */
.ix-ai-progress {
    height: 3px;
    background: var(--color-surface-elevated);
    flex-shrink: 0;
}
.ix-ai-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

.ix-ai-body {
    flex: 1;
    min-height: 0;                    /* flex çocuğun taşmasını engeller */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;/* iOS'ta parmakla akıcı kaydırma */
    overscroll-behavior: contain;     /* kaydırma sayfaya taşmasın */
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.ix-msg { max-width: 86%; font-size: .875rem; line-height: 1.68; }
.ix-msg-user {
    align-self: flex-end;
    padding: 10px 14px;
    border-radius: 15px 15px 4px 15px;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,.24);
}
.ix-msg-ai {
    align-self: flex-start;
    padding: 11px 14px;
    border-radius: 15px 15px 15px 4px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.ix-msg-ai p { margin: 0 0 .65em; }
.ix-msg-ai p:last-child { margin-bottom: 0; }
.ix-msg-ai strong { color: var(--color-primary-light); font-weight: 660; }
.ix-msg-ai code {
    font-family: var(--font-mono);
    font-size: .84em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--color-surface-elevated);
}
.ix-msg-error {
    align-self: center;
    max-width: 100%;
    font-size: .8rem;
    text-align: center;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: rgba(239,68,68,.09);
    border: 1px solid rgba(239,68,68,.22);
    color: #f87171;
}

.ix-ai-empty {
    margin: auto;
    text-align: center;
    padding: 20px 8px;
}
.ix-ai-empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(139,92,246,.06));
    border: 1px solid rgba(124,58,237,.2);
    color: var(--color-primary-light);
}
.ix-ai-empty strong { display: block; font-size: .95rem; margin-bottom: 7px; }
.ix-ai-empty p { font-size: .82rem; color: var(--color-text-secondary); line-height: 1.65; margin: 0 0 14px; }

.ix-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ix-ai-chip {
    font-size: .76rem;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .18s, color .18s, transform .18s;
}
.ix-ai-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-1px);
}

/* Yazıyor göstergesi */
.ix-typing { display: flex; gap: 4px; align-self: flex-start; padding: 13px 16px; }
.ix-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-primary-light);
    animation: ixBounce 1.3s ease-in-out infinite;
}
.ix-typing span:nth-child(2) { animation-delay: .18s; }
.ix-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ixBounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: .35; }
    30%           { transform: translateY(-6px); opacity: 1; }
}

.ix-ai-foot {
    padding: 11px 13px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    flex-shrink: 0;
}
.ix-ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ix-ai-input {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: .86rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.ix-ai-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.ix-ai-send {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid; place-items: center;
    color: #fff;
    font-size: .9rem;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    transition: transform .18s, opacity .18s;
}
.ix-ai-send:hover:not(:disabled) { transform: scale(1.06); }
.ix-ai-send:disabled { opacity: .45; cursor: not-allowed; }

.ix-ai-note {
    font-size: .68rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 7px 0 0;
    line-height: 1.5;
}

/* ── AI TAM SAYFA ──────────────────────────────────────── */
.ix-ai-page {
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 18px;
    align-items: start;
}
.ix-ai-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
}
.ix-ai-convo {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: .82rem;
    line-height: 1.45;
    border: 1px solid transparent;
    transition: background .18s, border-color .18s, color .18s;
}
.ix-ai-convo:hover { background: var(--color-surface-hover); color: var(--color-text); }
.ix-ai-convo.is-active {
    background: rgba(124,58,237,.1);
    border-color: rgba(124,58,237,.26);
    color: var(--color-text);
}
.ix-ai-convo small { display: block; font-size: .69rem; color: var(--color-text-muted); margin-top: 3px; }

.ix-ai-main {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 40px);
    min-height: 480px;
    overflow: hidden;
}

/* ── KEŞİF MODLARI ─────────────────────────────────────── */
.ix-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
    gap: 14px;
}
.ix-mode {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color .22s, transform .22s;
}
.ix-mode:not(.is-locked):hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}
.ix-mode.is-locked { opacity: .52; }
.ix-mode-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    font-size: 1.12rem;
    margin-bottom: 13px;
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(139,92,246,.06));
    border: 1px solid rgba(124,58,237,.18);
    color: var(--color-primary-light);
}
.ix-mode h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -0.01em; }
.ix-mode p { margin: 0 0 6px; font-size: .85rem; line-height: 1.62; color: var(--color-text-secondary); }
.ix-mode .ix-mode-hint {
    font-size: .76rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 15px;
}
.ix-mode form, .ix-mode > .btn { margin-top: auto; }

/* Kilit paneli */
.ix-lock {
    background: linear-gradient(135deg, rgba(124,58,237,.09), rgba(139,92,246,.03));
    border: 1px solid rgba(124,58,237,.22);
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
    margin-bottom: 22px;
}
.ix-lock-icon {
    width: 56px; height: 56px;
    margin: 0 auto 15px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    background: rgba(124,58,237,.14);
    color: var(--color-primary-light);
}
.ix-lock h3 { margin: 0 0 9px; font-size: 1.12rem; }
.ix-lock p { margin: 0 auto 18px; max-width: 54ch; font-size: .88rem; line-height: 1.7; color: var(--color-text-secondary); }

.ix-progress-wrap { max-width: 340px; margin: 0 auto; }
.ix-progress-track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    overflow: hidden;
}
.ix-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.ix-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    color: var(--color-text-muted);
    margin-top: 7px;
    font-variant-numeric: tabular-nums;
}

/* Uyarı şeridi — çöpçatan değil */
.ix-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: .84rem;
    line-height: 1.65;
    margin-bottom: 20px;
    background: rgba(245,158,11,.07);
    border: 1px solid rgba(245,158,11,.2);
    color: var(--color-text-secondary);
}
.ix-notice i { color: var(--color-accent); font-size: .95rem; margin-top: 2px; flex-shrink: 0; }
.ix-notice strong { color: var(--color-text); }
.ix-notice.is-info { background: rgba(59,130,246,.07); border-color: rgba(59,130,246,.2); }
.ix-notice.is-info i { color: var(--color-info); }
.ix-notice.is-danger { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.22); }
.ix-notice.is-danger i { color: var(--color-error); }

/* ── EŞLEŞME KARTLARI ──────────────────────────────────── */
.ix-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.ix-match {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color .22s, transform .22s;
}
.ix-match:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.ix-match-rank {
    position: absolute;
    top: 14px; right: 16px;
    font-size: .7rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(124,58,237,.1);
    color: var(--color-primary-light);
}
.ix-match-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.ix-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(124,58,237,.24);
}
.ix-avatar-fallback {
    width: 52px; height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid; place-items: center;
    font-weight: 750;
    font-size: 1rem;
    color: var(--color-primary-light);
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(139,92,246,.06));
    border: 2px solid rgba(124,58,237,.2);
}
.ix-match-name {
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ix-match-name:hover { color: var(--color-primary-light); }
.ix-match-name .fa-circle-check { color: var(--color-primary-light); font-size: .78rem; }
.ix-match-sub { font-size: .77rem; color: var(--color-text-muted); margin-top: 3px; }

.ix-reasons { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.ix-reasons li {
    display: flex;
    gap: 8px;
    font-size: .81rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
}
.ix-reasons li::before {
    content: "→";
    color: var(--color-primary-light);
    flex-shrink: 0;
    font-weight: 700;
}

.ix-match-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.ix-tag {
    font-size: .71rem;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}
.ix-match-actions { margin-top: auto; display: flex; gap: 8px; }

/* ── ANA SAYFA: KONULAR & YENİ ÜYELER ─────────────────── */
.ix-topic {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .18s;
}
.ix-topic:hover { border-color: var(--color-primary); transform: translateX(3px); }
.ix-topic + .ix-topic { margin-top: 8px; }
.ix-topic-body { flex: 1; min-width: 0; }
.ix-topic-title {
    display: block;
    font-size: .9rem;
    font-weight: 640;
    line-height: 1.4;
    margin-bottom: 4px;
}
.ix-topic-meta {
    font-size: .74rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
}
.ix-topic-type {
    font-size: .68rem;
    font-weight: 650;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.ix-topic-type[data-t="araniyor"]     { background: rgba(245,158,11,.11); color: var(--color-accent); }
.ix-topic-type[data-t="hizmet"]       { background: rgba(124,58,237,.11); color: var(--color-primary-light); }
.ix-topic-type[data-t="ogretiliyor"]  { background: rgba(34,197,94,.11);  color: var(--ix-teach); }
.ix-topic-type[data-t="ogrenilmek"]   { background: rgba(59,130,246,.11); color: var(--ix-learn); }
.ix-topic-type[data-t="isbirligi"]    { background: rgba(236,72,153,.11); color: var(--ix-collab); }
.ix-topic-type[data-t="tartisma"]     { background: var(--color-surface-elevated); color: var(--color-text-muted); }

.ix-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}
.ix-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}
.ix-member:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.ix-member strong { font-size: .85rem; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.ix-member span { font-size: .72rem; color: var(--color-text-muted); line-height: 1.45; }

/* ── FORM BİLEŞENLERİ (v3) ─────────────────────────────── */
.ix-field { margin-bottom: 16px; }
.ix-field > label {
    display: block;
    font-size: .8rem;
    font-weight: 620;
    margin-bottom: 6px;
    color: var(--color-text);
}
.ix-field-note {
    font-size: .76rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 5px 0 0;
}
.ix-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.ix-input, .ix-select, .ix-textarea {
    width: 100%;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: .88rem;
    line-height: 1.5;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.ix-textarea { resize: vertical; min-height: 76px; }
.ix-input:focus, .ix-select:focus, .ix-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.13);
}
.ix-select { cursor: pointer; }
.ix-select optgroup { font-weight: 700; color: var(--color-primary-light); background: var(--color-surface); }
.ix-select option { color: var(--color-text); background: var(--color-bg); padding: 4px; }

/* Aç/kapa anahtarı */
.ix-toggle {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    border-radius: var(--radius);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ix-toggle:hover { border-color: var(--color-border-hover); }
.ix-toggle + .ix-toggle { margin-top: 10px; }
.ix-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ix-switch {
    width: 42px; height: 24px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    position: relative;
    transition: background .22s, border-color .22s;
    margin-top: 1px;
}
.ix-switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: transform .22s cubic-bezier(.34,1.4,.64,1), background .22s;
}
.ix-toggle input:checked ~ .ix-switch {
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    border-color: transparent;
}
.ix-toggle input:checked ~ .ix-switch::after { transform: translateX(18px); background: #fff; }
.ix-toggle input:focus-visible ~ .ix-switch { box-shadow: 0 0 0 3px rgba(124,58,237,.22); }
.ix-toggle-body strong { display: block; font-size: .87rem; font-weight: 640; margin-bottom: 3px; }
.ix-toggle-body p { margin: 0; font-size: .78rem; line-height: 1.6; color: var(--color-text-secondary); }

/* Onay kutusu ızgarası (niyet seçimi) */
.ix-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    gap: 8px;
}
.ix-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: .82rem;
    transition: border-color .18s, background .18s;
}
.ix-check:hover { border-color: var(--color-border-hover); }
.ix-check input { accent-color: var(--color-primary); width: 16px; height: 16px; cursor: pointer; }
.ix-check:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(124,58,237,.06);
}
.ix-check i { font-size: .84em; opacity: .8; }

/* Kaydırıcı (öz değerlendirme) */
.ix-range { display: flex; align-items: center; gap: 13px; }
.ix-range input[type="range"] {
    flex: 1;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    accent-color: var(--color-primary);
    cursor: pointer;
}
.ix-range output {
    min-width: 48px;
    text-align: center;
    font-size: .84rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: rgba(124,58,237,.1);
    color: var(--color-primary-light);
}

/* Açılır bölüm */
.ix-collapse {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-secondary);
    overflow: hidden;
}
.ix-collapse + .ix-collapse { margin-top: 10px; }
.ix-collapse > summary {
    padding: 13px 16px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 640;
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    user-select: none;
    transition: background .18s;
}
.ix-collapse > summary::-webkit-details-marker { display: none; }
.ix-collapse > summary:hover { background: var(--color-surface-hover); }
.ix-collapse > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: .68rem;
    color: var(--color-text-muted);
    transition: transform .22s;
}
.ix-collapse[open] > summary::after { transform: rotate(180deg); }
.ix-collapse[open] > summary { border-bottom: 1px solid var(--color-border); }
.ix-collapse-body { padding: 16px; }

/* Alan seçici (öğrenmek için bul) */
.ix-picker {
    max-height: 380px;
    overflow-y: auto;
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}
.ix-picker-group { padding: 8px 10px 4px; }
.ix-picker-group > b {
    display: block;
    font-size: .78rem;
    color: var(--color-primary-light);
    margin-bottom: 6px;
    letter-spacing: .01em;
}
.ix-picker-items { display: flex; flex-wrap: wrap; gap: 5px; }
.ix-picker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: border-color .16s, background .16s, color .16s;
}
.ix-picker-item input { display: none; }
.ix-picker-item:hover { border-color: var(--color-border-hover); }
.ix-picker-item:has(input:checked) {
    background: rgba(124,58,237,.13);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    font-weight: 600;
}

/* ── BOŞ DURUM (v3) ────────────────────────────────────── */
.ix-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
}
.ix-empty-icon {
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    background: rgba(124,58,237,.09);
    color: var(--color-primary-light);
}
.ix-empty strong { display: block; font-size: .96rem; margin-bottom: 7px; }
.ix-empty p { font-size: .85rem; color: var(--color-text-secondary); line-height: 1.7; max-width: 46ch; margin: 0 auto 16px; }

/* ── KİLİTLİ / GİZLİ PROFİL ────────────────────────────── */
.ix-gate {
    text-align: center;
    padding: 64px 24px;
    max-width: 520px;
    margin: 0 auto;
}
.ix-gate-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: grid; place-items: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(139,92,246,.05));
    border: 1px solid rgba(124,58,237,.2);
    color: var(--color-primary-light);
}
.ix-gate h1 { font-size: 1.4rem; margin: 0 0 12px; }
.ix-gate p { color: var(--color-text-secondary); font-size: .92rem; line-height: 1.75; margin: 0 0 24px; }
.ix-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── DUYARLI ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .ix-ai-page { grid-template-columns: 1fr; }
    .ix-ai-sidebar { position: static; max-height: none; }
    .ix-ai-main { height: auto; min-height: 520px; }
}

@media (max-width: 640px) {
    .ix-panel { padding: 18px 16px; }
    .ix-ai-fab {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 56px; height: 56px;    /* 44px'in altına inmez — parmakla isabet */
        font-size: 1.18rem;
    }

    /* ── Mobilde panel: alttan açılan yaprak (bottom sheet) ──
       Sağ alt köşede küçük bir kutu yerine ekranın altına yapışan,
       yukarı çekilebilen bir yüzey. Böylece hem yazma alanı hep
       görünür kalır hem de mesajlar rahatça kaydırılır. */
    .ix-ai-panel {
        right: 0; left: 0; bottom: 0;
        width: auto;
        max-width: none;
        height: 72vh;
        height: 72dvh;                 /* gerçek görünür yükseklik */
        max-height: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: 0; border-right: 0; border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transition: height .24s cubic-bezier(.2,.9,.3,1);
    }

    /* Tam ekran kipi — tutamaçtan yukarı çekince ya da büyüt düğmesiyle */
    .ix-ai-panel.is-full {
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    /* Parmakla sürüklenirken geçiş kapanır, hareket ele yapışsın */
    .ix-ai-panel.is-dragging { transition: none; }

    .ix-ai-grip { display: flex; }

    /* Panel açıkken düğme aşağı kayar, yaprağın altında kalmasın */
    .ix-ai-fab.is-open { opacity: 0; pointer-events: none; }

    /* Dokunma hedefleri: 30px parmakla ıskalanır */
    .ix-ai-icon-btn { width: 40px; height: 40px; font-size: .95rem; }
    .ix-ai-input { font-size: 16px; }  /* iOS 16px altında sayfayı zoomlar */
    .ix-ai-send { width: 42px; height: 42px; }
    .ix-summary { grid-template-columns: repeat(3, 1fr); }
    .ix-comp { padding: 15px 16px; }
    .ix-cycle { gap: 5px; }
    .ix-cycle-step { padding: 5px 11px; font-size: .71rem; }
    .ix-cycle-arrow { display: none; }
    .ix-member-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .ix-ai-panel, .ix-typing span, .ix-ai-fab-dot { animation: none; }
    .ix-domain-card:hover, .ix-mode:hover, .ix-match:hover,
    .ix-member:hover, .ix-topic:hover { transform: none; }
}

/* Aydınlık tema ince ayarları — hiçbir yüzey "çıplak beyaz" kalmaz */
[data-theme="light"] .ix-msg-ai { background: #f1f5f9; }
[data-theme="light"] .ix-ai-panel { box-shadow: 0 24px 64px rgba(15,23,42,.16), 0 4px 16px rgba(15,23,42,.08); }
[data-theme="light"] .ix-score-track,
[data-theme="light"] .ix-progress-track { background: #e2e8f0; }
[data-theme="light"] .ix-switch::after { background: #94a3b8; }
[data-theme="light"] .ix-msg-error { color: #b91c1c; }

/* ════════════════════════════════════════════════════════════
   AYDINLIK TEMA — v3 BİLEŞEN NETLİĞİ

   Aydınlık tema sitenin VARSAYILANI olduğu için, yüzeylerin
   birbirinden ayrıştığından emin olmak gerekir. Beyaz üstüne
   beyaz kart konmaz: zemin hafifçe soğutulur, kartlar yumuşak
   bir gölge ve biraz daha koyu bir kenarlıkla ayrılır.
   ════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    --color-bg: #f4f6fa;            /* zemin biraz daha derin */
    --color-bg-secondary: #eef1f7;  /* iç yüzeyler */
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-surface-elevated: #e4e9f2;
    --color-border: rgba(15,23,42,.10);
    --color-border-hover: rgba(15,23,42,.20);
    --color-text-muted: #64748b;    /* daha okunur */
}

/* Kartlara derinlik — gölge, çerçeveden daha iyi ayırır */
[data-theme="light"] .ix-panel,
[data-theme="light"] .ix-comp,
[data-theme="light"] .ix-mode,
[data-theme="light"] .ix-match,
[data-theme="light"] .ix-member,
[data-theme="light"] .ix-domain-card,
[data-theme="light"] .ix-topic,
[data-theme="light"] .ix-ai-sidebar,
[data-theme="light"] .ix-ai-main {
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.04);
}

[data-theme="light"] .ix-panel:hover,
[data-theme="light"] .ix-domain-card:hover,
[data-theme="light"] .ix-mode:not(.is-locked):hover,
[data-theme="light"] .ix-match:hover,
[data-theme="light"] .ix-member:hover,
[data-theme="light"] .ix-topic:hover {
    box-shadow: 0 2px 4px rgba(124,58,237,.06), 0 10px 24px rgba(124,58,237,.09);
}

/* İç yüzeyler (kanal, kanıt, belge satırları) zemine göre koyulaşır */
[data-theme="light"] .ix-channel,
[data-theme="light"] .ix-site,
[data-theme="light"] .ix-cert,
[data-theme="light"] .ix-evidence-item,
[data-theme="light"] .ix-toggle,
[data-theme="light"] .ix-collapse,
[data-theme="light"] .ix-summary-cell {
    background: #f7f9fc;
}
[data-theme="light"] .ix-summary { background: rgba(15,23,42,.08); }

/* Form alanları beyaz kalır, çerçeve netleşir */
[data-theme="light"] .ix-input,
[data-theme="light"] .ix-select,
[data-theme="light"] .ix-textarea,
[data-theme="light"] .ix-check,
[data-theme="light"] .ix-picker,
[data-theme="light"] .ix-picker-item {
    background: #ffffff;
    border-color: rgba(15,23,42,.14);
}

/* Skor ve ilerleme çubukları */
[data-theme="light"] .ix-score-track,
[data-theme="light"] .ix-progress-track,
[data-theme="light"] .ix-ai-progress { background: #dde3ee; }
[data-theme="light"] .ix-score-tag { background: #eef1f7; color: #64748b; }

/* Manifesto başlığı — gradyan aydınlıkta soluk kalmasın */
[data-theme="light"] .ix-manifesto blockquote {
    background: linear-gradient(120deg, #1e1b4b 35%, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Döngü adımları */
[data-theme="light"] .ix-cycle-step { background: #ffffff; }

/* AI balonu ve paneli */
[data-theme="light"] .ix-ai-head,
[data-theme="light"] .ix-ai-foot { background: #f7f9fc; }
[data-theme="light"] .ix-msg-ai { background: #f1f4f9; border-color: rgba(15,23,42,.08); }
[data-theme="light"] .ix-ai-input { background: #ffffff; }
[data-theme="light"] .ix-ai-chip { background: #ffffff; }
[data-theme="light"] .ix-ai-fab-dot { border-color: #f4f6fa; }

/* Boş durum ve kapı ekranları */
[data-theme="light"] .ix-empty { background: #f7f9fc; border-color: rgba(15,23,42,.12); }

/* Rozet ve etiketler */
[data-theme="light"] .ix-tag,
[data-theme="light"] .ix-account { background: #f4f6fa; }
[data-theme="light"] .ix-topic-type[data-t="tartisma"] { background: #e8ecf4; color: #64748b; }

/* Admin tabloları */
[data-theme="light"] table thead tr { background: #eef1f7 !important; }

/* Kimlik başlığındaki kalite kutusu */
[data-theme="light"] .ix-avatar-fallback {
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(139,92,246,.05));
}

/* ── DÜZELTME: Hero başlığı aydınlık temada okunmuyordu ──────
   .hero h1 gradyanı "white"tan başlıyor; aydınlık zeminde
   metin görünmez hâle geliyordu. Aydınlık temada koyu bir
   lacivertten mora geçen bir gradyan kullanılır.            */
[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #0f172a 30%, #6d28d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero h1 .highlight {
    background: linear-gradient(135deg, #6d28d9, #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tarayıcı gradyan-metni desteklemezse metin kaybolmasın */
@supports not (-webkit-background-clip: text) {
    .hero h1, .hero h1 .highlight, .ix-manifesto blockquote {
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
        color: var(--color-text) !important;
    }
    .hero h1 .highlight { color: var(--color-primary-light) !important; }
}

/* ============================================================
   HATA SAYFALARI (404 / 500)
   Ana yerleşimden bağımsız çalışır ama aynı temayı kullanır.
   ============================================================ */
body.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--color-bg);
    color: var(--color-text);
}

.error-container {
    width: 100%;
    max-width: 520px;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 48px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.error-container .error-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    text-decoration: none;
    margin-bottom: 20px;
}

.error-container h1 {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-container h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: var(--color-text);
}

.error-container p {
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0 0 8px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ════════════════════════════════════════════════════════════
   v3 — PROFİL YÖNETİM ALANI VE DİZİN SAYFALARI
   Tüm renkler tema değişkenlerinden gelir; aydınlık/koyu ortak.
   ════════════════════════════════════════════════════════════ */

/* ── Ortak başlık ── */
.ix-sub-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 14px;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.ix-sub-title i { color: var(--color-primary-light); font-size: .95rem; }

/* ── Sekme çubuğu ── */
.ix-ws-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    margin: 4px 0 22px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    scrollbar-width: thin;
}
.ix-ws-nav::-webkit-scrollbar { height: 6px; }
.ix-ws-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.ix-ws-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: .84rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s, color .16s;
}
.ix-ws-tab i { font-size: .82rem; opacity: .85; }
.ix-ws-tab:hover { background: var(--color-surface); color: var(--color-text); }
.ix-ws-tab.is-active {
    background: var(--color-primary);
    color: #fff;
}
.ix-ws-tab.is-active i { opacity: 1; }

/* ── İki sütun ── */
.ix-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

/* ── Basit liste ── */
.ix-item-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ix-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .16s;
}
.ix-item:hover { border-color: var(--color-primary); }
.ix-item-body { display: flex; flex-direction: column; gap: 2px; }
.ix-item-body strong { font-size: .9rem; }
.ix-item-body span { font-size: .78rem; color: var(--color-text-muted); }
.ix-item > i { color: var(--color-text-muted); font-size: .76rem; }

/* ── Tamamlanma adımları ── */
.ix-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.ix-step {
    display: flex;
    gap: 11px;
    padding: 12px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .16s;
}
.ix-step:hover { border-color: var(--color-primary); }
.ix-step-mark i { color: var(--color-text-muted); font-size: .95rem; }
.ix-step.is-done .ix-step-mark i { color: #22c55e; }
.ix-step-body { display: flex; flex-direction: column; gap: 3px; }
.ix-step-body strong { font-size: .87rem; }
.ix-step-body span { font-size: .77rem; color: var(--color-text-muted); line-height: 1.45; }
.ix-step.is-done .ix-step-body strong { color: var(--color-text-secondary); }

/* ── Hızlı giriş kartları ── */
.ix-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}
.ix-quick {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform .16s, border-color .16s;
}
.ix-quick:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.ix-quick i { font-size: 1.1rem; color: var(--color-primary-light); }
.ix-quick strong { font-size: .95rem; }
.ix-quick span { font-size: .8rem; color: var(--color-text-muted); line-height: 1.55; }

/* ── Nasıl işler / SSS kartları ── */
.ix-howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.ix-howto {
    position: relative;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.ix-howto h3 { margin: 0 0 8px; font-size: .95rem; }
.ix-howto p { margin: 0; font-size: .84rem; line-height: 1.65; color: var(--color-text-secondary); }
.ix-howto-no {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

/* ── Filtre çubuğu ── */
.ix-filter { margin: 18px 0 22px; }
.ix-filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}
.ix-filter-search i { color: var(--color-text-muted); font-size: .88rem; }
.ix-filter-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: .92rem;
    font-family: inherit;
    padding: 6px 0;
}
.ix-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.ix-filter-row-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.ix-filter-row-scroll::-webkit-scrollbar { height: 5px; }
.ix-filter-row-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.ix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s, color .16s;
}
.ix-chip:hover { border-color: var(--color-primary); color: var(--color-text); }
.ix-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.ix-chip-count {
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.10);
    font-size: .72rem;
}
[data-theme="light"] .ix-chip-count { background: rgba(0,0,0,.06); }
.ix-chip.is-active .ix-chip-count { background: rgba(255,255,255,.22); }

/* ── Dizin kartları ── */
.ix-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 14px;
}
.ix-dir-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color .16s, transform .16s;
}
.ix-dir-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.ix-dir-person { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ix-dir-person-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ix-dir-person-body strong { font-size: .88rem; display: flex; align-items: center; gap: 5px; }
.ix-dir-person-body strong i { color: var(--color-primary-light); font-size: .76rem; }
.ix-dir-person-body > span {
    font-size: .74rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ix-dir-title { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ix-dir-scores { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ix-dir-years { font-size: .78rem; font-weight: 700; color: var(--color-text-secondary); white-space: nowrap; }
.ix-dir-desc { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--color-text-secondary); }
.ix-dir-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 11px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.ix-dir-mode { font-size: .76rem; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 5px; }

.ix-price-free { color: #22c55e; border-color: rgba(34,197,94,.35); }
.ix-price-paid { color: var(--color-accent); border-color: rgba(245,158,11,.35); }
.ix-price-neg  { color: #3b82f6; border-color: rgba(59,130,246,.35); }
.ix-price-dep  { color: var(--color-primary-light); border-color: rgba(124,58,237,.4); }

/* ── Kategori dalları ── */
.ix-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}
.ix-branch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.ix-branch-head { display: flex; flex-direction: column; gap: 3px; }
.ix-branch-head h3 { margin: 0; font-size: .96rem; }
.ix-branch-meta { font-size: .76rem; color: var(--color-text-muted); }
.ix-leaf-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-leaf {
    padding: 5px 10px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: .76rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: border-color .16s, color .16s;
}
.ix-leaf:hover { border-color: var(--color-primary); color: var(--color-text); }
.ix-branch-link {
    margin-top: auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ix-domain-card.is-active { border-color: var(--color-primary); }

/* ── Etiket bulutu ── */
.ix-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

/* ── Yetkinlik paneli (açılır) ── */
.ix-comp-panel { padding: 0; overflow: hidden; }
.ix-comp-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}
.ix-comp-summary::-webkit-details-marker { display: none; }
.ix-comp-summary-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ix-comp-summary-main strong { font-size: .98rem; }
.ix-comp-summary-meta { font-size: .78rem; color: var(--color-text-muted); }
.ix-comp-summary > i { color: var(--color-text-muted); font-size: .8rem; transition: transform .18s; }
.ix-comp-panel[open] .ix-comp-summary > i { transform: rotate(180deg); }
.ix-comp-body { padding: 0 22px 22px; border-top: 1px solid var(--color-border); padding-top: 18px; }
.ix-score-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ix-score-fill.is-ai { background: linear-gradient(90deg, #3b82f6, #22c55e); }
.ix-score-tag.is-ai { color: #22c55e; border-color: rgba(34,197,94,.35); }

/* ── Portföy üretimleri ── */
.ix-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.ix-work {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.ix-work-kind {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.ix-work h3 { margin: 0; font-size: .98rem; }
.ix-work-meta { margin: 0; font-size: .76rem; color: var(--color-text-muted); }
.ix-work-desc { margin: 0; font-size: .83rem; line-height: 1.6; color: var(--color-text-secondary); }
.ix-work-link {
    margin-top: auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Site satırı ── */
.ix-site-icon { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.ix-account-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ix-account-body strong { font-size: .86rem; }
.ix-account-body a {
    font-size: .77rem;
    color: var(--color-text-muted);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── AI değerlendirme ── */
.ix-assess {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.ix-assess:last-child { border-bottom: none; }
.ix-assess-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ix-assess-head strong { font-size: .95rem; margin-right: 6px; }
.ix-assess-bars { display: flex; flex-direction: column; gap: 8px; }
.ix-assess-bar { display: flex; align-items: center; gap: 10px; }
.ix-assess-bar-label {
    width: 108px;
    flex-shrink: 0;
    font-size: .76rem;
    color: var(--color-text-muted);
}
.ix-assess-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ── Ayar anahtarı satırı ── */
.ix-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.ix-toggle-row:last-of-type { border-bottom: none; }
.ix-toggle-row .ix-toggle-body { display: flex; flex-direction: column; gap: 5px; }
.ix-toggle-row .ix-toggle-body strong { font-size: .93rem; }
.ix-toggle-row .ix-toggle-body span { font-size: .82rem; line-height: 1.6; color: var(--color-text-secondary); }

/* ── Vurgulu uyarı ── */
.ix-notice-strong {
    border-color: rgba(245,158,11,.4);
    background: rgba(245,158,11,.06);
}

@media (max-width: 720px) {
    .ix-ws-nav {
        border-radius: var(--radius);
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .ix-assess-bar-label { width: 84px; }
    .ix-comp-summary, .ix-comp-body { padding-left: 16px; padding-right: 16px; }
}

/* Davet kodu */
.ix-invite-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-primary-light);
}

/* İstatistik çubuk listesi */
.ix-bar-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ix-bar-row { display: flex; align-items: center; gap: 12px; }
.ix-bar-label {
    width: 190px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    color: var(--color-text-secondary);
}
.ix-bar-value {
    width: 56px;
    flex-shrink: 0;
    text-align: right;
    font-size: .84rem;
    font-weight: 700;
    color: var(--color-text);
}
@media (max-width: 640px) {
    .ix-bar-label { width: 130px; font-size: .78rem; }
}

/* ── Profil avatarı ─────────────────────────────────────────
   Baş harfler her zaman altta durur; fotoğraf yüklenirse üstünü
   kapatır, yüklenemezse kendini kaldırır ve harfler görünür kalır. */
.ix-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid rgba(124,58,237,.28);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    overflow: hidden;
}
.ix-avatar-initials {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    user-select: none;
}
.ix-avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menü içi rol etiketi ve sahip bağlantısı */
.nav-dropdown-label {
    padding: 8px 14px 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.nav-dropdown-owner { color: var(--color-accent) !important; }
.nav-dropdown-owner i { color: var(--color-accent) !important; }

/* ── Yönetim panelleri ─────────────────────────────────────── */
.ix-panel-nav { border-color: rgba(245,158,11,.28); }
.ix-panel-nav-sep {
    width: 1px;
    align-self: stretch;
    margin: 4px 6px;
    background: var(--color-border);
}
.ix-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(124,58,237,.18));
    border: 1px solid rgba(245,158,11,.4);
    color: var(--color-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ix-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.ix-kpi {
    padding: 16px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.ix-kpi b {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}
.ix-kpi span {
    display: block;
    margin-top: 4px;
    font-size: .73rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.ix-kpi.is-alert b { color: var(--color-error); }
.ix-kpi.is-good  b { color: #22c55e; }

.ix-health { display: flex; flex-direction: column; gap: 8px; }
.ix-health-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.ix-health-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ix-health-dot.iyi   { background: #22c55e; }
.ix-health-dot.uyari { background: var(--color-accent); }
.ix-health-dot.hata  { background: var(--color-error); }
.ix-health-row strong { font-size: .85rem; flex: 1; }
.ix-health-row span   { font-size: .78rem; color: var(--color-text-muted); }

/* Veri tablosu */
.ix-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.ix-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.ix-table th {
    position: sticky; top: 0;
    padding: 11px 14px;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.ix-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.ix-table tbody tr:last-child td { border-bottom: none; }
.ix-table tbody tr:hover { background: var(--color-bg-secondary); }
.ix-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.ix-role {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.ix-role-owner     { background: rgba(245,158,11,.16); color: var(--color-accent); }
.ix-role-admin     { background: rgba(124,58,237,.16); color: var(--color-primary-light); }
.ix-role-moderator { background: rgba(59,130,246,.16); color: #3b82f6; }
.ix-role-user      { background: var(--color-bg-secondary); color: var(--color-text-muted); }

.ix-yes { color: #22c55e; }
.ix-no  { color: var(--color-error); }

/* ============================================================
   ŞİKÂYET SİSTEMİ  (v3.2)
   Tema değişkenleriyle çalışır; sabit renk kodu kullanılmaz.
   ============================================================ */

/* --- Tetikleyici düğme: sessiz dursun, dikkat çekmesin --- */
.ix-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: .76rem;
    font-family: inherit;
    padding: 5px 12px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.ix-report-btn:hover {
    color: var(--color-error);
    border-color: var(--color-error);
    background: color-mix(in srgb, var(--color-error) 8%, transparent);
}
.ix-report-btn i { font-size: .72rem; }

/* --- Örtü --- */
.ix-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px 16px;
    overflow-y: auto;
}
.ix-report-overlay[hidden] { display: none; }

/* --- Pencere --- */
.ix-report-modal {
    width: 100%;
    max-width: 560px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: ixReportIn .18s ease-out;
}
@keyframes ixReportIn {
    from { opacity: 0; transform: translateY(-10px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.ix-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--color-border);
}
.ix-report-head h2 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--color-text);
}
.ix-report-target {
    margin: 4px 0 0;
    font-size: .8rem;
    color: var(--color-text-secondary);
}
.ix-report-close {
    background: none;
    border: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
}
.ix-report-close:hover { color: var(--color-text); background: var(--color-surface-hover); }

.ix-report-body { padding: 16px 20px 18px; }

.ix-report-intro {
    font-size: .82rem;
    color: var(--color-text-secondary);
    margin: 0 0 14px;
    line-height: 1.55;
}

/* --- Neden grupları --- */
.ix-report-reasons[hidden] { display: none; }

.ix-report-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px 8px;
    margin: 0 0 10px;
}
.ix-report-group legend {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    padding: 0 6px;
    font-weight: 600;
}

.ix-report-reason {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .84rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    transition: background .15s ease, color .15s ease;
}
.ix-report-reason:hover { background: var(--color-surface-hover); color: var(--color-text); }
.ix-report-reason input { margin-top: 3px; accent-color: var(--color-primary); flex: 0 0 auto; }
.ix-report-reason:has(input:checked) { background: var(--color-surface-hover); color: var(--color-text); }

/* --- Açıklama --- */
.ix-report-field { margin-top: 14px; }
.ix-report-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.ix-report-req {
    font-size: .68rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-left: 4px;
}
.ix-report-field textarea {
    width: 100%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: .86rem;
    line-height: 1.5;
    padding: 10px 12px;
    resize: vertical;
    min-height: 90px;
}
.ix-report-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.ix-report-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: .74rem;
}
#ix-report-count { font-variant-numeric: tabular-nums; font-weight: 600; }
#ix-report-count.is-short { color: var(--color-error); }
#ix-report-count.is-ok    { color: var(--color-success); }
.ix-report-hint { color: var(--color-text-muted); }

/* --- Hata --- */
.ix-report-error {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--color-error) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-error) 40%, transparent);
    color: var(--color-error);
    font-size: .8rem;
    line-height: 1.45;
}
.ix-report-error[hidden] { display: none; }

/* --- Alt çubuk --- */
.ix-report-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

/* --- Onay şeridi --- */
.ix-report-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 9500;
    max-width: 460px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    font-size: .84rem;
    line-height: 1.5;
    padding: 12px 16px;
    animation: ixToastIn .2s ease-out;
}
.ix-report-toast.is-out { opacity: 0; transition: opacity .45s ease; }
@keyframes ixToastIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
    .ix-report-overlay { padding: 0; align-items: stretch; }
    .ix-report-modal   { max-width: 100%; border-radius: 0; border: 0; min-height: 100%; }
    .ix-report-reason  { font-size: .82rem; }
}

/* ============================================================
   ŞİKÂYET KUYRUĞU  (moderatör / yönetici panelleri)
   ============================================================ */

.ix-tab-count {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: var(--radius-full);
    background: var(--color-surface-elevated);
    color: var(--color-text-secondary);
    font-size: .68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}
.ix-ws-tab.is-active .ix-tab-count {
    background: var(--color-primary);
    color: #fff;
}

/* --- Kart --- */
.ix-report-card {
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.ix-report-card.is-acil    { border-left-color: var(--color-error); }
.ix-report-card.is-yuksek  { border-left-color: var(--color-warning); }
.ix-report-card.is-normal  { border-left-color: var(--color-info); }
.ix-report-card.is-dusuk   { border-left-color: var(--color-border); }

.ix-report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ix-report-card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.ix-report-neden { font-size: .9rem; color: var(--color-text); font-weight: 600; }

/* --- Önem rozeti --- */
.ix-onem {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ix-onem-acil   { background: color-mix(in srgb, var(--color-error) 18%, transparent);   color: var(--color-error); }
.ix-onem-yuksek { background: color-mix(in srgb, var(--color-warning) 18%, transparent); color: var(--color-warning); }
.ix-onem-normal { background: color-mix(in srgb, var(--color-info) 15%, transparent);    color: var(--color-info); }
.ix-onem-dusuk  { background: var(--color-surface-elevated);                             color: var(--color-text-muted); }

.ix-chip-warn {
    background: color-mix(in srgb, var(--color-warning) 15%, transparent);
    color: var(--color-warning);
    border-color: transparent;
}

/* --- Gövde --- */
.ix-report-card-body { display: flex; flex-direction: column; gap: 6px; }

.ix-report-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: .85rem;
    color: var(--color-text-secondary);
}
.ix-report-key {
    flex: 0 0 72px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    font-weight: 600;
}
.ix-report-line i { font-size: .78rem; opacity: .7; margin-right: 3px; }

.ix-report-quote {
    margin: 8px 0 2px;
    padding: 10px 14px;
    border-left: 2px solid var(--color-border);
    background: var(--color-bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--color-text);
}

.ix-report-verdict {
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    font-size: .8rem;
    color: var(--color-text-secondary);
}
.ix-report-verdict p { margin: 5px 0 0; color: var(--color-text); }

/* --- Karar formu --- */
.ix-report-verdict-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.ix-report-verdict-btns { display: flex; gap: 7px; flex-wrap: wrap; }

/* --- Sayfalama --- */
.ix-pager {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}
.ix-pager-link {
    min-width: 34px;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--color-text-secondary);
    transition: all .18s ease;
}
.ix-pager-link:hover { border-color: var(--color-primary); color: var(--color-text); }
.ix-pager-link.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

@media (max-width: 640px) {
    .ix-report-line { flex-direction: column; gap: 2px; }
    .ix-report-key  { flex: none; }
}

/* ═══════════════════════════════════════════════════════════
   v3.3 — PANEL GENİŞLETME
   Yönetici ve moderatör panellerinde kullanılan ek bileşenler.
   Renkler yalnızca değişkenlerden gelir; sabit renk kodu yoktur,
   böylece koyu ve aydınlık temada aynı biçimde çalışır.
   ═══════════════════════════════════════════════════════════ */

/* ── Rehber ve sınır listeleri ─────────────────────────────── */
.ix-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ix-list li {
    position: relative;
    padding: 7px 0 7px 20px;
    font-size: .86rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.ix-list li:last-child { border-bottom: 0; }
.ix-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-text-muted);
}
.ix-list li small {
    display: block;
    color: var(--color-text-muted);
    font-size: .78rem;
    margin-top: 2px;
}

/* ── Kuyruk karar formu (kanıt / itiraz) ───────────────────── */
.ix-review-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}
.ix-review-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 9px 11px;
    font: inherit;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    resize: vertical;
}
.ix-review-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.ix-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Dar ekranda karar düğmeleri tam genişlik alsın — yanlış
   düğmeye basmak, kuyrukta en pahalı hatadır. */
@media (max-width: 560px) {
    .ix-review-actions { flex-direction: column; }
    .ix-review-actions .btn { width: 100%; justify-content: center; }
}

/* ── Ölçüme itiraz (üye tarafı) ────────────────────────────── */
.ix-appeal {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
}
.ix-appeal > summary {
    cursor: pointer;
    font-size: .84rem;
    font-weight: 600;
    color: var(--color-text-muted);
    list-style: none;
}
.ix-appeal > summary::-webkit-details-marker { display: none; }
.ix-appeal > summary::before { content: "⚖ "; }
.ix-appeal[open] > summary { color: var(--color-text); margin-bottom: 8px; }
.ix-appeal textarea {
    width: 100%;
    margin-top: 6px;
    padding: 9px 11px;
    font: inherit;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    resize: vertical;
}
.ix-appeal textarea:focus { outline: none; border-color: var(--color-primary); }
.ix-appeal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── v3.4 · Aramalı kategori seçicisi ──────────────────────── */
.ix-cat-picker { position: relative; }

/* Betik çalışmadıysa arama kutusu görünmez, yedek liste kalır. */
.ix-cat-picker .ix-cat-input,
.ix-cat-picker .ix-cat-results,
.ix-cat-picker .ix-cat-chosen { display: none; }
.ix-cat-picker.is-live .ix-cat-input { display: block; }
.ix-cat-picker.is-live .ix-cat-results:not([hidden]) { display: block; }
.ix-cat-picker.is-live .ix-cat-chosen:not([hidden]) { display: flex; }
.ix-cat-picker.is-live .ix-cat-input[hidden] { display: none; }

.ix-cat-results {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.ix-cat-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font: inherit;
    color: var(--color-text);
}
.ix-cat-option:last-child { border-bottom: 0; }
.ix-cat-option:hover,
.ix-cat-option:focus {
    background: var(--color-bg);
    outline: none;
}
.ix-cat-name { display: block; font-size: .88rem; font-weight: 600; }
.ix-cat-path {
    display: block;
    font-size: .74rem;
    color: var(--color-text-muted);
    margin-top: 1px;
}
.ix-cat-empty {
    padding: 12px;
    font-size: .82rem;
    color: var(--color-text-muted);
}
.ix-cat-chosen {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 11px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    font-size: .88rem;
}
.ix-cat-chosen .ix-cat-path { display: inline; margin: 0; }
.ix-cat-clear {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.ix-cat-clear:hover { color: var(--color-text); }

/* ── v3.4 · Taksonomide dördüncü seviye ────────────────────── */
.ix-leaf-group { display: inline-block; }
.ix-leaf-group > summary {
    cursor: pointer;
    list-style: none;
}
.ix-leaf-group > summary::-webkit-details-marker { display: none; }
.ix-leaf-count {
    display: inline-block;
    margin-left: 5px;
    padding: 0 5px;
    font-size: .68rem;
    line-height: 1.5;
    border-radius: 999px;
    background: var(--color-border);
    color: var(--color-text-muted);
}
.ix-leaf-group[open] > summary .ix-leaf-count { background: var(--color-primary); color: #fff; }
.ix-twig-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin: 7px 0 10px;
    padding: 9px 11px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
}
.ix-twig {
    font-size: .76rem;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
}
.ix-twig:hover { color: var(--color-text); border-color: var(--color-primary); }
.ix-twig.is-parent { border-style: dashed; }

.ix-cat-child-slot {
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding: 9px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
}
.ix-cat-child-slot[hidden] { display: none; }
.ix-cat-tree-node {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 10px;
}
.ix-cat-tree-node > .ix-leaf { min-width: 0; border-radius: var(--radius-sm, 8px); }
.ix-cat-tree-node > .ix-cat-child-slot { grid-column: 1 / -1; }
.ix-cat-node-meta { font-size: .7rem; color: var(--color-text-muted); white-space: nowrap; }
.ix-cat-fallback-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ix-cat-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .8rem; }
.ix-cat-breadcrumb a { color: var(--color-primary-light); }
.ix-cat-tree-load[aria-busy="true"],
[data-cat-root][aria-busy="true"] { opacity: .6; cursor: wait; }
.ix-cat-tree-load:focus-visible, [data-cat-root]:focus-visible {
    outline: 3px solid rgba(124,58,237,.32);
    outline-offset: 2px;
}

/* ── v3.4 · Geri alınamaz işlem kutusu ─────────────────────── */
.ix-danger-panel {
    border-color: var(--color-error, #dc2626);
    border-width: 1px;
}
.ix-danger-panel .btn-danger {
    background: var(--color-error, #dc2626);
    border-color: var(--color-error, #dc2626);
    color: #fff;
}
.ix-danger-panel .btn-danger:hover { filter: brightness(1.08); }


/* ══════════════════════════════════════════════════════════
   MESAJLAŞMA — v3.6
   ══════════════════════════════════════════════════════════
   Dikkat: mobil ölçek bloğu bu dosyanın SONUNDA. Yeni bileşen
   tanımı oraya değil, buraya (ondan ÖNCE) yazılır — yoksa
   mobil düzeltmeler bileşen tarafından ezilir.
   ══════════════════════════════════════════════════════════ */

/* ── Yazışma listesi ─────────────────────────────────────── */
.ix-thread-list { display: flex; flex-direction: column; gap: 8px; }

.ix-thread {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, background .2s;
}
.ix-thread:hover { border-color: var(--color-primary); background: var(--color-surface-hover); }
.ix-thread.is-unread { border-left: 3px solid var(--color-primary); }

.ix-thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ix-thread-top  { display: flex; align-items: center; gap: 6px; }
.ix-thread-top strong { font-size: .94rem; }
.ix-thread-time { margin-left: auto; font-size: .72rem; color: var(--color-text-muted); }
.ix-thread-topic {
    font-size: .72rem;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ix-thread-snippet {
    font-size: .82rem;
    color: var(--color-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ix-thread-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--color-primary); flex-shrink: 0;
}

/* ── Sohbet ekranı ───────────────────────────────────────── */
.ix-chat-section { display: flex; flex-direction: column; gap: 12px; }

.ix-chat-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.ix-chat-back {
    font-size: 1.3rem; line-height: 1;
    color: var(--color-text-secondary);
    padding: 4px 8px; border-radius: var(--radius-sm);
}
.ix-chat-back:hover { background: var(--color-surface-hover); }
.ix-chat-who { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.ix-chat-city { font-size: .76rem; color: var(--color-text-muted); }
.ix-chat-block { margin-left: auto; }

.ix-chat-log {
    display: flex; flex-direction: column; gap: 8px;
    /* dvh: mobil tarayıcıda adres çubuğu kayarken yükseklik
       zıplamasın. AI panelinde de aynı sebeple kullanılıyor. */
    max-height: 58dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px;
}
.ix-chat-empty { color: var(--color-text-muted); text-align: center; padding: 32px 0; }

.ix-bubble {
    max-width: 78%;
    align-self: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px 14px 14px 4px;
    padding: 9px 12px;
}
.ix-bubble.is-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(124,58,237,.10));
    border-color: rgba(124,58,237,.30);
    border-radius: 14px 14px 4px 14px;
}
.ix-bubble.is-deleted { opacity: .55; font-style: italic; }
.ix-bubble p { font-size: .9rem; line-height: 1.5; margin: 0; word-break: break-word; }
.ix-bubble-img { max-width: 220px; border-radius: 10px; display: block; margin-bottom: 6px; }
.ix-bubble-file { display: inline-block; margin-bottom: 6px; font-size: .85rem; }
.ix-bubble-time {
    display: flex; align-items: center; gap: 8px;
    margin-top: 4px; font-size: .68rem; color: var(--color-text-muted);
}
.ix-bubble-del { display: inline; }
.ix-bubble-del button {
    background: none; border: none; padding: 0; cursor: pointer;
    font-size: .68rem; color: var(--color-text-muted); text-decoration: underline;
}
.ix-bubble-del button:hover { color: var(--color-error, #dc2626); }

/* ── Yazma kutusu ────────────────────────────────────────── */
.ix-chat-form {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}
.ix-chat-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 62px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--color-text);
    /* 16px altı, iOS Safari'de sayfayı yakınlaştırır. */
    font-size: 16px;
    font-family: inherit;
}
.ix-chat-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.ix-chat-form-row { display: flex; align-items: center; gap: 10px; }
.ix-chat-attach {
    cursor: pointer;
    font-size: .84rem;
    color: var(--color-text-secondary);
    padding: 8px 12px;
    border: 1px dashed var(--color-border-strong, rgba(255,255,255,.2));
    border-radius: var(--radius);
}
.ix-chat-attach:hover { color: var(--color-text); border-color: var(--color-primary); }
.ix-chat-form-row .btn { margin-left: auto; }

/* ── Üst menüdeki mesaj düğmesi ──────────────────────────── */
.nav-msg {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    flex-shrink: 0;
}
.nav-msg:hover { color: var(--color-text); background: var(--color-surface-hover); }
.nav-msg-badge {
    position: absolute; top: 1px; right: 1px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center;
    background: var(--color-primary); color: #fff;
    border-radius: 9px;
    font-size: .62rem; font-weight: 700; line-height: 1;
}
.mobile-menu .nav-msg-badge { position: static; margin-left: 6px; }

/* İlk mesaj karakter sayacı */
.ix-msg-count { font-size: .74rem; color: var(--color-text-muted); }
.ix-msg-count.is-ok { color: var(--color-success, #22c55e); }

/* ── Profil üzerindeki "Mesaj gönder" ────────────────────── */
.ix-msg-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }


/* ══════════════════════════════════════════════════════════
   MOBİL ÖLÇEK — DOSYANIN EN SONUNDA DURMASI ŞART
   ══════════════════════════════════════════════════════════

   Bu blok neden burada:

   Dosyanın 1770. satırındaki `@media (max-width: 768px)` bloğu,
   `ix-*` bileşenlerinin TANIMINDAN (2289+) ÖNCE geliyor. CSS'te
   eşit özgüllükte son yazılan kazanır — yani o medya sorgusuna
   yazılan her `ix-*` kuralı, birkaç yüz satır sonra sessizce
   eziliyordu. Mobil düzeltmeleri oraya yazmak, hiçbir şey
   yazmamakla aynı sonucu veriyor.

   Bu yüzden mobil ölçek düzeltmeleri dosyanın SONUNA konur.
   Buraya yeni kural eklerken de aynı kural geçerli: bu bloğun
   ALTINA `ix-*` bileşen tanımı yazma.

   Ne yapıyor: yalnızca ÖLÇÜ küçültüyor. Yazı boyu, iç boşluk ve
   simge kutusu telefona göre daralıyor; bilgi, sıra, renk ve
   emoji aynı kalıyor.
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Ana alan kartları ─────────────────────────────── */
    .ix-domain-card { padding: 11px 12px; gap: 10px; }
    .ix-domain-icon { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 9px; }
    .ix-domain-body strong { font-size: .9rem; }
    .ix-domain-body span   { font-size: .72rem; }

    /* ── Paneller ve manifesto ─────────────────────────── */
    .ix-panel { padding: 16px 14px; }
    .ix-manifesto blockquote { font-size: 1rem; line-height: 1.45; }
    .ix-manifesto p { font-size: .86rem; line-height: 1.55; }
    .ix-section-note { font-size: .78rem; line-height: 1.5; }

    /* ── Eşleşme / yetkinlik kartları ──────────────────── */
    .ix-match { padding: 14px; }
    .ix-match-grid { gap: 10px; }
    .ix-match-name { font-size: .92rem; }
    .ix-match-path { font-size: .72rem; }

    /* ── Yedi adımlı döngü ─────────────────────────────── */
    .ix-cycle { gap: 4px; }
    .ix-cycle-step { font-size: .62rem; padding: 4px 8px; }

    /* ── Yetkinlik / kanıt / belge listeleri ───────────── */
    .ix-comp-card, .ix-cert-card, .ix-site-card, .ix-channel-card { padding: 12px 13px; }
    .ix-kpi { padding: 12px 10px; }
    .ix-kpi b { font-size: 1.15rem; }
    .ix-kpi span { font-size: .68rem; }

    /* ── Tablolar ──────────────────────────────────────── */
    .ix-table th, .ix-table td { padding: 8px 9px; font-size: .78rem; }

    /* ── Mesajlaşma ────────────────────────────────────── */
    .ix-thread { padding: 11px 12px; gap: 10px; }
    .ix-thread-top strong { font-size: .88rem; }
    .ix-thread-snippet { font-size: .78rem; }
    .ix-bubble { max-width: 86%; padding: 8px 11px; }
    .ix-bubble p { font-size: .86rem; }
    .ix-bubble-img { max-width: 180px; }
    .ix-chat-log { max-height: 52dvh; }
    .ix-chat-head { gap: 8px; }
    .ix-chat-city { display: none; }
}

@media (max-width: 480px) {
    .ix-domain-card { padding: 10px 11px; gap: 9px; }
    .ix-domain-icon { width: 32px; height: 32px; font-size: .95rem; }
    .ix-domain-body strong { font-size: .86rem; }

    .ix-panel { padding: 14px 12px; }
    .ix-manifesto blockquote { font-size: .95rem; }
    .ix-match { padding: 12px; }
    .ix-kpi b { font-size: 1.05rem; }
}
