/* ======================================================================
   KEŞIF — Mission Control Stilleri
   Tema: NASA Mission Control / Holographic Glass / Deep Space
   ====================================================================== */

:root {
    /* Deep space arka plan katmanları */
    --bg:         #03060d;
    --bg-2:       #060a14;
    --surface:    #0b1220;
    --surface-2:  #111a2e;
    --surface-3:  #18233d;
    --border:     rgba(80, 130, 200, 0.18);
    --border-2:   rgba(120, 170, 230, 0.32);

    /* Tipografi renkleri */
    --text:       #e6eefb;
    --text-2:     #b8c7df;
    --muted:      #7088a8;

    /* NASA paleti */
    --nasa-blue:  #0b3d91;
    --nasa-red:   #fc3d21;
    --primary:    #2d7aee;
    --primary-h:  #1f5fbf;
    --accent:     #16c47f;
    --accent-h:   #0fa864;
    --warning:    #ffb547;
    --danger:     #ff4f63;
    --danger-h:   #c92a3b;
    --cyan:       #22d3ee;
    --neon:       #4cc9f0;
    --red-scan:   #ff5577;
    --green-pin:  #22c55e;

    /* Glow & efekt */
    --glow-cyan:  0 0 24px rgba(34, 211, 238, 0.35);
    --glow-blue:  0 0 18px rgba(45, 122, 238, 0.45);
    --glow-red:   0 0 18px rgba(252, 61, 33, 0.45);
    --glow-green: 0 0 18px rgba(34, 197, 94, 0.4);

    --radius:     14px;
    --radius-sm:  8px;
    --shadow:     0 8px 32px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255,255,255,0.04) inset;

    --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ─── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-display);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 122, 238, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(ellipse 50% 35% at 5% 95%, rgba(252, 61, 33, 0.06), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
    position: relative;
    overflow-x: hidden;
}

/* ─── Deep Space arka plan katmanları ─────────────────────────────── */
.bg-grid, .bg-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.bg-grid {
    background-image:
        linear-gradient(rgba(100, 150, 220, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 150, 220, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
}
.bg-stars {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55) 50%, transparent 100%),
        radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,0.45) 50%, transparent 100%),
        radial-gradient(1px 1px at 48% 32%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 67% 12%, rgba(255,255,255,0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 65%, rgba(255,255,255,0.55) 50%, transparent 100%),
        radial-gradient(1px 1px at 92% 22%, rgba(255,255,255,0.5) 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 35% 88%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 5% 52%, rgba(255,255,255,0.5) 50%, transparent 100%);
    opacity: 0.55;
    animation: starTwinkle 7s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
    0%   { opacity: 0.35; }
    100% { opacity: 0.7; }
}
.layout, .content, .sidebar { position: relative; z-index: 1; }

/* ─── Layout ────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────────────────────────────── */
.sidebar {
    width: 256px;
    background: linear-gradient(180deg, rgba(11,18,32,0.95), rgba(6,10,20,0.92));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(45, 122, 238, 0.08), 4px 0 32px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.35rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.brand::after {
    content: '';
    position: absolute;
    left: 1.25rem; right: 1.25rem; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: .35;
}
.brand-icon {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(45, 122, 238, 0.65), rgba(11, 61, 145, 0.3));
    color: #cfe5ff;
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.07),
        0 0 18px rgba(45, 122, 238, 0.45),
        inset 0 0 12px rgba(34, 211, 238, 0.18);
}
.brand-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.5);
    animation: brandPulse 2.6s ease-out infinite;
    pointer-events: none;
}
@keyframes brandPulse {
    0%   { transform: scale(.85); opacity: .7; }
    100% { transform: scale(1.25); opacity: 0; }
}
.brand strong {
    font-size: 1rem;
    letter-spacing: .12em;
    color: #e6eefb;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(45, 122, 238, 0.4);
}
.brand small {
    color: var(--neon);
    display: block;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-top: 2px;
}

/* SYS status pill in sidebar */
.sys-status {
    margin: .85rem 1rem 0;
    padding: .5rem .7rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.22);
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sys-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .8);
    flex-shrink: 0;
}
.sys-dot.pulse { animation: sysDotPulse 1.6s ease-in-out infinite; }
@keyframes sysDotPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, .8); }
    50%      { box-shadow: 0 0 18px rgba(34, 197, 94, 1), 0 0 28px rgba(34, 197, 94, .5); }
}
.sys-label { color: var(--muted); }
.sys-value { color: #4ade80; font-weight: 600; margin-left: auto; }

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    flex: 1;
    padding: 1rem .65rem;
}
.nav-section {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .85rem .85rem .35rem;
    opacity: .7;
}
.nav-section:first-child { padding-top: .2rem; }

.sidebar nav a {
    color: var(--text-2);
    text-decoration: none;
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .87rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: color .18s, background .18s, transform .18s;
    border-left: 2px solid transparent;
    position: relative;
}
.sidebar nav a .nav-icon {
    width: 18px;
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
    transition: color .18s, transform .18s;
    flex-shrink: 0;
}
.sidebar nav a > span:not(.nav-icon):not(.badge) {
    flex: 1;
}
.sidebar nav a:hover {
    background: linear-gradient(90deg, rgba(45,122,238,0.08), transparent);
    color: var(--text);
    transform: translateX(2px);
}
.sidebar nav a:hover .nav-icon { color: var(--neon); }
.sidebar nav a.active {
    background: linear-gradient(90deg, rgba(45,122,238,.18), rgba(45,122,238,.02));
    color: #cfe2ff;
    border-left-color: var(--neon);
    box-shadow: inset 0 0 18px rgba(45, 122, 238, 0.12);
}
.sidebar nav a.active .nav-icon { color: var(--neon); text-shadow: 0 0 10px rgba(76, 201, 240, .7); }

.badge {
    background: linear-gradient(135deg, var(--nasa-red), #d72d18);
    color: white;
    font-size: .68rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--font-mono);
    box-shadow: 0 0 12px rgba(252, 61, 33, 0.55);
    margin-left: auto;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: rgba(3, 6, 13, 0.55);
}
.sidebar-footer .user {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 0;
}
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--neon));
    display: grid; place-items: center;
    color: #03060d;
    font-weight: 700;
    font-size: .88rem;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(76, 201, 240, .35);
    flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-name { font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .12em;
}
.logout-btn {
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    transition: all .18s;
    flex-shrink: 0;
}
.logout-btn:hover {
    color: var(--nasa-red);
    border-color: rgba(252, 61, 33, 0.4);
    box-shadow: 0 0 12px rgba(252, 61, 33, 0.35);
}

/* ─── Content ───────────────────────────────────────────────────────── */
.content {
    flex: 1;
    padding: 1.75rem 2rem 2.5rem;
    overflow: auto;
    background: transparent;
    min-width: 0;
}

/* ─── Page header ───────────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 80px; height: 2px;
    background: linear-gradient(90deg, var(--neon), transparent);
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.7);
}
.page-header h1 {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text);
    text-shadow: 0 0 24px rgba(76, 201, 240, 0.18);
}
.page-eyebrow {
    color: var(--neon);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: .35rem;
    opacity: .85;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.page-eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--neon);
    box-shadow: 0 0 6px rgba(76, 201, 240, .8);
}
.page-title {
    margin: 0 0 .2rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text);
}
.page-subtitle { color: var(--muted); margin: 0; font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .8em; }

/* İçerik alanındaki metin linkleri — tarayıcı varsayılanı koyu temada
   okunmayan parlak mavi veriyordu. Butonlar (.btn) hariç tutulur. */
/* Metin linkleri. `.ref-cip` HARİÇ: o bir filtre kontrolü, link değil —
   dahil edilirse bu kural özgüllük (specificity) yarışını kazanıp aktif
   çipin yazı rengini cyan zemin üzerinde cyan yapıyor ve okunmaz oluyor. */
.content a:not(.btn):not(.ref-cip) {
    color: var(--neon);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(76, 201, 240, .45);
    transition: color .15s, text-decoration-color .15s;
}
.content a:not(.btn):not(.ref-cip):hover {
    color: #8fe0f7;
    text-decoration-color: #8fe0f7;
}
/* .muted paragrafı içindeki link biraz daha parlak olsun ki gri metinden ayrışsın */
.content .muted a:not(.btn) { color: #6cd4f5; font-weight: 500; }
.dot-sep { color: var(--border-2); margin: 0 .4rem; }

/* ─── Grid ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ─── Cards (glassmorphism) ─────────────────────────────────────────── */
.card {
    background:
        linear-gradient(180deg, rgba(17, 26, 46, 0.78), rgba(11, 18, 32, 0.72));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, .35), transparent);
    border-radius: 1px;
}
.card:hover {
    border-color: var(--border-2);
}
.card h3 { margin: 0 0 .85rem; font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; }
.card-baslik {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.card-baslik-ikon {
    color: var(--accent);
    font-size: 1rem;
}
.card-form { border-top: 2px solid var(--primary); }

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.3rem;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon), var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(76, 201, 240, 0.6);
}
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(76, 201, 240, 0.08), transparent 50%);
    pointer-events: none;
}
.stat-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin: .5rem 0 .25rem;
    color: var(--text);
    font-feature-settings: "tnum" 1;
    text-shadow: 0 0 24px rgba(76, 201, 240, 0.25);
    letter-spacing: -.02em;
}
.stat-card .label {
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-family: var(--font-mono);
}
.stat-card .trend { font-size: .8rem; color: var(--accent); margin-top: .25rem; font-family: var(--font-mono); }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all .18s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .55s;
    pointer-events: none;
}
.btn:hover::after { transform: translateX(100%); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled::after { display: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1a5dd5);
    color: white;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 18px rgba(45, 122, 238, 0.45);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a85f0, var(--primary));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 22px rgba(45, 122, 238, 0.65);
    transform: translateY(-1px);
}

