/* ════════════════════════════════════════════════════════════════════════
   PROFİL / KÜNYE — "Asker Dosyası / Komuta HUD" görünümü
   ════════════════════════════════════════════════════════════════════════ */

/* Acemilik (temel eğitim) paneli */
.acemi-panel { width: 100%; margin: 4px 0 6px; padding: 14px 16px; text-align: left;
    background: linear-gradient(120deg, rgba(60,45,20,.5), rgba(20,18,12,.6));
    border: 1px solid #5a4a20; border-left: 3px solid #ffcf5c; border-radius: 10px; }
.acemi-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.acemi-baslik { display: inline-flex; align-items: center; gap: 6px; font-family: 'Orbitron', monospace;
    font-size: .72rem; letter-spacing: 1.5px; color: #ffcf5c; }
.acemi-gun { font-family: 'Orbitron', monospace; color: #cdd6ff; font-size: .85rem; }
.acemi-gun b { color: #fff; font-size: 1.05rem; }
.acemi-bar { height: 9px; background: #241f0d; border-radius: 6px; overflow: hidden; }
.acemi-dolu { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffcf5c, #ff9f4d); transition: width .5s; }
.acemi-btn { width: 100%; margin-top: 11px; padding: 10px; border: none; border-radius: 8px; cursor: pointer;
    font-family: 'Orbitron', monospace; font-weight: 700; font-size: .8rem; letter-spacing: .5px;
    background: linear-gradient(135deg, #ffcf5c, #e0a83c); color: #2a1d00; }
.acemi-btn:hover:not(:disabled) { transform: translateY(-1px); }
.acemi-btn:disabled { background: #2a2410; color: #8a7a4a; cursor: default; }
.acemi-not { font-size: .74rem; color: #b0a06a; margin-top: 8px; line-height: 1.35; }

/* Günlük görevler (rutin) paneli */
.rutin-panel { width: 100%; margin: 8px 0 4px; }
.rutin-baslik { display: flex; align-items: center; gap: 7px; font-family: 'Orbitron', monospace;
    font-size: .62rem; letter-spacing: 2px; color: #6c79a8; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #1a2747; }
.rutin-baslik small { color: #4a5578; letter-spacing: 0; }
/* Disiplin göstergesi */
.disiplin-satir { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.disiplin-et { font-family: 'Orbitron', monospace; font-size: .58rem; letter-spacing: 1.5px; color: #7c8bb5; }
.disiplin-bar { flex: 1; height: 8px; background: #1a1f33; border-radius: 5px; overflow: hidden; }
.disiplin-dolu { display: block; height: 100%; width: 0; transition: width .5s; }
.disiplin-deger { font-family: 'Orbitron', monospace; color: #fff; font-size: .85rem; min-width: 26px; text-align: right; }
.disiplin-seri { font-size: .72rem; color: #ffcf5c; white-space: nowrap; }
.disiplin-seri b { color: #fff; font-family: 'Orbitron', monospace; }

.nobet-banner { background: rgba(60,30,20,.5); border: 1px solid #6a3a2a; border-left: 3px solid #ff8a4d;
    border-radius: 9px; padding: 9px 12px; margin-bottom: 9px; color: #ffb78a; font-size: .82rem; font-weight: 600; }
.nobet-banner b { font-family: 'Orbitron', monospace; color: #ffd0a8; letter-spacing: 1px; }

/* Görev süre etiketi (rutin satırında) */
.rutin-sure { display: inline-block; margin-left: 7px; font-family: 'Orbitron', monospace; font-size: .56rem;
    letter-spacing: .5px; color: #ff9a6a; background: rgba(255,138,77,.12); border: 1px solid rgba(255,138,77,.4);
    border-radius: 5px; padding: 1px 5px; vertical-align: middle; }

/* ── Görev idle ekranı ── */
.duty-idle { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: radial-gradient(circle at 50% 35%, rgba(20,30,60,.92), rgba(4,8,20,.97)); backdrop-filter: blur(6px); }
.duty-idle-kart { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 14px; padding: 32px 26px; border-radius: 18px; border: 1px solid #2a4a78; border-top: 3px solid #ff8a4d;
    background: linear-gradient(180deg, #111c38, #0a1126); box-shadow: 0 22px 60px rgba(0,0,0,.55); }
.duty-idle-etiket { font-family: 'Orbitron', monospace; font-size: .66rem; letter-spacing: 3px; color: #ff9a6a; }
.duty-idle-ikon { position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,138,77,.18), transparent 70%); }
.duty-idle-ikon img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,138,77,.6)); }
.duty-idle-ikon span { font-size: 2.4rem; }
.duty-idle-radar { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,138,77,.5);
    border-top-color: #ffcf5c; animation: duty-spin 2.4s linear infinite; }
@keyframes duty-spin { to { transform: rotate(360deg); } }
.duty-idle-ad { font-family: 'Orbitron', monospace; font-size: 1.2rem; color: #fff; }
.duty-idle-not { color: #8aa0c8; font-size: .82rem; line-height: 1.4; max-width: 320px; }
.duty-idle-sayac { font-family: 'Orbitron', monospace; font-size: 2.6rem; font-weight: 700; color: #ffd0a8;
    letter-spacing: 3px; text-shadow: 0 0 18px rgba(255,138,77,.45); }
.duty-idle-bar { width: 100%; height: 10px; background: #0a1228; border: 1px solid #243a63; border-radius: 8px; overflow: hidden; }
.duty-idle-dolu { display: block; height: 100%; border-radius: 8px; transition: width 1s linear;
    background: linear-gradient(90deg, #ff8a4d, #ffcf5c); }
.duty-idle-alt { display: flex; align-items: center; justify-content: space-between; width: 100%;
    color: #6a7aa0; font-size: .76rem; }
.duty-idle-gizle { background: #16203c; color: #aebfe2; border: 1px solid #2a3e66; border-radius: 8px;
    padding: 7px 14px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .8rem; cursor: pointer; transition: .15s; }
.duty-idle-gizle:hover { border-color: #ff8a4d; color: #ffb78a; }

/* Gizlenince köşede yüzen sayaç hapı */
.duty-pill { position: fixed; right: 16px; bottom: 16px; z-index: 3999; display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2a1c10, #14203c); color: #ffce9c; border: 1px solid #6a3a2a; border-left: 3px solid #ff8a4d;
    border-radius: 30px; padding: 9px 16px; font-family: 'Orbitron', monospace; font-size: .8rem; letter-spacing: 1px;
    cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: .15s; }
.duty-pill:hover { transform: translateY(-1px); }
.duty-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff8a4d; box-shadow: 0 0 8px #ff8a4d;
    animation: duty-pulse 1.4s ease-in-out infinite; }
@keyframes duty-pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* Göreve özel idle sahnesi + animasyon temaları */
.duty-idle-sahne { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.duty-idle-ikon[data-anim="sweep"] .duty-idle-radar { animation: none; opacity: .2; }
.duty-idle-ikon[data-anim="sweep"] span,
.duty-idle-ikon[data-anim="sweep"] img { animation: duty-sweep 1.4s ease-in-out infinite; }
@keyframes duty-sweep { 0%,100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.duty-idle-ikon[data-anim="pulse"] .duty-idle-radar { animation: none; opacity: .35; }
.duty-idle-ikon[data-anim="pulse"] span,
.duty-idle-ikon[data-anim="pulse"] img { animation: duty-grow 1s ease-in-out infinite; }
@keyframes duty-grow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ── Kantin satış simülasyonu (kantin_calisma idle ekranı) ── */
.duty-idle-kart.genis { width: min(460px, 100%); }
.duty-idle-kart[data-task="kantin_calisma"] { border-top-color: #c9a23a; }
.duty-sim { display: flex; flex-direction: column; gap: 12px; width: 100%; transition: box-shadow .2s; border-radius: 12px; }
.duty-sim.flash-ok { box-shadow: 0 0 0 2px rgba(126,240,168,.5); }
.duty-sim.flash-err { box-shadow: 0 0 0 2px rgba(255,138,138,.5); animation: ks-shake .3s; }
@keyframes ks-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* 3D kantin sahnesi */
.ks-sahne { position: relative; width: 100%; height: 190px; border-radius: 12px; overflow: hidden;
    border: 1px solid #2a3e66; background: linear-gradient(180deg, #16233f, #0a1126); }
.ks-canvas { display: block; width: 100%; height: 100%; }
.ks-balon { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column;
    align-items: center; gap: 1px; background: rgba(10,18,40,.88); border: 1px solid #243a63; border-radius: 10px;
    padding: 6px 14px; backdrop-filter: blur(2px); transition: .2s; }
.ks-balon.aktif { border-color: #c9a23a; box-shadow: 0 0 14px rgba(255,216,107,.25); }
.ks-balon-yazi { font-size: .6rem; letter-spacing: 1px; color: #8aa0c8; text-transform: uppercase; }
.ks-istek { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.1rem; color: #ffe08a; }
.ks-sabir { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 6px; background: rgba(10,18,40,.7);
    border: 1px solid #243a63; border-radius: 6px; overflow: hidden; }
.ks-sabir span { display: block; height: 100%; border-radius: 6px; transition: width .15s linear;
    background: linear-gradient(90deg, #7ef0a8, #c9a23a 60%, #ff7a7a); }
/* Tezgâh ürün rafı — ürün kartları + fiyat etiketi */
.ks-raf-baslik { font-family: 'Orbitron', monospace; font-size: .56rem; letter-spacing: 2px; color: #6c79a8;
    text-transform: uppercase; text-align: center; }
.ks-raf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ks-urun { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
    background: linear-gradient(180deg, #16223f, #101a32); border: 1px solid #2a3a64; border-radius: 12px;
    padding: 12px 6px 10px; transition: .12s; }
.ks-urun:hover { border-color: #c9a23a; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ks-urun:active { transform: scale(.96); }
.ks-urun-emoji { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.ks-urun-ad { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .82rem; color: #dce6fb; letter-spacing: .3px; }
.ks-urun-fiyat { font-family: 'Orbitron', monospace; font-size: .62rem; font-weight: 700; color: #2a1d00;
    background: linear-gradient(135deg, #c9a23a, #e0a83c); border-radius: 5px; padding: 1px 6px; }
.ks-urun.istenen { border-color: #c9a23a; box-shadow: 0 0 0 1px #c9a23a, 0 0 14px rgba(255,216,107,.3); }
.ks-urun.istenen::after { content: 'İSTENEN'; position: absolute; top: -7px; right: 6px; font-family: 'Orbitron', monospace;
    font-size: .46rem; letter-spacing: 1px; color: #2a1d00; background: #c9a23a; border-radius: 4px; padding: 1px 4px; }
.ks-urun.kirli { border-color: #5fd0e0; box-shadow: 0 0 0 1px #5fd0e0, 0 0 14px rgba(95,208,224,.3); }
.ks-urun.kirli::after { content: 'KİRLİ'; position: absolute; top: -7px; right: 6px; font-family: 'Orbitron', monospace;
    font-size: .46rem; letter-spacing: 1px; color: #042026; background: #5fd0e0; border-radius: 4px; padding: 1px 4px; }
.duty-idle-kart[data-task="tuvalet_temizligi"] { border-top-color: #5fd0e0; }
.duty-idle-kart[data-task="mintika_temizligi"] { border-top-color: #7ed957; }

/* Mıntıka — savrulan/yakalanan çöp çipi (sahne üstünde rastgele konumda) */
.mt-cop { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%;
    background: radial-gradient(circle, rgba(126,217,87,.28), rgba(10,18,40,.55) 70%);
    border: 1px solid rgba(126,217,87,.6); box-shadow: 0 0 14px rgba(126,217,87,.3);
    animation: mt-bob 1.1s ease-in-out infinite; transition: transform .1s; padding: 0; }
.mt-cop:hover { box-shadow: 0 0 18px rgba(126,217,87,.55); }
.mt-cop:active { transform: translate(-50%, -50%) scale(.85); }
@keyframes mt-bob { 0%,100% { margin-top: -3px; } 50% { margin-top: 3px; } }
.ks-urun:disabled { cursor: not-allowed; opacity: .45; filter: saturate(.5); }
.ks-urun:disabled:hover { border-color: #2a3a64; transform: none; box-shadow: none; }

/* Skor şeridi */
.ks-skor { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ks-skor-kutu { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 56px;
    background: #0a1228; border: 1px solid #243a63; border-radius: 9px; padding: 6px 10px; }
.ks-skor-kutu b { font-family: 'Orbitron', monospace; font-size: .92rem; color: #fff; }
.ks-skor-kutu small { font-family: 'Rajdhani', sans-serif; font-size: .58rem; letter-spacing: 1px; color: #6c79a8;
    text-transform: uppercase; margin-top: 2px; }
.ks-skor-kutu.seri { border-color: #2f9e54; }
.ks-skor-kutu.seri b { color: #7fe6a0; }
.ks-skor-kutu.seri small { color: #5fbf84; }
.ks-skor-kutu.kacan { border-color: #6b2e2e; }
.ks-skor-kutu.kacan b { color: #ff9a9a; }
.ks-skor-kutu.kacan small { color: #c07a7a; }
.ks-not { color: #6a7aa0; font-size: .74rem; text-align: center; }

/* Görevler — 2 kolon, derli toplu */
.rutin-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rutin-oge { display: flex; align-items: center; gap: 8px; background: #0a1520;
    border: 0.5px solid #1e3a4a; border-radius: 8px; padding: 6px 9px; min-width: 0; }
.rutin-ikon { width: 28px; height: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center;
    background: #0a1228; border: 1px solid #2a3a64; border-radius: 8px; }
.rutin-ikon img { width: 18px; height: 18px; filter: drop-shadow(0 0 3px #c9a23a); }
.rutin-bilgi { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rutin-ad { color: #eef; font-weight: 700; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rutin-alt { color: #7c8bb5; font-size: .62rem; line-height: 1.3; }
@media (max-width: 620px) { .rutin-list { grid-template-columns: 1fr; } }
.rutin-yasam { color: #c98a6a; font-size: .66rem; white-space: nowrap; }
.rutin-btn { border: 1px solid #2a3656; background: #161d33; color: #8794ba; font-family: 'Orbitron', monospace;
    font-weight: 700; font-size: .62rem; padding: 6px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.rutin-btn.aktif { border-color: #4ce0a0; color: #04140c; background: linear-gradient(135deg, #4ce0a0, #2f9e6a); animation: rutin-nabiz 1.6s infinite; }
.rutin-btn:disabled { cursor: default; opacity: .7; }
@keyframes rutin-nabiz { 0%,100%{box-shadow:0 0 0 0 rgba(76,224,160,0)} 50%{box-shadow:0 0 12px 0 rgba(76,224,160,.5)} }

.profil-layout {
    /* Karargah dili: ortalı tek kolon, dikey akış */
    max-width: 860px;
    margin: 60px auto 0;
    min-height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 18px 60px;
    /* taktik ızgara + vignette zemin */
    background:
        linear-gradient(rgba(110,130,200,.045) 1px, transparent 1px) 0 0 / 100% 34px,
        linear-gradient(90deg, rgba(110,130,200,.045) 1px, transparent 1px) 0 0 / 34px 100%,
        radial-gradient(ellipse at 28% -10%, #0e1a34, #070b16 78%);
}
body.profil-page { overflow-y: auto; }

/* ── Kariyer kartı (dosya) ── */
.kariyer-kart {
    position: relative;
    background: #111820;
    border: 0.5px solid #1e3a4a;
    border-radius: 8px;
    padding: 32px 26px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
}

/* Gizli sınıflandırma bandı */
.dosya-band {
    align-self: stretch; margin: -32px -26px 22px; padding: 9px 26px;
    display: flex; justify-content: space-between; align-items: center;
    background:
        repeating-linear-gradient(-45deg, rgba(255,209,77,.10) 0 10px, transparent 10px 20px),
        linear-gradient(90deg, #14112a, #0e1630);
    border-bottom: 1px solid #2a3656;
}
.dosya-baslik { font-family: 'Orbitron', monospace; font-size: .72rem; font-weight: 900;
    letter-spacing: 3px; color: #cdd6ff; }
.dosya-gizli { font-family: 'Orbitron', monospace; font-size: .62rem; font-weight: 700;
    letter-spacing: 2px; color: #ff6a7a; }

/* Üst blok: 2 kolon — sol kimlik (avatar+rütbe), sağ istatistik (seviye+xp+boy/kilo) */
.kariyer-ust-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}
.kariyer-kimlik { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.kariyer-istatistik { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; }
.kariyer-kimlik .kariyer-rozet { margin-bottom: 4px; }
.kariyer-istatistik .xp-yazi,
.kariyer-istatistik .xp-sonraki { margin-top: 0; }
.kariyer-istatistik .kariyer-fizik { margin: 8px 0 0; }
@media (max-width: 620px) {
    .kariyer-ust-grid { grid-template-columns: 1fr; gap: 14px; }
    .kariyer-istatistik { text-align: center; }
}

.kariyer-rozet {
    --rutbe-renk: #9aa7c7;
    position: relative;
    width: 124px; height: 124px; flex: 0 0 124px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--rutbe-renk) 40%, transparent), transparent 70%);
    border: 3px solid var(--rutbe-renk);
    box-shadow: 0 0 26px color-mix(in srgb, var(--rutbe-renk) 50%, transparent),
                inset 0 0 18px color-mix(in srgb, var(--rutbe-renk) 30%, transparent);
    animation: rozet-nabiz 2.6s ease-in-out infinite;
}
/* dönen nişan halkası */
.kariyer-rozet::before {
    content: ''; position: absolute; inset: -9px; border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--rutbe-renk) 55%, transparent);
    animation: rozet-don 14s linear infinite;
}
@keyframes rozet-don { to { transform: rotate(360deg); } }
@keyframes rozet-nabiz {
    0%,100% { box-shadow: 0 0 22px color-mix(in srgb, var(--rutbe-renk) 40%, transparent), inset 0 0 18px color-mix(in srgb, var(--rutbe-renk) 30%, transparent); }
    50%     { box-shadow: 0 0 42px color-mix(in srgb, var(--rutbe-renk) 75%, transparent), inset 0 0 18px color-mix(in srgb, var(--rutbe-renk) 30%, transparent); }
}
.kariyer-nisan {
    font-family: 'Orbitron', monospace; font-size: 2.6rem; font-weight: 900;
    color: var(--rutbe-renk); text-shadow: 0 0 14px color-mix(in srgb, var(--rutbe-renk) 80%, transparent);
}
.kariyer-rozet.avatarli { overflow: hidden; background: radial-gradient(circle, #1a2348, #0c1430); }
/* SVG'yi mutlak konumla rozeti doldur — flex içinde height:100% sıfıra düşüyordu */
.kariyer-rozet.avatarli svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.kariyer-rutbe {
    font-family: 'Orbitron', monospace; font-size: 1.55rem; font-weight: 900;
    letter-spacing: 1px; margin-bottom: 4px; line-height: 1.2;
    text-shadow: 0 0 18px currentColor;
}
.kariyer-kullanici { color: #cdd6ff; font-size: 1rem; margin-bottom: 2px; }
.kariyer-kullanici b { color: #fff; }
.kariyer-sinif {
    color: #7c8bb5; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 22px;
}

/* ── XP / seviye ── */
.kariyer-seviye-satir {
    width: 100%; display: flex; justify-content: space-between; align-items: baseline;
    font-family: 'Orbitron', monospace; font-size: .8rem; letter-spacing: 1px; color: #8aa0c8; margin-bottom: 8px;
    text-transform: uppercase;
}
.kariyer-seviye-satir b { color: #c9a23a; font-size: 1.25rem; }
.kariyer-maks { color: #667; font-size: .85rem; }
.xp-bar {
    position: relative; width: 100%; height: 16px; background: #0a1228;
    border: 1px solid #213050; border-radius: 4px; overflow: hidden;
    /* segment çizgileri */
    background-image: repeating-linear-gradient(90deg, transparent 0 13px, rgba(0,0,0,.5) 13px 14px);
}
.xp-dolu {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #9c7e2e, #c9a23a);
    box-shadow: 0 0 12px rgba(255,216,107,.7), inset 0 0 6px rgba(255,255,255,.3);
    transition: width .8s ease;
}
.xp-yazi { font-family: 'Orbitron', monospace; font-size: .82rem; color: #e2c87a; margin-top: 8px; letter-spacing: 1px; }
.xp-sonraki { font-size: .82rem; color: #8794ba; margin-top: 2px; }

/* ── Boy / kilo ── */
.kariyer-fizik { display: flex; gap: 10px; width: 100%; margin: 16px 0 4px; }
.fizik-kutu {
    flex: 1; background: #0a1520; border: 0.5px solid #1e3a4a; border-radius: 8px;
    padding: 9px; display: flex; flex-direction: column; gap: 2px; align-items: center;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.fizik-etiket { font-size: .58rem; letter-spacing: 2px; color: #5d6a90; }
.fizik-deger { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700; color: #cdd6ff; }

/* ── Görev yeri ── */
.kariyer-il {
    position: relative; width: 100%; margin: 16px 0;
    background: #0a1520;
    border: 0.5px solid #1e3a4a; border-left: 3px solid #c9a23a; border-radius: 8px;
    padding: 13px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.kariyer-il-etiket { font-size: .6rem; letter-spacing: 2px; color: #5d8aaa; }
.kariyer-il-ad { font-family: 'Orbitron', monospace; font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.3; }

/* ── Kaynak HUD: mangır + seri + günlük ── */
.kariyer-mangir {
    width: 100%; margin: 4px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.mangir-bakiye, .gunluk-seri {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem;
    background: rgba(255,209,77,.07); border: 1px solid #4a4520; border-radius: 999px; padding: 5px 12px;
    color: #ffd24d;
}
.mangir-bakiye img { filter: drop-shadow(0 0 3px #ffd24d); width: 1.05em; height: 1.05em; }
.mangir-bakiye b, .gunluk-seri b { font-family: 'Orbitron', monospace; color: #fff; }
.gunluk-seri .ui-ikon { width: 1em; height: 1em; }
.gunluk-btn {
    border: 1px solid #4a3a6a; background: #161233; color: #8794ba; font-family: 'Orbitron', monospace; font-weight: 700;
    font-size: .72rem; letter-spacing: .5px; padding: 8px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.gunluk-btn.alinabilir { border-color: #ffcf5c; color: #ffcf5c; background: #2a2110; animation: gunluk-nabiz 1.8s infinite; }
.gunluk-btn:disabled { cursor: default; opacity: .7; }
@keyframes gunluk-nabiz { 0%,100%{box-shadow:0 0 0 0 rgba(255,207,92,0)} 50%{box-shadow:0 0 14px 0 rgba(255,207,92,.5)} }

/* ── Bölüm başlığı ortak (teçhizat/başarılar) ── */
.techizat, .kariyer-basari { width: 100%; margin: 20px 0 4px; }
.techizat-baslik, .basari-baslik-link {
    display: flex; align-items: center; gap: 7px; font-family: 'Orbitron', monospace;
    font-size: .62rem; letter-spacing: 2px; color: #6c79a8; margin-bottom: 10px;
    padding-bottom: 6px; border-bottom: 1px solid #1a2747;
}
.techizat-baslik { text-transform: uppercase; }
.basari-baslik-link { text-decoration: none; }
.basari-baslik-link:hover { color: #9d92ff; }
.basari-baslik-link span { color: #ffcf5c; letter-spacing: 0; margin-left: auto; }

.techizat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.techizat-oge {
    display: flex; align-items: center; gap: 10px;
    background: rgba(14,21,48,.7); border: 1px solid #243a63; border-left: 3px solid var(--rr, #243a63);
    border-radius: 8px; padding: 7px 10px; min-width: 0;
}
.techizat-oge .tech-bilgi { min-width: 0; }
.techizat-oge .tech-ad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-ikon {
    width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: #0a1226; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rr) 50%, transparent);
}
.tech-ikon img { width: 22px; height: 22px; filter: drop-shadow(0 0 3px var(--rr)); }
.tech-bilgi { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.tech-slot { font-size: .58rem; letter-spacing: 1px; color: #5d6a90; }
.tech-ad { font-size: .88rem; font-weight: 700; color: #dde; }

/* ── Teçhizat: paper-doll (character inventory) ── */
.tech-sayac { margin-left: auto; font-family: 'Orbitron', monospace; font-size: .68rem; color: #7ee8ff; letter-spacing: 0; }
.techizat-doll {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 8px;
    grid-template-areas:
        "head    avatar backpack"
        "vest    avatar weapon"
        "uniform avatar knife"
        ".       boots  .";
    margin-top: 4px;
}
.doll-avatar {
    grid-area: avatar; position: relative;
    border-radius: 12px; overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #1a2348, #0a1020);
    border: 1px solid #2a3a63;
    display: flex; align-items: center; justify-content: center;
}
.doll-avatar svg { width: 100%; height: 100%; display: block; }
.doll-model { width: 100%; height: 100%; object-fit: contain; display: block; }
.doll-slot {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 9px 6px; border-radius: 8px; text-align: center;
    background: #0a1520; border: 0.5px solid #1e3a4a;
    transition: border-color .15s, box-shadow .15s;
}
.doll-slot.dolu { border-color: var(--rr); box-shadow: inset 0 0 14px color-mix(in srgb, var(--rr) 20%, transparent); }
.doll-ikon {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #4a5578;
}
.doll-slot.dolu .doll-ikon { color: var(--rr); }
.doll-ikon img { width: 28px; height: 28px; filter: drop-shadow(0 0 4px var(--rr)); }
.doll-slot-ad { font-size: .54rem; letter-spacing: 1px; color: #6c79a8; text-transform: uppercase; }
.doll-head { grid-area: head; }
.doll-vest { grid-area: vest; }
.doll-uniform { grid-area: uniform; }
.doll-backpack { grid-area: backpack; }
.doll-weapon { grid-area: weapon; }
.doll-knife { grid-area: knife; }
.doll-boots { grid-area: boots; max-width: 60%; margin: 0 auto; }
@media (max-width: 560px) {
    .techizat-doll { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: none; gap: 6px; }
    .techizat-doll .doll-slot { grid-area: auto !important; }
    .doll-avatar { display: none; }
    .doll-boots { max-width: none; margin: 0; }
}

/* ── Başarı vitrini ── */
.basari-vitrin { display: flex; flex-wrap: wrap; gap: 8px; }
.vitrin-rozet {
    --t: #9aa7c7; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, color-mix(in srgb, var(--t) 35%, transparent), transparent 70%);
    border: 1px solid color-mix(in srgb, var(--t) 55%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--t) 35%, transparent);
}
.vitrin-rozet.tier-bronz { --t: #cd7f32; } .vitrin-rozet.tier-gumus { --t: #c8ccd6; }
.vitrin-rozet.tier-altin { --t: #ffcf5c; } .vitrin-rozet.tier-elit { --t: #b06fff; }
.vitrin-rozet img { width: 22px; height: 22px; filter: drop-shadow(0 0 3px var(--t)); }
.vitrin-bos { font-size: .76rem; color: #667; }

/* ── Avatar köşesi: düzenle ikonu ── */
.avatar-duzenle-ikon {
    position: absolute; right: -2px; bottom: -2px; z-index: 3;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #0e1630; border: 1.5px solid var(--rutbe-renk, #c9a23a);
    box-shadow: 0 2px 8px rgba(0,0,0,.55);
    transition: background .15s, transform .12s;
}
.avatar-duzenle-ikon:hover { background: #182447; transform: scale(1.08); }
.avatar-duzenle-ikon img { width: 15px; height: 15px; opacity: .9; }

/* ── Ortak alt linkler (Tüm Görevler / Tüm Başarımlar) ── */
.profil-alt-link {
    font-family: 'Orbitron', monospace; font-size: .62rem; letter-spacing: 1px;
    color: #7ee8ff; text-decoration: none; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 4px; transition: color .15s;
}
.profil-alt-link:hover { color: #aef3ff; }

/* Görevlerin altı: Tüm Görevler linki + Oyna butonu */
.profil-gorev-alt { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 6px; }
.profil-gorev-alt .profil-alt-link { align-self: flex-end; }
.basari-tum-link { display: inline-block; margin-top: 9px; }

/* ── Aksiyon: Oyna & XP Kazan ── */
.kariyer-oyna-btn {
    width: 100%; padding: 14px; border-radius: 8px;
    border: none; cursor: pointer;
    background: linear-gradient(135deg, #7c6ff7, #4a3fc7); color: #fff;
    font-weight: 800; text-decoration: none; text-align: center;
    font-family: 'Orbitron', monospace; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform .12s, box-shadow .12s;
}
.kariyer-oyna-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124,111,247,.5); }

/* ── Görev Bölgen: bilgi kartları (label/value düzenli) ── */
.section-card {
    display: flex; flex-direction: column; gap: 3px;
    background: #0a1520; border: 0.5px solid #1e3a4a; border-radius: 8px;
    padding: 11px 13px;
}
.section-card > span {
    font-size: .56rem; letter-spacing: 1.5px; color: #6c79a8; text-transform: uppercase;
}
.section-card > b {
    font-family: 'Orbitron', monospace; font-size: .98rem; color: #e6ecff; font-weight: 700;
}

/* ── Harita (taktik ekran) ── */
.harita-bolum { position: relative; display: flex; flex-direction: column; background: #060a14; }
.harita-baslik {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px; border-bottom: 0.5px solid #1e3a4a;
    background: #0a1520;
}
.harita-baslik h3 { font-family: 'Orbitron', monospace; color: #dde; font-size: 1.05rem; letter-spacing: 1px; }
.harita-baslik p { color: #7c8bb5; font-size: .8rem; margin-top: 2px; }
.canli-rozet {
    display: inline-flex; align-items: center; gap: 6px; font-family: 'Orbitron', monospace;
    font-size: .62rem; letter-spacing: 2px; color: #4ce0a0;
    border: 1px solid #1f5c44; background: #0b1f18; border-radius: 999px; padding: 4px 11px;
}
.canli-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ce0a0; box-shadow: 0 0 8px #4ce0a0; animation: canli-yanip 1.4s infinite; }
@keyframes canli-yanip { 0%,100%{opacity:1} 50%{opacity:.25} }

.harita-cerceve { position: relative; flex: 1; min-height: 0; display: flex; }
#tr-harita {
    flex: 1; min-height: 0;
    background: radial-gradient(ellipse at center, #0c1730, #060a16 80%);
}
/* köşe parantezleri */
.harita-cerceve .kose { position: absolute; width: 20px; height: 20px; border: 2px solid #c9a23a; z-index: 500; pointer-events: none; opacity: .8; }
.kose-sol-ust { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.kose-sag-ust { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.kose-sol-alt { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.kose-sag-alt { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
/* hafif tarama çizgileri */
.harita-cerceve::after {
    content: ''; position: absolute; inset: 0; z-index: 450; pointer-events: none;
    background: repeating-linear-gradient(transparent 0 3px, rgba(0,10,20,.10) 3px 4px);
}

#tr-harita .leaflet-interactive { transition: fill-opacity .15s; }
.leaflet-tooltip {
    background: #0e1530; border: 1px solid #2a3656; color: #fff;
    font-family: 'Rajdhani', sans-serif; font-weight: 700; border-radius: 6px;
}
.leaflet-tooltip::before { display: none; }

@media (max-width: 760px) {
    .profil-layout { padding: 18px 12px 50px; gap: 14px; }
}