.btn-accent {
    background: rgba(22,196,127,.12);
    color: #4ade80;
    border-color: rgba(22,196,127,.4);
    box-shadow: 0 0 0 0 rgba(22, 196, 127, 0);
}
.btn-accent:hover:not(:disabled) {
    background: rgba(22,196,127,.22);
    box-shadow: 0 0 18px rgba(22, 196, 127, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(23, 32, 48, 0.7);
    color: var(--text);
    border-color: var(--border-2);
    backdrop-filter: blur(6px);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(29, 42, 62, 0.85);
    border-color: var(--neon);
    box-shadow: 0 0 18px rgba(76, 201, 240, 0.22);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-h));
    color: white;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 18px rgba(252, 61, 33, 0.45);
}
.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6275, var(--danger));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 24px rgba(252, 61, 33, 0.65);
    transform: translateY(-1px);
}
.btn-sm { padding: .35rem .7rem; font-size: .78rem; }
.btn-tam { width: 100%; margin-top: .75rem; padding: .75rem; font-size: .92rem; }
.btn-ikon { font-size: .9rem; }

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form-grup { margin-bottom: .9rem; }
label {
    display: block;
    margin: 0 0 .35rem;
    color: var(--text-2);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.opsiyonel { color: var(--muted); font-weight: 400; }
input, select, textarea {
    width: 100%;
    padding: .65rem .8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(3, 6, 13, 0.55);
    color: var(--text);
    font-size: .88rem;
    font-family: var(--font-display);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon);
    background: rgba(3, 6, 13, 0.85);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.18), 0 0 18px rgba(76, 201, 240, 0.18);
}
textarea { min-height: 80px; resize: vertical; }
form .actions { margin-top: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
small.muted { color: var(--muted); font-size: .8rem; margin-top: .25rem; display: block; }

/* ─── Tables ────────────────────────────────────────────────────────── */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
th {
    color: var(--neon);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-family: var(--font-mono);
    background: rgba(11, 18, 32, 0.4);
    border-bottom-color: var(--border-2);
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(45, 122, 238, 0.05); }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table-wrap td .btn { margin: .1rem .15rem 0 0; }

/* ─── Tags ──────────────────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: .04em;
    background: rgba(112, 136, 168, 0.1);
    color: var(--text-2);
    border: 1px solid var(--border);
    text-transform: uppercase;
}
.tag.success { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); box-shadow: 0 0 12px rgba(34,197,94,.15); }
.tag.warning { background: rgba(255,181,71,.12); color: #fbbf24; border-color: rgba(255,181,71,.3); box-shadow: 0 0 12px rgba(255,181,71,.15); }
.tag.danger  { background: rgba(255,79,99,.12); color: #ff8a99; border-color: rgba(255,79,99,.3); box-shadow: 0 0 12px rgba(255,79,99,.18); }
.tag.info    { background: rgba(45,122,238,.12); color: #93c5fd; border-color: rgba(45,122,238,.3); box-shadow: 0 0 12px rgba(45,122,238,.15); }
.tag.accent  { background: rgba(22,196,127,.12); color: #4ade80; border-color: rgba(22,196,127,.3); }

/* ─── Alerts ────────────────────────────────────────────────────────── */
.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
    border: 1px solid var(--border);
    font-size: .9rem;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: .65rem;
}
.alert::before {
    content: '◆';
    font-size: .7rem;
    opacity: .7;
}
.alert-success { background: rgba(22,196,127,.1); border-color: rgba(22,196,127,.35); color: #6ee7b7; }
.alert-error   { background: rgba(255,79,99,.1); border-color: rgba(255,79,99,.35); color: #fda4af; }
.alert-info    { background: rgba(45,122,238,.1); border-color: rgba(45,122,238,.35); color: #93c5fd; }

/* ─── Progress ──────────────────────────────────────────────────────── */
.progress {
    height: 8px;
    background: rgba(3, 6, 13, 0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--neon), var(--accent));
    background-size: 200% 100%;
    transition: width .4s ease;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(76, 201, 240, 0.55);
    position: relative;
    animation: progressShimmer 3s linear infinite;
}
@keyframes progressShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Auth (NASA login terminal) ───────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 122, 238, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 35% at 0% 100%, rgba(252, 61, 33, 0.08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
.auth-card {
    position: relative;
    z-index: 2;
    width: min(440px, 92vw);
    background: linear-gradient(180deg, rgba(17, 26, 46, 0.85), rgba(11, 18, 32, 0.78));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 2.2rem 2rem 1.6rem;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 24px 64px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(45, 122, 238, 0.2);
}
.auth-card-genis { width: min(680px, 94vw); }
.auth-form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.auth-form-2col .form-grup-genis { grid-column: 1 / -1; }
.auth-form-2col .form-grup { margin-bottom: 0; }
@media (max-width: 540px) {
    .auth-form-2col { grid-template-columns: 1fr; }
}
.auth-kayit-cta {
    margin-top: 1rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(226, 232, 240, .65);
    letter-spacing: .04em;
}
.auth-kayit-link {
    margin: 0 .4rem;
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(212, 175, 55, .4);
}
.auth-kayit-link:hover { color: #f5e9c8; border-bottom-color: #f5e9c8; }
.auth-kayit-hint {
    display: block;
    margin-top: .25rem;
    font-size: .72rem;
    color: rgba(148, 163, 184, .7);
    font-family: var(--font-mono, JetBrains Mono, monospace);
    letter-spacing: .06em;
}
.kvkk-kutu {
    background: rgba(45, 122, 238, 0.06);
    border: 1px solid rgba(45, 122, 238, 0.18);
    border-radius: 8px;
    padding: .85rem 1rem;
}
.kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    cursor: pointer;
    font-size: .82rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, .8);
    text-transform: none;
    letter-spacing: 0;
}
.kvkk-label input[type="checkbox"] {
    margin-top: .2rem;
    width: 18px; height: 18px;
    accent-color: #d4af37;
    cursor: pointer;
}
.kvkk-label strong { color: #d4af37; font-weight: 600; }

/* ─── KOTA banner (sayfa başlığı) ──────────────────────────────────── */
.kota-banner {
    display: flex; gap: .85rem; flex-wrap: wrap;
    align-items: stretch;
}
.kota-band {
    display: flex; flex-direction: column; justify-content: center;
    padding: .55rem 1rem; min-width: 160px;
    background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(212,175,55,.02));
    border: 1px solid rgba(212,175,55,.32);
    border-radius: 10px;
}
.kota-band-hak { border-color: rgba(45, 122, 238, .35);
                 background: linear-gradient(180deg, rgba(45,122,238,.08), rgba(45,122,238,.02)); }
.kota-etiket {
    font-family: var(--font-mono, JetBrains Mono, monospace);
    font-size: .58rem; letter-spacing: .25em; opacity: .65; text-transform: uppercase;
}
.kota-deger {
    font-family: var(--font-mono, JetBrains Mono, monospace);
    font-size: 1.05rem; color: #d4af37; line-height: 1;
}
.kota-band-hak .kota-deger { color: #4cc9f0; }
.kota-aciklama { font-size: .68rem; opacity: .55; margin-top: 1px; }

/* ─── ALAN ÖZET KARTI (form içinde) ────────────────────────────────── */
.alan-ozet {
    margin: 1rem 0;
    padding: .75rem .9rem;
    border: 1px solid var(--border-2, rgba(255,255,255,.08));
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    transition: all .25s ease;
}
.alan-ozet-bos     { opacity: .65; }
.alan-ozet-uygun   { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.05); }
.alan-ozet-asildi  { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.08);
                     animation: alanUyari .6s ease; }
@keyframes alanUyari {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.alan-ozet-ic {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.alan-ozet-etiket {
    display: block; font-family: var(--font-mono, monospace);
    font-size: .58rem; letter-spacing: .2em; opacity: .65; text-transform: uppercase;
}
.alan-ozet-ic strong {
    display: block; margin-top: 2px; font-family: var(--font-mono, monospace);
    font-size: 1.1rem; color: #d4af37;
}
.alan-ozet-uygun .alan-ozet-ic strong  { color: #22c55e; }
.alan-ozet-asildi .alan-ozet-ic strong { color: #ef4444; }
.alan-ozet-durum {
    font-size: .78rem; letter-spacing: .04em; opacity: .8;
    font-family: var(--font-mono, monospace);
}
.btn-disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }

/* ─── KULLANIM REHBERİ (Bölgeler sayfası) ──────────────────────────── */
.rehber-kart {
    margin: 1rem 0;
    padding: 0;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(17,26,46,0.55), rgba(11,18,32,0.4)),
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,.08), transparent 55%);
    overflow: hidden;
    transition: border-color .2s ease;
}
.rehber-kart[open] { border-color: rgba(212,175,55,.5); }
.rehber-kart > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.1rem;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background .15s ease;
}
.rehber-kart[open] > summary { border-bottom-color: rgba(212,175,55,.18); }
.rehber-kart > summary::-webkit-details-marker { display: none; }
.rehber-kart > summary:hover { background: rgba(212,175,55,.04); }
.rehber-ikon {
    width: 26px; height: 26px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a2238;
    font-family: 'Georgia', serif; font-weight: 700; font-style: italic;
    font-size: 1.05rem;
}
.rehber-baslik {
    font-weight: 600;
    letter-spacing: .03em;
    color: #d4af37;
    font-size: .95rem;
}
.rehber-ozet-band {
    margin-left: auto;
    margin-right: .5rem;
    font-family: var(--font-mono, JetBrains Mono, monospace);
    font-size: .72rem;
    color: #94a3b8;
    letter-spacing: .04em;
}
.rehber-ozet-band strong { color: #d4af37; }
.rehber-ozet-admin {
    color: #4cc9f0 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .7rem;
}
.rehber-tikla {
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    opacity: .75;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 6px;
    color: #d4af37;
    background: rgba(212,175,55,.06);
    transition: background .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.rehber-kart > summary:hover .rehber-tikla {
    opacity: 1;
    background: rgba(212,175,55,.12);
}
.rehber-tikla::before { content: '▸ Göster'; }
.rehber-kart[open] .rehber-tikla::before { content: '▾ Gizle'; }

.rehber-icerik {
    padding: 1.1rem 1.3rem 1.3rem;
}
.rehber-giris {
    margin: 0 0 1.1rem;
    line-height: 1.55;
    color: #cbd5e1;
    font-size: .9rem;
    padding: .65rem .85rem;
    border-left: 3px solid rgba(212,175,55,.5);
    background: rgba(212,175,55,.04);
    border-radius: 0 8px 8px 0;
}
.rehber-giris strong { color: #d4af37; }
.rehber-giris em { color: #f0c75e; font-style: normal; font-weight: 600; }
.rehber-giris a { color: #4cc9f0; text-decoration: none; border-bottom: 1px dotted rgba(76,201,240,.4); }

.rehber-adim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .9rem;
}
.rehber-adim {
    position: relative;
    padding: 1rem 1rem .9rem 1rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    transition: border-color .2s ease, background .2s ease;
}
.rehber-adim:hover {
    border-color: rgba(212,175,55,.25);
    background: rgba(212,175,55,.025);
}
.rehber-adim-no {
    position: absolute;
    top: -10px; left: 12px;
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #d4af37; color: #1a2238;
    font-family: var(--font-mono, monospace);
    font-weight: 700; font-size: .85rem;
}
.rehber-adim h4 {
    margin: .2rem 0 .55rem;
    color: #e2e8f0;
    font-size: .95rem;
    letter-spacing: .02em;
}
.rehber-adim p {
    margin: 0 0 .55rem;
    font-size: .82rem;
    line-height: 1.5;
    color: #94a3b8;
}
.rehber-adim p:last-child { margin-bottom: 0; }
.rehber-adim ul {
    margin: 0 0 .3rem;
    padding-left: 1.1rem;
    font-size: .8rem;
    line-height: 1.55;
    color: #94a3b8;
}
.rehber-adim ul li { margin: .15rem 0; }
.rehber-adim strong { color: #d4af37; font-weight: 600; }
.rehber-adim em { color: #f0c75e; font-style: normal; }
.rehber-adim code {
    background: rgba(76,201,240,.1);
    color: #4cc9f0;
    font-family: var(--font-mono, monospace);
    font-size: .75rem;
    padding: 1px 5px;
    border-radius: 3px;
}
.rehber-adim a {
    color: #4cc9f0;
    text-decoration: none;
    border-bottom: 1px dotted rgba(76,201,240,.4);
}
.rehber-uyari {
    margin-top: .65rem !important;
    padding: .5rem .7rem;
    background: rgba(239,68,68,.06);
    border-left: 3px solid rgba(239,68,68,.55);
    border-radius: 0 6px 6px 0;
    color: #cbd5e1 !important;
    font-size: .78rem !important;
}
.rehber-renk {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
    font-size: .72rem;
    font-weight: 600;
}
.rehber-yesil   { background: rgba(34,197,94,.15);  color: #22c55e; }
.rehber-kirmizi { background: rgba(239,68,68,.15);  color: #ef4444; }
.rehber-adim-ipucu {
    border-color: rgba(76,201,240,.22);
    background: rgba(76,201,240,.04);
}
.rehber-adim-ipucu .rehber-adim-no {
    background: #4cc9f0;
    color: #0b1220;
}

@media (max-width: 720px) {
    .rehber-ozet-band { display: none; }
    .rehber-tikla { margin-left: auto; }
}

/* ─── HESAP SAYFASI — BÖLÜM BAŞLIĞI ───────────────────────────────── */
.hesap-bolum { margin-top: 1.2rem; }
.hesap-bolum-baslik {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 .7rem;
}
.hesap-bolum-cizgi {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.25), transparent);
}
.hesap-bolum-etiket {
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    letter-spacing: .28em;
    color: #d4af37;
    opacity: .82;
    text-transform: uppercase;
    padding: 0 .25rem;
    white-space: nowrap;
}

/* ─── HESAP KOTA / İSTATİSTİK KARTLARI ────────────────────────────── */
.hesap-kota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .9rem;
}
.hesap-kota-kart {
    position: relative;
    padding: 1.2rem 1.25rem 1.05rem;
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(17,26,46,0.55), rgba(11,18,32,0.4)),
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,.08), transparent 60%);
    backdrop-filter: blur(6px);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    overflow: hidden;
}
.hesap-kota-kart::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.35), transparent);
    opacity: .55;
}
.hesap-kota-kart:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,.45);
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(212,175,55,.1);
}
.hesap-kart-ikon {
    position: absolute;
    top: .9rem;
    right: 1rem;
    font-size: 1.15rem;
    opacity: .35;
    line-height: 1;
}
.hesap-kart-durum::before {
    background: linear-gradient(90deg, transparent, rgba(34,197,94,.45), transparent);
}
.hesap-kota-etiket {
    font-family: var(--font-mono, monospace);
    font-size: .6rem; letter-spacing: .25em; opacity: .65;
    text-transform: uppercase; margin-bottom: .4rem;
}
.hesap-kota-deger {
    font-family: var(--font-mono, monospace);
    font-size: 1.85rem; color: #d4af37; line-height: 1.1;
    font-weight: 600;
}
.hesap-kota-deger small { font-size: .9rem; opacity: .7; font-weight: 400; }
.hesap-kota-deger.durum-aktif { color: #22c55e; font-size: 1.4rem; letter-spacing: .12em; }
.hesap-kota-aciklama {
    margin-top: .55rem;
    font-size: .72rem; opacity: .7;
    font-family: var(--font-mono, monospace);
}

/* Tarama hakkı kartındaki ilerleme çubuğu */
.hesap-kart-bar {
    margin-top: .55rem;
    height: 4px;
    border-radius: 4px;
    background: rgba(148,163,184,.12);
    overflow: hidden;
}
.hesap-kart-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #fbbf24);
    border-radius: 4px;
    transition: width .35s ease;
}

/* İstatistik kartlarında ince rozet (örn. "▶ 1 aktif", "✓ 2 onaylı") */
.hesap-rozet {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    letter-spacing: .08em;
    border: 1px solid;
    font-weight: 600;
}
.hesap-rozet-aktif {
    color: #4cc9f0;
    border-color: rgba(76,201,240,.4);
    background: rgba(76,201,240,.08);
}
.hesap-rozet-onayli {
    color: #22c55e;
    border-color: rgba(34,197,94,.4);
    background: rgba(34,197,94,.08);
}

/* Legacy: artık kullanılmıyor ama eski sayfaları kırmamak için bırakıldı */
.kucuk-istat-kart { padding: 1rem 1.25rem; }

/* ─── YÖNETİM: ROZETLER ────────────────────────────────────────────── */
.rozet {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: .65rem;
    letter-spacing: .12em;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
}
.rozet-onay_bekliyor, .rozet-beklemede { color: #f59e0b; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.rozet-aktif, .rozet-tamamlandi        { color: #22c55e; border-color: rgba(34,197,94,.4);  background: rgba(34,197,94,.08); }
.rozet-askida, .rozet-iptal            { color: #94a3b8; border-color: rgba(148,163,184,.35); background: rgba(148,163,184,.08); }
.rozet-reddedildi, .rozet-hata         { color: #ef4444; border-color: rgba(239,68,68,.4);  background: rgba(239,68,68,.08); }
.rozet-calisiyor                       { color: #4cc9f0; border-color: rgba(76,201,240,.4); background: rgba(76,201,240,.08); animation: rozet-puls 2s ease infinite; }
.rozet-admin                            { color: #d4af37; border-color: rgba(212,175,55,.5); background: rgba(212,175,55,.1); }
.rozet-gri                              { color: #94a3b8; border-color: rgba(148,163,184,.3); background: rgba(148,163,184,.06); margin-left: 4px; }
@keyframes rozet-puls { 0%,100% {opacity:1} 50% {opacity:.55} }

.satir-admin { background: rgba(212,175,55,.04); }

/* ─── YÖNETİM: FİLTRE BARI ─────────────────────────────────────────── */
.kullanici-filtre {
    display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.kullanici-filtre input,
.kullanici-filtre select {
    margin: 0;
    flex: 1; min-width: 180px;
}
.kullanici-tablo th { white-space: nowrap; }
.kullanici-aksiyon  { display: flex; gap: .35rem; align-items: center; }

/* ─── YÖNETİM: LOG AKIŞI ───────────────────────────────────────────── */
.log-akis {
    max-height: 480px; overflow-y: auto;
    font-size: .82rem;
}
.log-satir {
    padding: .45rem .65rem;
    border-left: 2px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,.04);
    display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.log-baslatildi   { border-left-color: #22c55e; }
.log-iptal        { border-left-color: #94a3b8; }
.log-hata         { border-left-color: #ef4444; }
.log-tamamlandi   { border-left-color: #d4af37; }
.log-zaman { color: rgba(148,163,184,.7); font-size: .72rem; }
.log-rozet {
    padding: 1px 6px; border-radius: 3px;
    font-size: .6rem; letter-spacing: .1em;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.log-detay {
    flex-basis: 100%; margin-top: .25rem; padding-left: 4px;
    color: rgba(148,163,184,.7); font-size: .72rem;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    box-shadow: 0 0 14px rgba(76, 201, 240, 0.6);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .35rem;
}
.auth-brand-icon {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(45, 122, 238, 0.75), rgba(11, 61, 145, 0.35));
    color: #cfe5ff;
    display: grid; place-items: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 0 22px rgba(45, 122, 238, 0.55),
        inset 0 0 14px rgba(34, 211, 238, 0.22);
    flex-shrink: 0;
}
.auth-eyebrow {
    color: var(--neon);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.auth-card h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-shadow: 0 0 24px rgba(76, 201, 240, 0.35);
}
.auth-sub {
    color: var(--text-2);
    font-size: .88rem;
    margin: .5rem 0 1.25rem;
}
.auth-status {
    margin-bottom: 1.25rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-form .form-grup { margin-bottom: 1rem; }
.auth-form label {
    color: var(--neon);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-footer {
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ─── Map ───────────────────────────────────────────────────────────── */
.map-box {
    height: 420px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.map-box.tall { height: 520px; }
.map-box.map-bolge { height: 640px; }

/* ─── LEAFLET katman seçici (Google/Esri/OSM) — koyu tema ──────────── */
.leaflet-control-layers {
    background: rgba(11, 18, 32, 0.94) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5) !important;
    color: #e2e8f0 !important;
}
.leaflet-control-layers-toggle {
    background-color: rgba(11, 18, 32, 0.92) !important;
    background-image:
        linear-gradient(45deg, transparent 47%, #d4af37 47%, #d4af37 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, #d4af37 47%, #d4af37 53%, transparent 53%) !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 6px !important;
    width: 34px !important;
    height: 34px !important;
}
.leaflet-control-layers-expanded {
    padding: .65rem .85rem !important;
    color: #e2e8f0 !important;
    font-family: var(--font-sans, 'Space Grotesk', system-ui) !important;
    font-size: .82rem !important;
    min-width: 200px;
    max-width: 260px;
}
.leaflet-control-layers-list { margin: 0 !important; }
.leaflet-control-layers-base,
.leaflet-control-layers-overlays { padding: 0 !important; }

/* Leaflet'in iç DOM yapısı:
   <label><span><input type=radio><span>Etiket</span></span></label>
   Hem dış label hem iç span'i flex container yapıp gap ile ayırıyoruz. */
.leaflet-control-layers-expanded label {
    display: block !important;
    margin: .1rem 0 !important;
    padding: .35rem .5rem !important;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s ease;
    line-height: 1.35;
    white-space: normal;
}
.leaflet-control-layers-expanded label:hover {
    background: rgba(212, 175, 55, 0.1);
}
.leaflet-control-layers-expanded label > span {
    display: flex !important;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}
.leaflet-control-layers-expanded label > span > span {
    flex: 1;
    color: #e2e8f0 !important;
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaflet-control-layers-expanded input[type=radio],
.leaflet-control-layers-expanded input[type=checkbox] {
    accent-color: #d4af37;
    width: 14px;
    height: 14px;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}
.leaflet-control-layers-separator {
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
    margin: .5rem 0 !important;
}

/* Leaflet zoom kontrolü de koyulaşsın */
.leaflet-bar a {
    background-color: rgba(11, 18, 32, 0.9) !important;
    color: #d4af37 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}
.leaflet-bar a:hover {
    background-color: rgba(212, 175, 55, 0.15) !important;
}

/* ─── LEAFLET.DRAW çizim araç çubuğu — koyu tema fix ──────────────────
   Leaflet.Draw PNG sprite ile koyu ikonlar kullanır. CSS filter kullanmak
   tüm butonu (arka plan dahil) yiyiyordu → ikonlar görünmüyordu.
   Çözüm: butonlara açık (krem) arka plan + altın çerçeve. Orijinal koyu
   sprite ikonlar doğal olarak okunur. Hover'da altın parlasın. */
.leaflet-draw-toolbar a {
    background-color: #f5f1e6 !important; /* sıcak krem, koyu ikonlarla tezat */
    border: 1px solid rgba(212, 175, 55, 0.55) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: background-color .15s ease, border-color .15s ease, transform .1s;
}
.leaflet-draw-toolbar a:hover {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    transform: scale(1.04);
}
.leaflet-draw-toolbar a.leaflet-draw-toolbar-button-enabled {
    background-color: #d4af37 !important;
    border-color: #b8941f !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), 0 1px 3px rgba(0,0,0,.4);
}

/* Devre dışı butonlar (örn. tek poligon çizilmişken yeni poligon disabled) */
.leaflet-draw-toolbar a.leaflet-disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}
.leaflet-draw-toolbar a.leaflet-disabled:hover {
    background-color: #f5f1e6 !important;
    border-color: rgba(212, 175, 55, 0.55) !important;
    transform: none;
}

/* Hover'da çıkan tooltip ("Draw a polygon" vb.) altın tema */
.leaflet-draw-tooltip,
.leaflet-draw-actions {
    background: rgba(11, 18, 32, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 6px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5) !important;
    font-family: var(--font-sans, system-ui) !important;
    font-size: .78rem !important;
    padding: .35rem .6rem !important;
}
.leaflet-draw-tooltip-subtext {
    color: #94a3b8 !important;
}
.leaflet-draw-actions a {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 4px !important;
    padding: .3rem .6rem !important;
    margin: 0 2px !important;
    font-family: var(--font-sans, system-ui) !important;
    font-size: .78rem !important;
}
.leaflet-draw-actions a:hover {
    background: rgba(212, 175, 55, 0.25) !important;
}

/* Browser zaten title attribute'tan native tooltip gösteriyor
   (Leaflet.Draw bunları ayarlıyor: "Draw a polygon", "Edit layers" vb.).
   Daha açıklayıcı Türkçe etiketler için harita üstüne kalıcı bir
   pusula/legend kartı koymak daha doğru; aşağıdaki harita-arac-legend
   sınıfı bunu sağlar. */
.harita-arac-legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 500;
    background: rgba(11, 18, 32, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;
    padding: .55rem .75rem;
    font-family: var(--font-mono, monospace);
    font-size: .7rem;
    color: #cbd5e1;
    letter-spacing: .04em;
    backdrop-filter: blur(6px);
    pointer-events: none;
    max-width: 240px;
    line-height: 1.7;
}
.harita-arac-legend .legend-baslik {
    color: #d4af37;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .12em;
    margin-bottom: .2rem;
    display: block;
}
.harita-arac-legend code {
    display: inline-block;
    min-width: 32px;
    padding: 0 4px;
    text-align: center;
    color: #d4af37;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 3px;
    margin-right: 4px;
}

/* ─── BÖLGE SAYFASI: dar form + geniş harita ──────────────────────── */
.bolge-form-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .bolge-form-grid { grid-template-columns: 1fr; }
}

.bolge-harita-card { display: flex; flex-direction: column; }
.harita-baslik {
    display: flex; justify-content: space-between; align-items: center;
    gap: .75rem; margin-bottom: .85rem;
}
.harita-baslik h3 { margin: 0; }
#harita-tamekran-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .75rem;
    font-size: .82rem;
}
.ikon-tamekran {
    font-family: 'Segoe UI Symbol', monospace;
    font-size: 1rem; line-height: 1;
}

/* ─── HARİTA TAM EKRAN MODU ────────────────────────────────────────── */
.bolge-harita-card.tam-ekran {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    padding: .75rem 1rem 1rem;
    background: #0b1220;
    border: none;
    box-shadow: 0 0 0 1px rgba(212,175,55,.3);
}
.bolge-harita-card.tam-ekran .harita-baslik {
    margin-bottom: .65rem;
}
.bolge-harita-card.tam-ekran .map-bolge {
    height: calc(100vh - 110px) !important;
    border-radius: 6px;
}
.bolge-harita-card.tam-ekran p.muted {
    display: none;
}
.bolge-harita-card.tam-ekran #harita-tamekran-btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a2238; font-weight: 600;
}
.bolge-harita-card.tam-ekran .harita-tamekran-yazi::after {
    content: ' Kapat (ESC)';
}
.bolge-harita-card.tam-ekran .harita-tamekran-yazi {
    font-size: 0;
}
.bolge-harita-card.tam-ekran .harita-tamekran-yazi::after {
    font-size: .82rem;
}

/* Scroll lock helper */
body.tam-ekran-acik { overflow: hidden; }

/* ─── Harita Önizleme ───────────────────────────────────────────────── */
.harita-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}
.harita-card { padding: 0; overflow: hidden; }

/* ============================================================
   Yönetici Modu Banner'ı
   Admin başka kullanıcının verisini görüntülerken üste çıkan uyarı.
============================================================ */
.yonetim-modu-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg,
        rgba(239, 68, 68, 0.18) 0%,
        rgba(212, 175, 55, 0.12) 100%);
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    color: #fef3c7;
    font-size: .92rem;
}
.yonetim-modu-rozet {
    background: #ef4444;
    color: #fff;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.yonetim-modu-metin { flex: 1; min-width: 240px; }
.yonetim-modu-metin strong { color: #fde68a; }
.yonetim-modu-eylem {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ============================================================
   Tarama Hazırlık Banner'ı
   Kullanıcı tara dediğinde worker uyanırken görünen büyük bilgi kartı.
   İlk hücre işlenince JS kaldırır.
============================================================ */
.hazirlik-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.16) 0%,
        rgba(212, 175, 55, 0.08) 60%,
        rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: opacity .5s ease, transform .5s ease;
}
.hazirlik-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.12) 50%,
        transparent 100%);
    animation: hazirlik-parla 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hazirlik-parla {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.hazirlik-banner.hazirlik-kapanma {
    opacity: 0;
    transform: translateY(-12px);
}

.hazirlik-spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.25);
    border-top-color: #d4af37;
    border-right-color: #fbbf24;
    animation: hazirlik-don 1.1s linear infinite;
    position: relative;
    display: grid;
    place-items: center;
}
.hazirlik-spinner-cekirdek {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fde68a, #d4af37 60%, #92400e);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    animation: hazirlik-pulse 1.4s ease-in-out infinite;
}
@keyframes hazirlik-don {
    to { transform: rotate(360deg); }
}
@keyframes hazirlik-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.2); opacity: .7; }
}

.hazirlik-icerik { min-width: 0; }
.hazirlik-baslik {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: .2px;
}
.hazirlik-aciklama {
    margin: 0 0 .55rem;
    color: #cbd5e1;
    line-height: 1.55;
    font-size: .92rem;
}
.hazirlik-aciklama strong {
    color: #fbbf24;
    font-weight: 600;
}
.hazirlik-asama {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    font-size: .85rem;
    color: #fef3c7;
}
.hazirlik-asama-nokta {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: hazirlik-pulse 1.2s ease-in-out infinite;
}
.hazirlik-asama-metin {
    flex: 1;
    min-width: 0;
}
.hazirlik-progress {
    margin-top: .75rem;
    padding: .55rem .75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}
.hazirlik-progress[hidden] { display: none !important; }
.hazirlik-progress-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem;
    font-size: .82rem;
    color: #fde68a;
}

@media (max-width: 720px) {
    .hazirlik-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hazirlik-spinner { margin: 0 auto; }
    .hazirlik-asama { width: 100%; justify-content: center; }
}

.harita-toolbar {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    align-items: center;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    font-size: .82rem;
}
.inline-check {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--text-2);
    cursor: pointer;
}
.inline-check input { width: auto; margin: 0; }
.harita-full {
    height: calc(100vh - 210px);
    min-height: 480px;
    border: none;
    border-radius: 0;
}
.harita-legend {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    padding: .55rem 1rem;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--muted);
    background: var(--surface);
}
.dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    margin-right: .25rem;
    vertical-align: middle;
}
.dot-beklemede { background: #637a94; }
.dot-tarandi { background: #f87171; box-shadow: 0 0 0 2px rgba(248,113,113,.2); }
.dot-eslesme { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
/* Aday izi (NMS bastırılmış) — taranmış gibi kırmızı, ama nokta noktalı kenar
 * legend'da da gösterelim (dashed outline) */
.dot-eslesme-bastirildi {
    background: #fca5a5;
    border: 1.5px dashed #dc2626;
    box-shadow: 0 0 0 2px rgba(220,38,38,.15);
    box-sizing: border-box;
}
/* DINOv3 kapısının elediği hücre — mor. NMS bastırmasından farklı sebep:
 * burada iki model aynı fikirde değil, "yakında daha iyi aday var" değil. */
.dot-eslesme-dv3 {
    background: #d8b4fe;
    border: 1.5px dashed #a855f7;
    box-shadow: 0 0 0 2px rgba(168,85,247,.18);
    box-sizing: border-box;
}
.dot-pin { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.dot-calisiyor { background: #2d7aee; box-shadow: 0 0 0 2px rgba(45,122,238,.2); }
.dot-tamamlandi { background: var(--accent); }
.dot-hata { background: var(--danger); }

#canli-badge { animation: none; }
#canli-badge.pulse { animation: canliPulse 1.5s infinite; }
@keyframes canliPulse { 0%, 100% { opacity:1 } 50% { opacity:.45 } }

.harita-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: .25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, .55) transparent;
}
.harita-sidebar::-webkit-scrollbar { width: 8px; }
.harita-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}
.tarama-listesi {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-height: 320px;
    overflow: auto;
}
.tarama-oge {
    width: 100%; text-align: left;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem .8rem;
    cursor: pointer;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.tarama-oge:hover, .tarama-oge.active {
    border-color: var(--primary);
    background: rgba(45,122,238,.07);
}
.tarama-oge-baslik {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: flex-start;
    font-size: .85rem;
}
.tarama-oge-meta { font-size: .77rem; margin-top: .2rem; color: var(--muted); }
.onizleme-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin: .65rem 0;
}
.onizleme-stat {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: .45rem .6rem;
    border: 1px solid var(--border);
}
.onizleme-stat small { color: var(--muted); display: block; font-size: .72rem; }
.onizleme-stat strong { font-size: 1.05rem; }
.onizleme-pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .55rem;
    margin-top: .75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: .25rem;
}
.onizleme-pin {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
}
.onizleme-pin img { width: 100%; height: 75px; object-fit: cover; display: block; }
.onizleme-pin .meta { padding: .35rem .45rem; font-size: .72rem; }

/* ─── Canlı tarama alt çubuğu ───────────────────────────────────────── */
.canli-tarama-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    background: rgba(10, 15, 22, .97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: .6rem 1.2rem;
}
.canli-tarama-bar-icerik {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}
.canli-tarama-bar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red-scan);
    flex-shrink: 0;
}
.canli-tarama-bar-dot.pulse { animation: canliPulse 1.5s infinite; }
.canli-tarama-bar-progress {
    flex: 1;
    min-width: 120px;
    height: 5px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}
.canli-tarama-bar-progress .progress-bar {
    background: linear-gradient(90deg, #f87171, #fbbf24);
}

/* ─── Pin listesi ───────────────────────────────────────────────────── */
.pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.pin-card { position: relative; }
.pin-card img { width: 100%; height: 155px; object-fit: cover; border-radius: var(--radius-sm); }

/* Pin durumuna göre sol border vurgusu */
.pin-card-onaylandi  { border-left: 3px solid var(--accent); }
.pin-card-reddedildi { border-left: 3px solid var(--danger); opacity: .85; }
.pin-card-beklemede  { border-left: 3px solid var(--warning); }

/* Tıklanabilir pin kartı (Bulgular sayfası) — hover/odak animasyonu + büyütme rozeti */
.pin-card-tiklanabilir {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pin-card-tiklanabilir:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(212, 175, 55, 0.45);
}
.pin-card-tiklanabilir:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.85),
                0 8px 22px rgba(0, 0, 0, 0.45);
}
.pin-card-buyut {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(3, 6, 13, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.55);
    display: grid;
    place-items: center;
    color: #fde68a;
    font-size: .95rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px) scale(.85);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
}
.pin-card-tiklanabilir:hover .pin-card-buyut,
.pin-card-tiklanabilir:focus-visible .pin-card-buyut {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Pin kart üzerinde sağ üst köşede silme butonu */
.pin-sil-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    z-index: 2;
}
.pin-sil-btn {
    background: rgba(3, 6, 13, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(230, 238, 251, 0.7);
    border: 1px solid rgba(255, 79, 99, 0.25);
    width: 30px; height: 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    display: grid; place-items: center;
    line-height: 1;
}
.pin-sil-btn:hover {
    color: #fff;
    background: rgba(255, 79, 99, 0.85);
    border-color: var(--danger);
    box-shadow: 0 0 18px rgba(255, 79, 99, 0.6);
    transform: rotate(90deg) scale(1.08);
}
.pin-card .meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .65rem;
    font-size: .82rem;
}

/* ─── Referans görseller sayfası ────────────────────────────────────── */
.egitim-bant {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    font-size: .875rem;
}
.egitim-bant.hazir  { background: rgba(22,196,127,.08); border-color: rgba(22,196,127,.3); }
.egitim-bant.kismi  { background: rgba(232,160,32,.07); border-color: rgba(232,160,32,.25); }
.egitim-bant.bos    { background: rgba(45,122,238,.07); border-color: rgba(45,122,238,.2); }
.egitim-bant-ikon { font-size: 1.2rem; flex-shrink: 0; }
.egitim-bant.hazir  .egitim-bant-ikon { color: var(--accent); }
.egitim-bant.kismi  .egitim-bant-ikon { color: var(--warning); }
.egitim-bant.bos    .egitim-bant-ikon { color: var(--muted); }
.egitim-bant-metin { flex: 1; }
.egitim-bant-bar {
    width: 120px; height: 5px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}
.egitim-bant-bar-ic {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .5s ease;
}
.egitim-bant-oran { font-size: .8rem; color: var(--muted); flex-shrink: 0; }

/* Eğitim aktifken pulsing accent renk */
.egitim-bant.calisiyor {
    background: linear-gradient(90deg, rgba(45,122,238,.10), rgba(22,196,127,.10));
    border-color: rgba(45,122,238,.35);
    box-shadow: 0 0 0 0 rgba(45,122,238,.45);
    animation: egitimPulse 2s ease-in-out infinite;
}
.egitim-bant.calisiyor .egitim-bant-ikon { color: var(--primary); }
.egitim-bant.calisiyor .egitim-bant-bar-ic {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-size: 200% 100%;
    animation: egitimBarShimmer 1.8s linear infinite;
}
.egitim-bant-eta {
    font-size: .78rem;
    color: var(--muted);
    flex-shrink: 0;
    font-family: var(--font-mono, monospace);
    margin-left: .25rem;
}
.egitim-bant-ikon.donus { animation: donus 1.2s linear infinite; }

.egitim-arka-plan-bilgi {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    margin: -.5rem 0 1rem;
    background: rgba(45,122,238,.06);
    border: 1px dashed rgba(45,122,238,.25);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--muted);
}
.egitim-arka-plan-bilgi span:first-child {
    color: var(--primary);
    font-weight: 700;
}

@keyframes egitimPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,122,238,.0); }
    50%      { box-shadow: 0 0 0 4px rgba(45,122,238,.15); }
}
@keyframes egitimBarShimmer {
    0%   { background-position:   0% 0%; }
    100% { background-position: 200% 0%; }
}
@keyframes donus {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.ref-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.ref-form-kolon { display: flex; flex-direction: column; gap: 1rem; }

/* Kategori seçim grid */
.kat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .45rem;
    margin-top: .25rem;
}
.kat-secim { cursor: pointer; }
.kat-secim input { display: none; }
.kat-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .55rem .4rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: .78rem;
    text-align: center;
    color: var(--muted);
    transition: all .15s;
}
.kat-ikon { font-size: 1.1rem; }
.kat-secim input:checked + .kat-kutu {
    border-color: var(--primary);
    background: rgba(45,122,238,.1);
    color: #93c5fd;
}
.kat-secim:hover .kat-kutu { border-color: var(--border-2); background: var(--surface-2); color: var(--text-2); }

/* Dosya yükleme alanı */
.dosya-alani {
    border: 2px dashed var(--border-2);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color .15s;
}
.dosya-alani:hover { border-color: var(--primary); }
.dosya-alani input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
}
.dosya-alani-icerik { color: var(--text-2); font-size: .875rem; pointer-events: none; }
.dosya-alani-ikon { font-size: 1.5rem; margin-bottom: .5rem; color: var(--muted); }
.dosya-alani-not { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

.egitim-notu {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    background: rgba(22,196,127,.07);
    border: 1px solid rgba(22,196,127,.2);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
    font-size: .8rem;
    color: #4ade80;
    margin-bottom: .5rem;
}

.ipucu-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    font-size: .84rem;
    color: var(--text-2);
}
.ipucu-liste li::before { content: '→ '; color: var(--accent); }

/* ── Referans kategori filtresi ─────────────────────────────────────────
   Süzme sunucu tarafında (?kat=…&q=…). Çipler tıklanınca sayfa yenilenir;
   böylece 1490 referansın tamamı yerine yalnızca seçilen kategori basılır. */
.ref-filtre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 5;
}
.ref-filtre-cipler {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
/* Çipler LİNK DEĞİL, filtre kontrolü: altı çizili olmamalı ve seçiliyken
   yazı mutlaka okunmalı. Renk kuralları `!important` yerine yeterli
   özgüllükle (.ref-filtre .ref-cip) yazıldı. */
.ref-filtre .ref-cip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-2);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.ref-filtre .ref-cip:hover {
    border-color: var(--border-2);
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}
/* Seçili: koyu lacivert zemin + cyan kenar/yazı → hem belirgin hem okunur.
   (Önceki sürüm cyan zemine cyan yazı bırakıyordu ve görünmüyordu.) */
.ref-filtre .ref-cip.aktif,
.ref-filtre .ref-cip.aktif:hover {
    border-color: var(--neon);
    color: #eaf9ff;
    background: rgba(76, 201, 240, .16);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(76, 201, 240, .35);
    text-decoration: none;
}
.ref-filtre .ref-cip-ikon {
    font-size: .95rem;
    line-height: 1;
    opacity: .7;
}
.ref-filtre .ref-cip.aktif .ref-cip-ikon { opacity: 1; color: var(--neon); }
.ref-filtre .ref-cip-sayi {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    padding: .08rem .38rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
}
.ref-filtre .ref-cip:hover .ref-cip-sayi { color: var(--text-2); }
.ref-filtre .ref-cip.aktif .ref-cip-sayi {
    background: var(--neon);
    color: #08131c;
}

.ref-filtre-ara {
    display: flex;
    gap: .45rem;
    align-items: center;
    margin-top: .7rem;
    flex-wrap: wrap;
}
.ref-filtre-ara input[type="search"] {
    flex: 1;
    min-width: 200px;
    margin: 0;
}
.ref-filtre-ozet {
    margin-top: .6rem;
    font-size: .78rem;
    color: var(--muted);
}
.ref-filtre-ozet strong { color: var(--text-2); }
.ref-filtre-not { display: block; margin-top: .15rem; opacity: .75; font-size: .72rem; }

@media (max-width: 720px) {
    .ref-filtre { position: static; }
    /* Dar ekranda etiket metni gizlenir, ikon + sayı kalır; seçili çip
       hangi kategori olduğunu göstermek için etiketini korur. */
    .ref-filtre .ref-cip span:not(.ref-cip-ikon):not(.ref-cip-sayi) { display: none; }
    .ref-filtre .ref-cip.aktif span { display: inline; }
}

/* ── Toplu seçim ────────────────────────────────────────────────────────
   Onay kutusu kartın sol üstünde; seçilen kart cyan kenarla vurgulanır.
   Çubuk yalnızca seçim varken görünür ve ekranın altına sabitlenir. */
.ref-sec {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 3;
    cursor: pointer;
    line-height: 0;
}
.ref-sec-kutu {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.ref-sec-gorsel {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    background: rgba(3, 6, 13, .65);
    backdrop-filter: blur(2px);
    transition: background .15s, border-color .15s;
}
.ref-sec:hover .ref-sec-gorsel { border-color: var(--neon); }
.ref-sec-kutu:checked + .ref-sec-gorsel {
    background: var(--neon);
    border-color: var(--neon);
}
.ref-sec-kutu:checked + .ref-sec-gorsel::after {
    content: '✓';
    display: block;
    text-align: center;
    color: #08131c;
    font-size: .8rem;
    font-weight: 700;
    line-height: 17px;
}
.ref-sec-kutu:focus-visible + .ref-sec-gorsel {
    box-shadow: 0 0 0 3px rgba(76, 201, 240, .35);
}
.ref-kart.secili {
    border-color: var(--neon);
    box-shadow: 0 0 0 1px var(--neon) inset;
}

.toplu-cubuk {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: .7rem .9rem;
    background: var(--surface-2);
    border: 1px solid var(--neon);
    border-radius: var(--radius);
    box-shadow: 0 -6px 24px rgba(3, 6, 13, .6);
}
.toplu-sol { font-size: .82rem; color: var(--text-2); }
.toplu-sol strong { color: var(--neon); font-size: 1rem; }
.toplu-sag { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.toplu-secim { margin: 0; font-size: .8rem; padding: .38rem .5rem; min-width: 170px; }
.toplu-link {
    background: none;
    border: none;
    color: var(--neon);
    font-size: .76rem;
    cursor: pointer;
    padding: 0 .1rem;
    margin-left: .5rem;
    text-decoration: underline;
    font-family: inherit;
}
.toplu-link:hover { color: #8fe0f7; }

@media (max-width: 720px) {
    .toplu-cubuk { flex-direction: column; align-items: stretch; }
    .toplu-sag { justify-content: stretch; }
    .toplu-secim { flex: 1; }
}

/* ── Kart içi düzenleme formu ───────────────────────────────────────────
   Otomatik kategori tespiti (kategori_tespit.py) %100 doğru olamaz; yanlış
   atananları operatör buradan elle düzeltir. Görsel ve eğitim vektörü
   değişmediği için yeniden eğitim gerekmez. */
.ref-duzenle-form {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px dashed var(--border-2);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.ref-duzenle-etiket {
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .25rem;
}
.ref-duzenle-form input[type="text"],
.ref-duzenle-form textarea,
.ref-duzenle-form select {
    width: 100%;
    margin: 0;
    font-size: .8rem;
    padding: .4rem .55rem;
}
.ref-duzenle-form textarea { min-height: 48px; resize: vertical; }
.ref-duzenle-secim { cursor: pointer; }
.ref-duzenle-aksiyon {
    display: flex;
    gap: .4rem;
    margin-top: .5rem;
}
.ref-duzenle-btn.acik {
    border-color: var(--neon);
    color: var(--neon);
}

/* Referans kart grid */
.ref-kart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.ref-kart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    /* Seçim onay kutusu (.ref-sec) mutlak konumlu — referans kutusu bu olmalı */
    position: relative;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.ref-kart:hover { border-color: var(--border-2); transform: translateY(-1px); }
.ref-kart.egitildi { border-color: rgba(22,196,127,.3); }
.ref-kart.analiz   { border-color: rgba(232,160,32,.25); }

.ref-kart-gorsel-wrap { position: relative; }
.ref-kart-gorsel {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.ref-kart-durum-rozet {
    position: absolute;
    top: .5rem; right: .5rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.rozet-hazir  { background: rgba(22,196,127,.85); color: #022c1a; }
.rozet-analiz { background: rgba(232,160,32,.85); color: #2c1a00; }
.rozet-bos    { background: rgba(100,120,150,.85); color: #fff; }
.ref-kart-kat-rozet {
    position: absolute;
    bottom: .5rem; left: .5rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    background: rgba(8,12,16,.8);
    color: var(--text-2);
    backdrop-filter: blur(4px);
}
/* Alan çizimi rozeti — kullanıcının kutuyla işaretleyip dar kadrajdan
   eğittiği referanslar bir bakışta ayırt edilsin. Sarı hali "çizdim ama
   eğitmeyi unuttum" durumunu yakalar. */
.ref-kart-alan-rozet {
    position: absolute;
    bottom: .5rem; right: .5rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.ref-kart-alan-rozet.alanli {
    background: rgba(22, 163, 74, .88);
    color: #f0fdf4;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, .5), 0 2px 8px rgba(0, 0, 0, .4);
}
.ref-kart-alan-rozet.oto {
    background: rgba(99, 102, 241, .88);
    color: #eef2ff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .5), 0 2px 8px rgba(0, 0, 0, .4);
}
.ref-kart-alan-rozet.bekliyor {
    background: rgba(245, 158, 11, .9);
    color: #1e293b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .5), 0 2px 8px rgba(0, 0, 0, .4);
}

.ref-kart-bilgi { padding: .75rem; }
.ref-kart-baslik { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.ref-kart-aciklama {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ref-kart-meta {
    display: flex;
    gap: .5rem;
    font-size: .74rem;
    color: var(--muted);
    margin-bottom: .6rem;
    flex-wrap: wrap;
}
.ref-kart-aksiyonlar { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Boş durum */
.bos-durum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--muted);
    text-align: center;
}
.bos-durum-ikon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.bos-durum-alt { font-size: .82rem; margin-top: .35rem; }

/* Eğitim toast */
.egitim-toast[hidden] { display: none !important; }
.egitim-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: .75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    box-shadow: var(--shadow);
    font-size: .875rem;
    max-width: 320px;
}
.egitim-toast-ikon { font-size: 1.1rem; }
.egitim-toast-ikon.donus { animation: donme .8s linear infinite; }
@keyframes donme { to { transform: rotate(360deg); } }

/* ─── Dashboard ─────────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ─── Taramalar sayfası ─────────────────────────────────────────────── */
.worker-durum {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: .85rem;
}
.worker-durum.aktif {
    background: rgba(22,196,127,.09);
    border: 1px solid rgba(22,196,127,.25);
    color: #4ade80;
}
.worker-durum.kapali {
    background: rgba(100,120,150,.07);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ref-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .harita-layout { grid-template-columns: 1fr; }
    .harita-full { height: 420px; }
    .content { padding: 1rem; }
}

/* ============================================
   Pin Detay Modal
   ============================================ */
.pin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: pinModalFade .15s ease-out forwards;
}
@keyframes pinModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.pin-modal {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    /* 3-sütun karşılaştırma için geniş modal — viewport'un %96'sı,
       en fazla 1680px (4K monitör çok büyük olur), en az 960px. */
    width: min(1680px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
}
.pin-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
}
.pin-modal-close:hover { background: rgba(148, 163, 184, 0.12); color: #fff; }

/* ─── HARİTA PİN POPUP — 3'LÜ KARŞILAŞTIRMA CTA ──────────────────────────
   Harita üzerindeki pin marker'ına tıklanınca açılan küçük bilgi popup'ının
   altında görünen büyük altın buton: tıklanınca tam 3-sütunlu karşılaştırma
   modal'ını açar.
   ────────────────────────────────────────────────────────────────────────── */
.pin-popup-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    width: 100%;
    margin-top: .65rem;
    padding: .65rem .85rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #06080d;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.25;
    text-align: center;
}
.pin-popup-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #d4af37 100%);
}
.pin-popup-cta strong { font-size: .88rem; }
.pin-popup-cta small {
    font-size: .68rem;
    font-weight: 500;
    opacity: .8;
}

.pin-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
/* 3 sütunlu — Referans · Bulgu · DEM */
.pin-modal-grid.pin-modal-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 1180px) {
    .pin-modal-grid.pin-modal-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .pin-modal-grid.pin-modal-grid-3 > .pin-modal-col:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* DEM sütunu özel — yükleme spinner + görsel */
.pin-modal-dem-kutu {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Geniş modal'da DEM çok büyümesin — referans/bulgu görselleriyle hizalı kalsın */
    max-height: 520px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1322, #0f1f31);
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.pin-modal-dem-yukleniyor {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    z-index: 1;
}
.pin-modal-dem-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(20, 184, 166, 0.18);
    border-top-color: #14b8a6;
    border-right-color: #14b8a6;
    border-radius: 50%;
    animation: pin-dem-spin .85s linear infinite;
    margin-bottom: 4px;
}
@keyframes pin-dem-spin {
    to { transform: rotate(360deg); }
}
.pin-modal-img-dem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    image-rendering: -webkit-optimize-contrast;
}

/* DEM zoom kontrol — sütun başlığının yanında, sağa hizalı */
.pin-modal-dem-zoom-kontrol {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    background: rgba(15, 23, 42, .8);
    border: 1px solid rgba(20, 184, 166, .35);
    border-radius: 999px;
    padding: 2px 4px;
}
.pin-modal-col-baslik {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.dem-zoom-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 184, 166, .15);
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, transform .08s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dem-zoom-btn:hover:not(:disabled) {
    background: rgba(20, 184, 166, .45);
    transform: scale(1.08);
}
.dem-zoom-btn:active:not(:disabled) {
    transform: scale(0.92);
}
.dem-zoom-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.dem-zoom-rozeti {
    font-size: .72rem;
    font-weight: 600;
    color: #5eead4;
    padding: 0 8px;
    min-width: 78px;
    text-align: center;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}
.pin-modal-col {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.pin-modal-col-baslik {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.pin-modal-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #020617;
    cursor: zoom-in;
    transition: transform .18s ease;
}
.pin-modal-img:hover { transform: scale(1.02); }
.pin-modal-noimg {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
}
.pin-modal-meta {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.pin-modal-meta .muted { color: #94a3b8; }

.pin-modal-benzer {
    margin-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 8px;
}
.pin-modal-benzer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.pin-modal-benzer-oge {
    text-align: center;
}
.pin-modal-benzer-oge img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.pin-modal-benzer-oge small {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    .pin-modal-grid,
    .pin-modal-grid.pin-modal-grid-3 { grid-template-columns: 1fr; }
    .pin-modal-grid.pin-modal-grid-3 > .pin-modal-col:nth-child(3) { grid-column: auto; }
    .pin-modal-benzer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Worker Canlı Kartı (harita sayfası)
   ============================================ */
.worker-canli-card {
    border-left: 4px solid var(--primary, #3b82f6);
}
.worker-canli-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}
.worker-canli-isik {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #475569;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
    display: inline-block;
    flex-shrink: 0;
}
.worker-canli-isik.pulse {
    animation: workerPulse 1.4s ease-out infinite;
}
@keyframes workerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.worker-canli-mesaj {
    font-size: .92rem;
    color: var(--text, #e2e8f0);
    margin-bottom: .65rem;
    line-height: 1.4;
    word-break: break-word;
}
.worker-canli-bar {
    margin-top: .55rem;
}
.worker-canli-bar-baslik {
    display: flex;
    justify-content: space-between;
    font-size: .76rem;
    color: var(--muted, #94a3b8);
    margin-bottom: .25rem;
}
.worker-canli-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .7rem;
}
.worker-canli-chip {
    display: inline-block;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .76rem;
    line-height: 1.4;
}
.worker-canli-chip .muted { color: #94a3b8; }
.worker-canli-log-wrap {
    margin-top: .8rem;
    border-top: 1px dashed rgba(148, 163, 184, .18);
    padding-top: .5rem;
}
.worker-canli-log-wrap summary {
    cursor: pointer;
    font-size: .8rem;
    color: var(--muted, #94a3b8);
    user-select: none;
    list-style: none;
}
.worker-canli-log-wrap summary::before {
    content: "▶ ";
    font-size: .65rem;
    transition: transform .15s;
    display: inline-block;
}
.worker-canli-log-wrap[open] summary::before {
    transform: rotate(90deg);
}
.worker-canli-log {
    background: #020617;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 6px;
    padding: .55rem;
    max-height: 240px;
    overflow-y: auto;
    font-size: .74rem;
    line-height: 1.45;
    margin: .5rem 0 0;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--font-mono);
}

/* ======================================================================
   Bildirim Feed (timeline tarzı)
   ====================================================================== */
.page-header .actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    align-items: center;
}

.bildirim-feed {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
}
.bildirim-feed::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 12px; bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-2) 20%, var(--border-2) 80%, transparent);
    pointer-events: none;
}
.bildirim-oge {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.15rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(17, 26, 46, 0.78), rgba(11, 18, 32, 0.7));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: border-color .22s, transform .22s, box-shadow .22s;
    margin-left: 40px;
}
.bildirim-oge::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    width: 24px; height: 1px;
    background: var(--border-2);
    transform: translateY(-50%);
}
.bildirim-isaret {
    position: absolute;
    left: -38px;
    top: 50%;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--muted);
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--bg);
    transition: all .22s;
}
.bildirim-oge.okunmamis .bildirim-isaret {
    background: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(255, 181, 71, 0.7);
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 10px rgba(255, 181, 71, .6); }
    50%      { box-shadow: 0 0 0 4px var(--bg), 0 0 22px rgba(255, 181, 71, 1); }
}
.bildirim-oge.tur-success .bildirim-isaret { background: var(--accent); border-color: var(--accent); }
.bildirim-oge.tur-danger  .bildirim-isaret { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(255, 79, 99, .6); }
.bildirim-oge.tur-warning .bildirim-isaret { background: var(--warning); border-color: var(--warning); }
.bildirim-oge.tur-info    .bildirim-isaret { background: var(--neon); border-color: var(--neon); }

.bildirim-oge:hover {
    border-color: var(--border-2);
    transform: translateX(3px);
    box-shadow: 0 4px 20px rgba(45, 122, 238, 0.12);
}
.bildirim-oge.okunmamis {
    background: linear-gradient(180deg, rgba(45, 122, 238, 0.1), rgba(11, 18, 32, 0.78));
    border-color: rgba(76, 201, 240, 0.3);
}

.bildirim-body { flex: 1; min-width: 0; }
.bildirim-baslik-satir {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: baseline;
    margin-bottom: .35rem;
    flex-wrap: wrap;
}
.bildirim-baslik {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.005em;
}
.bildirim-tarih {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .04em;
    white-space: nowrap;
}
.bildirim-mesaj {
    margin: 0 0 .55rem;
    color: var(--text-2);
    font-size: .87rem;
    line-height: 1.55;
}
.bildirim-meta {
    display: flex;
    gap: .55rem;
    align-items: center;
    flex-wrap: wrap;
}
.bildirim-link {
    color: var(--neon);
    text-decoration: none;
    font-size: .78rem;
    font-family: var(--font-mono);
    padding: .15rem .5rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 999px;
    transition: all .15s;
}
.bildirim-link:hover {
    background: rgba(76, 201, 240, 0.1);
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.3);
}
.bildirim-ts {
    color: var(--muted);
    font-size: .7rem;
    margin-left: auto;
    opacity: .75;
}

.bildirim-sil { margin: 0; align-self: flex-start; }
.bildirim-sil-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    width: 32px; height: 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all .18s;
    display: grid; place-items: center;
}
.bildirim-sil-btn:hover {
    color: var(--danger);
    border-color: rgba(255, 79, 99, 0.4);
    background: rgba(255, 79, 99, 0.08);
    box-shadow: 0 0 14px rgba(255, 79, 99, 0.3);
    transform: rotate(90deg);
}

/* ─── Empty state ──────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--muted);
}
.empty-state-icon {
    font-size: 3.5rem;
    color: var(--neon);
    opacity: .35;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(76, 201, 240, 0.5);
    animation: emptyFloat 4s ease-in-out infinite;
}
@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.empty-state h3 {
    margin: 0 0 .5rem;
    color: var(--text);
    font-weight: 600;
}

/* ─── Page header actions ──────────────────────────────────────────── */
.page-header .actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Custom scrollbar (NASA mavi) ─────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(3, 6, 13, 0.5); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #1a4fa8);
    border-radius: 6px;
    border: 2px solid rgba(3, 6, 13, 0.5);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--neon), var(--primary)); }
::-webkit-scrollbar-corner { background: transparent; }

/* ─── Selection ────────────────────────────────────────────────────── */
::selection { background: rgba(76, 201, 240, 0.35); color: #fff; }

/* ─── Pin popup (Leaflet) — zenginleştirilmiş ──────────────────────── */
.pin-popup-wrap .leaflet-popup-content-wrapper {
    background: linear-gradient(180deg, #0a1424 0%, #050a14 100%);
    color: var(--text);
    border: 1px solid rgba(76, 201, 240, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(76, 201, 240, .1) inset;
    padding: 0;
}
.pin-popup-wrap .leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }
.pin-popup-wrap .leaflet-popup-tip { background: #0a1424; border: 1px solid rgba(76, 201, 240, .35); }
.pin-popup-wrap a.leaflet-popup-close-button { color: var(--neon); }

.pin-popup-baslik {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: break-word;
}
.pin-popup-rozetler { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pin-popup-rozet {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 2px 7px;
    background: rgba(76, 201, 240, 0.15);
    color: var(--neon);
    border: 1px solid rgba(76, 201, 240, 0.4);
    border-radius: 999px;
    text-transform: uppercase;
}
.pin-popup-rozet.pin-popup-kat {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}
.pin-popup-skor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pin-popup-skor-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.pin-popup-skor-bar > div {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
/* ── Görsel büyütme modalı (sekmeli) ─────────────────────────────────────
   Önceki sürümde görsel çerçevesiz taşıyor, eğitim paneli ekranın altında
   kesiliyordu. Artık sabit yükseklikli bir KART: başlık + sekmeler + kaydırılan
   gövde + alt bar. Gövde taşarsa yalnızca gövde kayar, kart yerinde durur. */
.gb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(2, 6, 23, .86);
    backdrop-filter: blur(3px);
    padding: 2.5vmin;
    align-items: center;
    justify-content: center;
}
.gb-overlay.acik { display: flex; }

.gb-kart {
    display: flex;
    flex-direction: column;
    width: min(96vw, 1080px);
    max-height: 95vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .7rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
    overflow: hidden;
}

.gb-baslik {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem .95rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex: 0 0 auto;
}
.gb-baslik-metin strong { display: block; font-size: .95rem; color: #f1f5f9; }
.gb-baslik-metin span { display: block; font-size: .72rem; color: #94a3b8; margin-top: 2px; }
.gb-kapat {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: .35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.gb-kapat:hover { background: rgba(255, 255, 255, .16); }

.gb-tablar {
    display: flex;
    gap: .3rem;
    padding: .5rem .95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex: 0 0 auto;
    overflow-x: auto;
}
.gb-tablar button {
    flex: 0 0 auto;
    padding: .45rem .85rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.gb-tablar button:hover { color: #e2e8f0; }
.gb-tablar button.aktif { color: #4cc9f0; border-bottom-color: #4cc9f0; }

.gb-govde {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: .95rem;
}

/* Görsel sahnesi — ısı haritası ve nişan üstüne biner, hep hizalı kalır. */
.gb-sahne {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
    border-radius: .45rem;
    overflow: hidden;
    background: #000;
}
.gb-sahne img.gb-gorsel {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Isı görüntüsü artık BİRLEŞİK geliyor (kırpılmış görsel + ısı basılmış),
   yani ayrı bir bindirme katmanı değil, normal bir görsel. Önceki sürümde
   absolute konumlanıp alttaki tam kadraj görselinin üstüne biniyordu; alan
   çizilince ikisi farklı ölçekte olduğu için düzen bozuluyordu. */
.gb-durum {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: .6rem;
    max-width: 92%;
    transform: translateX(-50%);
    padding: .35rem .7rem;
    border-radius: .35rem;
    background: rgba(2, 6, 23, .88);
    color: #cbd5e1;
    font-size: .72rem;
    line-height: 1.3;
    text-align: center;
    max-width: 90%;
}

/* Odak nişanı — modelin en güçlü sinyali gördüğü nokta */
.gb-odak {
    position: absolute;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 14px rgba(245, 158, 11, .85);
    pointer-events: none;
    animation: gbNabiz 1.8s ease-in-out infinite;
}
.gb-odak::before,
.gb-odak::after { content: ''; position: absolute; background: #f59e0b; }
.gb-odak::before { left: 50%; top: -9px; bottom: -9px; width: 1px; margin-left: -.5px; }
.gb-odak::after { top: 50%; left: -9px; right: -9px; height: 1px; margin-top: -.5px; }
@keyframes gbNabiz { 50% { transform: scale(1.14); opacity: .75; } }

/* Skorlar sekmesi */
.gb-panel { color: #e2e8f0; font-size: .82rem; }
.gb-bos { color: #94a3b8; text-align: center; padding: 1.2rem; font-size: .82rem; }
.gb-uyari {
    padding: .6rem .75rem;
    border-radius: .45rem;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, .12);
    margin-bottom: .8rem;
    line-height: 1.5;
}
.gb-uyari ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .76rem; color: #cbd5e1; }
.gb-uyari li + li { margin-top: .3rem; }
.gb-kanit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: .45rem;
    margin-bottom: .8rem;
}
.gb-kanit > div {
    background: rgba(255, 255, 255, .05);
    border-radius: .4rem;
    padding: .5rem;
    text-align: center;
}
.gb-kanit b { display: block; font-size: 1.1rem; }
.gb-kanit span { font-size: .66rem; color: #94a3b8; }
.gb-tablo { width: 100%; border-collapse: collapse; }
.gb-tablo td { padding: .3rem; vertical-align: middle; }
.gb-tablo td:first-child { width: 38%; font-size: .77rem; }
.gb-tablo small { display: block; font-size: .65rem; color: #94a3b8; }
.gb-bar > div { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.gb-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4cc9f0, #4361ee); }
.gb-deger {
    width: 3.7rem;
    text-align: right;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: .73rem;
}
.gb-dipnot { margin-top: .8rem; font-size: .72rem; color: #94a3b8; line-height: 1.5; }

.gb-alt {
    flex: 0 0 auto;
    padding: .65rem .95rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: center;
}
.gb-alt:empty { display: none; }
.gb-sil button {
    padding: .45rem .95rem;
    border-radius: .4rem;
    border: 1px solid rgba(220, 38, 38, .5);
    background: rgba(220, 38, 38, .14);
    color: #fca5a5;
    font-size: .78rem;
    cursor: pointer;
}
.gb-sil button:hover { background: rgba(220, 38, 38, .28); color: #fff; }


/* ── Alan çizme sekmesi ──────────────────────────────────────────────── */
.gb-ciz-yardim {
    font-size: .76rem;
    line-height: 1.5;
    color: #cbd5e1;
    background: rgba(76, 201, 240, .1);
    border-left: 3px solid #4cc9f0;
    padding: .55rem .7rem;
    border-radius: .4rem;
    margin-bottom: .7rem;
}
.gb-ciz-sahne { cursor: crosshair; }
.gb-ciz-sahne img { user-select: none; -webkit-user-drag: none; }
.gb-ciz-katman { position: absolute; inset: 0; touch-action: none; }

.gb-kutu {
    position: absolute;
    border: 2px solid #f59e0b;
    background: rgba(245, 158, 11, .16);
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
}
.gb-kutu > span {
    position: absolute;
    top: -1.35rem;
    left: -2px;
    padding: 1px 5px;
    background: #f59e0b;
    color: #1e293b;
    font-size: .66rem;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
}
.gb-kutu-sil {
    position: absolute;
    top: -.4rem;
    right: -.4rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.gb-kutu-sil:hover { background: #ef4444; }
.gb-kutu-taslak { border-style: dashed; }
.gb-kutu-taslak > span, .gb-kutu-taslak .gb-kutu-sil { display: none; }

.gb-ciz-arac {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .7rem;
    flex-wrap: wrap;
}
.gb-ciz-sayac { margin-right: auto; font-size: .78rem; color: #94a3b8; line-height: 1.4; }
.gb-ciz-sayac.iyi { color: #86efac; }
.gb-ciz-sayac.uyari { color: #fca5a5; }
.gb-ciz-arac button {
    padding: .42rem .9rem;
    border-radius: .4rem;
    font-size: .78rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
}
.gb-ciz-arac button:hover { background: rgba(255, 255, 255, .14); }
.gb-ciz-kaydet {
    border-color: rgba(76, 201, 240, .55) !important;
    background: rgba(76, 201, 240, .18) !important;
    color: #eaf9ff !important;
    font-weight: 600;
}
.gb-ciz-kaydet:hover { background: rgba(76, 201, 240, .3) !important; }
.gb-ciz-kaydet:disabled { opacity: .6; cursor: default; }
.gb-ciz-egit {
    border-color: rgba(22, 163, 74, .6) !important;
    background: rgba(22, 163, 74, .2) !important;
    color: #bbf7d0 !important;
    font-weight: 700;
}
.gb-ciz-egit:hover { background: rgba(22, 163, 74, .34) !important; color: #fff !important; }
.gb-ciz-egit:disabled { opacity: .65; cursor: default; }
.gb-ciz-bol {
    border-color: rgba(168, 85, 247, .55) !important;
    background: rgba(168, 85, 247, .16) !important;
    color: #e9d5ff !important;
}
.gb-ciz-bol:hover { background: rgba(168, 85, 247, .3) !important; color: #fff !important; }
.gb-ciz-bol:disabled { opacity: .65; cursor: default; }

/* "Eğitim tamamlandı" bildirimi — kullanıcı ayrıca kaydetmesi gerekip
   gerekmediğini merak etmesin diye ne yazıldığını tek tek gösterir. */
.gb-bitti {
    padding: .6rem .75rem;
    margin-bottom: .7rem;
    border-radius: .45rem;
    border-left: 3px solid #16a34a;
    background: rgba(22, 163, 74, .14);
    color: #e2e8f0;
    font-size: .8rem;
    line-height: 1.5;
}
.gb-bitti.uyari { border-left-color: #f59e0b; background: rgba(245, 158, 11, .14); }
.gb-bitti-satir {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    margin: .35rem 0 .2rem;
    font-size: .74rem;
    color: #bbf7d0;
}
.gb-bitti.uyari .gb-bitti-satir { color: #fde68a; }
.gb-bitti small { display: block; font-size: .7rem; color: #94a3b8; }
/* Sadece-kaydet ikincil kalsın, asıl eylem "Kaydet ve eğit" olsun */
.gb-ciz-kaydet { font-weight: 400 !important; }

/* Tıklanabilir olduğu belli olsun */
img[data-buyut] { cursor: zoom-in; }

/* Hücre popup'ındaki harita bağlantıları */
.hucre-harita-linkler {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: .4rem;
    flex-wrap: wrap;
}
.hucre-harita-linkler a {
    font-size: .72rem;
    padding: .25rem .5rem;
    border-radius: .35rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.hucre-harita-linkler a:hover { background: rgba(255, 255, 255, .14); }

/* "Yakından incele" modalı */
.hucre-yakin-baslik {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}
.hucre-yakin-koord {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: .78rem;
    color: var(--muted);
    cursor: text;
}
.hucre-yakin-zoomlar {
    display: flex;
    gap: .4rem;
    margin-bottom: .7rem;
    flex-wrap: wrap;
}
.hucre-yakin-z {
    flex: 1 1 auto;
    min-width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: .4rem .3rem;
    border-radius: .4rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: inherit;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
}
.hucre-yakin-z small { font-weight: 400; font-size: .66rem; color: var(--muted); }
.hucre-yakin-z:hover { background: rgba(255, 255, 255, .1); }
.hucre-yakin-z.aktif {
    border-color: var(--neon);
    background: rgba(76, 201, 240, .16);
    color: #eaf9ff;
}
.hucre-yakin-z.aktif small { color: #bde9f7; }
.hucre-yakin-tuval {
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    background: #111;
    aspect-ratio: 1 / 1;
    max-height: 62vh;
    margin: 0 auto;
}
.hucre-yakin-tuval img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .18s ease;
}
.hucre-yakin-yukleniyor {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #cbd5e1;
    pointer-events: none;
    text-align: center;
    padding: 1rem;
}
.hucre-yakin-not {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    margin-top: .45rem;
}

/* Uydu modeli (DINOv3 SAT-493M) doğrulama satırı — klasik skorun altında,
   insan onayı için bağımsız ikinci görüş. */
.pin-popup-dv3 {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 5px 8px;
    margin: 0 0 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 5px 5px 0;
    font-size: .74rem;
}
.pin-popup-dv3-not {
    font-size: .68rem;
    color: var(--muted);
    line-height: 1.3;
}
.pin-popup-koord {
    font-size: .72rem;
    color: var(--muted);
    font-family: 'SF Mono', Menlo, monospace;
    margin-bottom: 4px;
}
.pin-popup-kiyas {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}
.pin-popup-kiyas-it {
    flex: 1;
    min-width: 0;
}
.pin-popup-kiyas-lbl {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 3px;
    text-align: center;
}
.pin-popup-kiyas-it img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(76, 201, 240, .25);
    display: block;
}
.pin-popup-btn { width: 100%; margin-top: 4px; }

/* "Yanlış pozitif - Sil" butonu (Haz 2026)
 * Kırmızı tonlu, ikincil aksiyon — kullanıcı yanlışlıkla basmasın diye
 * primary butondan biraz daha az dikkat çekici, ama yine de erişilebilir. */
.pin-popup-sil {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: .78rem;
    padding: .35rem .6rem;
    border-radius: .35rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.pin-popup-sil:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
    border-color: #b91c1c;
}
.pin-popup-sil:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ─── Pin modal overlay — canvas + toggle butonları ─────────────────── */
.pin-modal-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(76, 201, 240, .25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    /* Zoom için pan kursörü; 1× iken normal */
    touch-action: none;
}
.pin-modal-img-wrap.pin-zoom-aktif.zoom-aktif-cubuk { cursor: grab; }
.pin-modal-img-wrap.pin-zoom-dragging,
.pin-modal-img-wrap.pin-zoom-dragging * { cursor: grabbing !important; }

.pin-zoom-yer {
    transform-origin: 0 0;
    transition: transform .12s ease-out;
    will-change: transform;
    position: relative;
    line-height: 0;       /* img inline-block leftover boşluğu sıfırla */
}
.pin-modal-img-wrap.pin-zoom-dragging .pin-zoom-yer { transition: none; }

.pin-modal-img-wrap .pin-modal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    pointer-events: none; /* drag eventleri wrap'e gitsin */
    user-select: none;
}
.pin-cizim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 2;
    animation: pinOverlayFadeIn .55s ease-out;
}
@keyframes pinOverlayFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

.pin-overlay-kontrol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    padding: 8px;
    background: rgba(3, 6, 13, 0.55);
    border: 1px solid rgba(76, 201, 240, 0.18);
    border-radius: 8px;
}
.pin-overlay-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(148, 163, 184, 0.65);
    padding: 6px 12px;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    opacity: 0.55;
    filter: grayscale(40%);
    position: relative;
}
.pin-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    opacity: 0.85;
    filter: grayscale(0%);
}
/* PASİF: gri, soluk, hafif çapraz çizgi (kapalı görünümü) */
.pin-overlay-btn:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 47%, rgba(255,255,255,0.35) 49%, rgba(255,255,255,0.35) 51%, transparent 53%);
    border-radius: inherit;
    pointer-events: none;
}
/* AKTİF: parlak, kendi rengi ile glow */
.pin-overlay-btn.active {
    color: #fff;
    opacity: 1;
    filter: none;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.20), rgba(76, 201, 240, 0.10));
    border-color: rgba(76, 201, 240, 0.6);
    box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.3) inset, 0 0 14px rgba(76, 201, 240, 0.4);
    transform: scale(1.02);
}
.pin-overlay-btn-isi.active {
    background: linear-gradient(135deg, rgba(245,158,11,0.28), rgba(245,158,11,0.12));
    border-color: rgba(245,158,11,0.65);
    box-shadow: 0 0 0 1px rgba(245,158,11,.45) inset, 0 0 16px rgba(245,158,11,.5);
}
.pin-overlay-btn-nokta.active {
    background: linear-gradient(135deg, rgba(34,197,94,0.28), rgba(34,197,94,0.12));
    border-color: rgba(34,197,94,0.65);
    box-shadow: 0 0 0 1px rgba(34,197,94,.45) inset, 0 0 16px rgba(34,197,94,.5);
}
.pin-overlay-btn-cizgi.active {
    background: linear-gradient(135deg, rgba(255,230,80,0.28), rgba(255,230,80,0.12));
    border-color: rgba(255,230,80,0.7);
    box-shadow: 0 0 0 1px rgba(255,230,80,.5) inset, 0 0 16px rgba(255,230,80,.5);
}
.pin-overlay-btn:active {
    transform: scale(0.96);
}
.pin-overlay-info {
    margin-left: auto;
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ─── Saydamlık slider'ları ─────────────────────────────────────────── */
.pin-overlay-sliderlar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(3, 6, 13, 0.6);
    border: 1px solid rgba(76, 201, 240, 0.16);
    border-radius: 8px;
}
.pin-slider {
    display: grid;
    grid-template-columns: 22px 70px 1fr 45px;
    align-items: center;
    gap: 10px;
    --slider-pct: 100%;
}
.pin-slider-ikon { font-size: 1rem; line-height: 1; }
.pin-slider-ad {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .03em;
}
.pin-slider-deger {
    font-size: .7rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 600;
}
.pin-slider input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right,
        var(--slider-renk, var(--neon)) 0,
        var(--slider-renk, var(--neon)) var(--slider-pct),
        rgba(255,255,255,0.08) var(--slider-pct),
        rgba(255,255,255,0.08) 100%);
    transition: background .15s ease;
}
.pin-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--slider-renk, var(--neon));
    box-shadow: 0 0 8px var(--slider-renk, var(--neon)),
                0 2px 4px rgba(0,0,0,.4);
    cursor: grab;
}
.pin-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.15); }
.pin-slider input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff;
    border: 2px solid var(--slider-renk, var(--neon));
    box-shadow: 0 0 8px var(--slider-renk, var(--neon));
}
.pin-slider[data-slider="grid"]      { --slider-renk: #f59e0b; }
.pin-slider[data-slider="keypoints"] { --slider-renk: #22c55e; }
.pin-slider[data-slider="lines"]     { --slider-renk: #ffe650; }

/* ─── Mini zoom kontrolleri (görsel üstünde) ─────────────────────────── */
.pin-zoom-mini {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(3, 6, 13, 0.85);
    border: 1px solid rgba(76, 201, 240, 0.35);
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.pin-zoom-mini button {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    padding: 0;
}
.pin-zoom-mini button:hover {
    background: rgba(76, 201, 240, .25);
    border-color: rgba(76, 201, 240, .65);
    box-shadow: 0 0 10px rgba(76, 201, 240, .35);
}
.pin-zoom-mini button:active { transform: scale(0.92); }
.pin-zoom-bilgi {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 4;
    padding: 3px 8px;
    background: rgba(3, 6, 13, 0.85);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: .03em;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ─── Tam Ekran butonu (modal görseli içinde) ───────────────────────── */
.pin-fs-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(76, 201, 240, 0.45);
    background: rgba(3, 6, 13, 0.85);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4),
                0 0 0 1px rgba(76, 201, 240, .15) inset;
}
.pin-fs-btn:hover {
    background: rgba(76, 201, 240, 0.25);
    border-color: rgba(76, 201, 240, .9);
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .55),
                0 0 14px rgba(76, 201, 240, .4);
}

/* ─── Lightbox (Tam Ekran overlay) ───────────────────────────────────── */
.pin-fs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    animation: pinModalFade .2s ease-out forwards;
}
.pin-fs-icerik {
    position: relative;
    width: 100%;
    max-width: 1400px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #0a1424 0%, #050a14 100%);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 16px;
    padding: 16px 18px 14px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
    overflow: auto;
}
/* Tam ekran içinde kontrol/slider panelleri görsel genişliğini taklit
   etmesin — kompakt ve ortada kalsın */
.pin-fs-icerik .pin-overlay-kontrol,
.pin-fs-icerik .pin-overlay-sliderlar {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}
/* Tam ekranda wrap, görselin doğal en-boy oranına eşit küçülmeli.
   Aksi halde flex container görsel dışında ekstra boşluk bırakır ve canvas
   o boşluğa da çizer → overlay görsel sınırının dışına taşar. */
.pin-fs-icerik .pin-modal-img-wrap {
    margin: 0 auto;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    max-height: calc(100vh - 320px);
    background: #000;
    display: block;
    overflow: hidden;
}
.pin-fs-icerik .pin-modal-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 320px);
    margin: 0;
    object-fit: contain;
}
.pin-fs-kapat {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(15, 23, 42, .9);
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.pin-fs-kapat:hover {
    background: rgba(239, 68, 68, .9);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg);
}

/* ─── Responsive (sidebar collapses) ───────────────────────────────── */
@media (max-width: 900px) {
    .bildirim-feed::before { display: none; }
    .bildirim-oge { margin-left: 0; }
    .bildirim-isaret { display: none; }
    .bildirim-oge::before { display: none; }
}

/* ─── Derin Tarama Toggle ──────────────────────────────────────────── */
.derin-mod-kutu {
    margin: 1rem 0;
    padding: .85rem 1rem;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, .08) 0%,
        rgba(99, 102, 241, .08) 100%);
    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: 10px;
    transition: all .25s ease;
}
.derin-mod-kutu:has(input:checked) {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, .20) 0%,
        rgba(99, 102, 241, .20) 100%);
    border-color: rgba(139, 92, 246, .75);
    box-shadow: 0 0 22px rgba(139, 92, 246, .35),
                inset 0 0 14px rgba(139, 92, 246, .12);
}
.derin-mod-toggle {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.derin-mod-toggle input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #a78bfa;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.derin-mod-rozet {
    display: inline-block;
    padding: .25rem .65rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    flex-shrink: 0;
    align-self: center;
}
.derin-mod-bilgi {
    font-size: .82rem;
    color: var(--metin-acik, #c7d2fe);
    line-height: 1.5;
    flex: 1;
}
.derin-mod-bilgi strong {
    color: #c4b5fd;
}

/* ─── Harita altı: Bulgu Önizlemeleri (yatay scroll) ─────────────── */
.bulgu-alt-panel {
    margin-top: 1rem;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(15, 23, 42, .65) 0%,
        rgba(15, 23, 42, .50) 100%);
    border: 1px solid var(--border);
}
.bulgu-alt-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, .35);
}
.bulgu-alt-baslik h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.bulgu-alt-ikon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, .6));
}
.bulgu-alt-sayac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 .55rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(99, 102, 241, .45);
}
.bulgu-alt-bilgi {
    font-size: .82rem;
}
.bulgu-alt-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
    padding: .9rem 1.1rem;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, .65) transparent;
}
.bulgu-alt-scroll::-webkit-scrollbar { width: 10px; }
.bulgu-alt-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .25);
    border-radius: 4px;
}
.bulgu-alt-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}
.bulgu-alt-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #a78bfa);
}
.bulgu-alt-kart {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-2, rgba(15, 23, 42, .55));
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bulgu-alt-kart:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .65);
    box-shadow: 0 8px 22px rgba(99, 102, 241, .25),
                0 0 0 1px rgba(99, 102, 241, .35);
}

/* En yeni bulunan pin'i belirgin yap — son polling'te eklenenler. */
.bulgu-alt-kart-yeni {
    border-color: rgba(34, 197, 94, .8) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .5),
                0 0 18px rgba(34, 197, 94, .35);
    animation: bulgu-yeni-pulse 1.6s ease-in-out 4;
}
@keyframes bulgu-yeni-pulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(34, 197, 94, .5),
                    0 0 18px rgba(34, 197, 94, .35);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(34, 197, 94, .8),
                    0 0 28px rgba(34, 197, 94, .65);
    }
}
.bulgu-alt-yeni-rozet {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    padding: 2px 8px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.bulgu-alt-kart img,
.bulgu-alt-kart .bulgu-alt-kart-bos {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(30, 41, 59, 0.5));
    color: #94a3b8;
    text-align: center;
    padding: 0.5rem;
}
.bulgu-alt-kart .bulgu-alt-kart-bos small {
    font-size: 0.7rem;
    color: #94a3b8;
}
.bulgu-alt-skor {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: .15rem .45rem;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.bulgu-alt-skor-yuksek {
    background: linear-gradient(135deg, #10b981, #059669);
}
.bulgu-alt-skor-orta {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.bulgu-alt-skor-dusuk {
    background: linear-gradient(135deg, #64748b, #475569);
}
.bulgu-alt-baslik-kucuk {
    padding: .4rem .55rem;
    font-size: .72rem;
    line-height: 1.3;
    color: var(--metin, #e2e8f0);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
}
@media (max-width: 700px) {
    .bulgu-alt-scroll {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        max-height: 420px;
    }
    .bulgu-alt-kart img,
    .bulgu-alt-kart .bulgu-alt-kart-bos { height: 85px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CANLI SİSTEM İZLEME WIDGET'I (Dashboard) + KURTARMA BANNER'I
   2 saniyede bir polling — sistem yaşadığını gösterir
   ═══════════════════════════════════════════════════════════════════ */
.canli-sistem-kart {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.canli-sistem-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1);
    background-size: 200% 100%;
    animation: canli-shimmer 3s ease-in-out infinite;
}
@keyframes canli-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.canli-sistem-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.canli-sistem-baslik-sol {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.canli-sistem-baslik h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.canli-puls {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.canli-puls.aktif {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: canli-puls-anim 1.6s ease-out infinite;
}
.canli-puls.uyari {
    background: #f59e0b;
}
.canli-puls.hata {
    background: #ef4444;
}
@keyframes canli-puls-anim {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.canli-rozet {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.canli-rozet.aktif {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}
.canli-rozet.uyari {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}
.canli-rozet.hata {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* AKTİF TARAMA PANELİ */
.canli-aktif-panel {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
}
.canli-aktif-ust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.canli-aktif-baslik {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.canli-aktif-tip {
    font-size: 0.78rem;
    color: #c7d2fe;
    letter-spacing: 0.03em;
}
.canli-aktif-mod {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.canli-aktif-mesaj {
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

.canli-ilerleme-bar {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    height: 26px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.7rem;
}
.canli-ilerleme-dolgu {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    background-size: 30px 30px;
    background-image: linear-gradient(90deg, #10b981, #06b6d4),
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    animation: canli-stripe 1s linear infinite;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes canli-stripe {
    0%   { background-position: 0 0; }
    100% { background-position: 30px 0; }
}
.canli-ilerleme-metin {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    color: #fff;
    pointer-events: none;
}

.canli-aktif-metrik {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.canli-metrik {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.55rem;
    border-radius: 8px;
    text-align: center;
}
.canli-metrik-deger {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.2;
}
.canli-metrik-etiket {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* BOŞ DURUM */
.canli-bos-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(75, 85, 99, 0.08);
    border-radius: 10px;
    margin-bottom: 0.85rem;
}
.canli-bos-ikon {
    font-size: 2rem;
    opacity: 0.6;
}
.canli-bos-metin strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #d1d5db;
}

/* DURMUŞ TARAMA UYARI BANDI */
.canli-durmus-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    margin-bottom: 0.85rem;
}

/* HTML `hidden` özniteliğinin display:flex/grid kuralları tarafından
   geçersizleştirilmesini önler (en sık sebep: tarayıcının `[hidden]{display:none}`
   user-agent kuralı, açık `display:flex` kuralının altında kalır). */
.canli-sistem-kart [hidden],
.canli-aktif-panel[hidden],
.canli-bos-panel[hidden],
.canli-durmus-panel[hidden],
.canli-geri-sayim[hidden] {
    display: none !important;
}
.canli-durmus-icon {
    font-size: 1.5rem;
}
.canli-durmus-icerik {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.canli-durmus-icerik strong {
    color: #fcd34d;
    display: block;
}

/* CANLI OLAY FEED */
.canli-olay-panel {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    overflow: hidden;
}
.canli-olay-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.canli-olay-liste {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem 0;
}
.canli-olay-liste::-webkit-scrollbar { width: 6px; }
.canli-olay-liste::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}
.canli-olay {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    border-left: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    animation: canli-olay-gir 0.4s ease-out;
}
.canli-olay:hover {
    background: rgba(255, 255, 255, 0.02);
}
@keyframes canli-olay-gir {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.canli-olay.yeni {
    background: rgba(16, 185, 129, 0.06);
    border-left-color: #10b981;
}
.canli-olay-ikon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.canli-olay-zaman {
    color: #64748b;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.canli-olay-mesaj {
    flex: 1;
    color: #cbd5e1;
    word-break: break-word;
}
.canli-olay-mesaj.success { color: #6ee7b7; }
.canli-olay-mesaj.info    { color: #93c5fd; }
.canli-olay-mesaj.warning { color: #fcd34d; }
.canli-olay-mesaj.danger  { color: #fca5a5; }
.canli-olay-mesaj.muted   { color: #94a3b8; }

@media (max-width: 700px) {
    .canli-aktif-metrik {
        grid-template-columns: repeat(2, 1fr);
    }
    .canli-ilerleme-metin {
        font-size: 0.72rem;
        gap: 0.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   KURTARMA BANNER'I (Taramalar sayfası üst)
   Elektrik kesintisi / restart sonrası yarım kalmış taramalar için
   ═══════════════════════════════════════════════════════════════════ */
.kurtarma-banner {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 1rem 0 1.25rem;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
    position: relative;
    overflow: hidden;
}
.kurtarma-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #10b981);
}
.kurtarma-banner-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    animation: kurtarma-puls 2.5s ease-in-out infinite;
}
@keyframes kurtarma-puls {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
.kurtarma-banner-icerik {
    flex: 1;
}
.kurtarma-banner-icerik h3 {
    margin: 0 0 0.35rem;
    color: #fcd34d;
    font-size: 1.05rem;
}
.kurtarma-banner-icerik p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.5;
}
.kurtarma-tarama-liste {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.kurtarma-tarama-satir {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    flex-wrap: wrap;
}
.kurtarma-tarama-bilgi {
    flex: 1;
    min-width: 200px;
    font-size: 0.85rem;
}
/* "Devam Et" + "Sil" butonları yan yana */
.kurtarma-tarama-aksiyonlar {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.kurtarma-tarama-aksiyonlar form {
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   TARAMA SİL ONAY MODAL — kurtarma satırından tetiklenir
   ═══════════════════════════════════════════════════════════════════ */
.tarama-sil-overlay { z-index: 10001; }
.tarama-sil-modal {
    max-width: 540px !important;
    padding: 28px 30px !important;
    text-align: left;
}
.tarama-sil-ikon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 26px rgba(245, 158, 11, 0.45),
                0 0 0 6px rgba(245, 158, 11, 0.15);
    animation: tarama-sil-uyari-pulse 1.8s ease-in-out infinite;
}
@keyframes tarama-sil-uyari-pulse {
    0%, 100% { box-shadow: 0 6px 26px rgba(245, 158, 11, 0.45),
                            0 0 0 6px rgba(245, 158, 11, 0.15); }
    50%      { box-shadow: 0 6px 30px rgba(245, 158, 11, 0.65),
                            0 0 0 10px rgba(245, 158, 11, 0.05); }
}
.tarama-sil-baslik {
    text-align: center;
    margin: 0 0 8px;
    font-size: 1.18rem;
    color: #f8fafc;
}
.tarama-sil-aciklama {
    text-align: center;
    color: #cbd5e1;
    margin: 0 0 16px;
    font-size: .92rem;
    line-height: 1.5;
}
.tarama-sil-ozet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.tarama-sil-ozet-oge {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}
.tarama-sil-ozet-oge .muted {
    display: block;
    font-size: .68rem;
    margin-bottom: 3px;
    color: #94a3b8;
}
.tarama-sil-ozet-oge strong {
    font-size: 1.08rem;
    color: #f1f5f9;
    word-break: break-word;
}
.tarama-sil-uyari {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.tarama-sil-uyari-baslik {
    color: #fca5a5;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.tarama-sil-uyari-liste {
    margin: 0;
    padding-left: 18px;
    font-size: .8rem;
    color: #fecaca;
    line-height: 1.55;
}
.tarama-sil-uyari-liste li { margin-bottom: 2px; }
.tarama-sil-uyari-liste em { color: #86efac; font-style: normal; font-weight: 600; }
.tarama-sil-uyari-liste code,
.tarama-sil-koruma-liste code {
    background: rgba(0, 0, 0, 0.35);
    color: #fcd34d;
    padding: 0 4px;
    border-radius: 3px;
    font-size: .72rem;
}

.tarama-sil-koruma {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.tarama-sil-koruma-baslik {
    color: #6ee7b7;
    font-weight: 700;
    font-size: .82rem;
    margin-bottom: 5px;
    letter-spacing: .02em;
}
.tarama-sil-koruma-liste {
    margin: 0;
    padding-left: 18px;
    font-size: .78rem;
    color: #bbf7d0;
    line-height: 1.5;
}
.tarama-sil-koruma-liste li { margin-bottom: 2px; }
.tarama-sil-koruma-liste em { color: #fef08a; font-style: normal; font-weight: 600; }

.tarama-sil-onay-satir {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 8px;
}
.tarama-sil-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .85rem;
    color: #e2e8f0;
    user-select: none;
}
.tarama-sil-checkbox input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
    cursor: pointer;
    flex-shrink: 0;
}
.tarama-sil-aksiyonlar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.tarama-sil-aksiyonlar .btn-danger:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.kurtarma-tarama-bilgi strong {
    color: #f3f4f6;
}
.kurtarma-tarama-bilgi .muted {
    display: block;
    margin-top: 0.2rem;
}

/* Sebep rozetleri — yarıda kalan tarama tipini göstersin */
.rozet-sebep {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.rozet-orphan, .rozet-sebep.rozet-orphan {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.rozet-iptal, .rozet-sebep.rozet-iptal {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.rozet-hata, .rozet-sebep.rozet-hata {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.rozet-pasif, .rozet-sebep.rozet-pasif {
    background: rgba(100, 116, 139, 0.18);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.4);
}
/* Üst bant özet rozetleri arası boşluk */
.kurtarma-banner-icerik p .rozet-orphan,
.kurtarma-banner-icerik p .rozet-iptal,
.kurtarma-banner-icerik p .rozet-hata {
    margin-left: 0.4rem;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
}
.kurtarma-tarama-bilgi .hata-detay {
    background: rgba(239, 68, 68, 0.06);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border-left: 2px solid rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   SÜRE TAHMİN KARTI (Tarama formu) + GERİ SAYIM (Dashboard widget)
   ═══════════════════════════════════════════════════════════════════ */
.sure-tahmin-kart {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}
.sure-tahmin-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #06b6d4, #10b981);
}
.sure-tahmin-baslik {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}
.sure-tahmin-ikon { font-size: 1.2rem; }
.sure-tahmin-mod {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sure-tahmin-mod.derin {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}
.sure-tahmin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.sure-tahmin-metrik {
    background: rgba(0, 0, 0, 0.18);
    padding: 0.55rem;
    border-radius: 8px;
    text-align: center;
}
.sure-tahmin-deger {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.25;
}
.sure-tahmin-metrik.sure-tahmin-ana {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.sure-tahmin-metrik.sure-tahmin-ana .sure-tahmin-deger {
    color: #6ee7b7;
    font-size: 1.2rem;
}
.sure-tahmin-etiket {
    font-size: 0.66rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}
.sure-tahmin-not {
    font-size: 0.78rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
    .sure-tahmin-grid { grid-template-columns: repeat(2, 1fr); }
}

/* GERİ SAYIM (Dashboard widget'ı içinde) */
.canli-geri-sayim {
    margin-top: 0.7rem;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.canli-geri-sayim-sol {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.canli-geri-sayim-ikon {
    font-size: 1.5rem;
    animation: canli-saat 2s ease-in-out infinite;
}
@keyframes canli-saat {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}
.canli-geri-sayim-deger {
    font-size: 1.35rem;
    font-weight: 700;
    color: #6ee7b7;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.canli-geri-sayim-etiket {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.canli-geri-sayim-sag {
    text-align: right;
}
.canli-geri-sayim-saat {
    font-size: 1.05rem;
    font-weight: 600;
    color: #c7d2fe;
}

/* ═══════════════════════════════════════════════════════════════════
   AI MOTOR BİLGİ KARTI (Tarama formu üstü)
   Yeni DINOv2 + Multi-Channel sistemini görsel olarak tanıtır
   ═══════════════════════════════════════════════════════════════════ */
.ai-motor-kart {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.ai-motor-kart::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #06b6d4);
    background-size: 200% 100%;
    animation: ai-motor-shimmer 4s ease-in-out infinite;
}
@keyframes ai-motor-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.ai-motor-baslik {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}
.ai-motor-baslik h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #f3f4f6;
    flex: 1;
}
.ai-motor-ikon {
    font-size: 1.6rem;
}
.ai-motor-rozet {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.2));
    color: #c4b5fd;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.ai-motor-aciklama {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}
.ai-motor-aciklama strong {
    color: #a78bfa;
}

.ai-motor-kanal-listesi {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.ai-motor-kanal {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: help;
}
.ai-motor-kanal:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.06);
}
.ai-motor-kanal:first-child {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
    border-color: rgba(139, 92, 246, 0.4);
}
.ai-motor-kanal-ikon {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.ai-motor-kanal-ad {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.2;
}
.ai-motor-kanal-agirlik {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ai-motor-kanal:first-child .ai-motor-kanal-agirlik {
    color: #c4b5fd;
    font-weight: 600;
}

.ai-motor-akilli {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #10b981;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}
.ai-motor-akilli strong {
    color: #6ee7b7;
}

@media (max-width: 800px) {
    .ai-motor-kanal-listesi {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-motor-kanal:first-child {
        grid-column: 1 / -1;
    }
}

/* Derin mod opsiyonel rozeti */
.derin-mod-opsiyonel {
    font-size: 0.72rem;
    font-weight: 400;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.35rem;
}

/* HD detay rozeti — pin modal'da yüksek çözünürlük göstergesi */
.pin-detay-rozet {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.15));
    color: #c4b5fd;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    cursor: help;
}

/* ═══════════════════════════════════════════════════════════════════
   REFERANSA YÜKSELT MODAL — Açıklayıcı, 2-Adımlı, Animasyonlu
   ═══════════════════════════════════════════════════════════════════ */
.ref-yukselt-overlay {
    z-index: 10000;
}
.ref-yukselt-modal {
    max-width: 760px !important;
    width: 95vw;
    padding: 1.5rem !important;
    max-height: 92vh;
    overflow-y: auto;
}

.ref-yukselt-ust {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}
.ref-yukselt-ikon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}
.ref-yukselt-ust h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: #f3f4f6;
}
.ref-yukselt-ust p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* AKIŞ KARTLARI: 1 → 2 → 3 */
.ref-yukselt-akis {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(99, 102, 241, 0.04));
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.ref-yukselt-akis-adim {
    flex: 1;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 8px;
    padding: 0.7rem 0.55rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ref-yukselt-akis-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.ref-yukselt-akis-baslik {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.2rem;
}
.ref-yukselt-akis-aciklama {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.4;
}
.ref-yukselt-akis-ok {
    align-self: center;
    color: #8b5cf6;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 2 SÜTUNLU İÇERİK */
.ref-yukselt-icerik {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.ref-yukselt-onizleme {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ref-yukselt-onizleme-baslik {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ref-yukselt-onizleme img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.55rem;
    background: #1e293b;
}
.ref-yukselt-onizleme-bos {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
}
.ref-yukselt-onizleme-bilgi {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.ref-yukselt-onizleme-bilgi strong {
    color: #f3f4f6;
}

/* FORM */
.ref-yukselt-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ref-yukselt-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 0.35rem;
}
.ref-yukselt-label small {
    font-size: 0.72rem;
    font-weight: 400;
    color: #64748b;
}
.ref-yukselt-label .zorunlu {
    color: #f87171;
}
.ref-yukselt-form input[type=text],
.ref-yukselt-form select,
.ref-yukselt-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 0.5rem 0.7rem;
    color: #e5e7eb;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
.ref-yukselt-form input[type=text]:focus,
.ref-yukselt-form select:focus,
.ref-yukselt-form textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
}

/* ONAY CHECKBOX */
.ref-yukselt-onay {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 0.7rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #d1d5db;
    line-height: 1.5;
    cursor: pointer;
}
.ref-yukselt-onay input[type=checkbox] {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: #8b5cf6;
    flex-shrink: 0;
    cursor: pointer;
}
.ref-yukselt-onay strong {
    color: #fcd34d;
}

/* AKSIYON BUTONLARI */
.ref-yukselt-aksiyonlar {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.85rem;
}
.ref-yukselt-aksiyonlar .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* UYARI BANDI (alt) */
.ref-yukselt-uyari {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.5;
}
.ref-yukselt-uyari strong {
    color: #fcd34d;
}

/* DURUM PANELİ (submit sonrası progress) */
.ref-yukselt-durum {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.ref-yukselt-durum.islem-basarili {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}
.ref-yukselt-durum.islem-hata {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.ref-yukselt-progress-adim {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    animation: ref-fade-in 0.3s ease-out;
}
@keyframes ref-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ref-yukselt-progress-adim.aktif {
    color: #c7d2fe;
}
.ref-yukselt-progress-adim.tamamlandi {
    color: #6ee7b7;
}
.ref-yukselt-progress-adim.hata {
    color: #fca5a5;
}
.ref-yukselt-progress-ikon {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ref-yukselt-bilgi-kart {
    margin-top: 0.7rem;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}
.ref-yukselt-bilgi-kart strong {
    color: #6ee7b7;
}

/* SPINNER */
.ref-yukselt-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ref-spin 0.7s linear infinite;
    margin-right: 0.4rem;
    vertical-align: middle;
}
@keyframes ref-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .ref-yukselt-icerik {
        grid-template-columns: 1fr;
    }
    .ref-yukselt-akis {
        flex-direction: column;
    }
    .ref-yukselt-akis-ok {
        transform: rotate(90deg);
        align-self: center;
        font-size: 1.5rem;
    }
}

/* Bulgu önizleme kartı aksiyon butonları */
.bulgu-alt-kart {
    position: relative;
}
.bulgu-alt-aksiyonlar {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2;
}
.bulgu-alt-kart:hover .bulgu-alt-aksiyonlar {
    opacity: 1;
}
.bulgu-alt-aksiyon-btn {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.bulgu-alt-aksiyon-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════════════════
   MESAJLAŞMA — Kullanıcı ↔ Yönetici sohbet
   ═══════════════════════════════════════════════════════════════════════ */

/* Mesaj sayı rozeti — sidebar'da altın renkte (bildirim kırmızısından ayırmak için) */
.badge-mesaj {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    color: #1a2238 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45) !important;
}

/* 2 sütun: sol akış (1fr) + sağ form (380px) */
.mesaj-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .mesaj-layout { grid-template-columns: 1fr; }
}

.mesaj-akis-kart { padding: 0; overflow: hidden; }
.mesaj-akis {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    background:
        linear-gradient(180deg, rgba(11,18,32,0.4) 0%, rgba(11,18,32,0.1) 100%);
}
.mesaj-akis::-webkit-scrollbar { width: 8px; }
.mesaj-akis::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,.25); border-radius: 4px;
}
.mesaj-akis::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,.45); }

/* Boş durum */
.mesaj-bos {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}
.mesaj-bos-ikon {
    font-size: 3rem;
    margin-bottom: .8rem;
    opacity: .6;
}
.mesaj-bos strong {
    display: block;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: .4rem;
}
.mesaj-bos p { margin: 0; font-size: .85rem; }

/* Mesaj balonu */
.mesaj-balon {
    max-width: 78%;
    padding: .7rem .95rem;
    border-radius: 14px;
    border: 1px solid transparent;
    position: relative;
    animation: balonGiris .25s ease;
}
@keyframes balonGiris {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* "Benim" balonum (sağda, altın çerçeve) */
.mesaj-benim {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.06));
    border-color: rgba(212,175,55,.3);
    border-bottom-right-radius: 4px;
}
/* Karşı tarafın (admin yanıtı kullanıcı için, ya da kullanıcı mesajı admin için) */
.mesaj-admin {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(76,201,240,.1), rgba(76,201,240,.04));
    border-color: rgba(76,201,240,.28);
    border-bottom-left-radius: 4px;
}

.mesaj-balon-ust {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .35rem;
    font-size: .72rem;
}
.mesaj-rol {
    font-family: var(--font-mono, monospace);
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: .03em;
}
.mesaj-admin-rozet {
    background: linear-gradient(135deg, #4cc9f0, #3b9ccf);
    color: #0b1220;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.mesaj-zaman {
    color: #64748b;
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    margin-left: auto;
}
.mesaj-sil {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 .25rem;
    opacity: 0;
    transition: opacity .15s, color .15s;
}
.mesaj-balon:hover .mesaj-sil { opacity: 1; }
.mesaj-sil:hover { color: #ef4444; }

.mesaj-govde {
    color: #e2e8f0;
    font-size: .9rem;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Yeni mesaj formu */
.mesaj-form-kart h3 { margin-top: 0; }
.mesaj-form textarea {
    width: 100%;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08);
    color: #e2e8f0;
    padding: .65rem .8rem;
    border-radius: 8px;
    font-family: var(--font-sans, 'Space Grotesk', system-ui);
    font-size: .9rem;
    resize: vertical;
    min-height: 140px;
    transition: border-color .15s;
}
.mesaj-form textarea:focus {
    outline: none;
    border-color: rgba(212,175,55,.5);
    background: rgba(0,0,0,.4);
}
.mesaj-ipucu {
    font-size: .76rem;
    margin: .7rem 0 .9rem;
    padding: .55rem .7rem;
    background: rgba(76,201,240,.04);
    border-left: 3px solid rgba(76,201,240,.4);
    border-radius: 0 6px 6px 0;
    color: #94a3b8;
}
.mesaj-ipucu ul {
    margin: .35rem 0 0;
    padding-left: 1.1rem;
    line-height: 1.55;
}

/* ─── ADMIN: KONUŞMA LİSTESİ ──────────────────────────────────────── */
.konusma-liste { display: flex; flex-direction: column; gap: .35rem; }

.konusma-satir {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    background: rgba(255,255,255,.015);
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
}
.konusma-satir:hover {
    background: rgba(212,175,55,.04);
    border-color: rgba(212,175,55,.2);
    transform: translateX(2px);
}
.konusma-satir.okunmamis-var {
    border-color: rgba(212,175,55,.45);
    background: linear-gradient(135deg, rgba(212,175,55,.05), rgba(212,175,55,.02));
}

.konusma-avatar {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4cc9f0, #3b9ccf);
    color: #0b1220;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 1.1rem;
}

.konusma-icerik { flex: 1; min-width: 0; }
.konusma-ust {
    display: flex; gap: .55rem; align-items: center;
    margin-bottom: .25rem;
    flex-wrap: wrap;
}
.konusma-ust strong { color: #e2e8f0; }
.konusma-eposta {
    font-family: var(--font-mono, monospace);
    font-size: .75rem;
}
.konusma-son {
    font-size: .82rem;
    color: #94a3b8;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.konusma-son-govde { color: #cbd5e1; }

.konusma-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    font-size: .72rem;
}
.konusma-rozet {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a2238;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: .75rem;
    box-shadow: 0 0 10px rgba(212,175,55,.4);
}
.konusma-zaman { font-family: var(--font-mono, monospace); }
.konusma-toplam { font-family: var(--font-mono, monospace); opacity: .65; }

/* ═══════════════════════════════════════════════════════════════════════
   İNCELEME TALEBİ — Kullanıcı → Yönetici geri besleme döngüsü
   Kullanıcı dikkatini çeken bulguyu yöneticiye gönderir, yönetici onaylarsa
   pin otomatik referans kütüphanesine eklenir. Sistemin kapalı-döngü
   öğrenmesinin topluluk-destekli ucu.
   ═══════════════════════════════════════════════════════════════════════ */

/* Sidebar bekleyen talep rozeti — turuncu uyarı renginde */
.badge-inceleme {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.5) !important;
}

/* ─── PIN KARTI İÇİ DURUM BİLGİSİ (kullanıcı/admin) ─────────────────── */
.pin-inceleme-bilgi {
    margin-top: .75rem;
    padding: .65rem .8rem;
    border: 1px solid;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .82rem;
    line-height: 1.4;
}
.pin-inceleme-bilgi strong {
    display: block;
    font-size: .85rem;
    margin-bottom: 2px;
}
.pin-inceleme-bilgi small {
    display: block;
    font-size: .72rem;
    opacity: .75;
    margin-top: 2px;
}
.pin-inceleme-bilgi > div { flex: 1; min-width: 0; }
.pin-inceleme-ikon {
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 1px;
}

.pin-inceleme-bekliyor {
    background: rgba(251, 146, 60, .08);
    border-color: rgba(251, 146, 60, .35);
    color: #fed7aa;
}
.pin-inceleme-bekliyor strong { color: #fb923c; }

.pin-inceleme-kabul {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .35);
    color: #bbf7d0;
}
.pin-inceleme-kabul strong { color: #22c55e; }

.pin-inceleme-red {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .3);
    color: #fecaca;
}
.pin-inceleme-red strong { color: #f87171; }

.pin-inceleme-admin-uyari {
    background: rgba(212, 175, 55, .1);
    border-color: rgba(212, 175, 55, .4);
    color: #fde68a;
}
.pin-inceleme-admin-uyari strong { color: #d4af37; }

/* Geri çek butonu (kart içi) */
.pin-inceleme-geri {
    background: transparent;
    border: 1px solid rgba(251, 146, 60, .4);
    color: #fb923c;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: .68rem;
    cursor: pointer;
    letter-spacing: .05em;
    font-family: var(--font-mono, monospace);
    flex-shrink: 0;
    align-self: center;
    transition: background .15s ease;
}
.pin-inceleme-geri:hover {
    background: rgba(251, 146, 60, .15);
}

/* Admin için "İncele" linki */
.pin-inceleme-incele {
    background: rgba(212, 175, 55, .15);
    border: 1px solid rgba(212, 175, 55, .45);
    color: #d4af37;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .72rem;
    letter-spacing: .05em;
    text-decoration: none;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
}
.pin-inceleme-incele:hover {
    background: rgba(212, 175, 55, .25);
}

/* ─── MODAL — Dar (talep gönder / karar ver) ─────────────────────────── */
.pin-modal-dar {
    max-width: 560px !important;
    width: 92% !important;
}

.inceleme-talep-form {
    padding: 1.2rem 1.3rem 1.4rem;
}

.inceleme-talep-baslik {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(212, 175, 55, .2);
}
.inceleme-talep-baslik h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #fde68a;
    letter-spacing: .3px;
}
.inceleme-talep-ikon {
    font-size: 1.8rem;
    line-height: 1;
}

.inceleme-talep-form p {
    margin: 0 0 .75rem;
    font-size: .85rem;
}

.inceleme-talep-lbl {
    display: block;
    margin: .85rem 0 .35rem;
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d4af37;
    opacity: .85;
}
.inceleme-talep-lbl .muted { color: #94a3b8; font-weight: 400; letter-spacing: .04em; text-transform: none; }

.inceleme-talep-form textarea,
.inceleme-talep-form input[type=text],
.inceleme-talep-form select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 8px;
    color: #e2e8f0;
    padding: .7rem .85rem;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .15s ease, background .15s ease;
}
.inceleme-talep-form textarea:focus,
.inceleme-talep-form input[type=text]:focus,
.inceleme-talep-form select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, .6);
    background: rgba(15, 23, 42, .75);
}

.inceleme-talep-uyari {
    margin-top: 1rem;
    padding: .7rem .85rem;
    background: rgba(212, 175, 55, .07);
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 6px;
    font-size: .76rem;
    line-height: 1.5;
    color: #cbd5e1;
}
.inceleme-talep-uyari strong { color: #d4af37; }

.inceleme-talep-aksiyon {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.inceleme-talep-hata {
    margin-top: .7rem;
    padding: .6rem .8rem;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 6px;
    color: #fca5a5;
    font-size: .82rem;
}

/* ─── PIN DETAY MODAL — İnceleme banner (bulgu sütununda) ─────────── */
.inceleme-modal-banner {
    width: 100%;
    margin-top: 12px;
    padding: .7rem .85rem;
    border: 1px solid;
    border-radius: 8px;
    font-size: .82rem;
    line-height: 1.45;
}
.inceleme-modal-banner-bekliyor {
    background: rgba(251, 146, 60, .08);
    border-color: rgba(251, 146, 60, .4);
    color: #fed7aa;
}
.inceleme-modal-banner-bekliyor strong { color: #fb923c; }
.inceleme-modal-banner-red {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .3);
    color: #fecaca;
}
.inceleme-modal-banner-red strong { color: #f87171; }

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN — İNCELEME TALEPLERİ SAYFASI
   ═══════════════════════════════════════════════════════════════════════ */

.inceleme-talep-sekmeler {
    display: flex;
    gap: .35rem;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, .15);
    flex-wrap: wrap;
}
.inceleme-sekme {
    padding: .7rem 1.1rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    color: #94a3b8;
    text-decoration: none;
    font-family: var(--font-mono, monospace);
    font-size: .8rem;
    letter-spacing: .08em;
    transition: background .15s ease, color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.inceleme-sekme:hover {
    background: rgba(212, 175, 55, .05);
    color: #d4af37;
}
.inceleme-sekme.aktif {
    background: rgba(212, 175, 55, .12);
    border-color: rgba(212, 175, 55, .35);
    color: #fde68a;
    margin-bottom: -1px;
}
.inceleme-sekme-rozet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: rgba(15, 23, 42, .6);
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
}

.inceleme-talep-liste {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.inceleme-talep-kart {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(17,26,46,.6), rgba(11,18,32,.45)),
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,.05), transparent 60%);
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.inceleme-talep-kart:target {
    border-color: rgba(212, 175, 55, .6);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .25), 0 12px 30px rgba(0, 0, 0, .35);
}
@media (max-width: 880px) {
    .inceleme-talep-kart {
        grid-template-columns: 1fr;
    }
}

.inceleme-talep-gorsel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .25);
    background: rgba(15, 23, 42, .6);
}
.inceleme-talep-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inceleme-talep-gorsel-yok {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: .85rem;
}
.inceleme-talep-skor {
    position: absolute;
    top: .55rem;
    right: .55rem;
    padding: 4px 9px;
    border-radius: 6px;
    color: #06080d;
    font-weight: 700;
    font-size: .8rem;
    font-family: var(--font-mono, monospace);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.inceleme-talep-icerik {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}

.inceleme-talep-ust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .85rem;
    flex-wrap: wrap;
}
.inceleme-talep-ust h3 {
    margin: 0;
    color: #fde68a;
    font-size: 1rem;
    letter-spacing: .3px;
}
.inceleme-talep-durum {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid;
    white-space: nowrap;
}
.inceleme-talep-durum-beklemede {
    color: #fb923c;
    border-color: rgba(251, 146, 60, .45);
    background: rgba(251, 146, 60, .1);
    animation: rozet-puls 2.4s ease infinite;
}
.inceleme-talep-durum-onaylandi {
    color: #22c55e;
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .1);
}
.inceleme-talep-durum-reddedildi {
    color: #f87171;
    border-color: rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .1);
}

.inceleme-talep-not {
    padding: .65rem .85rem;
    background: rgba(15, 23, 42, .55);
    border-left: 3px solid rgba(212, 175, 55, .4);
    border-radius: 6px;
    font-size: .88rem;
    line-height: 1.55;
}
.inceleme-talep-not-yonetici {
    border-left-color: rgba(34, 197, 94, .5);
}
.inceleme-talep-not-yonetici.inceleme-red-not {
    border-left-color: rgba(239, 68, 68, .5);
}
.inceleme-talep-not-etiket {
    font-family: var(--font-mono, monospace);
    font-size: .65rem;
    letter-spacing: .14em;
    color: #d4af37;
    opacity: .85;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.inceleme-talep-not-icerik {
    color: #e2e8f0;
    white-space: pre-wrap;
}

.inceleme-talep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    margin-top: .25rem;
}

.inceleme-talep-aksiyon {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px dashed rgba(212, 175, 55, .2);
}

/* ─── ANA CTA: "📌 İncelemelerime Ekle" (pin detay modal) ──────────────── */
/* Çok belirgin altın gradient buton — şüphe psikolojisi yerine "kendi listemi
   yönetiyorum" hissi verir. Pin detay modal'da Bulunan Yapı sütununun altında. */
.btn-pin-listeme-ekle {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    margin-top: 12px;
    padding: .85rem 1.1rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #06080d;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(212, 175, 55, .35);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.btn-pin-listeme-ekle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}
.btn-pin-listeme-ekle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, .5);
    background: linear-gradient(135deg, #fbbf24 0%, #d4af37 100%);
}
.btn-pin-listeme-ekle:hover::before { transform: translateX(100%); }
.btn-pin-listeme-ikon {
    font-size: 1.55rem;
    line-height: 1;
    flex-shrink: 0;
}
.btn-pin-listeme-metin {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}
.btn-pin-listeme-metin strong { font-size: 1rem; }
.btn-pin-listeme-metin small {
    font-size: .73rem;
    opacity: .82;
    font-weight: 500;
    margin-top: 2px;
}
.btn-pin-listeme-ok {
    font-size: 1.6rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .12);
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}
.btn-pin-listeme-ekle:hover .btn-pin-listeme-ok {
    transform: rotate(90deg);
    background: rgba(0, 0, 0, .2);
}

/* "Listeden Çıkar" buton ve "Tüm listem →" link (banner içinde) */
.inceleme-modal-banner-aksiyon {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inceleme-modal-link {
    color: #d4af37;
    text-decoration: none;
    font-size: .78rem;
    border-bottom: 1px dashed rgba(212, 175, 55, .4);
    padding-bottom: 1px;
    margin-left: auto;
    white-space: nowrap;
}
.inceleme-modal-link:hover { color: #fde68a; border-bottom-color: rgba(212, 175, 55, .8); }

/* Kabul (★ referans) banner — pin detay modal */
.inceleme-modal-banner-kabul {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, .15), rgba(212, 175, 55, .08)),
        rgba(34, 197, 94, .05);
    border-color: rgba(34, 197, 94, .4);
    color: #bbf7d0;
}
.inceleme-modal-banner-kabul strong { color: #22c55e; }

/* ═══════════════════════════════════════════════════════════════════════
   KULLANICI — /panel/incelemelerim sayfası
   ═══════════════════════════════════════════════════════════════════════ */

/* Sidebar — kullanıcının kendi liste rozeti (turuncu/altın karışımı, admin
   rozetinden ayırmak için. Admin badge-inceleme parlak turuncu) */
.badge-inceleme-kullanici {
    background: linear-gradient(135deg, #d4af37, #f59e0b) !important;
    color: #06080d !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, .4) !important;
}

.incelemelerim-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.inceleme-kullanici-kart {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(17,26,46,.6), rgba(11,18,32,.45)),
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,.06), transparent 60%);
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    cursor: pointer;
}
.inceleme-kullanici-kart:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, .55);
    box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.15);
}
.inceleme-kullanici-kart:focus-visible {
    outline: none;
    border-color: rgba(212, 175, 55, .85);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .25);
}
.inceleme-kullanici-kart-beklemede  { border-left: 4px solid rgba(251, 146, 60, .65); }
.inceleme-kullanici-kart-onaylandi  { border-left: 4px solid rgba(34, 197, 94, .7); }
.inceleme-kullanici-kart-reddedildi { border-left: 4px solid rgba(148, 163, 184, .55); }

.inceleme-kullanici-gorsel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(15, 23, 42, .65);
    border-bottom: 1px solid rgba(212, 175, 55, .15);
}
.inceleme-kullanici-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.incelemelerim-gorselsiz {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .9rem;
}
.inceleme-kullanici-skor {
    position: absolute;
    top: .55rem;
    right: .55rem;
    padding: 4px 10px;
    border-radius: 6px;
    color: #06080d;
    font-weight: 700;
    font-size: .82rem;
    font-family: var(--font-mono, monospace);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.inceleme-kullanici-durum-rozet {
    position: absolute;
    bottom: .55rem;
    left: .55rem;
    padding: 4px 9px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: .65rem;
    letter-spacing: .12em;
    font-weight: 700;
    backdrop-filter: blur(4px);
    border: 1px solid;
}
.inceleme-kullanici-durum-beklemede {
    background: rgba(251, 146, 60, .85);
    color: #fff;
    border-color: rgba(251, 146, 60, .9);
}
.inceleme-kullanici-durum-onaylandi {
    background: linear-gradient(135deg, rgba(212, 175, 55, .95), rgba(34, 197, 94, .85));
    color: #06080d;
    border-color: #fbbf24;
}
.inceleme-kullanici-durum-reddedildi {
    background: rgba(15, 23, 42, .8);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, .5);
}

.inceleme-kullanici-icerik {
    padding: .85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.inceleme-kullanici-icerik h3 {
    margin: 0;
    font-size: .95rem;
    color: #fde68a;
}
.inceleme-kullanici-aksiyon {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: .65rem;
    border-top: 1px dashed rgba(212, 175, 55, .15);
}

/* Boş durum kartı */
.incelemelerim-bos {
    padding: 2.5rem 1rem;
    text-align: center;
}
.incelemelerim-bos-ikon {
    font-size: 3rem;
    opacity: .55;
    line-height: 1;
    margin-bottom: .7rem;
}
.incelemelerim-bos h3 {
    margin: 0 0 .35rem;
    color: #fde68a;
    font-size: 1.05rem;
}

/* ─── "Bu sayfa nasıl çalışır?" akış görseli ─────────────────────────── */
.inceleme-akis-rehber { margin-top: 1rem; }
.inceleme-akis-rehber .rehber-icerik { padding: 1.1rem 1.3rem 1.3rem; }

.inceleme-akis-stepler {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.inceleme-akis-step {
    flex: 1;
    min-width: 165px;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem .85rem;
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 10px;
    transition: border-color .2s ease, transform .2s ease;
}
.inceleme-akis-step:hover {
    border-color: rgba(212, 175, 55, .4);
    transform: translateY(-2px);
}

.inceleme-akis-step-no {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #06080d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(212, 175, 55, .35);
}

.inceleme-akis-step-icerik {
    flex: 1;
    min-width: 0;
}
.inceleme-akis-step-icerik strong {
    display: block;
    color: #fde68a;
    font-size: .87rem;
    margin-bottom: 2px;
}
.inceleme-akis-step-icerik small {
    display: block;
    color: #94a3b8;
    font-size: .73rem;
    line-height: 1.4;
}

.inceleme-akis-ok {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.4rem;
    opacity: .55;
    flex-shrink: 0;
    padding: 0 .15rem;
    line-height: 1;
}
.inceleme-akis-ok-catallanir {
    font-size: 1.1rem;
    line-height: 1.05;
    text-align: center;
}

/* "Bekliyor" adımı vurgusu */
.inceleme-akis-step-bekliyor {
    background: rgba(251, 146, 60, .08);
    border-color: rgba(251, 146, 60, .35);
}
.inceleme-akis-step-bekliyor .inceleme-akis-step-no {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 4px 10px rgba(251, 146, 60, .4);
    color: #fff;
}

/* Çatallanma — kabul / red yan yana */
.inceleme-akis-step-ikili {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1.4;
    min-width: 220px;
}
.inceleme-akis-step-ikili .inceleme-akis-step {
    flex: none;
    min-width: 0;
}

.inceleme-akis-step-kabul {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(212, 175, 55, .08));
    border-color: rgba(34, 197, 94, .4);
}
.inceleme-akis-step-kabul .inceleme-akis-step-no {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 10px rgba(34, 197, 94, .4);
    color: #fff;
    font-size: 1rem;
}

.inceleme-akis-step-red {
    background: rgba(148, 163, 184, .08);
    border-color: rgba(148, 163, 184, .3);
}
.inceleme-akis-step-red .inceleme-akis-step-no {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 10px rgba(148, 163, 184, .25);
    color: #e2e8f0;
}

.inceleme-akis-bilgi {
    padding: .7rem .9rem;
    background: rgba(212, 175, 55, .07);
    border-left: 3px solid rgba(212, 175, 55, .45);
    border-radius: 6px;
    font-size: .8rem;
    line-height: 1.55;
    color: #cbd5e1;
}
.inceleme-akis-bilgi strong { color: #d4af37; }

/* Mobil — akış dikey olur */
@media (max-width: 920px) {
    .inceleme-akis-stepler {
        flex-direction: column;
    }
    .inceleme-akis-ok {
        transform: rotate(90deg);
        align-self: center;
        padding: 0;
    }
    .inceleme-akis-ok-catallanir {
        transform: none;
    }
    .inceleme-akis-step-ikili {
        min-width: 0;
    }
}

/* Aktif sekmenin altındaki açıklama satırı */
.inceleme-sekme-aciklama {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1rem;
    margin-top: .65rem;
    background: rgba(212, 175, 55, .06);
    border: 1px solid rgba(212, 175, 55, .18);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.5;
}
.inceleme-sekme-aciklama strong { color: #fde68a; }
.inceleme-sekme-aciklama em { color: #d4af37; font-style: normal; }
.inceleme-sekme-aciklama-ikon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, .12);
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}

/* ── Referans öz-skoru (kalite rozeti) ───────────────────────────────
   Leave-one-out benzerlik: referansın kendi konumu, kütüphanedeki DİĞER
   referanslara ne kadar benziyor. Eşikler ölçümden: sit dağılımında
   p10 = 0,746 · ortanca = 0,914. Altı şüpheli sayılır. */
.ref-oz {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: .7rem; padding: .12rem .42rem; border-radius: 20px;
    border: 1px solid transparent; letter-spacing: .04em;
}
.ref-oz.oz-iyi   { color: #22c55e; border-color: rgba(34,197,94,.35);  background: rgba(34,197,94,.08); }
.ref-oz.oz-orta  { color: #d4af37; border-color: rgba(212,175,55,.35); background: rgba(212,175,55,.08); }
.ref-oz.oz-zayif { color: #ef4444; border-color: rgba(239,68,68,.4);   background: rgba(239,68,68,.10); }
