* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* Mobil: uzun basınca Resmi Kaydet / Görsel arama / URL kopyala menüsünü engelle */
    -webkit-user-select: none;
    user-select: none;
}

/* Mobil: buton içi img ve tüm tıklanabilir öğelerde uzun basınca tarayıcı menüsü çıkmasın */
html, body, .game-container, .game-container img, .game-ui-layer, .game-ui-layer img,
button, button img, [role="button"], [role="button"] img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.hidden {
    display: none;
}

html {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    touch-action: none; /* Mobilde scroll'u engelle */
    -webkit-touch-callout: none; /* iOS'ta long press menüsünü engelle */
    -webkit-user-select: none; /* iOS'ta text selection'ı engelle */
    -webkit-tap-highlight-color: transparent; /* iOS'ta tap highlight'ı kaldır */
    box-sizing: border-box;
    /* iOS safe area desteği (iPhone X ve sonrası) */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    /* iOS'ta momentum scrolling'i engelle */
    -webkit-overflow-scrolling: none;
    /* iOS safe area desteği - padding yerine margin kullan (canvas tam ekran olmalı) */
    margin-top: env(safe-area-inset-top);
    margin-right: env(safe-area-inset-right);
    margin-bottom: env(safe-area-inset-bottom);
    margin-left: env(safe-area-inset-left);
}

/* UI katmanı: canvas dışındaki tüm arayüz; mobilde PC düzeni ölçeklenir */
.game-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
.game-ui-layer > * {
    pointer-events: auto;
}

#gameCanvas {
    display: block;
    background: #000;
    border: none;
    box-shadow: none;
    cursor: default;
    touch-action: none; /* Mobilde dokunma davranışını kontrol et */
    -webkit-touch-callout: none; /* iOS'ta long press menüsünü engelle */
    -webkit-user-select: none; /* iOS'ta text selection'ı engelle */
    -webkit-tap-highlight-color: transparent; /* iOS'ta tap highlight'ı kaldır */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    /* iOS'ta canvas'ın tam ekran olması için */
    object-fit: fill;
}

/*
 * Mobil oyun kabuğu (canvas + Kontrol Merkezi / tüm .game-ui-layer):
 * - max-width 768px: dar telefonlar (mevcut).
 * - Dokunmatik + yatay + kısa yükseklik: geniş telefon yatay (vw sık 800–932; tek başına 768 kuralı yetişmiyordu).
 * - Kısa yatay görünüm: bazı WebView / coarse=false ortamları için yedek.
 * Minimap bloğundaki @media ile aynı koşul tutulmalı.
 */
@media (max-width: 768px),
       ((hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 940px) and (max-width: 1400px)),
       ((orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 1400px)) {
    #gameCanvas {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .game-container {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    html, body {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Mobil: UI katmanını PC düzeni (1920x1080) gibi sabit boyutta tutup ekrana sığacak şekilde ölçekle */
    .game-ui-layer {
        width: 1920px;
        height: 1080px;
        transform-origin: 0 0;
        transform: scale(min(100vw / 1920, 100vh / 1080));
    }

    /* Mobil: Ölüm/Tamir overlay'i (gameOverlay) açıkken UI katmanını ölçekleme.
       Aksi halde overlay (absolute + transform ancestor) viewport merkezini/ölçüyü bozar. */
    body:has(#gameOverlay:not(.hidden)) .game-ui-layer {
        width: 100vw !important;
        height: 100vh !important;
        transform: none !important;
    }
}

.minimap-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 220px;
    height: 110px;
    z-index: 10;
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: auto;
}

/* game-ui-layer dışındaki HUD: ölçeklenen katmanın (z-index 65) üzerinde çizilir */
.game-container > #minimapContainer,
.game-container > #mainMenuButton,
.game-container > #ammoBarWrapper {
    z-index: 75;
}

/* Kontrol merkezi veya mobil tam harita açıkken mini harita üstte kalmasın */
body:has(#mainMenuOverlay:not(.hidden)) .game-container > #minimapContainer,
body:has(#mobileFullMapOverlay:not(.hidden)) .game-container > #minimapContainer {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ölüm/tamir kartları veya başlangıç overlay'i açıkken mini harita görünmesin */
body:has(#gameOverlay:not(.hidden)) .game-container > #minimapContainer {
    visibility: hidden !important;
    pointer-events: none !important;
}

body:has(#gameOverlay:not(.hidden)) .game-container > #mainMenuButton {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ölüm/tamir kartları açıkken kontrol merkezi üstte kalmasın; kartlar her zaman en önde görünsün */
body:has(#gameOverlay:not(.hidden)) .game-ui-layer {
    z-index: 10360 !important;
}

/* Tam harita modalı açıkken mini harita + çocukları (canvas, +/-) tıklanmasın — sağda hayalet tık ile modal kapanıp açılmasın */
.minimap-container.minimap-input-suppressed,
.minimap-container.minimap-input-suppressed * {
    pointer-events: none !important;
}

.minimap-info {
    position: absolute;
    top: -28px;
    left: 7px;
    z-index: 12;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.minimap-info .minimap-controls {
    pointer-events: auto;
}

#minimapMapName {
    margin-right: 2px;
    font-weight: bold;
    color: #ffffff;
}

#minimapCoords {
    color: #ffffff;
    opacity: 0.9;
}

#minimapCanvas {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
    border: 2px solid #2d2d2d;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    touch-action: none;
    display: block;
}

.minimap-controls {
    display: flex;
    flex-direction: row;
    gap: 4px;
    z-index: 11;
}

.minimap-btn {
    width: 21px;
    height: 21px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    line-height: 1;
    pointer-events: auto;
}

.minimap-btn:hover {
    background: rgba(60, 60, 60, 0.4);
    box-shadow: 0 0 8px rgba(80, 80, 80, 0.3);
    transform: scale(1.1);
}

.minimap-btn:active {
    transform: scale(0.95);
}

/* Sadece mobil cihazda JS ile eklenen minimap-mobile-hud: yuvarlak radar + alt satırda harita adı/koordinat (ortalanmış) — PC etkilenmez */
.minimap-container.minimap-mobile-hud {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
}

.minimap-container.minimap-mobile-hud .minimap-info {
    order: 2;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 11px !important;
    font-weight: 600;
    color: #e8f8f8;
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.45);
    pointer-events: none;
    z-index: 4;
    padding: 0 2px;
    box-sizing: border-box;
}

.minimap-container.minimap-mobile-hud .minimap-info .minimap-controls {
    display: none !important;
    pointer-events: none;
    margin: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.minimap-container.minimap-mobile-hud #minimapMapName {
    color: #7ee8ea;
    font-weight: 700;
    flex-shrink: 0;
}

.minimap-container.minimap-mobile-hud #minimapCoords {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    color: #ffffff;
    opacity: 1 !important;
    font-size: 10px !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.minimap-container.minimap-mobile-hud .minimap-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(170, 180, 190, 0.65) !important;
    background: rgba(8, 10, 14, 0.95) !important;
    color: #f5f5f5 !important;
    font-size: 16px !important;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.minimap-container.minimap-mobile-hud .minimap-btn:hover {
    transform: none;
    background: rgba(22, 28, 36, 0.98) !important;
}

.minimap-container.minimap-mobile-hud #minimapCanvas {
    order: 1;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
    border: none !important;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    box-shadow:
        0 0 0 2px rgba(0, 206, 209, 0.92),
        0 0 0 5px rgba(0, 32, 40, 0.9),
        0 0 20px rgba(0, 206, 209, 0.38),
        inset 0 0 32px rgba(0, 18, 26, 0.5);
    background-color: #04080c;
}

/* Mobil tam harita modalı (mini haritaya dokununca). DOM’da game-ui-layer dışında tutun — katmandaki transform: scale fixed konumunu bozar, gerçek ekran ortası kaçar. */
.mobile-full-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    box-sizing: border-box;
    pointer-events: none;
}
.mobile-full-map-overlay.hidden {
    display: none !important;
}
.mobile-full-map-overlay:not(.hidden) {
    pointer-events: auto;
}
.mobile-full-map-backdrop {
    position: absolute;
    inset: 0;
    /* Bulanıklık yok — oyun arka planı net kalsın (sadece hafif karartma) */
    background: rgba(2, 6, 12, 0.35);
}
.mobile-full-map-window {
    position: relative;
    z-index: 1;
    /* Harita en-boy oranına göre daralsın; sabit genişlik yan boşluk bırakıyordu */
    width: fit-content;
    max-width: min(98vw, 560px);
    max-height: min(94vh, 760px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(165deg, rgba(8, 14, 22, 0.98) 0%, rgba(4, 8, 14, 0.99) 100%);
    border: 1px solid rgba(0, 206, 209, 0.55);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 120, 140, 0.35),
        0 0 28px rgba(0, 206, 209, 0.22),
        0 16px 48px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.mobile-full-map-header {
    flex-shrink: 0;
    padding: 6px 8px 5px;
    border-bottom: 1px solid rgba(0, 206, 209, 0.25);
    background: rgba(0, 24, 32, 0.45);
}
.mobile-full-map-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mobile-full-map-tab {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7ee8ea;
    text-shadow: 0 0 12px rgba(0, 206, 209, 0.4);
}
.mobile-full-map-close {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 206, 209, 0.4);
    border-radius: 6px;
    background: rgba(6, 12, 18, 0.9);
    color: #c8f4f6;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-full-map-close:active {
    background: rgba(0, 60, 70, 0.5);
}
.mobile-full-map-header-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 3px;
    gap: 8px;
}
.mobile-full-map-sector {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #e8f8ff;
}
.mobile-full-map-coords {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: #5ee0e5;
    white-space: nowrap;
}
.mobile-full-map-body {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 3px 4px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
}
.mobile-full-map-body canvas {
    display: block;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 206, 209, 0.15);
    touch-action: none;
    cursor: pointer;
}

/* Sadece fare/mouse masaüstünde gizle. Yatay telefon genişliği çoğu cihazda 768px üstü — eski kural modalı açık bırakıp CSS ile görünmez yapıyordu. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .mobile-full-map-overlay {
        display: none !important;
    }
}

/* Mobil için mini harita boyutu (yukarıdaki mobil oyun kabuğu @media ile aynı koşul) */
@media (max-width: 768px),
       ((hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 940px) and (max-width: 1400px)),
       ((orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 1400px)) {
    .minimap-container {
        width: 165px;
        height: 82.5px;
        top: 50%;
        bottom: auto;
        right: max(2px, env(safe-area-inset-right));
        left: auto;
        transform: translateY(calc(-50% - 18px));
    }

    .minimap-info {
        top: -24px;
        left: 5px;
        font-size: 11px;
    }
    
    .minimap-btn {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

/* Sağ üst reklam */
.top-right-reklam {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    pointer-events: auto;
}
.top-right-reklam .reklam-img {
    width: auto;
    height: auto;
    display: block;
}
/* Sağ üst reklam butonları (ayar, kpt) */
.top-right-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
}
.top-right-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-right-btn img {
    width: auto;
    height: auto;
    display: block;
}
.top-right-btn:hover img {
    opacity: 0.9;
}
#kptButton {
    transform: translateX(-434%) translateY(66%);
}
/* Oyun HUD: mobilde çıkış (kpt) gösterilmez — PC’de görünür */
html.mobile-ayarlar-compact #kptButton {
    display: none !important;
}
#ayarButton {
    transform: translateX(-260%) translateY(140%);
}
/* Sağ üst ayarlar: sadece mobilde gizli (game.js → html.mobile-ayarlar-compact, isMobileDevice). PC’de görünür. */
html.mobile-ayarlar-compact #ayarButton {
    display: none !important;
}
/* Bilgi sayfası üstündeki OYUNA DÖN: sadece mobilde gizli; nav’deki OYUNA DÖN ve PC’deki buton kalır. */
html.mobile-ayarlar-compact #page-bilgi #closeControlPanel {
    display: none !important;
}
/* Bilgi: Oyundan çıkış — sadece mobilde, YARDIM’ın üstünde (DOM sırası + PC’de gizli) */
#page-bilgi #bilgiCikisButton {
    display: none !important;
}
html.mobile-ayarlar-compact #page-bilgi #bilgiCikisButton {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Oyundan çıkış sayacı modalı */
.exit-countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Body kökünde; kontrol merkezi (125) ve uyarı (10300) üstü — oyun UI katmanı (5) içinde kalınca arkada kalıyordu */
    z-index: 10350;
}
.exit-countdown-overlay.hidden {
    display: none;
}
.exit-countdown-modal {
    background: url('img/butons/kptpanel.png') no-repeat center;
    background-size: contain;
    padding: 24px 32px;
    text-align: center;
    min-width: 180px;
    position: relative;
}
.exit-countdown-title {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    transform: translateY(5%);
}
.exit-countdown-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 8px 0;
}
.exit-countdown-cancel {
    background: rgba(0, 170, 255, 0.3);
    border: 1px solid #00aaff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transform: scale(0.7);
}
.exit-countdown-cancel:hover {
    background: rgba(0, 170, 255, 0.5);
}

.top-right-reklam .reklam-logo {
    position: absolute;
    top: 54%;
    left: 63%;
    transform: translate(-80%, -33%) scale(0.75);
    width: auto;
    height: auto;
    pointer-events: none;
}
/* Sağ üst UG logosu: sadece mobilde gizli; PC’de kalır (viewport geniş olsa da game.js → html.mobile-ayarlar-compact). */
html.mobile-ayarlar-compact .top-right-reklam .reklam-logo {
    display: none !important;
}

/* Mobil: sol üst tam ekran butonu yok — PC’de #fullscreenButton görünür */
html.mobile-ayarlar-compact #fullscreenButton {
    display: none !important;
}

/* Mobil: alttaki cephane / kategori alanı biraz daha aşağı — PC’ye dokunulmaz */
html.mobile-ayarlar-compact .ammo-bar-wrapper {
    bottom: calc(6px + env(safe-area-inset-bottom)) !important;
    transform: translate(-50%, 0) scale(0.7) !important;
    transform-origin: bottom center !important;
}

/*
 * Mobil yatay: 4–6 ve 7–9 hızlı slot kümeleri game-ui-layer DIŞINDA fixed + z-index 60 (game.js).
 * game-ui-layer z-index 5 iken tüm cephane satırı bu kümenin altında kalıyordu; sağdaki Tab
 * (üst cephane satırını açan) çoğu dokunuşta slot kutuları tarafından yutuluyordu.
 * Katmanı 65 yapınca etkileşimli UI üstte kalır; layer kökü pointer-events:none olduğu için
 * boş alanlarda dokunuş yine aşağıdaki kümelere/canvas’a iletilir.
 */
@media (orientation: landscape) {
    html.mobile-ayarlar-compact .game-ui-layer {
        z-index: 65;
    }
}

/* Mobil: sol üst hex buton şeridi — solda fazla boşluk yok (safe-area + min 2px; PC’ye dokunulmaz) */
html.mobile-ayarlar-compact .game-ui-layer .top-left-buttons {
    top: 4px !important;
    left: max(2px, env(safe-area-inset-left)) !important;
    transform: scale(0.7) !important;
    transform-origin: top left !important;
}

/* Mobil: mini harita sağ üst; ana sayfa butonu HUD altı — z-index .game-container > #… ile 75 */
html.mobile-ayarlar-compact .minimap-container {
    top: calc(8px + env(safe-area-inset-top)) !important;
    bottom: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    left: auto !important;
    transform: none !important;
}
html.mobile-ayarlar-compact .main-menu-button {
    top: calc(138px + env(safe-area-inset-top)) !important;
    right: calc(20px + env(safe-area-inset-right)) !important;
    left: auto !important;
    bottom: auto !important;
}

/* Sol üst butonlar */
.top-left-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 0;
    z-index: 30;
}
.top-left-buttons .info-button {
    margin: 0;
    margin-left: -10px; /* kutuları yaklaştır, resim boyutu aynı */
    flex-shrink: 0;
}
.top-left-buttons .info-button:first-child {
    margin-left: 0;
}

/* Sohbet penceresi kapalıyken gelen mesajlar: buton satırının hemen altı */
.chat-toast-stack {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: min(280px, 46vw);
    z-index: 31;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

.chat-toast-line {
    font-size: 13px;
    line-height: 1.3;
    padding: 3px 7px;
    background: rgba(8, 12, 20, 0.88);
    border-radius: 4px;
    border: 1px solid rgba(0, 170, 255, 0.35);
    color: #f5f8fa;
    word-break: break-word;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.chat-toast-name {
    color: #5eefff;
    font-weight: 600;
    margin-right: 3px;
}

.chat-toast-text {
    color: #f5f8fa;
}

.chat-toast-line--admin .chat-toast-name,
.chat-toast-line--admin .chat-toast-text {
    color: #ff3333;
    font-weight: bold;
}

.chat-toast-line--system .chat-toast-name,
.chat-toast-line--system .chat-toast-text {
    color: #ffe066;
    font-weight: 500;
}

.chat-toast-line--ban .chat-toast-name,
.chat-toast-line--ban .chat-toast-text {
    color: #ffeb3b;
    font-weight: 600;
}

/* Mobilde sol üstte ekstra TAB butonu: PC'de gizli */
.top-left-buttons .top-left-mobile-tab-toggle {
    display: none;
}
html.mobile-ayarlar-compact .top-left-buttons .top-left-mobile-tab-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    min-width: 22px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: rgba(15, 15, 25, 0.85) !important;
    border: 2px solid rgba(100, 100, 120, 0.5) !important;
    margin-left: 4px !important;
    margin-top: 10px !important;
    overflow: hidden !important;
}
html.mobile-ayarlar-compact .top-left-buttons .top-left-mobile-tab-toggle:hover {
    transform: none !important;
    border-color: rgba(0, 170, 255, 0.6) !important;
    background: rgba(20, 25, 40, 0.9) !important;
}
html.mobile-ayarlar-compact .top-left-buttons .top-left-mobile-tab-toggle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Mobilde TAB'a basınca üst butonlar gizlenir; TAB görünür kalır */
html.mobile-ayarlar-compact .top-left-buttons.mobile-buttons-collapsed > .info-button:not(.top-left-mobile-tab-toggle) {
    display: none !important;
}
.top-left-buttons .capture-score-img {
    width: auto;
    height: auto;
    max-width: none;
    flex-shrink: 0;
    margin-left: 6px;
    vertical-align: middle;
    pointer-events: none;
    object-fit: none;
}
/* Spaceball skor penceresi — sadece etkinlik aktifken, sol üst butonların en sağında; boyut/en-boy oranı değiştirilmez */
.spaceball-score-window {
    margin-left: 8px;
    flex-shrink: 0;
    pointer-events: none;
    position: relative;
}
.spaceball-score-window .spaceball-score-header {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: #ffeb00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}
.spaceball-score-window .spaceball-score-title {
    flex-shrink: 0;
}
.spaceball-score-window .spaceball-score-countdown {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.spaceball-score-window img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}
.spaceball-score-window .spaceball-score-values {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    z-index: 1;
}
.spaceball-score-window .spaceball-score-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.spaceball-score-window .spaceball-score-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 1px 2px #000;
}
.spaceball-score-window .spaceball-yn {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
}
.spaceball-score-window .spaceball-yn.hidden {
    display: none;
}

/* Capture Score penceresi — Spaceball ile aynı yapı; tüm haritalarda herkeste görünür */
.capture-score-window {
    margin-left: 8px;
    flex-shrink: 0;
    pointer-events: none;
    position: relative;
}
.capture-score-window .capture-score-header {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: #ffeb00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}
.capture-score-window .capture-score-title {
    flex-shrink: 0;
    margin-left: -6px;
}
.capture-score-window .capture-score-countdown {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.capture-score-window img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}
.capture-score-window .capture-score-values {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    z-index: 1;
}
.capture-score-window .capture-score-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.capture-score-window .capture-score-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 1px 2px #000;
}
.capture-score-window .capture-score-yn {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
}
.capture-score-window .capture-score-yn.hidden {
    display: none;
}

/* Kazanılan puan bildirimi (ekran üstü ortada) */
.reward-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    z-index: 100;
    pointer-events: none;
}
.reward-notification.hidden {
    display: none;
}
.reward-notification .reward-warning {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Mobil: üst ortadaki beyaz bildirim metinleri 8px (yatayda da uygula) */
@media (max-width: 768px), (max-height: 768px) {
    .game-container .reward-notification,
    .game-container .pvp-kill-notification,
    .game-container .protected-zone-notification,
    .game-container .group-member-no-attack-notification,
    .game-container .cargo-no-own-notification {
        font-size: 8px !important;
        padding: 7px 12px !important;
        line-height: 1.4 !important;
    }
    .game-container .reward-notification .reward-line {
        font-size: 8px !important;
    }
}

/* PvP bildirimi: tüm sunucuda görünür, ödül bildiriminin hemen altında */
.pvp-kill-notification {
    top: 12px;
}

/* Üst orta beyaz HUD: kutu (cargonuz yok), portal uzak vb. (#cargoNoNotification) */
.cargo-no-own-notification {
    top: 8px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

/* Korumalı bölgedeki oyuncuya saldırı denendiğinde: ekranın en üstünde orta */
.protected-zone-notification {
    top: 16px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Grup üyesine saldırı denendiğinde: ekran üst orta, beyaz */
.group-member-no-attack-notification {
    top: 16px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ========== Refining penceresi (7. buton) ========== */
.refining-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: auto;
}
.refining-overlay.hidden {
    display: none;
}
/* Refining penceresi mobil: hem Refining hem Upgrade sekmesi küçültülür */
.refining-overlay.refining-overlay-mobile .refining-window {
    width: 88%;
    max-width: 320px;
    transform: scale(0.85);
    transform-origin: center center;
}
.refining-overlay.refining-overlay-mobile .refining-title-bar {
    padding: 6px 10px;
    gap: 6px;
}
.refining-overlay.refining-overlay-mobile .refining-title-icon {
    width: 18px;
    height: 18px;
}
.refining-overlay.refining-overlay-mobile .refining-title-icon::after {
    font-size: 14px;
}
.refining-overlay.refining-overlay-mobile .refining-title-icon:not(.refining-close-icon-btn)::after {
    width: 9px;
    height: 9px;
    font-size: 8px;
}
.refining-overlay.refining-overlay-mobile .refining-title-text {
    font-size: 13px;
}
.refining-overlay.refining-overlay-mobile .refining-close-btn {
    font-size: 18px;
    padding: 0 4px;
}
.refining-overlay.refining-overlay-mobile .refining-tabs {
    border-bottom-width: 1px;
}
.refining-overlay.refining-overlay-mobile .refining-tab {
    padding: 6px 12px;
    font-size: 11px;
}
.refining-overlay.refining-overlay-mobile .refining-content {
    padding: 10px 12px;
    min-height: 200px;
}
.refining-overlay.refining-overlay-mobile .refining-flowchart {
    gap: 4px;
}
.refining-overlay.refining-overlay-mobile .refining-row {
    gap: 8px;
}
.refining-overlay.refining-overlay-mobile .refining-block {
    padding: 8px;
    min-width: 72px;
    border-radius: 4px;
}
.refining-overlay.refining-overlay-mobile .refining-name {
    font-size: 10px;
    margin-bottom: 4px;
}
.refining-overlay.refining-overlay-mobile .refining-img,
.refining-overlay.refining-overlay-mobile .refining-img.refining-img-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0 auto 4px;
}
.refining-overlay.refining-overlay-mobile .refining-img-wrap .refining-hammadde-img {
    max-width: 36px;
    max-height: 36px;
}
.refining-overlay.refining-overlay-mobile .refining-qty {
    font-size: 11px;
    margin-bottom: 4px;
}
.refining-overlay.refining-overlay-mobile .refining-refine-btn,
.refining-overlay.refining-overlay-mobile .refining-sat-btn {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 3px;
}
.refining-overlay.refining-overlay-mobile .refining-promerium-buttons {
    margin-top: 4px;
    gap: 4px;
}
/* Upgrade sekmesi mobil */
.refining-overlay.refining-overlay-mobile .upgrade-grid {
    gap: 6px;
    padding: 0;
}
.refining-overlay.refining-overlay-mobile .upgrade-cell {
    min-height: 72px;
    border-radius: 4px;
    padding: 0;
}
.refining-overlay.refining-overlay-mobile .upgrade-cell-header {
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 4px 4px 0 0;
}
.refining-overlay.refining-overlay-mobile .upgrade-cell-img {
    padding: 4px;
    min-height: 36px;
}
.refining-overlay.refining-overlay-mobile .upgrade-cell-img img.upgrade-resource-img,
.refining-overlay.refining-overlay-mobile .upgrade-cell-img img.upgrade-equipment-img {
    max-width: 36px;
    max-height: 36px;
}
.refining-overlay.refining-overlay-mobile .upgrade-cell-value {
    padding: 4px 6px;
    font-size: 9px;
    border-radius: 0 0 4px 4px;
}
/* Refining içindeki tüm popover'lar (Sat, Refine, Lazer/Roket/Kalkan besleme) mobil */
.refining-overlay.refining-overlay-mobile .refining-sell-popover,
.refining-overlay.refining-overlay-mobile .refining-refine-popover,
.refining-overlay.refining-overlay-mobile .refining-lazer-feed-popover,
.refining-overlay.refining-overlay-mobile .refining-rocket-feed-popover,
.refining-overlay.refining-overlay-mobile .refining-kalkan-feed-popover {
    padding: 6px 8px !important;
    border-radius: 5px;
    transform: translate(-50%, -50%) scale(0.7) !important;
    transform-origin: center center;
}
.refining-overlay.refining-overlay-mobile .refining-sell-close-btn {
    top: 1px !important;
    right: 1px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 14px !important;
}
.refining-overlay.refining-overlay-mobile .refining-sell-title {
    font-size: 10px !important;
    margin-bottom: 4px !important;
}
.refining-overlay.refining-overlay-mobile .refining-sell-options {
    gap: 4px !important;
    margin-bottom: 4px !important;
}
.refining-overlay.refining-overlay-mobile .refining-sell-opt,
.refining-overlay.refining-overlay-mobile .refining-refine-opt,
.refining-overlay.refining-overlay-mobile .refining-lazer-feed-opt,
.refining-overlay.refining-overlay-mobile .refining-rocket-feed-opt,
.refining-overlay.refining-overlay-mobile .refining-kalkan-feed-opt {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 3px !important;
}
.refining-overlay.refining-overlay-mobile .refining-sell-hint {
    font-size: 8px !important;
}
.refining-window {
    position: relative;
    width: 80%;
    max-width: 520px;
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 50%, #25282d 100%);
    border: 2px solid #3d4248;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: sans-serif;
}
.refining-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #35393f 0%, #2c3036 100%);
    border-bottom: 1px solid #3d4248;
}
.refining-title-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #3d4248, #2a2d32);
    border: 1px solid #4a5058;
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.refining-close-icon-btn {
    cursor: pointer;
    padding: 0;
}
.refining-close-icon-btn:hover {
    background: linear-gradient(145deg, #4a5058, #35393f);
    border-color: #6b7280;
}
.refining-close-icon-btn::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}
.refining-close-icon-btn:hover::after {
    color: #fff;
}
.refining-title-icon:not(.refining-close-icon-btn)::after {
    content: '+';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #e6b428;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.refining-title-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}
.refining-close-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.refining-close-btn:hover {
    color: #fff;
}
.refining-tabs {
    display: flex;
    background: #25282d;
    border-bottom: 1px solid #3d4248;
}
.refining-tab {
    padding: 10px 20px;
    border: none;
    background: #25282d;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.refining-tab.active {
    background: linear-gradient(180deg, #3d4248 0%, #35393f 100%);
    color: #d1d5db;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.refining-content {
    padding: 20px;
    min-height: 280px;
    background: repeating-linear-gradient(
        -45deg,
        #25282d,
        #25282d 8px,
        #2a2d32 8px,
        #2a2d32 16px
    );
}
.refining-flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.refining-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.refining-block {
    background: linear-gradient(145deg, #2c3036 0%, #1e2126 100%);
    border: 1px solid #3d4248;
    border-radius: 6px;
    padding: 12px;
    min-width: 100px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.refining-name {
    display: block;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.refining-img {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    border-radius: 6px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.refining-img.refining-img-wrap {
    min-width: 56px;
    min-height: 56px;
    width: auto;
    height: auto;
    background-image: url('img/cargo/plan.png');
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.refining-img-wrap .refining-hammadde-img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    display: block;
    position: relative;
    z-index: 1;
}
.refining-qty {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.refining-refine-btn {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background: linear-gradient(180deg, #fdd835 0%, #f9a825 100%);
    border: 1px solid #ffeb3b;
    border-radius: 4px;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.refining-refine-btn:hover {
    background: linear-gradient(180deg, #ffeb3b 0%, #fbc02d 100%);
}
.refining-sat-btn {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
    border: 1px solid #ff5252;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.refining-sat-btn:hover {
    background: linear-gradient(180deg, #ff5252 0%, #d32f2f 100%);
}
.refining-promerium-buttons {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.refining-promerium-buttons .refining-refine-btn,
.refining-promerium-buttons .refining-sat-btn {
    margin: 0;
}
.refining-sell-popover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 100%);
    border: 1px solid #4a5058;
    border-radius: 8px;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.refining-sell-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #e53935;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}
.refining-sell-close-btn:hover {
    color: #ff5252;
    background: rgba(229, 57, 53, 0.15);
}
.refining-sell-popover.hidden {
    display: none;
}
.refining-sell-title {
    color: #e5e7eb;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}
.refining-sell-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}
.refining-sell-opt {
    padding: 10px 20px;
    background: linear-gradient(180deg, #3d4248 0%, #2a2d32 100%);
    border: 1px solid #4a5058;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.refining-sell-opt:hover {
    background: linear-gradient(180deg, #4a5058 0%, #35393f 100%);
}
.refining-sell-hint {
    color: #9ca3af;
    font-size: 11px;
    text-align: center;
}
.refining-refine-popover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 100%);
    border: 1px solid #4a5058;
    border-radius: 8px;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.refining-refine-popover.hidden {
    display: none;
}
.refining-refine-opt {
    padding: 10px 20px;
    background: linear-gradient(180deg, #fdd835 0%, #f9a825 100%);
    border: 1px solid #ffeb3b;
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.refining-refine-opt:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffeb3b 0%, #fbc02d 100%);
}
.refining-refine-opt:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #4a5058;
    color: #9ca3af;
    border-color: #3d4248;
}
/* Refine popover – mobil/yatay: JS ile .refine-popover-mobile eklenir (genişlik<=1024 veya yükseklik<=768) */
.refining-refine-popover.refine-popover-mobile {
    padding: 6px 8px !important;
    border-radius: 5px;
    max-width: 220px !important;
    transform: translate(-50%, -50%) scale(0.52) !important;
    transform-origin: center center;
}
.refining-refine-popover.refine-popover-mobile .refining-sell-close-btn {
    top: 1px !important;
    right: 1px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 14px !important;
}
.refining-refine-popover.refine-popover-mobile .refining-sell-title {
    font-size: 10px !important;
    margin-bottom: 4px !important;
}
.refining-refine-popover.refine-popover-mobile .refining-sell-options.refining-refine-options {
    gap: 4px !important;
    margin-bottom: 4px !important;
}
.refining-refine-popover.refine-popover-mobile .refining-refine-opt {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
}
.refining-refine-popover.refine-popover-mobile .refining-sell-hint {
    font-size: 8px !important;
}
.refining-lazer-feed-popover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 100%);
    border: 1px solid #4a5058;
    border-radius: 8px;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.refining-lazer-feed-popover.hidden {
    display: none;
}
.refining-rocket-feed-popover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 100%);
    border: 1px solid #4a5058;
    border-radius: 8px;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.refining-rocket-feed-popover.hidden {
    display: none;
}
.refining-kalkan-feed-popover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2d32 0%, #1e2126 100%);
    border: 1px solid #4a5058;
    border-radius: 8px;
    padding: 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.refining-kalkan-feed-popover.hidden {
    display: none;
}
.upgrade-draggable {
    cursor: grab;
}
.upgrade-draggable:active {
    cursor: grabbing;
}
.upgrade-drop-target.drag-over {
    outline: 2px solid #fdd835;
    outline-offset: 2px;
}
.refining-lines {
    width: 60%;
    height: 20px;
    border-left: 2px solid rgba(255,255,255,0.15);
    border-bottom: 2px solid rgba(255,255,255,0.15);
    margin: 0 auto;
}
.refining-lines-2 {
    transform: scaleY(-1);
}
/* Upgrade sayfası — 2x4 grid (resimdeki alan birebir) */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
}
.upgrade-cell {
    background: linear-gradient(145deg, #1e2126 0%, #25282d 100%);
    border: 1px solid #3d4248;
    border-radius: 6px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    min-height: 100px;
}
.upgrade-cell-header {
    width: 100%;
    padding: 6px 8px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(180, 50, 50, 0.25);
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
}
.upgrade-cell-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-height: 48px;
    background: url('img/cargo/plan.png') no-repeat center;
    background-size: contain;
}
.upgrade-cell-img img.upgrade-resource-img {
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}
.upgrade-cell-value {
    width: 100%;
    padding: 6px 8px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid #4a5058;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
}
.upgrade-cell-img img.upgrade-equipment-img {
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}
/* Küresel sohbet: yarı saydam panel, oyun arkada görünür */
.chat-window {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 380px;
    height: 286px;
    margin-left: -190px;
    margin-top: -143px;
    z-index: 16;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.chat-window.hidden {
    display: none;
}

.chat-window-outer {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid rgba(45, 212, 191, 0.65);
    background: rgba(6, 12, 20, 0.38);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.12) inset,
        0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.chat-resize-handle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: se-resize;
    z-index: 4;
    opacity: 0.85;
    -webkit-tap-highlight-color: transparent;
}

.chat-resize-handle::before {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    background:
        linear-gradient(135deg, transparent 55%, rgba(34, 211, 238, 0.95) 56% 58%, transparent 59%),
        linear-gradient(135deg, transparent 35%, rgba(34, 211, 238, 0.75) 36% 38%, transparent 39%),
        linear-gradient(135deg, transparent 15%, rgba(34, 211, 238, 0.55) 16% 18%, transparent 19%);
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.18));
}

.chat-resize-handle:hover {
    opacity: 1;
}

.chat-corner-accent {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}

.chat-corner-accent::before,
.chat-corner-accent::after {
    content: "";
    position: absolute;
    background: rgba(34, 211, 238, 0.95);
}

.chat-corner-accent-tl {
    top: -1px;
    left: -1px;
}
.chat-corner-accent-tl::before {
    width: 14px;
    height: 2px;
    top: 0;
    left: 0;
}
.chat-corner-accent-tl::after {
    width: 2px;
    height: 14px;
    top: 0;
    left: 0;
}

.chat-corner-accent-tr {
    top: -1px;
    right: -1px;
}
.chat-corner-accent-tr::before {
    width: 14px;
    height: 2px;
    top: 0;
    right: 0;
}
.chat-corner-accent-tr::after {
    width: 2px;
    height: 14px;
    top: 0;
    right: 0;
}

.chat-corner-accent-bl {
    bottom: -1px;
    left: -1px;
}
.chat-corner-accent-bl::before {
    width: 14px;
    height: 2px;
    bottom: 0;
    left: 0;
}
.chat-corner-accent-bl::after {
    width: 2px;
    height: 14px;
    bottom: 0;
    left: 0;
}

.chat-corner-accent-br {
    bottom: -1px;
    right: -1px;
}
.chat-corner-accent-br::before {
    width: 14px;
    height: 2px;
    bottom: 0;
    right: 0;
}
.chat-corner-accent-br::after {
    width: 2px;
    height: 14px;
    bottom: 0;
    right: 0;
}

/* PC: üst şerit sürükleyici; mobilde sabit ortada */
.chat-window-drag {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.chat-window-drag:active {
    cursor: grabbing;
}

.chat-top-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 6px;
    padding: 6px 10px 4px;
    min-height: 40px;
}

.chat-window-tab {
    margin-top: -12px;
    padding: 5px 16px 7px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #e0fffe;
    background: rgba(10, 22, 32, 0.72);
    border: 1px solid rgba(45, 212, 191, 0.75);
    border-bottom-color: transparent;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    line-height: 1.1;
}

.chat-main-title {
    justify-self: center;
    align-self: center;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #f4feff;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
    pointer-events: none;
}

.chat-close {
    justify-self: end;
    align-self: start;
    margin-top: 2px;
    background: transparent;
    border: none;
    color: rgba(224, 255, 254, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 2px;
    z-index: 3;
}

.chat-close:hover {
    color: #fff;
    background: rgba(34, 211, 238, 0.15);
}

.chat-window-inner {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    border-top: 1px solid rgba(45, 212, 191, 0.35);
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
    width: 46px;
    flex-shrink: 0;
    border-right: 1px solid rgba(45, 212, 191, 0.25);
    background: rgba(0, 0, 0, 0.18);
}

.chat-sidebar-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(8, 16, 24, 0.55);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: rgba(200, 245, 255, 0.9);
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, border-color 0.15s;
}

.chat-sidebar-btn:hover:not(:disabled) {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(45, 212, 191, 0.7);
}

.chat-sidebar-btn.active {
    background: rgba(34, 211, 238, 0.28);
    border-color: rgba(45, 212, 191, 0.85);
    color: #b5fff9;
}

.chat-sidebar-btn:disabled {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.chat-sidebar-icon {
    width: 18px;
    height: 18px;
}

.chat-sidebar-fist {
    font-size: 15px;
    line-height: 1;
    filter: grayscale(0.2);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.chat-input-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(45, 212, 191, 0.45);
    background: rgba(0, 4, 10, 0.35);
}

.chat-input-row input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-bottom: 1px solid transparent;
    color: #ffffff;
    padding: 8px 6px;
    font-size: 13px;
    outline: none;
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation;
}

.chat-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.chat-input-row input:focus {
    border-bottom-color: rgba(45, 212, 191, 0.5);
}

.chat-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(45, 212, 191, 0.95);
    cursor: pointer;
    border-radius: 2px;
}

.chat-send-btn:hover {
    color: #5eead4;
    background: rgba(34, 211, 238, 0.12);
}

.chat-send-icon {
    width: 18px;
    height: 18px;
}

.chat-messages {
    flex: 1;
    padding: 8px 10px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px;
    line-height: 1.35;
    background: rgba(0, 0, 0, 0.12);
    cursor: text;
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
    touch-action: auto;
}

.chat-message {
    margin-bottom: 5px;
    line-height: 1.35;
    word-break: break-word;
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
    touch-action: auto;
    cursor: text;
}

.chat-username {
    color: #5eefff;
    font-weight: 600;
    margin-right: 4px;
    -webkit-user-select: text;
    user-select: text;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(94, 239, 255, 0.35);
    text-underline-offset: 2px;
}
.chat-username:hover {
    color: #7ff7ff;
}

.chat-text {
    color: #f5f8fa;
    -webkit-user-select: text;
    user-select: text;
}

/* Admin (rütbe 21) mesajları: oyuncu adı ve mesaj canlı kırmızı */
.chat-message-admin .chat-username,
.chat-message-admin .chat-text {
    color: #ff3333 !important;
    font-weight: bold;
}

.chat-message-system .chat-username,
.chat-message-system .chat-text {
    color: #ffe066;
    font-style: normal;
    font-weight: 500;
}

/* Admin /ban duyurusu: küresel sohbette belirgin sarı */
.chat-message-ban-notice .chat-username,
.chat-message-ban-notice .chat-text {
    color: #ffeb3b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .chat-window {
        width: min(92vw, 360px);
        height: 248px;
        margin-left: calc(-1 * min(92vw, 360px) / 2);
        margin-top: -124px;
    }

    /* Mobilde sohbet metinleri küçük kalsın */
    .chat-messages {
        font-size: 10px;
    }

    .chat-input-row input {
        font-size: 10px;
    }

    .chat-toast-line {
        font-size: 10px;
    }

    .chat-window-drag {
        cursor: default;
    }

    .chat-resize-handle {
        display: none;
    }
}

.info-button {
    width: 50px;
    height: 50px;
    background: transparent !important;
    border: none;
    border-radius: 0;
    color: #00aaff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    position: relative;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    overflow: hidden;
    isolation: isolate;
}
.info-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
.info-button:hover {
    background: transparent !important;
    box-shadow: none;
    transform: translateY(-6px);
}

.info-button:active {
    transform: translateY(0);
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.info-button:focus,
.info-button:focus-visible {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.top-left-buttons {
    -webkit-tap-highlight-color: transparent !important;
}
.top-left-buttons .info-button {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}
.top-left-buttons .info-button:active::before,
.top-left-buttons .info-button:active::after,
.top-left-buttons .info-button:focus::before,
.top-left-buttons .info-button:focus::after {
    display: none !important;
    content: none !important;
}
.top-left-buttons .info-button img {
    pointer-events: none;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Pencere açıkken: beyaz ışık kalır, siyah arka plan yok */
.info-button.active {
    border: none;
    background: transparent !important;
    box-shadow: none;
    filter: none;
}
.info-button.active::after {
    content: none;
}
.info-button.active img.button-icon {
    box-shadow: none;
    border-radius: 0;
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}
.info-button.active img.bot-icon,
.info-button.active img.button-icon-original {
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}

.info-button svg {
    width: 24px;
    height: 24px;
    stroke: #00aaff;
    position: relative;
    z-index: 1;
}

.info-button img.button-icon {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

/* Köşe işaretleri - gizlendi */
.corner-marker {
    display: none;
}

/* İstatistikler ve HP/Shield Panelleri */
.info-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00aaff;
    border-radius: 10px;
    padding: 15px;
    min-width: 250px;
    z-index: 20;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    pointer-events: none; /* Fareyi canvas'a geçir */
}

.info-panel.hidden {
    display: none;
}

/* Kazanımlar paneli (5. buton) - son 30 satır */
.rewards-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid rgba(230, 190, 80, 0.7);
    border-radius: 10px;
    padding: 10px;
    min-width: 260px;
    max-width: 320px;
    max-height: 380px;
    z-index: 20;
    box-shadow: 0 0 20px rgba(230, 190, 80, 0.25);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
.rewards-panel.hidden {
    display: none;
}
.rewards-panel-header {
    color: rgba(230, 190, 80, 0.95);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(230, 190, 80, 0.3);
}
.rewards-log-list {
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.4;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    flex: 1;
    min-height: 0;
}
.rewards-log-entry {
    padding: 6px 8px;
    margin-bottom: 4px;
    background: rgba(230, 190, 80, 0.08);
    border-radius: 4px;
    border-left: 3px solid rgba(230, 190, 80, 0.5);
}
.rewards-log-line {
    margin: 1px 0;
}
.rewards-log-time {
    display: block;
    font-size: 10px;
    color: rgba(200, 180, 120, 0.8);
    margin-top: 4px;
}

/* Kayıt defteri — sadece mobilde (.rewards-panel-mobile); PC’de bu class yok. !important: .ui-panel 130px vb. kuralları ezer */
.ui-panel.rewards-panel.rewards-panel-mobile {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Yatay: ek %10 küçültme */
    min-width: 76px !important;
    width: min(21vw, 134px) !important;
    max-width: min(22vw, 142px) !important;
    box-sizing: border-box !important;
    max-height: min(49.6vh, 176px) !important;
    min-height: 0 !important;
    padding: 5px 7px !important;
    cursor: default;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    background: rgba(0, 0, 0, 0.92) !important;
    border: 2px solid rgba(230, 190, 80, 0.7) !important;
    box-shadow: 0 0 20px rgba(230, 190, 80, 0.25) !important;
}
.ui-panel.rewards-panel.rewards-panel-mobile .rewards-panel-header {
    font-size: 9px !important;
    font-weight: 700;
    margin-bottom: 4px !important;
    padding-bottom: 3px !important;
    cursor: move;
    user-select: none;
    touch-action: none;
}
.ui-panel.rewards-panel.rewards-panel-mobile .rewards-log-list {
    font-size: 7.875px !important;
    line-height: 1.28 !important;
    flex: 1 !important;
    min-height: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ui-panel.rewards-panel.rewards-panel-mobile .rewards-log-entry {
    padding: 3px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
}
.ui-panel.rewards-panel.rewards-panel-mobile .rewards-log-time {
    font-size: 6.75px !important;
    margin-top: 2px;
}

/* Bot butonu - orijinal boyutta resim */
.info-button.bot-button img.bot-icon {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}

/* 7. buton - diğerleriyle aynı kutu boyutu (aralık eşit kalsın) */
.info-button.info-button-6 {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-6 img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Görevler butonu - orijinal boyut (grv.png) */
.info-button.info-button-grv {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-grv img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Galaxy Kapısı butonu - aynı stil (gg.png) */
.info-button.info-button-gg {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-gg img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Grup butonu - aynı stil (grup.png) */
.info-button.info-button-grup {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-grup img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Ödeme (pay2.png): çerçeve/parlama yok; PNG tek renk turuncu; kutu ve görsel tam 50×50 */
.info-button.info-button-pay {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.info-button.info-button-pay:hover {
    background: transparent !important;
    box-shadow: none !important;
}
.info-button.info-button-pay img.button-icon-original {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    /* Tek renk turuncu (eski altın sarısı yerine) */
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(2000%) hue-rotate(358deg) brightness(1.02) contrast(1.06);
}
.info-button.info-button-pay.active {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
}
.info-button.info-button-pay.active img.button-icon-original {
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(2000%) hue-rotate(358deg) brightness(1.02) contrast(1.06);
}

/* UBA (uba.png): grup/pay ile aynı kutu — turuncu filtre yok */
.info-button.info-button-uba {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-uba img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Destekler / Booster butonu: UBA ile aynı kutu düzeni */
.info-button.info-button-booster {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    box-sizing: border-box;
}
.info-button.info-button-booster img.button-icon-original {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Oyun içi Destekler penceresi */
.booster-hud-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 158px;
    height: 174px;
    z-index: 24;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: #e8f6ff;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(135deg, transparent 0 11px, #073044 11px 12px, transparent 12px) top left / 16px 16px no-repeat,
        linear-gradient(180deg, rgba(4, 28, 39, 0.98), rgba(3, 18, 29, 0.98));
    border: 1px solid #0b6f91;
    border-top-color: #2785a5;
    border-left-color: #2785a5;
    border-radius: 0;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.85),
        inset 0 18px 18px rgba(55, 102, 120, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.85);
}
.booster-hud-panel.hidden {
    display: none;
}
.booster-hud-panel::before {
    content: "";
    position: absolute;
    inset: 28px 0 0 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 5px
        );
    opacity: 0.45;
}
.booster-hud-titlebar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px 0 7px;
    box-sizing: border-box;
    background:
        linear-gradient(90deg, rgba(8, 54, 71, 0.98), rgba(9, 41, 57, 0.98) 78%, rgba(8, 23, 34, 0.98)),
        repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
    border-bottom: 1px solid #1b7899;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.8);
}
.booster-hud-title-icon {
    width: 21px;
    height: 18px;
    border: 1px solid #2d8daf;
    border-radius: 10px 10px 2px 2px;
    background:
        radial-gradient(circle at 48% 72%, transparent 0 5px, #78a7b8 5px 6px, transparent 7px),
        linear-gradient(135deg, transparent 42%, #6aa0b2 43% 50%, transparent 51%),
        linear-gradient(225deg, transparent 42%, #6aa0b2 43% 50%, transparent 51%),
        #0b2635;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
}
.booster-hud-title {
    color: #f6d991;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 0 #000, 0 0 4px rgba(255, 211, 100, 0.32);
}
.booster-hud-body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4px 0 0;
    box-sizing: border-box;
}
.booster-hud-list {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.025) 0,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(180deg, rgba(18, 30, 38, 0.95), rgba(12, 22, 30, 0.95));
    border-left: 1px solid rgba(0,0,0,0.65);
    border-right: 1px solid rgba(0,0,0,0.65);
}
.booster-hud-row {
    height: 39px;
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: center;
    padding: 0 4px;
    color: #fff;
    border-bottom: 1px solid rgba(42, 58, 66, 0.65);
    background: linear-gradient(180deg, rgba(26, 36, 43, 0.52), rgba(13, 22, 29, 0.52));
}
.booster-hud-row--inactive {
    opacity: 0.42;
}
.booster-hud-row-icon {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 148, 0, 0.55));
}
.booster-hud-row-main {
    min-width: 0;
    padding-left: 3px;
}
.booster-hud-row-name,
.booster-hud-row-percent,
.booster-hud-row-time {
    display: block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 11px;
    white-space: nowrap;
    text-shadow: 0 1px 1px #000;
}
.booster-hud-row-play {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #12a8dc;
    background: radial-gradient(circle at 50% 50%, #1c6c8c 0 45%, #08293a 46% 100%);
    box-shadow: 0 0 5px rgba(32, 185, 235, 0.8), inset 0 0 2px #80ddff;
    position: relative;
}
.booster-hud-row-play::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #baf0ff;
}

/* Görevlerim ufak panel (sol üst, butona tıklanınca) */
.gorevler-quick-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 20;
    min-width: 240px;
    max-width: 320px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid rgba(230, 190, 80, 0.7);
    border-radius: 10px;
    padding: 0;
    pointer-events: auto;
    cursor: default;
}
.gorevler-quick-panel.hidden {
    display: none;
}

/* Grup penceresi – resme birebir: sabit başlık, uzayan liste, sabit alt.
   Dış kapsayıcı touch geçirir; sadece iç pencere (.grup-panel-window) yakalasın. */
.grup-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 20;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    cursor: default;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.grup-panel .grup-panel-window {
    pointer-events: auto;
}
.grup-panel.hidden {
    display: none;
    pointer-events: none !important;
}
.grup-panel-window {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-width: 240px;
    max-width: 300px;
    min-height: 0;
    max-height: 70vh;
    background: linear-gradient(180deg, #2a2c30 0%, #1e2024 100%);
    border: 1px solid #4a4d54;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: default;
}
.grup-window-header {
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 14px;
    background: linear-gradient(180deg, #35383e 0%, #2a2d32 100%);
    border-bottom: 1px solid #3a3d44;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
}
.grup-window-header:active {
    cursor: grabbing;
}
.grup-window-icon {
    font-size: 18px;
    opacity: 0.9;
}
.grup-window-header-icon-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}
.grup-window-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.grup-window-header-right {
    font-size: 14px;
    color: #b8860b;
    opacity: 0.95;
}
.grup-window-members {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}
.grup-window-member {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
    border: 1px solid #3a3d44;
}
.grup-window-member:hover {
    background: rgba(0,0,0,0.35);
}
.grup-window-member-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.grup-window-member-slot {
    font-size: 10px;
    color: #8a8d92;
    flex-shrink: 0;
}
.grup-window-member-bars-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.grup-window-member-ship-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}
.grup-window-member-label {
    font-size: 10px;
    color: #8a8d92;
    flex-shrink: 0;
}
.grup-window-member-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grup-window-member-leader-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #c9a227;
    filter: drop-shadow(0 0 3px rgba(201, 162, 39, 0.8)) drop-shadow(0 0 6px rgba(201, 162, 39, 0.5));
}
.grup-window-member-leader-crown:has(.grup-window-member-leader-img) {
    width: auto;
    height: auto;
}
.grup-window-member-leader-crown svg {
    width: 100%;
    height: 100%;
}
.grup-window-member-leader-crown .grup-window-member-leader-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}
.grup-window-member-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    max-width: 35%;
}
.grup-window-member-hades-wave {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2bd25d 0%, #13953b 100%);
    border: 1px solid #6ff095;
    color: #e8ffe8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 6px rgba(28, 208, 92, 0.65);
    flex-shrink: 0;
}
.grup-window-member-hades-wave-placeholder {
    margin-left: auto;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.grup-window-member-icon {
    width: 18px;
    height: 18px;
    background: #c44;
    border-radius: 2px;
    flex-shrink: 0;
}
.grup-window-bar-wrap {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
    height: 6px;
}
.grup-window-bar {
    height: 6px;
    border-radius: 2px;
    min-width: 4px;
    transition: flex 0.15s ease;
}
.grup-window-bar--empty {
    min-width: 0;
}
.grup-window-bar--blue {
    background: #48a;
    flex: 1;
}
.grup-window-bar--green {
    background: #4a8;
    flex: 1;
}
.grup-window-bar--gray {
    background: #3a3d44;
    flex: 1;
}
.grup-window-member-hex-row {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    flex-shrink: 0;
}
.grup-window-hex-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3a3835 0%, #2a2825 100%);
    border: 1px solid #6a5a4a;
    border-radius: 6px;
    color: #c9a227;
    font-size: 12px;
}
.grup-window-member-footer {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #3a3d44;
}
.grup-window-member-footer-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #3a3d44;
}
.grup-window-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, #2a2d32 0%, #222428 100%);
    border-top: 1px solid #3a3d44;
}
.grup-window-hex-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.grup-window-hex-row-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.grup-window-hex-row--fixed {
    margin-top: 4px;
    margin-bottom: 0;
    margin-left: 0;
    flex-shrink: 0;
}
.grup-window-hex-icon-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
}
.grup-window-hex-icon-btn:hover {
    color: #e0c040;
}
.grup-hex-svg {
    width: 20px;
    height: 20px;
    color: #c9a227;
    filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.6));
}
.grup-hex-flyto-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-hex-ping-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-hex-leave-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-hex-toggle-input-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-hex-transfer-leader-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-hex-kick-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Grup sesli sohbet: mikrofon butonu (sadece gruptayken görünür) */
.grup-hex-mic-btn {
    color: #b0b0b0;
}
.grup-hex-mic-btn.active {
    color: #4ade80;
    box-shadow: inset 0 0 8px rgba(74, 222, 128, 0.35);
}
.grup-hex-mic-btn.muted {
    color: #ef4444;
}
.grup-hex-mic-btn.connecting {
    color: #fbbf24;
    box-shadow: inset 0 0 6px rgba(251, 191, 36, 0.35);
}
.grup-hex-mic-svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}
/* Üye satırında ses ikonu (konuşan oyuncuda yanar) */
.grup-window-member-voice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7280;
    transition: color 0.15s ease;
}
.grup-window-member-voice--speaking {
    color: #4ade80;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.8));
}
.grup-window-member-voice svg {
    width: 14px;
    height: 14px;
}
.grup-davet-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-engelle-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.grup-window-btn-icon-engelle.active {
    filter: brightness(1.25);
    box-shadow: inset 0 0 8px rgba(201, 162, 39, 0.4);
}
.grup-window-hex-icon-btn:hover .grup-hex-svg {
    color: #e0c040;
    filter: drop-shadow(0 0 6px rgba(224, 192, 64, 0.8));
}
.grup-window-hex-icon-btn--close {
    background: transparent;
    border: none;
    color: #fff;
}
.grup-window-hex-icon-btn--close .grup-hex-svg {
    color: #fff;
    filter: none;
}
.grup-window-hex-icon-btn--close:hover {
    color: #fff;
    opacity: 0.9;
}
.grup-window-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.grup-window-input {
    flex: 1;
    min-width: 0;
    max-width: 180px;
    height: 28px;
    padding: 4px 10px;
    background: #1a1b1e;
    border: 1px solid #4a5a6a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation;
    line-height: 20px;
}
.grup-panel-input-editable {
    overflow: hidden;
    white-space: nowrap;
    word-break: keep-all;
    cursor: text;
}
.grup-panel-input-editable:empty::before {
    content: attr(data-placeholder);
    color: #6a7a8a;
    pointer-events: none;
}
.grup-panel-input-editable:focus {
    border-color: #5a7a9a;
    outline: none;
}

/* Oyun içi metin kutularında kopyala/yapıştır (global user-select:none ezmesin) */
#chatInput,
.grup-window-input,
.game-ui-layer input[type="text"],
.game-ui-layer input[type="search"],
.game-ui-layer input:not([type]),
.game-ui-layer textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation;
}
.grup-window-input-wrap .grup-window-btn-send,
.grup-window-input-wrap .grup-window-btn-icon {
    margin-left: -1px;
}
.grup-window-btn-icon {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3a3835 0%, #2a2825 100%);
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    color: #c9a227;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.grup-window-btn-icon:hover {
    filter: brightness(1.15);
    color: #e0c040;
}
.grup-window-btn-send {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #8b7355 0%, #6b5344 100%);
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.grup-window-btn-send:hover {
    filter: brightness(1.15);
}
.grup-window-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.grup-window-hex-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    background: linear-gradient(145deg, #3a3835 0%, #2a2825 100%);
    border: 1px solid #8b7355;
    border-radius: 6px;
    color: #c9a227;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grup-window-hex-btn:hover {
    background: linear-gradient(145deg, #4a4845 0%, #3a3825 100%);
    color: #e0c040;
}
.grup-panel-empty-msg {
    color: #6a6d72;
    font-size: 12px;
    padding: 20px 10px;
    text-align: center;
}

/* Gelen grup davetleri listesi (kabul / red) */
.grup-window-received-invites:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}
.grup-window-received-invites {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #3a3d44;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.grup-received-invites-title {
    font-size: 11px;
    color: #6a6d72;
    margin-bottom: 6px;
}
.grup-received-invite-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #2c2e32;
    border-radius: 4px;
    border: 1px solid #3a3d44;
}
.grup-received-invite-icon,
.grup-received-invite-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: contain;
}
.grup-received-invite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a3d44;
    color: #8a8d92;
    font-size: 12px;
}
.grup-received-invite-icon-img {
    display: block;
    background: #3a3d44;
}
.grup-received-invite-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,200,100,0.3);
}
.grup-received-invite-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}
.grup-received-invite-accept {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #4a6040 0%, #3a5030 100%);
    border: 1px solid #6a9060;
    border-radius: 6px;
    color: #c8e078;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.grup-received-invite-accept:hover {
    background: linear-gradient(145deg, #5a7050 0%, #4a6040 100%);
    color: #e8ff90;
    box-shadow: 0 0 10px rgba(200,224,120,0.4);
}
.grup-received-invite-decline {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #503a3a 0%, #402a2a 100%);
    border: 1px solid #906060;
    border-radius: 6px;
    color: #e07878;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}
.grup-received-invite-decline:hover {
    background: linear-gradient(145deg, #604a4a 0%, #503a3a 100%);
    color: #ff9090;
    box-shadow: 0 0 10px rgba(224,120,120,0.3);
}

/* Gönderilen grup davetleri listesi */
.grup-window-sent-invites:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}
.grup-window-sent-invites {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #3a3d44;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.grup-sent-invite-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #2c2e32;
    border-radius: 4px;
    border: 1px solid #3a3d44;
}
.grup-sent-invite-icon,
.grup-sent-invite-icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: contain;
}
.grup-sent-invite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a3d44;
    color: #8a8d92;
    font-size: 12px;
    font-weight: bold;
}
.grup-sent-invite-icon-img {
    display: block;
    background: #3a3d44;
}
.grup-sent-invite-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grup-sent-invite-cancel {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3a3835 0%, #2a2825 100%);
    border: 1px solid #6a5a4a;
    border-radius: 6px;
    color: #e07840;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.grup-sent-invite-cancel:hover {
    background: linear-gradient(145deg, #4a4845 0%, #3a3825 100%);
    color: #ff9050;
}
.grup-sent-invites-title {
    font-size: 11px;
    color: #6a6d72;
    margin-bottom: 6px;
}

.gorevler-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(230, 190, 80, 0.3);
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
}
.gorevler-quick-header:active {
    cursor: grabbing;
}
.gorevler-quick-title {
    color: rgba(230, 190, 80, 0.95);
    font-size: 14px;
    font-weight: bold;
}
.gorevler-quick-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.gorevler-quick-close:hover {
    cursor: pointer;
}
.gorevler-quick-close:hover {
    color: #fff;
}
.gorevler-quick-list {
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    color: #e0e4ec;
}
.gorevler-quick-empty {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 16px 0;
}
.gorevler-quick-mission {
    margin-bottom: 14px;
}
.gorevler-quick-mission:last-child {
    margin-bottom: 0;
}
.gorevler-quick-mission-name {
    font-weight: bold;
    color: rgba(230, 190, 80, 0.95);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(230, 190, 80, 0.25);
}
.gorevler-quick-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gorevler-quick-task {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.gorevler-quick-progress {
    color: rgba(200, 220, 255, 0.9);
    flex-shrink: 0;
}

/* Mobil: Görevler paneli ölçeklendirilmiş, ekrana sığar */
@media (max-width: 768px), (max-height: 768px) {
    .game-ui-layer .gorevler-quick-panel {
        min-width: 140px !important;
        max-width: 260px !important;
        width: auto !important;
        max-height: 65vh !important;
        top: 50px !important;
        left: 10px !important;
        font-size: 11px;
        transform: scale(0.75);
        transform-origin: top left;
    }
    
    .game-ui-layer .grup-panel {
        top: 50px !important;
        left: 10px !important;
        /* Grup paneli orijinal boyutta kalır, scale uygulanmaz */
    }
    
    .game-ui-layer .gorevler-quick-header {
        padding: 6px 8px;
    }
    
    .game-ui-layer .gorevler-quick-title {
        font-size: 12px !important;
    }
    
    .game-ui-layer .gorevler-quick-close {
        font-size: 18px;
        padding: 0 4px;
    }
    
    .game-ui-layer .gorevler-quick-list {
        padding: 8px;
        font-size: 11px !important;
    }
    
    .game-ui-layer .gorevler-quick-empty {
        padding: 12px 0;
        font-size: 11px;
    }
    
    .game-ui-layer .gorevler-quick-mission {
        margin-bottom: 10px;
    }
    
    .game-ui-layer .gorevler-quick-mission-name {
        margin-bottom: 4px;
        padding-bottom: 3px;
        font-size: 12px !important;
    }
    
    .game-ui-layer .gorevler-quick-task {
        padding: 3px 0;
        gap: 6px;
        font-size: 11px !important;
    }
    
    .game-ui-layer .gorevler-quick-progress {
        font-size: 10px !important;
    }
    
    /* Mobil: Galaxy Kapısı — compact modda JS pencereyi içeriğe göre boyutlar; ekstra scale kaldırıldı (sağ/altta boşluk önlenir) */
    .game-ui-layer .galaxy-gate-window {
        transform: scale(0.75);
        transform-origin: top left;
    }
    .game-ui-layer .galaxy-gate-window.galaxy-gate-window--compact {
        transform: none !important;
    }
    /* Android: GG penceresinin tamamı %20 küçük (içerik oranları bozulmaz) */
    .game-ui-layer .galaxy-gate-window.galaxy-gate-window--compact.galaxy-gate-window--android-shrink {
        transform: scale(0.76) !important;
        transform-origin: center center !important;
    }
    .game-ui-layer .galaxy-gate-window.galaxy-gate-window--android-shrink .galaxy-gate-uridium-bar {
        width: 210px;
        max-width: 220px;
        overflow: visible;
        right: 2px !important;
        transform: translateX(-4px) !important;
    }
    .game-ui-layer .galaxy-gate-window.galaxy-gate-window--android-shrink .galaxy-gate-uridium-text {
        transform: translate(calc(-10% + 2%), calc(-50% - 8px)) !important;
    }
    .game-ui-layer .galaxy-gate-window.galaxy-gate-window--android-shrink .galaxy-gate-uripanel-img {
        max-width: 220px;
    }
    .game-ui-layer .galaxy-gate-window .galaxy-gate-uripanel-img {
        max-width: 160px;
        max-height: 50px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .game-ui-layer .galaxy-gate-window .galaxy-gate-uridium-bar {
        transform: translateX(-40px);
        width: 160px;
        max-width: 160px;
        overflow: hidden;
        box-sizing: border-box;
    }
    .game-ui-layer .galaxy-gate-window .galaxy-gate-uridium-text {
        padding-left: 6px;
        padding-right: 6px;
        gap: 2px;
        font-size: 8px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .game-ui-layer .galaxy-gate-window .galaxy-gate-uridium-bar .resource-label {
        transform: translateX(52px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        max-width: 26%;
    }
    .game-ui-layer .galaxy-gate-window .galaxy-gate-uridium-bar .resource-value {
        margin-right: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        max-width: 40%;
        font-size: 7px;
    }
}

/* AUTO PILOT SYSTEM Paneli */
.autopilot-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
.autopilot-panel.hidden {
    display: none;
}
.autopilot-window {
    background: url('img/station/1.jpg') no-repeat center;
    background-size: auto;
    border: 1px solid rgba(0, 170, 255, 0.6);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 100, 150, 0.3);
    width: 600px;
    height: 440px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.autopilot-title-bar {
    display: flex;
    align-items: center;
    padding: 6px 10px 6px 12px;
    background: rgba(15, 25, 40, 0.95);
    border-bottom: 1px solid rgba(0, 170, 255, 0.4);
    font-size: 12px;
    cursor: grab;
    user-select: none;
}
.autopilot-title-bar:active {
    cursor: grabbing;
}
.autopilot-title-icon {
    margin-right: 8px;
    color: rgba(0, 200, 255, 0.9);
    font-size: 14px;
}
.autopilot-title-text {
    flex: 1;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.autopilot-window-controls {
    display: flex;
    gap: 2px;
}
.autopilot-window-btn {
    width: 22px;
    height: 20px;
    background: rgba(40, 55, 80, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: #b0d0e8;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.autopilot-window-btn:hover {
    background: rgba(60, 80, 110, 0.9);
}
.autopilot-close-btn:hover {
    background: rgba(180, 60, 60, 0.8);
}
.autopilot-main-ui {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.autopilot-main-ui.hidden {
    display: none !important;
}
.autopilot-vip-lock {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    background: rgba(10, 18, 32, 0.92);
    border-bottom: 1px solid rgba(255, 180, 60, 0.35);
}
.autopilot-vip-lock.hidden {
    display: none !important;
}
.autopilot-vip-lock-icon {
    font-size: 36px;
    color: #ffc040;
    text-shadow: 0 0 12px rgba(255, 192, 64, 0.7);
    margin-bottom: 12px;
    line-height: 1;
}
.autopilot-vip-lock-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #ffe08a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.autopilot-vip-lock-text {
    margin: 0;
    max-width: 340px;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}
.autopilot-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(15, 25, 40, 0.7);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
}
.autopilot-tab {
    flex: 1;
    padding: 6px 8px;
    background: rgba(35, 50, 75, 0.9);
    border: 1px solid rgba(50, 70, 100, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border-radius: 3px;
}
.autopilot-tab:hover {
    background: rgba(45, 65, 95, 0.95);
}
.autopilot-tab.active {
    background: rgba(45, 65, 95, 0.95);
    border-color: rgba(0, 200, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}
.autopilot-content-frame {
    padding: 12px;
    border: 1px solid rgba(0, 170, 255, 0.4);
    margin: 10px;
    border-radius: 4px;
    background: rgba(20, 30, 50, 0.5);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.autopilot-content-laser .autopilot-list-item {
    position: relative;
}
.autopilot-ammo-mult {
    position: absolute;
    left: 28px;
    top: 0;
    font-size: 9px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}
.autopilot-selection-area {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.autopilot-list-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.autopilot-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    background: rgba(25, 35, 55, 0.6);
    border-radius: 3px;
}
.autopilot-checkbox {
    width: 14px;
    height: 14px;
    background: rgba(40, 55, 80, 0.9);
    border: 1px solid rgba(0, 170, 255, 0.4);
    cursor: pointer;
    flex-shrink: 0;
}
.autopilot-npc-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.autopilot-npc-label {
    color: #ffffff;
    font-size: 11px;
}
.autopilot-buttons-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 80px;
}
.autopilot-select-btn {
    padding: 6px 8px;
    background: rgba(80, 90, 110, 0.9);
    border: 1px solid rgba(100, 120, 150, 0.6);
    color: #2a2a2a;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}
.autopilot-select-btn:hover {
    background: rgba(100, 115, 140, 0.95);
}
.autopilot-select-btn-small {
    padding: 4px 6px;
    background: rgba(80, 90, 110, 0.9);
    border: 1px solid rgba(100, 120, 150, 0.6);
    color: #2a2a2a;
    font-size: 9px;
    cursor: pointer;
    border-radius: 3px;
}
.autopilot-select-btn-small:hover {
    background: rgba(100, 115, 140, 0.95);
}
.autopilot-status-section {
    border-top: 1px solid rgba(0, 170, 255, 0.2);
    padding-top: 10px;
}
.autopilot-status-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.autopilot-status-toggle {
    color: rgba(0, 200, 255, 0.9);
    font-size: 10px;
}
.autopilot-status-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.autopilot-status-info {
    color: rgba(180, 190, 210, 0.9);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.autopilot-runtime {
    float: right;
}
.autopilot-reward-labels {
    display: inline-flex;
    flex-wrap: nowrap;
    margin-left: 0.5em;
}
.autopilot-reward-labels > span {
    padding-right: 3.744em;
    white-space: nowrap;
}
.autopilot-reward-labels > span:last-child {
    padding-right: 0;
}
.autopilot-main-buttons {
    display: flex;
    gap: 10px;
}
.autopilot-start-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(30, 140, 120, 0.9);
    border: 1px solid rgba(50, 180, 160, 0.6);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}
.autopilot-start-btn:hover {
    background: rgba(40, 160, 140, 0.95);
}
.autopilot-stop-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(160, 60, 60, 0.9);
    border: 1px solid rgba(200, 80, 80, 0.6);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}
.autopilot-stop-btn:hover {
    background: rgba(180, 70, 70, 0.95);
}

/* Android / mobil: Auto Pilot penceresi %25 küçük, ekranın ortasında */
@media (max-width: 768px) {
    .autopilot-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 320px !important;
        height: 280px !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 40px) !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(0.75) !important;
        transform-origin: center center;
    }
    .autopilot-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
    .autopilot-content-frame {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 6px;
        padding: 8px;
    }
    .autopilot-tabs {
        padding: 6px 8px;
        flex-wrap: wrap;
    }
    .autopilot-tab {
        font-size: 10px;
        padding: 5px 6px;
    }
    .autopilot-selection-area {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
    }
    .autopilot-buttons-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .autopilot-list-item {
        padding: 6px 8px;
    }
    .autopilot-npc-label {
        font-size: 10px;
    }
    .autopilot-status-info,
    .autopilot-reward-labels {
        font-size: 10px;
    }
    .autopilot-reward-labels > span {
        padding-right: 2em;
    }
    .autopilot-main-buttons {
        gap: 8px;
    }
    .autopilot-start-btn,
    .autopilot-stop-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    .autopilot-window-btn {
        width: 28px;
        height: 26px;
        font-size: 16px;
    }
    .autopilot-vip-lock {
        justify-content: center;
        padding: 18px 14px;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .autopilot-vip-lock {
        justify-content: center;
        padding: 14px 12px;
        transform: none;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 8px;
        font-size: 26px;
    }
    .autopilot-vip-lock-title {
        margin-bottom: 8px;
    }
    .autopilot-vip-lock-text {
        font-size: 10px;
        line-height: 1.35;
    }
}

/* iOS: Auto Pilot penceresi daha kompakt olsun (sadece iOS, PC’ye dokunulmaz) */
@media (max-width: 768px) and (-webkit-touch-callout: none) {
    .autopilot-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 320px !important;
        height: 280px !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 40px) !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(0.75) !important;
        transform-origin: center center;
    }
    .autopilot-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
    .autopilot-content-frame {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 4px;
        padding: 6px;
    }
    .autopilot-tabs {
        padding: 4px 6px;
        flex-wrap: wrap;
    }
    .autopilot-tab {
        font-size: 9px;
        padding: 4px 5px;
    }
    .autopilot-selection-area {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 6px;
    }
    .autopilot-buttons-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .autopilot-list-item {
        padding: 4px 6px;
    }
    .autopilot-npc-label {
        font-size: 9px;
    }
    .autopilot-status-info,
    .autopilot-reward-labels {
        font-size: 9px;
    }
    .autopilot-reward-labels > span {
        padding-right: 1.5em;
    }
    .autopilot-main-buttons {
        gap: 6px;
    }
    .autopilot-start-btn,
    .autopilot-stop-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    .autopilot-window-btn {
        width: 24px;
        height: 22px;
        font-size: 14px;
    }
    .autopilot-vip-lock {
        justify-content: center;
        padding: 16px 12px;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 8px;
    }
}

/* iOS yatay: Auto Pilot %25 küçük, ekranın ortasında */
@media (orientation: landscape) and (max-height: 600px) and (-webkit-touch-callout: none) {
    .autopilot-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 380px !important;
        height: 220px !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 40px) !important;
        min-width: unset !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(0.75) !important;
        transform-origin: center center;
    }
    .autopilot-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
    .autopilot-content-frame {
        flex: 1;
        min-height: 0;
        max-height: 38vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 6px;
        padding: 8px;
    }
    .autopilot-tabs {
        padding: 6px 8px;
        flex-wrap: wrap;
    }
    .autopilot-tab {
        font-size: 10px;
        padding: 5px 6px;
    }
    .autopilot-selection-area {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    .autopilot-buttons-column {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .autopilot-list-item {
        padding: 6px 8px;
    }
    .autopilot-npc-label {
        font-size: 10px;
    }
    .autopilot-status-info,
    .autopilot-reward-labels {
        font-size: 10px;
    }
    .autopilot-reward-labels > span {
        padding-right: 2em;
    }
    .autopilot-main-buttons {
        gap: 8px;
    }
    .autopilot-start-btn,
    .autopilot-stop-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    .autopilot-window-btn {
        width: 28px;
        height: 26px;
        font-size: 16px;
    }
    .autopilot-vip-lock {
        justify-content: center;
        padding: 12px 10px;
        transform: none;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 6px;
        font-size: 24px;
    }
    .autopilot-vip-lock-title {
        margin-bottom: 6px;
        font-size: 13px;
    }
    .autopilot-vip-lock-text {
        font-size: 9px;
        line-height: 1.3;
        max-width: 300px;
    }
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    pointer-events: auto; /* Sürüklenebilir olmalı */
}

.info-panel-header h3 {
    color: #00aaff;
    font-size: 16px;
    margin: 0;
}

.close-panel {
    background: transparent;
    border: none;
    color: #00aaff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    pointer-events: auto; /* Tıklanabilir olmalı */
}

.close-panel:hover {
    background: rgba(0, 170, 255, 0.2);
    transform: rotate(90deg);
}

.info-panel-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 5px;
}

.stat-row .stat-label {
    color: #00aaff;
    font-weight: bold;
}

.stat-row span:not(.stat-label) {
    color: #fff;
}

/* Mobil için butonlar - sol üst butonlar alttaki cephane ile aynı oranda %30 küçült */
@media (max-width: 768px) {
    .game-ui-layer .top-left-buttons {
        top: 10px;
        left: max(2px, env(safe-area-inset-left));
        gap: 0;
        transform: scale(0.7) !important;
        transform-origin: top left;
    }
    
    .top-right-reklam {
        top: 10px;
        right: 10px;
    }
    /* Sağ üst logo, ayar ve çıkış resimleri mobilde %30 küçült */
    .top-right-reklam .reklam-logo {
        transform: translate(-80%, -33%) scale(0.525) !important; /* 0.75 * 0.7 */
    }
    .top-right-reklam #ayarButton {
        transform: translateX(calc(-260% + 14px)) translateY(140%) scale(0.7) !important;
    }
    .top-right-reklam #kptButton {
        transform: translateX(calc(-434% + 14px)) translateY(66%) scale(0.7) !important;
    }
    
    /* Alttaki slot ve cephane kategori butonları %30 küçült */
    .ammo-bar-wrapper {
        bottom: calc(6px + env(safe-area-inset-bottom)) !important;
        transform: translate(-50%, 0) scale(0.7) !important;
        transform-origin: bottom center;
    }
    
    .info-button {
        height: 25px;
    }
    
    .info-button.info-button-6,
    .info-button.info-button-grv,
    .info-button.info-button-gg,
    .info-button.info-button-grup {
        width: 25px;
        height: 25px;
        min-width: 25px;
    }

    .info-button.info-button-pay {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    .info-button.info-button-pay img.button-icon-original {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .info-button svg {
        width: 18px;
        height: 18px;
    }
    
    .info-button img.button-icon {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }
    
    .info-panel {
        top: 60px;
        left: 10px;
        min-width: 200px;
        padding: 12px;
    }
    
    .info-panel-header h3 {
        font-size: 14px;
    }
}

.ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    z-index: 10;
    pointer-events: none; /* Fareyi canvas'a geçir */
}

/* Mobil için UI düzeni */
@media (max-width: 768px) {
    .ui-container {
        top: 10px;
        left: 10px;
        gap: 8px;
        flex-wrap: wrap;
    }
}

.ui-panel {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    min-width: 200px;
    max-width: 260px;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute;
    top: 80px;
    left: 20px;
    cursor: move;
    user-select: none;
    z-index: 20;
    pointer-events: none; /* Fareyi canvas'a geçir */
}

/* Kayıt defteri: genel .ui-panel cyan border yerine PC ile aynı altın çerçeve */
.ui-panel.rewards-panel {
    pointer-events: auto;
    border: 2px solid rgba(230, 190, 80, 0.7) !important;
    box-shadow: 0 0 20px rgba(230, 190, 80, 0.25);
}

/* Auto Pilot paneli sürüklenebilir olmalı - genişlik sınırı kaldırıldı (%50 büyük pencere) */
/* İçerik alanında tutma imleci çıkmasın; sadece başlık çubuğunda (autopilot-title-bar) grab olsun */
.ui-panel.autopilot-panel {
    pointer-events: auto;
    min-width: unset;
    max-width: none;
    padding: 0;
    cursor: default;
}

/* Destekler: genel .ui-panel padding/min-width yan siyah boşluk yapıyordu */
.ui-panel.booster-hud-panel {
    pointer-events: auto;
    padding: 0 !important;
    min-width: unset !important;
    max-width: none !important;
    width: 158px !important;
    border-radius: 0 !important;
    cursor: default;
    background:
        linear-gradient(135deg, transparent 0 11px, #073044 11px 12px, transparent 12px) top left / 16px 16px no-repeat,
        linear-gradient(180deg, rgba(4, 28, 39, 0.98), rgba(3, 18, 29, 0.98)) !important;
    border: 1px solid #0b6f91 !important;
    border-top-color: #2785a5 !important;
    border-left-color: #2785a5 !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.85),
        inset 0 18px 18px rgba(55, 102, 120, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.85) !important;
}
.ui-panel.booster-hud-panel::before {
    top: auto;
    left: 0;
    right: 0;
    height: auto;
    inset: 28px 0 0 0;
    cursor: default;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 5px
        );
    opacity: 0.45;
}

.ui-panel.hidden {
    display: none;
}

/* Stats Panel - Özel stil: Form stilleri kaldırıldı, arka plan resmi eklendi */
/* Android WebView: metin ölçeklemesini kapat (sistem font boyutu paneli taşırmasın) */
.stats-panel {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: url('img/butons/1panel.png') no-repeat center;
    background-size: contain;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 225px;
    height: 129px;
    min-width: 225px;
    max-width: 225px;
    overflow: hidden;
    pointer-events: auto;
}

/* Stats/HP-Shield panelleri mobilde butonların dokunmasını engellemesin */
.stats-panel::before,
.bars-panel::before {
    pointer-events: none !important;
}

.stats-panel .stats {
    padding: 14px 12px 14px 18px;
    padding-left: calc(18px + 4%);
    padding-top: calc(14px + 4%);
    padding-bottom: calc(14px + 4%);
    box-sizing: border-box;
    transform: translateX(2%) translateY(5%);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Sürükleme için başlık alanı */
.ui-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    cursor: move;
    z-index: 1;
    pointer-events: auto; /* Sürüklenebilir olmalı */
}
/* Auto Pilot panelinde ::before tıklamayı engelliyordu; asıl başlık tıklanabilsin diye kapatıldı */
.ui-panel.autopilot-panel::before {
    pointer-events: none;
}

/* Görevler paneli: tıklama başlığa gitsin, sürükleme çalışsın */
.ui-panel.gorevler-quick-panel {
    pointer-events: auto;
}
.ui-panel.gorevler-quick-panel::before {
    pointer-events: none;
}

/* Grup paneli: dış kapsayıcı dokunma geçirir; iç pencere (.grup-panel-window) alır */
.ui-panel.grup-panel {
    pointer-events: none;
    cursor: default;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-width: unset !important;
    max-width: none !important;
    width: max-content !important;
    border-radius: 0;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}
.ui-panel.grup-panel::before {
    pointer-events: none;
}
.ui-panel.grup-panel:focus {
    outline: none !important;
}

/* Galaxy Kapısı penceresi - oyun ekranında ortada açılır, sürüklenebilir */
.ui-panel.galaxy-gate-window {
    pointer-events: auto;
    position: fixed;
    min-width: 600px;
    max-width: 95vw;
    width: 801px;
    height: 414px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0d0f14;
    border: 2px solid #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 25;
    cursor: default;
}
.ui-panel.galaxy-gate-window::before {
    pointer-events: none;
}
/* Üstte sadece çizgi; boşluk yok */
.galaxy-gate-window-header {
    flex-shrink: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid #2a2e38;
    background: transparent;
    cursor: default;
}

/* Galaxy Kapısı metni + kapatma: çizginin hemen altında, boşluk %50 az */
.galaxy-gate-window-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 12px 2px;
    background: linear-gradient(180deg, #1e2129 0%, #16181f 100%);
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
}

.galaxy-gate-window-title-row:active {
    cursor: grabbing;
}

.galaxy-gate-window-title {
    font-weight: bold;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.galaxy-gate-uridium-bar {
    position: absolute;
    top: 44px;
    right: 25px;
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 10px;
    line-height: 1.2;
    z-index: 20;
}

.galaxy-gate-uripanel-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    transform: translate(-2%, -5%) scale(0.9);
    transform-origin: top right;
}

.galaxy-gate-uridium-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translate(2%, calc(-50% - 8px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
    pointer-events: none;
    font-family: inherit;
    font-size: 10px;
}

.galaxy-gate-uridium-bar .resource-label {
    color: #c0c8dc;
    font-weight: 400;
    text-shadow: 0 0 6px rgba(192, 200, 220, 0.5);
    transform: translateX(24px);
}

.galaxy-gate-uridium-bar .resource-value {
    color: #88ccff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(136, 204, 255, 0.9), 0 0 16px rgba(136, 204, 255, 0.6);
    margin-right: 3%;
}

.galaxy-gate-window-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    border-radius: 2px;
}
.galaxy-gate-window-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.galaxy-gate-window-content {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.ui-panel.galaxy-gate-window.galaxy-gate-window--compact .galaxy-gate-window-content {
    overflow: hidden !important;
    flex: 0 0 auto !important;
}
/* Android (büyük ekran / PC modu): tam boy GG de %20 küçük */
.ui-panel.galaxy-gate-window.galaxy-gate-window--android-shrink:not(.galaxy-gate-window--compact) {
    transform: scale(0.76);
    transform-origin: center center;
}
/* Galaxy Kapısı penceresi gizliyken kesinlikle görünmesin (hidden .galaxy-gate-window sonra tanımlı olduğu için override ediyordu) */
.ui-panel.galaxy-gate-window.hidden {
    display: none !important;
}

/* Mobil için UI panel boyutu */
@media (max-width: 768px) {
    .ui-panel {
        min-width: 130px;
        max-width: 160px;
        padding: 6px;
        font-size: 11px;
        border-radius: 6px;
    }
    .ui-panel.grup-panel {
        min-width: unset !important;
        max-width: none !important;
        width: max-content !important;
        padding: 0 !important;
    }
    .ui-panel.booster-hud-panel {
        width: 158px !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 0 !important;
    }
    /* Galaxy Kapısı: mobilde boyut sınırları (konum JS ile ortada) */
    .ui-panel.galaxy-gate-window {
        width: 340px !important;
        min-width: 280px !important;
        max-width: calc(100vw - 20px) !important;
        height: 360px !important;
        max-height: 85vh !important;
        box-sizing: border-box;
    }
    .ui-panel.galaxy-gate-window .galaxy-gate-window-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-panel .stats {
        padding: 4px 6px 4px 10px;
        padding-left: calc(12px + 2%);
        padding-top: calc(6px + 2%);
        padding-bottom: calc(6px + 2%);
    }
    
    .stats-panel .stat-label {
        min-width: 28px !important;
        font-size: 5px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 5px !important;
        gap: 2px !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 5px !important;
        margin-left: auto !important;
        text-align: right !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .stats {
        gap: 2.16px; /* %28 azaltıldı: 3px * 0.72 */
    }
    
    .stat-item {
        font-size: 10px;
        gap: 4px;
    }

    
    .stat-label {
        font-size: 9px;
    }
    
    .health-label,
    .shield-label {
        font-size: 9px;
        min-width: 35px;
    }
    
    .health-label img.health-icon,
    .shield-label img.shield-icon {
        max-height: 18px;
    }
    
    .health-bar,
    .shield-bar {
        min-width: 70px;
        height: 9px;
    }
    
    #health-text {
        font-size: 9px;
        min-width: 40px;
    }
    
    #shield-text {
        font-size: 9px;
        min-width: 40px;
        color: #0066cc;
    }
    
    .health-bar-container,
    .shield-bar-container {
        margin-top: 6px;
        gap: 6px;
    }
    
    .bars-panel {
        min-width: 140px;
        padding: 6px 8px 6px 6px;
    }
    
    /* Mobil dikey: 1panel.png ve 2panel.png – yataydaki gibi sabit boyut, hizalama, HP üstte kalkan altta */
    .stats-panel {
        width: 120px !important;
        height: 69px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-panel .stats {
        padding: 2px 3px 2px 6px !important;
        padding-left: calc(6px + 1%) !important;
        padding-top: calc(2px + 1%) !important;
        padding-bottom: calc(2px + 1%) !important;
        gap: 0 !important;
        transform: translateX(2%) translateY(12%) !important;
    }
    
    .stats-panel .stats .stat-item {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .stats-panel .stat-label {
        min-width: 28px !important;
        font-size: 5px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 5px !important;
        gap: 2px !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        display: inline-block !important;
        font-size: 5px !important;
        min-width: 28px !important;
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 4px !important;
        transform: none !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .bars-panel {
        width: 120px !important;
        height: 69px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
    }
    
    .bars-panel .health-bar-container,
    .bars-panel .shield-bar-container {
        padding: 2px 4px 2px 6px !important;
        margin-top: 0 !important;
        gap: 2px !important;
    }
    
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
    
    .bars-panel .health-label,
    .bars-panel .shield-label {
        font-size: 6px !important;
        min-width: 0 !important;
        padding-left: 0 !important;
    }
    
    .bars-panel .health-label img.health-icon,
    .bars-panel .shield-label img.shield-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .bars-panel .health-bar,
    .bars-panel .shield-bar {
        min-width: 30px !important;
        height: 5px !important;
    }
    
    .bars-panel #health-text,
    .bars-panel #shield-text {
        font-size: 6px !important;
        min-width: 28px !important;
        color: #ffffff !important;
    }
}

/* Uygulama içi WebView (Android): içerik panel içinde */
body.in-webview .stats-panel {
    width: 120px !important;
    height: 69px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    margin-left: -16px !important;
    overflow: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}
body.in-webview .stats-panel .stats {
    padding: 4px 6px 4px 10px !important;
    padding-left: calc(12px + 2%) !important;
    padding-top: calc(6px + 2%) !important;
    padding-bottom: calc(6px + 2%) !important;
    transform: translateX(-8px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}
body.in-webview .stats-panel .stat-item {
    gap: 2px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
}
body.in-webview .stats-panel .stat-label,
body.in-webview .stats-panel .stat-item,
body.in-webview .stats-panel .stat-item span,
body.in-webview .stats-panel #xp,
body.in-webview .stats-panel #honor,
body.in-webview .stats-panel #uridium,
body.in-webview .stats-panel #credits,
body.in-webview .stats-panel #level,
body.in-webview .stats-panel #xp-needed {
    font-size: 5px !important;
}
body.in-webview .stats-panel .stat-label {
    min-width: 28px !important;
    flex-shrink: 0 !important;
    transform: none !important;
}
body.in-webview .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
    font-size: 5px !important;
    margin-left: auto !important;
    text-align: right !important;
    min-width: 28px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}
body.in-webview .stats-panel .stat-icon {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    object-fit: contain !important;
    margin-right: 2px !important;
}

/* Gemi HP paneli (bars) = TP/SP paneli ile aynı boyut (120×69) */
body.in-webview .bars-panel {
    width: 120px !important;
    height: 69px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
}
body.in-webview .bars-panel .bars-panel-row {
    padding: 0 2px 0 0 !important;
    gap: 0 !important;
}
body.in-webview .bars-panel .health-bar-container,
body.in-webview .bars-panel .shield-bar-container {
    padding: 2px 4px 2px 6px !important;
    margin-top: 0 !important;
    gap: 2px !important;
}
body.in-webview .bars-panel .health-bar-container {
    transform: translateX(calc(8% - 10px)) translateY(-30%) !important;
}
body.in-webview .bars-panel .shield-bar-container {
    transform: translateX(calc(8% - 10px)) translateY(32%) !important;
}
body.in-webview .bars-panel #health-text,
body.in-webview .bars-panel #shield-text {
    transform: translateX(1px) !important;
}
body.in-webview .bars-panel .health-label,
body.in-webview .bars-panel .shield-label {
    font-size: 6px !important;
    min-width: 0 !important;
    padding-left: 0 !important;
}
body.in-webview .bars-panel .health-label img.health-icon,
body.in-webview .bars-panel .shield-label img.shield-icon {
    max-width: 10px !important;
    max-height: 10px !important;
}
body.in-webview .bars-panel .health-bar,
body.in-webview .bars-panel .shield-bar {
    min-width: 30px !important;
    height: 5px !important;
}
body.in-webview .bars-panel #health-text,
body.in-webview .bars-panel #shield-text {
    font-size: 6px !important;
    min-width: 28px !important;
    color: #ffffff !important;
}

/* Mobil tarayıcıya dokunmuyoruz; sadece body.in-webview (Android uygulama / ?inapp=1) stilleri uygulanır. */

/* Yatay mod (landscape) için UI küçültme - daha agresif */
@media (max-width: 768px) and (orientation: landscape),
       (max-height: 500px) and (orientation: landscape) {
    html, body {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    .game-container {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    #gameCanvas {
        width: 100vw !important;
        height: 100vh !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .ui-container {
        top: 5px !important;
        left: 10px !important; /* Sol taraftaki boşluğu kullan */
        gap: 5px !important;
        flex-direction: row !important; /* Yan yana */
        align-items: flex-start !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    /* Sol üst butonlar alttaki cephane ile aynı oranda %30 küçült */
    .game-ui-layer .top-left-buttons {
        transform: scale(0.7) !important;
        transform-origin: top left;
    }
    
    /* Sağ üst logo, ayar ve çıkış resimleri mobil yatayda %30 küçült */
    .top-right-reklam .reklam-logo {
        transform: translate(-80%, -33%) scale(0.525) !important;
    }
    .top-right-reklam #ayarButton {
        transform: translateX(calc(-260% + 14px)) translateY(140%) scale(0.7) !important;
    }
    .top-right-reklam #kptButton {
        transform: translateX(calc(-434% + 14px)) translateY(66%) scale(0.7) !important;
    }
    
    .ui-panel {
        min-width: 100px !important;
        max-width: 130px !important;
        width: auto !important;
        padding: 4px 5px !important;
        font-size: 9px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important; /* Daralmayı engelle */
        flex-grow: 0 !important;
    }
    .ui-panel.grup-panel {
        min-width: unset !important;
        max-width: none !important;
        width: max-content !important;
        padding: 0 !important;
    }
    .ui-panel.booster-hud-panel {
        width: 158px !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 0 !important;
    }
    /* Grup penceresi: mobil yatayda ölçeklendir (ekrana sığsın).
       width/height ile DOM hit alanını küçültülmüş boyuta sığdır; overflow:visible ile içerik görünsün. */
    .game-ui-layer .ui-panel.grup-panel .grup-panel-window {
        transform: scale(0.62);
        transform-origin: top left;
        max-width: min(320px, 92vw) !important;
        max-height: 72vh !important;
    }
    .game-ui-layer .ui-panel.grup-panel {
        width: calc(240px * 0.62) !important;
        height: auto !important;
        overflow: visible !important;
    }
    /* Galaxy Kapısı: yatay modda daha geniş (konum JS ile ortada) */
    .ui-panel.galaxy-gate-window {
        width: 520px !important;
        min-width: 360px !important;
        max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        height: 320px !important;
        max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        box-sizing: border-box;
    }
    .ui-panel.galaxy-gate-window .galaxy-gate-window-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats {
        gap: 1.44px !important; /* %28 azaltıldı: 2px * 0.72 */
    }
    
    .stat-item {
        font-size: 8px !important;
        gap: 3px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }
    
    .stat-label {
        font-size: 8px !important;
    }
    
    .stats-panel .stat-label {
        min-width: 28px !important;
        font-size: 5px !important;
        line-height: 1.1 !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 5px !important;
        gap: 2px !important;
        line-height: 1.1 !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 5px !important;
        margin-left: auto !important;
        text-align: right !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .health-label,
    .shield-label {
        font-size: 8px !important;
        min-width: 25px !important;
    }
    
    .health-label img.health-icon,
    .shield-label img.shield-icon {
        max-height: 16px !important;
    }
    
    .health-bar,
    .shield-bar {
        min-width: 50px !important;
        height: 9px !important;
    }
    
    #health-text {
        font-size: 8px !important;
        min-width: 32px !important;
    }
    
    #shield-text {
        font-size: 8px !important;
        min-width: 32px !important;
        color: #0066cc !important;
    }
    
    .health-bar-container,
    .shield-bar-container {
        margin-top: 4px !important;
        gap: 4px !important;
    }
    
    /* Stats panel (yatay) - 1panel.png ile aynı hizada: metinler resmin içine oturacak; sabit boyut */
    .stats-panel {
        width: 120px !important;
        height: 69px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-panel .stats {
        padding: 2px 3px 2px 6px !important;
        padding-left: calc(6px + 1%) !important;
        padding-top: calc(2px + 1%) !important;
        padding-bottom: calc(2px + 1%) !important;
        gap: 0 !important;
        transform: translateX(2%) translateY(12%) !important;
    }
    
    .stats-panel .stats .stat-item {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .stats-panel .stat-label {
        font-size: 5px !important;
        min-width: 28px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 5px !important;
        gap: 2px !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        display: inline-block !important;
        font-size: 5px !important;
        min-width: 28px !important;
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 4px !important;
        transform: none !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    /* Bars panel (yatay) - 2panel: PC ile aynı sıra ve hizalama (HP üstte, Kalkan altta) */
    .bars-panel {
        width: 120px !important;
        height: 69px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
    }
    
    .bars-panel .health-bar-container,
    .bars-panel .shield-bar-container {
        padding: 2px 4px 2px 6px !important;
        margin-top: 0 !important;
        gap: 2px !important;
    }
    
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
    
    .bars-panel .health-label,
    .bars-panel .shield-label {
        font-size: 6px !important;
        min-width: 0 !important;
        padding-left: 0 !important;
    }
    
    .bars-panel .health-label img.health-icon,
    .bars-panel .shield-label img.shield-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .bars-panel .health-bar,
    .bars-panel .shield-bar {
        min-width: 30px !important;
        height: 5px !important;
    }
    
    .bars-panel #health-text,
    .bars-panel #shield-text {
        font-size: 6px !important;
        min-width: 28px !important;
        color: #ffffff !important;
    }
    
    .minimap-container {
        /* width/height JS tarafından (updateMinimapSize) ayarlanır; !important kullanılmaz ki zoom çalışsın */
        top: 50% !important;
        bottom: auto !important;
        right: max(2px, env(safe-area-inset-right)) !important;
        left: auto !important;
        transform: translateY(calc(-50% - 18px)) !important;
    }

    .minimap-info {
        top: -22px !important;
        left: 4px !important;
        font-size: 9px !important;
    }
    
    .minimap-btn {
        width: 14px !important;
        height: 14px !important;
        font-size: 10px !important;
        border-width: 1px !important;
        padding: 0 !important;
    }
    
    .minimap-controls {
        gap: 2px !important;
    }
    
    /* Joystick pozisyonu - iOS safe area desteği */
    .joystick {
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        left: calc(10px + env(safe-area-inset-left)) !important;
    }
    
    /* Ana menü butonu - mobilde küçült (0.4), yukarı ve biraz sola */
    .main-menu-button {
        top: calc(65px + env(safe-area-inset-top)) !important;
        right: calc(28px + env(safe-area-inset-right)) !important;
        left: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        transform: scale(0.4) !important;
        transform-origin: top right;
    }

    .ammo-bar-wrapper {
        bottom: calc(6px + env(safe-area-inset-bottom)) !important;
        transform: translate(-50%, 0) scale(0.7) !important;
        transform-origin: bottom center;
    }

    .ammo-column {
        padding: 3px !important;
        gap: 3px !important;
    }

    .ammo-category-row {
        gap: 2px !important;
    }

    .ammo-quick-row {
        gap: 6px !important;
    }

    .ammo-quick-tab {
        width: 22px !important;
        min-width: 22px !important;
        height: 26px !important;
    }

    .ammo-quick-slots {
        padding: 3px !important;
        gap: 3px !important;
    }

    .ammo-quick-slot {
        width: 35px !important;
        min-width: 35px !important;
        height: 42px !important;
        padding: 0 !important;
        font-size: 7px !important;
    }

    /* Cephane çubuğu scale(0.7); küme dışarıda — aynı ölçek bos.png’yi 1–6 ile eşitler */
    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible {
        width: 42px !important;
        height: 136px !important;
        overflow: visible !important;
        transform: scale(0.7) !important;
        transform-origin: 100% 100% !important;
        /* Konum: game.js syncAmmoQuickRadarClusterToViewport */
    }

    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible.ammo-quick-radar-cluster--right {
        transform-origin: 0 100% !important;
    }

    /* 1–6 ile aynı kutu (ölçek öncesi boyutlar; görüntü bar ile aynı) */
    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible .ammo-quick-slot {
        width: 35px !important;
        min-width: 35px !important;
        height: 42px !important;
        padding: 0 !important;
        font-size: 7px !important;
        box-sizing: border-box !important;
        background: url('img/lazer/bos.png') no-repeat center !important;
        background-size: contain !important;
    }

    .ammo-quick-radar-cluster .ammo-slot-name {
        font-size: 8px !important;
        line-height: 1.05 !important;
    }

    .ammo-quick-radar-cluster .ammo-slot-number {
        font-size: 6px !important;
        line-height: 1 !important;
    }

    /* 7: 65px, 8: 50px, 9: 10px aşağı */
    .ammo-quick-radar-orbit-slot--1 {
        bottom: 86px !important;
        right: 38px !important;
        transform: translateY(90px) !important;
    }

    .ammo-quick-radar-orbit-slot--2 {
        bottom: 43px !important;
        right: 37px !important;
        transform: translateY(50px) !important;
    }

    .ammo-quick-radar-orbit-slot--3 {
        bottom: 0 !important;
        right: 8px !important;
        transform: translateY(-3px) !important;
    }

    .ammo-quick-radar-orbit-slot-right {
        position: absolute !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
    }

    .ammo-quick-radar-orbit-slot-right--4 {
        bottom: 181px !important;
        left: -71px !important;
        transform: translateY(0px) !important;
    }

    .ammo-quick-radar-orbit-slot-right--5 {
        bottom: 161px !important;
        left: -107px !important;
        transform: translateY(0px) !important;
    }

    .ammo-quick-radar-orbit-slot-right--6 {
        bottom: 117px !important;
        left: -132px !important;
        transform: translateY(-13px) !important;
    }

    .ammo-slot {
        width: 44px !important;
        height: 52px !important;
        padding: 4px 3px !important;
        font-size: 8px !important;
    }
    
    .ammo-slot-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    
    .ammo-slot-name {
        font-size: 8px !important;
    }
    
    .ammo-slot-count,
    .ammo-slot-value,
    .ammo-slot-number {
        font-size: 6px !important;
    }

    /* Yatayda Auto Pilot penceresi %25 küçük, ekranın ortasında */
    .autopilot-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 380px !important;
        height: 220px !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 40px) !important;
        min-width: unset !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(0.75) !important;
        transform-origin: center center;
    }
    .autopilot-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
    .autopilot-content-frame {
        flex: 1;
        min-height: 0;
        max-height: 38vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 6px;
        padding: 8px;
    }
    .autopilot-tabs {
        padding: 6px 8px;
        flex-wrap: wrap;
    }
    .autopilot-tab {
        font-size: 10px;
        padding: 5px 6px;
    }
    .autopilot-selection-area {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    .autopilot-buttons-column {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .autopilot-list-item {
        padding: 6px 8px;
    }
    .autopilot-npc-label {
        font-size: 10px;
    }
    .autopilot-status-info,
    .autopilot-reward-labels {
        font-size: 10px;
    }
    .autopilot-reward-labels > span {
        padding-right: 2em;
    }
    .autopilot-main-buttons {
        gap: 8px;
    }
    .autopilot-start-btn,
    .autopilot-stop-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    .autopilot-window-btn {
        width: 28px;
        height: 26px;
        font-size: 16px;
    }
    .autopilot-vip-lock {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 14px !important;
        margin-top: 0 !important;
        transform: none !important;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 8px !important;
        font-size: 24px !important;
    }
    .autopilot-vip-lock-title {
        margin: 0 0 8px !important;
        font-size: 12px !important;
    }
    .autopilot-vip-lock-text {
        font-size: 9px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }
}

/* Yatay mod için ekstra küçük ekranlar */
@media (max-height: 400px) and (orientation: landscape) {
    .ui-container {
        top: 3px !important;
        left: 8px !important; /* Sol taraftaki boşluğu kullan */
        gap: 4px !important;
        flex-direction: row !important; /* Yan yana */
        align-items: flex-start !important;
    }
    
    .ui-panel {
        min-width: 85px !important;
        max-width: 105px !important;
        padding: 3px 4px !important;
        font-size: 8px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    .ui-panel.grup-panel {
        min-width: unset !important;
        max-width: none !important;
        width: max-content !important;
        padding: 0 !important;
    }
    .ui-panel.booster-hud-panel {
        width: 158px !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 0 !important;
    }
    /* Grup penceresi: ekstra küçük yatayda daha fazla ölçekle */
    .game-ui-layer .ui-panel.grup-panel .grup-panel-window {
        transform: scale(0.54);
        transform-origin: top left;
        max-width: min(320px, 92vw) !important;
        max-height: 68vh !important;
    }
    .game-ui-layer .ui-panel.grup-panel {
        width: calc(240px * 0.54) !important;
        height: auto !important;
        overflow: visible !important;
    }
    /* Galaxy Kapısı: ekstra küçük yatay modda biraz daha geniş (konum JS ile ortada) */
    .ui-panel.galaxy-gate-window {
        width: 440px !important;
        min-width: 300px !important;
        max-width: calc(100vw - 12px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        height: 260px !important;
        max-height: calc(100vh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        box-sizing: border-box;
    }
    .ui-panel.galaxy-gate-window .galaxy-gate-window-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stat-item {
        font-size: 7px !important;
        gap: 2px !important;
        line-height: 1.2 !important;
    }
    
    .stat-label {
        font-size: 7px !important;
    }
    
    .stats-panel .stat-label {
        min-width: 26px !important;
        font-size: 4.5px !important;
        line-height: 1.05 !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 4.5px !important;
        gap: 2px !important;
        line-height: 1.05 !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 4.5px !important;
        display: inline-block !important;
        min-width: 24px !important;
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 4px !important;
        transform: none !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 8px !important;
        max-height: 8px !important;
    }
    
    .health-label,
    .shield-label {
        font-size: 7px !important;
        min-width: 22px !important;
    }
    
    .health-label img.health-icon,
    .shield-label img.shield-icon {
        max-height: 14px !important;
    }
    
    .health-bar,
    .shield-bar {
        min-width: 45px !important;
        height: 8px !important;
    }
    
    #health-text {
        font-size: 7px !important;
        min-width: 28px !important;
    }
    
    #shield-text {
        font-size: 7px !important;
        min-width: 28px !important;
        color: #0066cc !important;
    }
    
    /* Stats panel (kısa yatay) - 1panel.png sabit boyut (2panel ile aynı) */
    .stats-panel {
        width: 95px !important;
        height: 54px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-panel .stats {
        padding: 1px 2px 1px 4px !important;
        padding-left: calc(4px + 1%) !important;
        padding-top: calc(1px + 1%) !important;
        padding-bottom: calc(1px + 1%) !important;
        gap: 0 !important;
        transform: translateX(2%) translateY(12%) !important;
    }
    
    .stats-panel .stats .stat-item {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Sadece miktar rakamları sağda aynı hizada; #xp-needed hariç; hafif sola */
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        display: inline-block !important;
        min-width: 28px !important;
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 5px !important;
        transform: none !important;
    }
    
    /* Bars panel (kısa yatay) - 2panel: PC ile aynı (HP üstte, Kalkan altta) */
    .bars-panel {
        width: 95px !important;
        height: 54px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
    }
    
    .bars-panel .health-bar-container,
    .bars-panel .shield-bar-container {
        padding: 1px 3px 1px 4px !important;
        margin-top: 0 !important;
        gap: 1px !important;
    }
    
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
    
    .bars-panel .health-label,
    .bars-panel .shield-label {
        font-size: 5px !important;
        min-width: 0 !important;
        padding-left: 0 !important;
    }
    
    .bars-panel .health-label img.health-icon,
    .bars-panel .shield-label img.shield-icon {
        max-width: 8px !important;
        max-height: 8px !important;
    }
    
    .bars-panel .health-bar,
    .bars-panel .shield-bar {
        min-width: 24px !important;
        height: 4px !important;
    }
    
    .bars-panel #health-text,
    .bars-panel #shield-text {
        font-size: 5px !important;
        min-width: 22px !important;
        color: #ffffff !important;
    }
    
    .minimap-container {
        /* width/height JS tarafından (updateMinimapSize) ayarlanır; !important kullanılmaz ki zoom çalışsın */
        top: 50% !important;
        bottom: auto !important;
        right: max(2px, env(safe-area-inset-right)) !important;
        left: auto !important;
        transform: translateY(calc(-50% - 18px)) !important;
    }

    .minimap-info {
        top: -20px !important;
        left: 3px !important;
        font-size: 8px !important;
    }
    
    .minimap-btn {
        width: 12px !important;
        height: 12px !important;
        font-size: 9px !important;
        border-width: 1px !important;
        padding: 0 !important;
    }
    
    .minimap-controls {
        gap: 2px !important;
    }
    
    /* Joystick pozisyonu - iOS safe area desteği */
    .joystick {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        left: calc(8px + env(safe-area-inset-left)) !important;
    }
    
    /* Ana menü butonu - mobil yatayda küçült (0.4), yukarı ve biraz sola */
    .main-menu-button {
        top: calc(63px + env(safe-area-inset-top)) !important;
        right: calc(26px + env(safe-area-inset-right)) !important;
        left: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        transform: scale(0.4) !important;
        transform-origin: top right;
    }

    /* Yatay + çok küçük yükseklik: Auto Pilot %25 küçük, ekranın ortasında */
    .autopilot-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 340px !important;
        height: 190px !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 40px) !important;
        min-width: unset !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(0.75) !important;
        transform-origin: center center;
    }
    .autopilot-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
    .autopilot-content-frame {
        flex: 1;
        min-height: 0;
        max-height: 28vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 4px;
        padding: 6px;
    }
    .autopilot-tab {
        font-size: 9px;
        padding: 4px 5px;
    }
    .autopilot-window-btn {
        width: 26px;
        height: 24px;
        font-size: 14px;
    }
    .autopilot-vip-lock {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 10px !important;
        margin-top: 0 !important;
        transform: none !important;
    }
    .autopilot-vip-lock-icon {
        margin-bottom: 6px !important;
        font-size: 20px !important;
    }
    .autopilot-vip-lock-title {
        margin: 0 0 5px !important;
        font-size: 11px !important;
    }
    .autopilot-vip-lock-text {
        font-size: 8px !important;
        line-height: 1.25 !important;
        max-width: 100% !important;
    }
}

.bars-panel {
    background: url('img/butons/2panel.png') no-repeat center;
    background-size: contain;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 225px;
    height: 129px;
    min-width: 225px;
    max-width: 225px;
    pointer-events: auto;
}

/* HP + kalkan sütunu ve sağda konfigürasyon rozeti */
.bars-panel-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4px 6px 4px 4px;
    gap: 2px;
}
.bars-panel-bars-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Mobildeki display:flex !important kuralları hidden'ı ezmesin */
.stats-panel.hidden,
.bars-panel.hidden {
    display: none !important;
}

/* Android/WebView'da body.in-webview .bars-panel display:flex !important kuralını kesin ez */
body.in-webview .bars-panel.hidden,
body.in-webview .ui-panel.bars-panel.hidden,
.game-ui-layer .ui-panel.bars-panel.hidden {
    display: none !important;
}

.bars-panel .health-bar-container,
.bars-panel .shield-bar-container {
    padding: 10px 14px 10px 10px;
}

.bars-panel .health-label img.health-icon,
.bars-panel .shield-label img.shield-icon {
    transform: translateX(-10%) !important;
    margin-left: 14px !important;
}

.bars-panel .health-label,
.bars-panel .shield-label {
    transform: translateX(-10%) !important;
    margin-left: -8px !important;
}

.bars-panel .health-bar,
.bars-panel .shield-bar {
    margin-left: 8px !important;
}

.bars-panel .health-bar-container {
    transform: translateX(-10%) translateY(51%) !important;
}

.bars-panel .shield-bar-container {
    transform: translateX(-10%) translateY(-12%) !important;
}

/* Mobil yatay: 2panel HP üstte, kalkan aşağıda – base’den sonra override */
@media (max-width: 768px) and (orientation: landscape) {
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
}
@media (max-height: 400px) and (orientation: landscape) {
    .bars-panel .health-bar-container {
        transform: translateX(8%) translateY(-30%) !important;
    }
    .bars-panel .shield-bar-container {
        transform: translateX(8%) translateY(32%) !important;
    }
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 2.88px; /* %28 azaltıldı: 4px * 0.72 */
    margin-bottom: 0;
}

.stat-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.stat-icon {
    flex-shrink: 0;
    max-width: 22px;
    max-height: 22px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* translateX kaldırıldı: mobilde overflow ile kesilmesin */
}


.stat-label {
    color: #ffffff;
    font-weight: bold;
    min-width: 70px;
    flex-shrink: 0;
}

/* Stat değerleri (TP, SP, Uridium vb.) panel resminin içinde kalsın */
.stat-item span:not(.stat-label):not(.stat-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.health-bar-container,
.shield-bar-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-label,
.shield-label {
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    box-sizing: border-box;
}

.health-label img.health-icon,
.shield-label img.shield-icon {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    flex-shrink: 0;
}

.health-label {
    color: #22cc66;
}

.shield-label {
    color: #0066cc;
}

.health-bar,
.shield-bar {
    flex: 1;
    height: 14px;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateX(-10%) scaleX(0.8);
    transform-origin: left center;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #22cc66, #44ee88);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(34, 204, 102, 0.5);
}

.shield-fill {
    height: 100%;
    background: linear-gradient(90deg, #0055aa, #0066cc);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 85, 170, 0.5);
}

#health-text {
    font-size: 12px;
    min-width: 52px;
    text-align: right;
    transform: translateX(-70%);
}

#shield-text {
    font-size: 12px;
    min-width: 52px;
    text-align: right;
    color: #ffffff;
    transform: translateX(-70%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.game-overlay.hidden {
    display: none;
}

/* Ana Menü Butonu - sağ üst, sadece px (zoom'da hiza bozulmasın) */
.main-menu-button {
    position: absolute;
    top: 95px;
    right: 10px;
    left: auto;
    bottom: auto;
    transform: scale(0.6);
    transform-origin: top right;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 50;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    display: inline-block;
    box-shadow: none;
    filter: none;
}

.main-menu-button-bg {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    vertical-align: middle;
}

.main-menu-button-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.main-menu-button-icon {
    width: auto;
    height: 44px;
    max-height: 2.8em;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: -10px;
}

.main-menu-button-text {
    color: #000000;
    font-size: 16.32px;
    font-weight: bold;
    white-space: nowrap;
}

.main-menu-button:hover {
    transform: scale(0.6);
    transform-origin: top right;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 50px rgba(255, 255, 255, 0.25);
    filter: brightness(1.15);
}

.main-menu-button:active {
    transform: scale(0.6);
    transform-origin: top right;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.main-menu-button.hidden {
    display: none;
}

/* Cephane barı sarmalayıcı (üst sıra + alt 10 slot) - %7 aşağı, sol başa hizalı */
.ammo-bar-wrapper {
    position: absolute;
    bottom: calc(20px + 5vh - 7vh);
    left: 50%;
    transform: translate(-50%, -5vh);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    z-index: 50;
    pointer-events: none;
}

/* PC: üst turuncu + beyaz slot satırları komple biraz daha aşağı (mobil compact sınıfı varken dokunulmaz) */
html:not(.mobile-ayarlar-compact) .ammo-bar-wrapper {
    bottom: calc(20px + 5vh - 7vh - 32px);
}

.ammo-bar-wrapper.hidden {
    display: none;
}

/* Üst slot: sadece 10 cephane sütunu, sol başa hizalı (1–10 aynı hizada) — %10 yukarı */
.ammo-top-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    transform: translateY(-10vh);
}

.ammo-top-row.hidden {
    display: none !important;
}

.ammo-bar-wrapper .ammo-column {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
}

/* Üstte sıralanan kategori içerikleri (hangi kategoriye basılırsa o butonun içerikleri) */
.ammo-contents-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    pointer-events: auto;
    min-height: 0;
}

.ammo-contents-row.hidden {
    display: none !important;
}

/* Hızlı satın alma (kategori 6): alt cephane slotlarıyla aynı ölçü (38×45) */
.ammo-contents-row--quick-buy {
    gap: 2px;
    align-items: center;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-slot {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 45px;
    min-width: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(55, 200, 90, 0.75);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(22, 48, 28, 0.92) 0%, rgba(12, 28, 16, 0.95) 100%);
    box-shadow: 0 0 3px rgba(55, 200, 90, 0.2);
    cursor: pointer;
    display: block;
    overflow: hidden;
    outline: none;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-slot:hover {
    border-color: rgba(90, 230, 120, 0.9);
    box-shadow: 0 0 5px rgba(90, 230, 120, 0.45), 0 0 3px rgba(55, 200, 90, 0.25);
}

.ammo-contents-row--quick-buy .ammo-quick-buy-qty {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffd400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-icon {
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 1px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-icon .ammo-slot-icon {
    width: 36px !important;
    height: 34px !important;
    min-width: 36px !important;
    min-height: 34px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-icon .ammo-slot-icon img,
.ammo-contents-row--quick-buy .ammo-quick-buy-icon .ammo-quick-buy-img-fallback {
    width: 36px !important;
    height: 34px !important;
    max-width: 36px !important;
    max-height: 34px !important;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-icon .ammo-slot-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.ammo-contents-row--quick-buy .ammo-quick-buy-badge {
    position: absolute;
    right: 0;
    bottom: 1px;
    z-index: 4;
    font-size: 8px;
    font-weight: 700;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
}

/* Kategoriyle açılan cephaneler: sadece resim, mavi/arka plan yok */
.ammo-contents-row .ammo-content-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px 4px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #a8d9ff;
    font-size: 11px;
    cursor: pointer;
    min-width: 38px;
}

.ammo-contents-row .ammo-content-slot:hover {
    background: transparent;
    border: none;
}

/* Mobil: parmakla sürüklerken görünen ghost */
.ammo-touch-drag-ghost {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-radius: 4px;
    z-index: 40;
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
}

.ammo-contents-row .ammo-content-slot .ammo-content-icon,
.ammo-contents-row .ammo-content-slot .ammo-slot-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Alt slot (bos) ile aynı boyut: 38x45 */
.ammo-contents-row .ammo-content-slot .ammo-content-icon {
    width: 38px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ammo-contents-row .ammo-content-slot .ammo-content-icon .ammo-slot-icon {
    width: 38px !important;
    height: 45px !important;
    min-width: 38px !important;
    min-height: 45px !important;
}

.ammo-contents-row .ammo-content-slot .ammo-content-icon img,
.ammo-contents-row .ammo-content-slot .ammo-content-icon svg {
    width: 38px !important;
    height: 45px !important;
    max-width: 38px !important;
    max-height: 45px !important;
    object-fit: contain;
}

/* X1, X2, X3, X4, SAB, X6 etiketlerini gösterme — sadece resim */
.ammo-contents-row .ammo-content-slot > span {
    display: none;
}

/* UBA (110): gemi yeteneği + kamuflaj slotları — tıklanamaz, soluk */
.ammo-contents-row .ammo-content-slot--uba-disabled,
.ammo-quick-slot--uba-disabled {
    pointer-events: none !important;
    opacity: 0.42;
    filter: grayscale(0.3);
    cursor: not-allowed;
}

/* Kategori satırı (5 buton) — aynı yerde kalır */
.ammo-category-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    pointer-events: auto;
    background: transparent;
}

.ammo-category-row.hidden {
    display: none !important;
}

/* Kategori butonları: sadece resim, çerçeve/border/rakam yok (%20 küçültülmüş) */
.category-slot-btn {
    position: relative;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
}

.category-slot-btn:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}
.category-slot-btn:hover img {
    filter: brightness(1.25);
}

.category-slot-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Electron (.exe): 1–9 kısayolunda Chromium odak halkası / köşe vurgusu görünmesin */
html.ug-electron body {
    outline: none !important;
}
html.ug-electron .game-container:focus,
html.ug-electron #gameCanvas:focus {
    outline: none !important;
    box-shadow: none !important;
}
html.ug-electron .category-slot-btn:focus,
html.ug-electron .category-slot-btn:focus-visible,
html.ug-electron .ammo-quick-tab:focus,
html.ug-electron .ammo-quick-tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Alt slot 1–10 sol başa hizalı; tab sağda (PC). Sol Tab sadece mobilde — #ammoQuickTabLeft */
.ammo-quick-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    pointer-events: auto;
}

#ammoQuickTabLeft {
    display: none !important;
}

html.mobile-ayarlar-compact #ammoQuickTabLeft {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

html.mobile-ayarlar-compact .ammo-quick-row--slots-123-hidden #ammoQuickSlots .ammo-quick-slot[data-quick-index="0"],
html.mobile-ayarlar-compact .ammo-quick-row--slots-123-hidden #ammoQuickSlots .ammo-quick-slot[data-quick-index="1"],
html.mobile-ayarlar-compact .ammo-quick-row--slots-123-hidden #ammoQuickSlots .ammo-quick-slot[data-quick-index="2"] {
    display: none !important;
}

/* PC: üst 11 beyaz slot + (VIP) alt satır aynı hizada; mobilde VIP satırı yok */
.ammo-quick-slots-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
html.mobile-ayarlar-compact .ammo-quick-slots-stack {
    /* Sarmalayıcı mobilde layout’a hiç girmez: tek satır beyaz slotlar eskisi gibi .ammo-quick-row içinde */
    display: contents;
}
html.mobile-ayarlar-compact .ammo-quick-slots-vip {
    display: none !important;
}
.ammo-quick-slots-vip.hidden {
    display: none !important;
}

/* Mobilde 4. slot sarmalayıcı: tıklanabilir port (portal atla) + kutu süsü — yalnızca mobile-ayarlar-compact */
html.mobile-ayarlar-compact .ammo-quick-radar-cluster .ammo-quick-radar-slot-wrap--4 > .ammo-quick-slot {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
}
/* Konfig (mobil joystick) butonu: koyu gövde + #5af0f0 / cyan parlama — game.js drawMobileConfigSwapButton */
html.mobile-ayarlar-compact .ammo-quick-radar-cluster .ammo-quick-port-jump-btn {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(calc(-50% - 20px));
    margin-left: 19px;
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(90, 240, 240, 0.55);
    border-radius: 6px;
    background: linear-gradient(180deg, #1e2830 0%, #0c1218 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 255, 0.28);
    cursor: pointer;
    pointer-events: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}
/* #5af0f0 / cyanMid hizası — beyaz pikselleri mavimsi tona çeker (drawMobileConfigSwapButton) */
html.mobile-ayarlar-compact .ammo-quick-radar-cluster .ammo-quick-port-jump-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
    filter:
        brightness(0) saturate(100%)
        invert(90%) sepia(42%) saturate(420%) hue-rotate(128deg)
        brightness(1.06) contrast(1.04)
        drop-shadow(0 0 4px rgba(90, 240, 240, 0.55));
}
html.mobile-ayarlar-compact .ammo-quick-radar-cluster .ammo-quick-kutu-decor {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(calc(-50% - 20px));
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(90, 240, 240, 0.55);
    border-radius: 6px;
    background-color: #121820;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 255, 255, 0.28);
    pointer-events: auto;
    cursor: pointer;
    font: inherit;
    /* margin: 0 margin-left’i ezer; sadece üst/sağ/alt sıfırla */
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: calc(4px + 30px + 2px + 20px + 5px);
    appearance: none;
    -webkit-appearance: none;
    color: transparent;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    overflow: hidden;
}
html.mobile-ayarlar-compact .ammo-quick-radar-cluster .ammo-quick-kutu-decor::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
    background: url('img/butons/kutu.png') no-repeat center;
    background-size: contain;
    filter:
        brightness(0) saturate(100%)
        invert(90%) sepia(42%) saturate(420%) hue-rotate(128deg)
        brightness(1.06) contrast(1.04)
        drop-shadow(0 0 3px rgba(90, 240, 240, 0.45));
    pointer-events: none;
}

.ammo-quick-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 28px;
    min-width: 24px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(15, 15, 25, 0.85);
    border: 2px solid rgba(100, 100, 120, 0.5);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ammo-quick-tab:hover {
    border-color: rgba(0, 170, 255, 0.6);
    background: rgba(20, 25, 40, 0.9);
}

.ammo-quick-tab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Cephane Sütunu - Yatay (üst sıra) */
.ammo-column {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}

/* Alt 11 slot - lazer/bos resmi ile; kenar/çerçeve/arka plan yok, sürükleyip bırakılacak alan */
.ammo-quick-slots {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: auto;
}
/* VIP alt satır: üst ile aynı genişlikte hizalansın */
.ammo-quick-slots-vip {
    flex-wrap: nowrap;
}

/* Mobilde alt sırada yalnızca 9 slot (10–11. gizli); sınıf game.js’te isMobileDevice iken eklenir */
.ammo-quick-slot.ammo-quick-slot--mobile-hide {
    display: none !important;
}

/* Masaüstü / varsayılan: küme kapalı (JS mobilde --visible ekler) */
.ammo-quick-radar-cluster {
    display: none;
    pointer-events: none;
}

/* Dikey mod: 7–9 kümesi yok — konum sadece yatayda anlamlı; yatay kilidi varken de titremeyi önler */
@media (orientation: portrait) and (max-width: 932px) {
    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible {
        display: none !important;
        pointer-events: none !important;
    }
}

/* Yatay mod: sağ radar joistiği hizası; vw = yatayda uzun kenar, vmin = kısa kenar (yükseklik) */
@media (orientation: landscape) {
    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible {
        display: block;
        position: fixed;
        z-index: 60;
        width: 42px;
        height: 136px;
        overflow: visible;
        pointer-events: auto;
        /* right/bottom: game.js syncAmmoQuickRadarClusterToViewport */
    }

    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible.ammo-quick-radar-cluster--right {
        transform-origin: 0 100%;
    }

    .ammo-quick-radar-cluster.ammo-quick-radar-cluster--visible .ammo-quick-slot {
        width: 35px;
        min-width: 35px;
        height: 42px;
        padding: 0;
        font-size: 7px;
        box-sizing: border-box;
        background: url('img/lazer/bos.png') no-repeat center;
        background-size: contain;
    }

    .ammo-quick-radar-cluster .ammo-slot-name {
        font-size: 8px;
        line-height: 1.05;
    }

    .ammo-quick-radar-cluster .ammo-slot-number {
        font-size: 6px;
        line-height: 1;
    }

    .ammo-quick-radar-orbit-slot {
        position: absolute;
        left: auto;
        top: auto;
        margin: 0;
    }

    .ammo-quick-radar-orbit-slot--1 {
        bottom: 86px;
        right: 38px;
        transform: translateY(90px);
    }

    .ammo-quick-radar-orbit-slot--2 {
        bottom: 43px;
        right: 37px;
        transform: translateY(50px);
    }

    .ammo-quick-radar-orbit-slot--3 {
        bottom: 0;
        right: 8px;
        transform: translateY(-3px);
    }

    .ammo-quick-radar-orbit-slot-right {
        position: absolute;
        left: auto;
        top: auto;
        margin: 0;
    }

    .ammo-quick-radar-orbit-slot-right--4 {
        bottom: 181px;
        left: -71px;
        transform: translateY(0px);
    }

    .ammo-quick-radar-orbit-slot-right--5 {
        bottom: 161px;
        left: -107px;
        transform: translateY(0px);
    }

    .ammo-quick-radar-orbit-slot-right--6 {
        bottom: 117px;
        left: -132px;
        transform: translateY(-13px);
    }
}

.ammo-quick-slot {
    position: relative;
    width: 38px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: url('img/lazer/bos.png') no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: #e6f8ff;
    font-size: 9px;
    user-select: none;
    min-width: 38px;
    box-shadow: none;
}

.ammo-quick-slot:empty::after {
    content: none;
}

.ammo-quick-slot.drag-over {
    opacity: 0.9;
}

.ammo-quick-slot.filled {
    color: #e6f8ff;
}

.ammo-quick-slot.filled:hover {
    opacity: 1;
}

.ammo-quick-slot:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}
.ammo-quick-slot:hover::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.7), inset 0 0 14px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}
.ammo-quick-slot.selected:hover::before {
    content: none;
}

.ammo-quick-slot.selected {
    opacity: 1;
    border: none;
    box-shadow: none;
}

.ammo-quick-slot.selected::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 4px solid rgba(255, 30, 30, 1);
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
    box-shadow: 0 0 22px rgba(255, 20, 20, 1);
    filter: drop-shadow(0 0 8px rgba(255, 20, 20, 1));
    z-index: 2;
    pointer-events: none;
}

.ammo-quick-slot.rocket-selected::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 4px solid rgba(255, 240, 0, 1);
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
    box-shadow: 0 0 26px rgba(255, 230, 0, 1);
    filter: drop-shadow(0 0 10px rgba(255, 230, 0, 1));
    z-index: 2;
    pointer-events: none;
}

.ammo-quick-slot.rocket-selected {
    opacity: 1;
}

/* Slota sürüklenip konan cephane ikonu: bos ile aynı boyut (38x45), rakam için biraz aşağı */
.ammo-quick-slot .ammo-slot-icon {
    width: 38px !important;
    height: 45px !important;
    min-width: 38px !important;
    min-height: 45px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0;
    margin-top: 0 !important;
    transform: translateY(0px) !important;
}

.ammo-quick-slot .ammo-slot-icon img,
.ammo-quick-slot .ammo-slot-icon svg {
    width: 38px !important;
    height: 45px !important;
    max-width: 38px !important;
    max-height: 45px !important;
    object-fit: contain;
    transform: translateY(0px) !important;
}

.ammo-slot {
    position: relative;
    width: 48px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(100, 100, 120, 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e6f8ff;
    font-size: 10px;
    user-select: none;
    pointer-events: auto; /* Tıklanabilir olmalı */
}

.ammo-slot.selected {
    border-color: #ffff00;
    border-width: 3px;
    box-shadow: 0 0 12px rgba(255, 255, 0, 0.8);
    background: rgba(30, 30, 40, 0.9);
}

.ammo-slot.selected.rocket-selected {
    border-color: #ff3b3b;
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.85);
    background: rgba(40, 20, 20, 0.9);
}

.ammo-slot:hover:not(.disabled) {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(40, 45, 60, 0.95);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.35);
}

.ammo-slot.disabled {
    opacity: 0.4;
    cursor: default;
}

.ammo-slot-icon {
    width: 32px;
    height: 32px;
    background: rgba(40, 40, 60, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 0;
    transform: translateY(0px) !important;
}

.ammo-slot-icon img,
.ammo-slot-icon svg {
    transform: translateY(0px) !important;
}

.ammo-rocket-icon {
    width: 34px;
    height: 20px;
    display: block;
}

.ammo-slot-name {
    font-weight: 600;
    font-size: 9px;
    color: #ffffff;
    text-align: center;
}

/* Slot ikonlarının altındaki isim yazılarını gizle */
.ammo-slot-name {
    display: none !important;
}

.ammo-slot-count {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 7px;
    color: #00aaff;
    font-weight: 600;
}

.ammo-slot-value {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 7px;
    color: #00aaff;
    font-weight: 600;
}

.ammo-slot-number {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 7px;
    color: #ffffff;
    font-weight: 600;
}

/*
 * Kontrol Merkezi: body altında game-container DIŞINDA (overflow:hidden kırpmasın).
 * game-ui-layer transformundan bağımsız; fixed = viewport.
 */
.main-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    max-width: 100vw;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 125; /* auth 110, loading 115 üstü */
    overflow: hidden;
    overscroll-behavior: none;
    box-sizing: border-box;
    /* JS yoksa: mobilde 100vh adres çubuğundan büyük olabiliyor; svh daha küçük “sığan” yükseklik */
    --cp-vh-for-fit: 100vh;
    --cp-keyboard-inset: 0px;
}

@supports (height: 100svh) {
    .main-menu-overlay {
        --cp-vh-for-fit: 100svh;
    }
}

.main-menu-overlay.hidden {
    display: none;
}

.main-menu-promo-popup {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.main-menu-promo-popup.hidden {
    display: none;
}

.main-menu-promo-popup:not(.hidden) {
    pointer-events: auto;
}

.main-menu-promo-popup-panel {
    position: relative;
    width: 52.396875%;
    max-width: 52.396875vw;
    max-height: 39.6vh;
    box-sizing: border-box;
    text-align: center;
}

.main-menu-promo-popup-frame {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    line-height: 0;
}

.main-menu-promo-popup-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 39.6vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    user-select: none;
    -webkit-user-drag: none;
}

.main-menu-promo-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 10px 4px 8px;
    border: 1px solid rgba(255, 215, 0, 0.75);
    background: rgba(0, 0, 0, 0.62);
    color: #ffd700;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.main-menu-promo-popup-close-x {
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.main-menu-promo-popup-close-text {
    color: #ffd700;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.main-menu-promo-popup-close:hover {
    background: rgba(20, 16, 0, 0.82);
    border-color: #ffe44d;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(255, 228, 77, 0.55);
}

.main-menu-promo-popup-close:hover .main-menu-promo-popup-close-x,
.main-menu-promo-popup-close:hover .main-menu-promo-popup-close-text {
    color: #ffe44d;
}

.main-menu-overlay.main-menu-overlay--keyboard-open {
    align-items: flex-start;
    padding-top: 8px;
}

/* Ana menü bilgi ekranında scroll bar hiç görünmesin (kaydırma çalışır, çubuk gizli) — En iyi oyuncu sıralaması hariç */
.main-menu-overlay * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-menu-overlay *::-webkit-scrollbar {
    display: none;
}
/* En iyi oyuncu sıralamasında scroll bar görünsün (oyuncular listeyi kaydırabilsin) */
.main-menu-overlay .bilgi-ranking-table-wrap {
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    touch-action: pan-y;
}
.main-menu-overlay .bilgi-ranking-table-wrap::-webkit-scrollbar {
    display: block;
    width: 8px;
}
.main-menu-overlay .bilgi-ranking-table-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}
.main-menu-overlay .bilgi-ranking-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 4px;
}
.main-menu-overlay .bilgi-ranking-table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

.control-panel-container {
    display: flex;
    width: 95%;
    max-width: 1360px;
    height: 90vh;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Sol Navigasyon Paneli */
.control-panel-nav {
    width: 250px;
    background: transparent;
    border-right: 2px solid rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px 20px 20px calc(20px + 1%); /* menü %1 sağa */
    overflow-y: auto;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.nav-icon {
    font-size: 24px;
}

.nav-header h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-oyuna-don-wrap {
    flex-shrink: 0;
    margin-top: 5px;
}
.nav-oyuna-don-wrap .header-button {
    width: 100%;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 15px;
    color: #ccc;
    cursor: pointer;
    border-radius: 5px;
    transition: color 0.3s ease, filter 0.3s ease;
    font-size: 14px;
    background: url('img/gg/buton.png') no-repeat center center;
    background-size: auto !important; /* orijinal boyut */
}

.nav-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
    filter: brightness(1.1);
}

.nav-item.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
    background-image: url('img/gg/buton1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto !important; /* orijinal boyut */
}

/* Kontrol Merkezi sol menü (Bilgi … Ayarlar): OYUNA DÖN hariç */
@media (max-width: 768px) {
    #mainMenuOverlay .nav-menu > .nav-item {
        zoom: 1.15;
    }
}

/* Mobil yatay: üzerine ~%15 daha (1.15 × 1.15); geniş masaüstü pencereleri hariç */
@media (max-width: 768px) and (orientation: landscape),
    (orientation: landscape) and (max-height: 520px) and (max-width: 932px) {
    #mainMenuOverlay .nav-menu > .nav-item {
        zoom: 1.3225;
    }
}

.nav-item-icon {
    display: none;
}

.nav-arrow {
    display: none;
}

.nav-logout {
    margin-top: auto;
    padding: 12px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff6666;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-logout:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff6666;
}

/* Ana İçerik Alanı */
.control-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 10, 20, 0.6);
    overflow-y: auto;
    position: relative;
    scroll-padding-bottom: calc(var(--cp-keyboard-inset) + 24px);
}

.main-menu-overlay.main-menu-overlay--keyboard-open .control-panel-content {
    padding-bottom: var(--cp-keyboard-inset);
}

.content-header {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

/* Bilgi sayfasındayken üst header butonlarını gizle (butonlar panelin içinde) */
.control-panel-content.bilgi-page-active .header-actions-other {
    display: none;
}
/* YARDIM ve OYUNA DÖN — Bilgi sayfasında panelin en sağında, üst üste */
.player-info-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}
.player-info-actions .header-button {
    min-width: 140px;
    white-space: nowrap;
}

.header-button {
    padding: 8px 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.header-button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* YARDIM butonu — sarı */
.header-button-yardim {
    background: rgba(255, 200, 0, 0.15);
    border-color: rgba(255, 220, 50, 0.6);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
.header-button-yardim:hover {
    background: rgba(255, 200, 0, 0.25);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* OYUNA DÖN butonu — canlı yeşil arka plan, metin canlı beyaz */
.header-button-oyuna-don {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 120, 0.6);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.header-button-oyuna-don:hover {
    background: rgba(0, 255, 100, 0.25);
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.5);
    color: #ffffff;
}

/* Bilgi sayfası — Oyundan çıkış (sadece mobilde görünür) */
.header-button-cikis {
    background: rgba(180, 40, 40, 0.25);
    border-color: rgba(255, 100, 100, 0.55);
    color: #ffaaaa;
    text-shadow: 0 0 6px rgba(255, 120, 120, 0.5);
}
.header-button-cikis:hover {
    background: rgba(200, 50, 50, 0.35);
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.35);
    color: #ffcccc;
}

.header-button-ship-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    transform: rotate(45deg);
}

.content-page {
    display: none;
    padding: 30px;
    flex: 1;
}

.content-page.active {
    display: block;
}

/* ========== Görevler sayfası (Kontrol Paneli - Görevler) ========== */
#page-gorevler {
    padding: 0;
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e14 0%, #0d1219 30%, #0a0e14 100%);
    background-image:
        linear-gradient(180deg, #0a0e14 0%, #0d1219 30%, #0a0e14 100%),
        repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(0, 200, 200, 0.03) 40px, rgba(0, 200, 200, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(0, 200, 200, 0.03) 40px, rgba(0, 200, 200, 0.03) 41px);
}
#page-gorevler.active {
    display: flex;
}

.gorevler-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sekmeler: Mevcut, Kabul edilmiş, Tamamlanmış, Tümü */
.gorevler-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 15, 25, 0.8);
    padding: 0;
    flex-shrink: 0;
}
.gorevler-tab {
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
}
.gorevler-tab:hover {
    background: rgba(0, 200, 200, 0.1);
    color: #00e5e5;
}
.gorevler-tab.active {
    color: #fff;
    border-bottom: 2px solid #c62828;
    margin-bottom: -1px;
    background: rgba(0, 20, 30, 0.6);
}

.gorevler-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sol panel: Görev listesi */
.gorevler-list-panel {
    width: 280px;
    min-width: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    background: rgba(0, 12, 20, 0.7);
    flex-shrink: 0;
}
.gorevler-list-title {
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.gorevler-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.gorevler-level {
    padding: 10px 16px 6px;
    color: #f9a825;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gorevler-task-item {
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.gorevler-task-item:hover {
    background: rgba(0, 200, 200, 0.08);
}
.gorevler-task-item.active {
    background: rgba(140, 80, 60, 0.45);
    border-left-color: #b85450;
    color: #fff;
}

/* Sağ panel: Görev detay ve ödül */
.gorevler-detail-panel {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gorevler-detail-head {
    color: #c62828;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}
.gorevler-detail-head:first-child,
.gorevler-clan-desc {
    margin-top: 0;
}
.gorevler-detail-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.gorevler-detail-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.gorevler-subtasks {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 13px;
}
.gorevler-subtasks li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gorevler-subtask-name {
    color: rgba(255, 255, 255, 0.9);
}
.gorevler-subtask-progress {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 8px;
}
.gorevler-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.gorevler-reward-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
}
.gorevler-reward-label {
    color: rgba(255, 255, 255, 0.9);
}
.gorevler-reward-value {
    color: #fff;
    font-weight: 600;
}
.gorevler-accept-btn {
    margin-top: 8px;
    padding: 6px 14px;
    background: rgba(0, 40, 80, 0.9);
    border: 1px solid rgba(0, 200, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    align-self: flex-start;
    transition: background 0.2s, box-shadow 0.2s;
}
.gorevler-accept-btn:hover {
    background: rgba(0, 60, 120, 0.95);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.25);
}
.gorevler-accept-btn.gorevler-claim-btn {
    background: rgba(0, 120, 60, 0.9);
    border-color: rgba(0, 200, 100, 0.5);
    color: #fff;
}
.gorevler-accept-btn.gorevler-claim-btn:hover {
    background: rgba(0, 150, 80, 0.95);
    box-shadow: 0 0 12px rgba(0, 200, 100, 0.35);
}

.gorevler-completed-msg {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #e65100, #ff9800);
    border-radius: 3px;
    display: inline-block;
}
.gorevler-completed-msg.hidden {
    display: none;
}

.gorevler-detail-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 24px 0;
    text-align: center;
}
.gorevler-detail-placeholder.hidden {
    display: none;
}
.gorevler-list-empty {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 16px;
    text-align: center;
}

/* ========== Klan sayfası — klan yoksa: Klan listesi (KATIL/KUR/ŞİRKET) ========== */
#page-klan {
    padding: 0;
    display: none;
    overflow: hidden;
}
#page-klan.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.klan-list-panel {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #1c2028;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.15) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(165deg, #262e38 0%, #1e242e 35%, #181c26 100%);
    border: 1px solid rgba(90, 100, 120, 0.5);
    border-top-color: rgba(140, 155, 180, 0.35);
    border-left-color: rgba(140, 155, 180, 0.3);
    border-radius: 6px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    overflow: hidden;
}

.klan-my-panel {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #1c2028;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.15) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(165deg, #262e38 0%, #1e242e 35%, #181c26 100%);
    border: 1px solid rgba(90, 100, 120, 0.5);
    border-top-color: rgba(140, 155, 180, 0.35);
    border-left-color: rgba(140, 155, 180, 0.3);
    border-radius: 6px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    overflow: hidden;
}
.klan-my-panel.hidden {
    display: none !important;
}
#page-klan #klanNoClanPanel.hidden {
    display: none !important;
}
.klan-my-nav-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #1e222a;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 30%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        linear-gradient(180deg, #2c323c 0%, #222830 40%, #1a1e26 100%);
    border-right: 1px solid rgba(60, 70, 85, 0.7);
    border-top: 1px solid rgba(100, 115, 135, 0.3);
    box-shadow: 4px 0 16px rgba(0,0,0,0.4), inset -1px 0 0 rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
}
.klan-my-nav {
    width: 130px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    padding: 12px 0 8px 0;
    gap: 2px;
}
.klan-my-nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 8px 10px calc(12px + 12%); /* metin %12 sağa kaydırıldı */
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #b0b8c4;
    background: url('img/clanlogos/buton.gif') no-repeat left center;
    background-size: auto !important; /* orijinal boyut */
    border: none;
    cursor: pointer;
    transition: color 0.2s, filter 0.2s;
    position: relative;
    text-align: left;
}
.klan-my-nav-btn::before {
    content: none;
}
.klan-my-nav-btn:hover {
    color: #e8ecf0;
    filter: brightness(1.1);
}
.klan-my-nav-btn.active {
    color: #fff;
    background-image: url('img/clanlogos/buton1.gif');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto !important; /* orijinal boyut */
}
.klan-my-nav-btn.active::after {
    content: none;
}
.klan-my-nav-handle {
    margin-top: auto;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.klan-my-handle-bar {
    width: 20px;
    height: 4px;
    background: rgba(232, 168, 74, 0.5);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(232, 168, 74, 0.4);
}
.klan-my-handle-bar-2,
.klan-my-handle-bar-3 {
    width: 16px;
}
.klan-my-nav-strip {
    height: 6px;
    margin: 0 6px 10px 6px;
    background: linear-gradient(90deg, rgba(232, 168, 74, 0.3) 0%, rgba(232, 168, 74, 0.6) 50%, rgba(232, 168, 74, 0.3) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(232, 168, 74, 0.4);
}
/* 3D HD metalik arka plan: diagonal çizgiler (brushed metal) + metal parlaklığı */
.klan-my-pane {
    display: none;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    background-color: #1a1e26;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.035) 0%, transparent 45%, transparent 55%, rgba(0,0,0,0.2) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.025) 1px, rgba(255,255,255,0.025) 2px),
        linear-gradient(180deg, #2a323e 0%, #222830 25%, #1c2028 60%, #161a22 100%);
    background-size: 100% 100%, 6px 6px, 4px 4px, 100% 100%;
    overflow: auto;
    padding: 20px 24px;
    position: relative;
}
.klan-my-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    opacity: 0.85;
}
.klan-my-pane > * {
    position: relative;
    z-index: 1;
}
.klan-my-pane.active {
    display: flex;
}
.klan-my-title {
    font-size: 16px;
    font-weight: bold;
    color: #e8a84a;
    margin: 0 0 12px 0;
}
.klan-my-placeholder {
    color: #889098;
    font-size: 13px;
    margin: 0;
}

/* ========== Klan diplomasisi (DİPLOMASİ) – 3D HD carbon-fiber, canlı renkler ========== */
.klan-diplomasi {
    width: 100%;
    max-width: none;
    background-color: #1c2028;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.12) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(180deg, #242c34 0%, #1e242c 35%, #1a1e26 100%);
    border: 1px solid rgba(65, 75, 90, 0.8);
    border-top-color: rgba(120, 135, 155, 0.45);
    border-left-color: rgba(95, 110, 130, 0.4);
    border-radius: 6px;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.35),
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    padding: 0;
}
.klan-diplomasi-section {
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(55, 65, 85, 0.6);
}
.klan-diplomasi-section:last-child {
    border-bottom: none;
}
.klan-diplomasi-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 14px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.klan-diplomasi-table-wrap {
    overflow: auto;
    border: 1px solid rgba(55, 65, 85, 0.7);
    border-top-color: rgba(95, 110, 130, 0.4);
    border-radius: 6px;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #1e242e 0%, #181c24 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-diplomasi-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    color: #f0f4fc;
}
.klan-diplomasi-table thead tr {
    background-color: #242c36;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 10px),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        linear-gradient(180deg, #2c3440 0%, #242c36 100%);
    border-bottom: 1px solid rgba(70, 80, 100, 0.6);
}
.klan-diplomasi-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.02em;
}
.klan-diplomasi-th-desc {
    width: 40%;
    min-width: 0;
}
.klan-diplomasi-table th:nth-child(1),
.klan-diplomasi-table td:nth-child(1) {
    border-right: none;
}
.klan-diplomasi-table th:nth-child(2),
.klan-diplomasi-table td:nth-child(2) {
    width: 18%;
    border-left: none;
    border-right: none;
}
.klan-diplomasi-table th:nth-child(3),
.klan-diplomasi-table td:nth-child(3) {
    width: 14%;
    border-left: none;
}
.klan-diplomasi-table th:nth-child(4),
.klan-diplomasi-table td:nth-child(4) {
    width: 14%;
}
.klan-diplomasi-table th:nth-child(5),
.klan-diplomasi-table td:nth-child(5) {
    width: 14%;
}
.klan-diplomasi-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(50, 58, 72, 0.5);
}
.klan-diplomasi-table tbody tr:last-child td {
    border-bottom: none;
}
.klan-diplomasi-row {
    background: transparent;
}
.klan-diplomasi-row:hover .klan-diplomasi-desc {
    background: linear-gradient(to right, rgba(180, 150, 40, 0.55) 0%, rgba(180, 150, 40, 0.22) 70%, transparent 100%);
}
.klan-diplomasi-row.selected .klan-diplomasi-desc {
    background: linear-gradient(to right, rgba(190, 160, 50, 0.6) 0%, rgba(190, 160, 50, 0.25) 70%, transparent 100%);
}
/* Klan ismi ve etiketi boyunca koyu sarı; ismin sonuna doğru aynı şekilde azalır */
.klan-diplomasi-row .klan-diplomasi-desc {
    background: linear-gradient(to right,
        rgba(175, 145, 35, 0.52) 0%,
        rgba(175, 145, 35, 0.42) 25%,
        rgba(175, 145, 35, 0.3) 50%,
        rgba(175, 145, 35, 0.14) 75%,
        rgba(175, 145, 35, 0.05) 90%,
        transparent 100%);
}
.klan-diplomasi-desc {
    color: #fff;
}
.klan-diplomasi-aksiyon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    font-size: 11px;
    color: #e8ecf4;
    background: rgba(40, 48, 60, 0.9);
    border: 1px solid rgba(90, 105, 125, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 3px rgba(0,0,0,0.25);
}
.klan-diplomasi-aksiyon-btn:hover {
    background: rgba(55, 65, 80, 0.95);
    color: #fff;
}
.klan-diplomasi-aksiyon-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    background: rgba(255, 220, 220, 0.95);
    color: #c03030;
}
.klan-diplomasi-savas-bitir-yolla {
    font-size: 11px;
}
.klan-diplomasi-kabul {
    background: rgba(50, 90, 60, 0.9) !important;
    border-color: rgba(70, 120, 80, 0.6) !important;
}
.klan-diplomasi-kabul:hover {
    background: rgba(60, 110, 70, 0.95) !important;
}
.klan-diplomasi-reddet {
    background: rgba(90, 50, 50, 0.9) !important;
    border-color: rgba(120, 70, 70, 0.6) !important;
}
.klan-diplomasi-reddet .klan-diplomasi-aksiyon-x {
    background: rgba(255, 220, 220, 0.95);
    color: #c03030;
}
.klan-diplomasi-reddet:hover {
    background: rgba(110, 60, 60, 0.95) !important;
}
.klan-diplomasi-empty {
    padding: 16px 18px !important;
    color: #9098a8;
    font-size: 12px;
}
.klan-diplomasi-basvuru-wrap {
    padding-bottom: 24px;
}
.klan-diplomasi-basvuru-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.klan-diplomasi-arama-wrap {
    position: relative;
    flex: 1;
    min-width: 160px;
}
.klan-diplomasi-arama-wrap .klan-diplomasi-input {
    width: 100%;
}
.klan-diplomasi-arama-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #1e242e;
    background-image: linear-gradient(180deg, #262e38 0%, #1e242e 100%);
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.klan-diplomasi-arama-list.hidden {
    display: none !important;
}
.klan-diplomasi-arama-item {
    padding: 8px 12px;
    font-size: 12px;
    color: #f0f4fc;
    cursor: pointer;
    border-bottom: 1px solid rgba(50, 58, 72, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.klan-diplomasi-arama-item:last-child {
    border-bottom: none;
}
.klan-diplomasi-arama-item:hover {
    background: rgba(42, 52, 68, 0.8);
}
.klan-diplomasi-arama-item .tag {
    color: #98a8c0;
}
.klan-diplomasi-arama-item .name {
    font-weight: 600;
    color: #f5c45a;
}
.klan-diplomasi-input {
    flex: 1;
    min-width: 160px;
    padding: 9px 12px;
    font-size: 12px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-diplomasi-input:focus {
    outline: none;
    border-color: rgba(100, 160, 220, 0.5);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 0 0 2px rgba(100, 160, 220, 0.15);
}
.klan-diplomasi-input::placeholder {
    color: #6a7890;
}
.klan-diplomasi-select {
    min-width: 140px;
    padding: 9px 28px 9px 12px;
    font-size: 12px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a8b8' d='M6 8L2 4h8z'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-diplomasi-yolla-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(180deg, rgba(50, 58, 72, 0.95) 0%, rgba(38, 46, 58, 0.98) 100%);
    border: 1px solid rgba(100, 115, 140, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.3);
}
.klan-diplomasi-yolla-btn:hover {
    background: linear-gradient(180deg, rgba(60, 70, 85, 0.98) 0%, rgba(48, 58, 72, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 14px rgba(100, 160, 220, 0.2);
}
.klan-diplomasi-yolla-icon {
    font-size: 12px;
    color: #a0b8d0;
}
.klan-diplomasi-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    user-select: none;
}
.klan-diplomasi-check {
    width: 16px;
    height: 16px;
    accent-color: #5eb8e8;
}
.klan-diplomasi-check-icon {
    font-size: 14px;
    color: #6ac0f0;
}
.klan-diplomasi-sebep-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.klan-diplomasi-sebep-label {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}
.klan-diplomasi-sebep {
    width: 100%;
    min-height: 64px;
    padding: 9px 12px;
    font-size: 12px;
    font-family: inherit;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    resize: vertical;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-diplomasi-sebep:focus {
    outline: none;
    border-color: rgba(100, 160, 220, 0.5);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 0 0 2px rgba(100, 160, 220, 0.15);
}
.klan-diplomasi-sebep::placeholder {
    color: #6a7890;
}

/* Açık başvurular modal (savaş bitir talepleri - gönderdiğim) */
.acik-basvurular-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.acik-basvurular-overlay.hidden { display: none; }
.acik-basvurular-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    background: rgba(38, 42, 50, 0.98);
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 6px);
    border: 2px solid rgba(100, 108, 120, 0.6);
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    z-index: 9999;
    overflow: hidden;
}
.acik-basvurular-modal.hidden { display: none; }
.acik-basvurular-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(32, 36, 44, 0.95);
    border-bottom: 1px solid rgba(70, 78, 90, 0.5);
}
.acik-basvurular-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
.acik-basvurular-close {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.acik-basvurular-close:hover { color: #c0c4cc; }
.acik-basvurular-content {
    padding: 12px 14px 14px;
    max-height: 320px;
    overflow-y: auto;
}
.acik-basvurular-list { }
.acik-basvurular-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(50, 56, 66, 0.6);
    font-size: 12px;
    color: #e0e4ec;
}
.acik-basvurular-row:last-child { border-bottom: none; }
.acik-basvurular-date { color: #b0b4bc; }
.acik-basvurular-clan-name { color: #fff; }
.acik-basvurular-sep {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    margin: 0 2px;
}
.acik-basvurular-tag { color: #c8d0dc; }
.acik-basvurular-form { color: #a8b0bc; }
.acik-basvurular-status { margin-left: auto; color: #e8ecf0; }
.acik-basvurular-status.rejected { color: #e88080; }
.acik-basvurular-status.accepted { color: #80e080; }
.acik-basvurular-dismiss {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    background: rgba(60, 100, 160, 0.9);
    border: 1px solid rgba(80, 120, 180, 0.6);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.acik-basvurular-dismiss:hover { background: rgba(80, 120, 200, 0.95); }
.acik-basvurular-empty {
    padding: 16px;
    text-align: center;
    color: #9098a0;
    font-size: 12px;
}

/* ========== Klan hesabı (YÖNETİM) – 3D HD carbon-fiber, canlı renkler ========== */
.klan-hesap {
    width: 100%;
    max-width: none;
    background-color: #1c2028;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.12) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(180deg, #242c34 0%, #1e242c 40%, #1a1e26 100%);
    border: 1px solid rgba(65, 75, 90, 0.8);
    border-top-color: rgba(120, 135, 155, 0.45);
    border-left-color: rgba(95, 110, 130, 0.4);
    border-radius: 6px;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.35),
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}
.klan-hesap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px 12px;
    background-color: #222830;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 12px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        linear-gradient(180deg, #2a323e 0%, #222830 100%);
    border-bottom: 1px solid rgba(55, 65, 85, 0.6);
}
.klan-hesap-title {
    font-size: 15px;
    font-weight: bold;
    color: #ffc107;
    margin: 0;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.4), 0 1px 2px rgba(0,0,0,0.4);
}
.klan-hesap-vergi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5eb8e8;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    padding: 4px 0;
    transition: color 0.2s, text-shadow 0.2s;
}
.klan-hesap-vergi-btn::before {
    content: '✎';
    font-size: 14px;
    color: #6ac0f0;
}
.klan-hesap-vergi-btn:hover {
    color: #7ed0ff;
    text-shadow: 0 0 10px rgba(94, 184, 232, 0.5);
}
.klan-hesap-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.klan-hesap-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 95, 115, 0.6), transparent);
    margin: 0 20px;
}
.klan-hesap-durum-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 14px 20px;
    font-size: 12px;
    color: #e8ecf0;
}
.klan-hesap-durum-label {
    background: linear-gradient(180deg, rgba(255, 220, 80, 0.35) 0%, rgba(255, 193, 7, 0.25) 100%);
    color: #1a1c22;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 200, 50, 0.5);
    box-shadow: 0 0 16px rgba(255, 193, 7, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    font-weight: 600;
}
.klan-hesap-durum-label strong {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 220, 150, 0.35), 0 1px 2px rgba(0,0,0,0.4);
}
.klan-hesap-meta {
    color: #a0a8b8;
}
.klan-hesap-islem-wrap {
    padding: 14px 20px 18px;
}
.klan-hesap-islem-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 14px 8px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    border-bottom: 1px solid rgba(65, 75, 95, 0.6);
    background: rgba(0,0,0,0.15);
}
.klan-hesap-islem-list {
    max-height: 220px;
    overflow-y: auto;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #1e242e 0%, #181c24 100%);
    border: 1px solid rgba(55, 65, 85, 0.7);
    border-top-color: rgba(90, 105, 125, 0.35);
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-hesap-islem-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 14px;
    font-size: 12px;
    border-bottom: 1px solid rgba(50, 58, 72, 0.5);
}
.klan-hesap-islem-item:last-child {
    border-bottom: none;
}
.klan-hesap-islem-meblag {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.klan-hesap-islem-amount {
    color: #fff;
    font-weight: 600;
}
.klan-hesap-islem-sebep {
    font-size: 11px;
    color: #9098a8;
}
.klan-hesap-islem-gonderilen {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
}
.klan-hesap-islem-sender {
    color: #fff;
    font-weight: 600;
}
.klan-hesap-islem-target-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}
.klan-hesap-islem-target {
    font-size: 11px;
    color: #a0a8b8;
}
.klan-hesap-islem-tarih {
    font-size: 11px;
    color: #9098a8;
}
.klan-hesap-islem-empty {
    padding: 18px;
    text-align: center;
    font-size: 12px;
    color: #9098a8;
}
.klan-hesap-odeme {
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(60, 72, 90, 0.6);
    background-color: #1e242c;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 8px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 3px),
        linear-gradient(180deg, #242c36 0%, #1e242c 100%);
}
.klan-hesap-odeme-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffc107;
    margin: 0 0 8px 0;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.35), 0 1px 2px rgba(0,0,0,0.4);
}
.klan-hesap-odeme-desc {
    font-size: 11px;
    color: #9098a8;
    margin: 0 0 14px 0;
}
.klan-hesap-odeme-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.klan-hesap-odeme-row-sebep {
    margin-bottom: 0;
    margin-top: 4px;
}
.klan-hesap-odeme-amount,
.klan-hesap-odeme-sebep {
    flex: 1;
    min-width: 140px;
    padding: 9px 12px;
    font-size: 13px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-hesap-odeme-amount:focus,
.klan-hesap-odeme-sebep:focus {
    outline: none;
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 0 0 2px rgba(255, 193, 7, 0.15);
}
.klan-hesap-odeme-amount::placeholder,
.klan-hesap-odeme-sebep::placeholder {
    color: #6a7890;
}
.klan-hesap-odeme-select {
    min-width: 160px;
    padding: 9px 32px 9px 12px;
    font-size: 12px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a8b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: 1px solid rgba(60, 72, 90, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-hesap-odeme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, rgba(50, 58, 72, 0.95) 0%, rgba(38, 46, 58, 0.98) 100%);
    border: 1px solid rgba(100, 115, 140, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.3);
}
.klan-hesap-odeme-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(65, 75, 90, 0.98) 0%, rgba(50, 60, 75, 0.98) 100%);
    border-color: rgba(120, 140, 170, 0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 14px rgba(255, 193, 7, 0.2);
}
.klan-hesap-odeme-btn-arrow {
    font-size: 11px;
    color: #ffc107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

/* Klan bilgileri (2. sayfa birebir) */
.klan-bilgi-layout {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}
/* 3D HD panel: yatay çizgi dokusu (etched metal) + derin gölge */
.klan-bilgi-block {
    background-color: #242c36;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 12px),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        repeating-linear-gradient(0deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(180deg, #2e3642 0%, #242c36 40%, #1e242e 100%);
    border: 1px solid rgba(70, 80, 95, 0.8);
    border-top-color: rgba(120, 135, 155, 0.5);
    border-left-color: rgba(100, 115, 135, 0.45);
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.35),
        inset 0 2px 4px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.klan-bilgi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}
.klan-bilgi-head-title {
    font-size: 14px;
    font-weight: bold;
    color: #f5c45a;
    margin: 0;
    text-shadow: 0 0 16px rgba(245, 196, 90, 0.5), 0 1px 2px rgba(0,0,0,0.4);
}
.klan-bilgi-btn {
    font-size: 11px;
    padding: 5px 12px;
    color: #f0e8d8;
    background: linear-gradient(180deg, rgba(220, 150, 60, 0.5) 0%, rgba(180, 110, 40, 0.6) 100%);
    border: 1px solid rgba(240, 190, 100, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.klan-bilgi-btn:hover {
    background: linear-gradient(180deg, rgba(240, 170, 70, 0.7) 0%, rgba(200, 130, 50, 0.8) 100%);
    color: #fff;
    box-shadow: 0 0 14px rgba(232, 168, 74, 0.4);
}
.klan-bilgi-rows {
    display: flex;
    flex-direction: column;
}
.klan-bilgi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid rgba(50, 60, 80, 0.6);
    gap: 16px;
}
.klan-bilgi-row:last-child {
    border-bottom: none;
}
.klan-bilgi-label {
    font-size: 12px;
    color: #b0bcc8;
    flex-shrink: 0;
}
/* Etched metal değer alanı: yatay çizgili kutu (örnek resimdeki gibi) */
.klan-bilgi-value {
    font-size: 12px;
    color: #f0f4fc;
    text-align: right;
    font-weight: 500;
    padding: 4px 10px 4px 12px;
    min-width: 80px;
    background-color: #1a1e28;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 3px),
        linear-gradient(180deg, #242a34 0%, #1c2028 50%, #181c24 100%);
    border: 1px solid rgba(50, 60, 75, 0.8);
    border-radius: 3px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-bilgi-logo-block {
    background-color: #242c36;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 12px),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #2e3642 0%, #242c36 40%, #1e242e 100%);
    border: 1px solid rgba(70, 80, 95, 0.8);
    border-top-color: rgba(120, 135, 155, 0.5);
    border-left-color: rgba(100, 115, 135, 0.45);
    border-radius: 6px;
    padding: 16px;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.35),
        inset 0 2px 4px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.klan-bilgi-logo-box {
    width: 120px;
    height: 120px;
    background-color: #0e1218;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.35) 2px, rgba(0,0,0,0.35) 3px),
        linear-gradient(145deg, #181c24 0%, #0c0e14 100%);
    border: 1px solid rgba(60, 70, 90, 0.7);
    border-top-color: rgba(90, 100, 120, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 3px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.klan-bilgi-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.klan-bilgi-logo-placeholder {
    font-size: 12px;
    color: #607088;
}
.klan-bilgi-logo-img {
    display: none;
}
.klan-bilgi-logo-box.has-logo .klan-bilgi-logo-placeholder {
    display: none;
}
.klan-bilgi-logo-box.has-logo .klan-bilgi-logo-img {
    display: block;
}
.klan-bilgi-section {
    margin-bottom: 22px; /* tablolar arası boşluk %10 azaltıldı (24px→22px) */
    background-color: #222a34;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 10px),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #2a323e 0%, #222a34 35%, #1c222c 100%);
    border: 1px solid rgba(65, 75, 90, 0.75);
    border-top-color: rgba(110, 125, 145, 0.45);
    border-left-color: rgba(90, 105, 125, 0.4);
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.4),
        0 1px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.klan-bilgi-yazi-input {
    width: 100%;
    max-width: 560px;
    padding: 10px 12px;
    font-size: 13px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    border: 1px solid rgba(55, 65, 80, 0.8);
    border-top-color: rgba(85, 95, 110, 0.4);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.klan-bilgi-yazi-input:focus {
    outline: none;
    border-color: rgba(232, 168, 74, 0.6);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), 0 0 0 2px rgba(232, 168, 74, 0.2);
}
.klan-bilgi-yazi-input::placeholder {
    color: #6a7890;
}
.klan-bilgi-haberler {
    min-height: 48px;
    max-height: 90px; /* Yaklaşık 3 hareket görünsün, fazlası scroll */
    overflow-y: auto;
    font-size: 12px;
    color: #ffffff;
}
.klan-bilgi-haber-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(60, 72, 96, 0.4);
}
.klan-bilgi-haber-item .klan-bilgi-haber-text {
    flex: 1;
    min-width: 0;
}
.klan-bilgi-haber-item .klan-bilgi-haber-tarih {
    flex-shrink: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}
.klan-bilgi-haber-item:last-child {
    border-bottom: none;
}
/* Klan arama: sadece çerçevenin aşağı uzunluğu kısaltıldı (içerik boyutu aynı) */
.klan-bilgi-arama .klan-bilgi-head-title {
    margin-bottom: 10px;
}
.klan-bilgi-arama-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.klan-bilgi-arama-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    font-size: 13px;
    color: #f0f4fc;
    background-color: #181c24;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e28 100%);
    border: 1px solid rgba(55, 65, 80, 0.8);
    border-top-color: rgba(85, 95, 110, 0.4);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.klan-bilgi-arama-input:focus {
    outline: none;
    border-color: rgba(100, 180, 220, 0.5);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), 0 0 0 2px rgba(100, 180, 220, 0.15);
}
.klan-bilgi-arama-input::placeholder {
    color: #6a7890;
}
.klan-bilgi-arama-sonuc {
    margin-top: 12px;
    min-height: 31px; /* çerçeve aşağı fazlalığı %15 daha kısaltıldı (36px→31px) */
}
.klan-bilgi-arama-placeholder {
    margin: 0;
    font-size: 12px;
    color: #8898b0;
}
.klan-bilgi-arama-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}
.klan-bilgi-arama-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #1e242e;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        linear-gradient(180deg, #262e38 0%, #1e242e 100%);
    border: 1px solid rgba(55, 65, 85, 0.7);
    border-top-color: rgba(90, 105, 125, 0.4);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #e8ecf4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.klan-bilgi-arama-list-item:hover {
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 3px),
        linear-gradient(180deg, #2e3644 0%, #242c38 100%);
    border-color: rgba(90, 120, 160, 0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 14px rgba(0,0,0,0.35);
}
.klan-bilgi-arama-list-item .tag { color: #98a8c0; margin-right: 6px; }
.klan-bilgi-arama-list-item .name { font-weight: 600; color: #f0e8d0; }
.klan-bilgi-arama-list-item .stat { font-size: 11px; color: #8898b0; }

/* Klan bilgisi detay modalı (arama sonucunda tıklanınca) */
.klan-bilgi-detay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.klan-bilgi-detay-overlay.hidden {
    display: none;
}
.klan-bilgi-detay-modal {
    background: linear-gradient(180deg, #2a2e36 0%, #1e2228 50%, #181c22 100%);
    border: 2px solid rgba(50, 58, 70, 0.9);
    border-radius: 6px;
    min-width: 360px;
    max-width: 95vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.klan-bilgi-detay-header {
    padding: 14px 18px;
    background: linear-gradient(180deg, #22262e 0%, #1a1e26 100%);
    border-bottom: 1px solid rgba(50, 58, 70, 0.8);
}
.klan-bilgi-detay-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}
.klan-bilgi-detay-top {
    display: flex;
    border-bottom: 1px solid rgba(50, 58, 70, 0.6);
}
.klan-bilgi-detay-logo-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1a1e26 0%, #14181e 100%);
    border-right: 1px solid rgba(50, 58, 70, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.klan-bilgi-detay-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.klan-bilgi-detay-logo-placeholder {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(40, 44, 52, 0.4) 6px, rgba(40, 44, 52, 0.4) 8px),
        linear-gradient(145deg, #1a1e26 0%, #14181e 100%);
}
.klan-bilgi-detay-logo-placeholder::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 28px;
    height: 34px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 50% 50%, rgba(140, 130, 120, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.klan-bilgi-detay-banner {
    flex: 1;
    min-height: 80px;
    background: linear-gradient(90deg, #1e2228 0%, #1a1e24 100%);
    border-bottom: 1px solid rgba(50, 58, 70, 0.4);
}
.klan-bilgi-detay-body {
    padding: 14px 18px;
    background: rgba(24, 28, 36, 0.6);
}
.klan-bilgi-detay-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(50, 58, 70, 0.4);
    font-size: 13px;
}
.klan-bilgi-detay-row:last-child {
    border-bottom: none;
}
.klan-bilgi-detay-label {
    flex: 0 0 120px;
    color: #9098a8;
}
.klan-bilgi-detay-value {
    flex: 1;
    color: #fff;
}
.klan-bilgi-detay-value.klan-ismi-vurgu {
    background: linear-gradient(90deg, #e8b050 0%, #c09030 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}
.klan-bilgi-detay-footer {
    padding: 14px 18px;
    background: linear-gradient(180deg, #1e222a 0%, #181c24 100%);
    border-top: 1px solid rgba(50, 58, 70, 0.7);
    text-align: center;
}
.klan-bilgi-detay-kapat {
    padding: 10px 32px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(239, 68, 68, 0.8);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.klan-bilgi-detay-kapat:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    border-color: rgba(248, 113, 113, 0.9);
}

/* ========== Üyeler sayfası – 3D HD carbon-fiber, örnek resim birebir ========== */
.klan-uyeler-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: #222830;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 14px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #2a323e 0%, #222830 50%, #1e242c 100%);
    border: 1px solid rgba(65, 75, 90, 0.8);
    border-top-color: rgba(120, 135, 155, 0.45);
    border-left-color: rgba(95, 110, 130, 0.4);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.klan-uyeler-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.02em;
}
.klan-uyeler-rutbe-btn {
    font-size: 12px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(60, 100, 160, 0.5);
    border: 1px solid rgba(90, 130, 180, 0.5);
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.klan-uyeler-rutbe-btn::before {
    content: '✎';
    font-size: 14px;
    color: #7ab0e8;
}
.klan-uyeler-rutbe-btn.visible {
    display: inline-flex;
}
.klan-uyeler-rutbe-btn:hover {
    color: #fff;
    background: rgba(70, 120, 180, 0.7);
    border-color: rgba(110, 160, 220, 0.6);
    box-shadow: 0 0 12px rgba(90, 140, 200, 0.35);
}
/* Üye listesi – carbon-fiber 3D HD */
.klan-uyeler-list {
    background-color: #1a1e26;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.22) 2px, rgba(0,0,0,0.22) 3px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px),
        linear-gradient(180deg, #222830 0%, #1c2028 40%, #181c24 100%);
    border: 1px solid rgba(55, 65, 85, 0.8);
    border-top-color: rgba(100, 115, 140, 0.4);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.04);
}
.klan-uyeler-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.4fr) minmax(70px, 0.8fr) minmax(100px, 1fr) minmax(80px, 0.7fr) minmax(70px, 0.6fr) minmax(50px, 0.5fr) minmax(50px, 0.5fr) minmax(180px, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 12px 16px;
    font-size: 12px;
    border-bottom: 1px solid rgba(50, 58, 72, 0.6);
}
.klan-uyeler-row:last-child {
    border-bottom: none;
}
.klan-uyeler-row-header {
    background-color: #242c36;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 10px),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        linear-gradient(180deg, #2c3440 0%, #242c36 100%);
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(70, 80, 100, 0.6);
}
.klan-uyeler-row:not(.klan-uyeler-row-header):hover {
    background: rgba(40, 48, 62, 0.5);
}
.klan-uyeler-loading {
    grid-column: 1 / -1;
    padding: 14px;
    text-align: center;
    color: #9098a8;
    font-size: 12px;
}
/* Kolon renkleri – etiketler açık gri, değerler beyaz (örnek birebir) */
.klan-uyeler-col-name { }
.klan-uyeler-col-tp { color: #f0f4fc; }
.klan-uyeler-col-rutbe { color: #f0f4fc; }
.klan-uyeler-col-uyelik { color: #f0f4fc; }
.klan-uyeler-col-fonksiyon { color: #f0f4fc; }
.klan-uyeler-col-pozisyon { color: #f0f4fc; }
.klan-uyeler-col-sirket { color: #f0f4fc; }
.klan-uyeler-fonksiyon-baskan {
    color: #f5c45a !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 196, 90, 0.4);
}
.klan-uyeler-col-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
/* İsim – diplomasi ile aynı: koyu sarı arka plan, ismin sonuna doğru boya püskürtme gibi azalır */
.klan-uyeler-row:not(.klan-uyeler-row-header) .klan-uyeler-col-name {
    background: linear-gradient(to right,
        rgba(175, 145, 35, 0.52) 0%,
        rgba(175, 145, 35, 0.42) 25%,
        rgba(175, 145, 35, 0.3) 50%,
        rgba(175, 145, 35, 0.14) 75%,
        rgba(175, 145, 35, 0.05) 90%,
        transparent 100%);
    border-radius: 3px;
    padding: 2px 8px 4px 10px;
    margin: -2px -8px -4px -10px;
}
.klan-uyeler-name {
    color: #fff;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 2px 6px 4px 6px;
    margin: -2px -6px -4px -6px;
    text-shadow: 0 0 14px rgba(255, 220, 120, 0.65), 0 0 28px rgba(245, 196, 90, 0.4), 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 14px 3px rgba(245, 196, 90, 0.4), 0 4px 24px 6px rgba(230, 160, 50, 0.2);
    border-radius: 3px;
    background: transparent;
}
/* Aksiyon butonları – beyaz kare kutu içinde kırmızı X / yeşil tik (örnek birebir) */
.klan-uyeler-action {
    font-size: 11px;
    padding: 5px 10px 5px 8px;
    color: #e8ecf4;
    background: rgba(40, 48, 60, 0.9);
    border: 1px solid rgba(90, 105, 125, 0.5);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 3px rgba(0,0,0,0.25);
}
.klan-uyeler-action::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    background: rgba(255,255,255,0.95);
    color: #333;
    flex-shrink: 0;
}
.klan-uyeler-action:hover {
    color: #fff;
    background: rgba(55, 65, 80, 0.95);
    border-color: rgba(120, 140, 170, 0.5);
}
.klan-uyeler-action.js-klan-sil-btn {
    color: #ff7070;
}
.klan-uyeler-action.js-klan-sil-btn::before {
    content: '✕';
    color: #c03030;
    background: rgba(255, 220, 220, 0.95);
}
.klan-uyeler-action.js-klan-sil-btn:hover {
    color: #ff8888;
    box-shadow: 0 0 10px rgba(220, 80, 80, 0.3);
}
.klan-uyeler-action.js-klan-degistir-btn::before {
    content: '✓';
    color: #208830;
    background: rgba(220, 255, 220, 0.95);
}
.klan-uyeler-action.js-klan-degistir-btn {
    color: #90d890;
}
.klan-uyeler-action.js-klan-degistir-btn:hover {
    color: #b0f0b0;
    box-shadow: 0 0 10px rgba(80, 180, 100, 0.25);
}
.klan-uyeler-action:not(.js-klan-sil-btn):not(.js-klan-degistir-btn)::before {
    content: '⊗';
    color: #606870;
}
.klan-uyeler-action-change {
    color: #80d090;
}
.klan-uyeler-action-change:hover {
    color: #a0e8b0;
}
/* Başvurular – örnekteki gibi metalik header + carbon alan */
.klan-uyeler-basvuru {
    text-align: center;
    padding: 12px 16px;
    background-color: #222830;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 14px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #2a323e 0%, #222830 50%, #1e242c 100%);
    border: 1px solid rgba(65, 75, 90, 0.8);
    border-top-color: rgba(120, 135, 155, 0.45);
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.klan-uyeler-basvuru-title {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.klan-uyeler-basvuru-list {
    min-height: 60px;
    padding: 12px 16px;
    background-color: #1a1e26;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #20262e 0%, #1a1e26 100%);
    border: 1px solid rgba(55, 65, 85, 0.7);
    border-top-color: rgba(95, 110, 130, 0.35);
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}
.klan-uyeler-basvuru-empty,
.klan-uyeler-basvuru-loading {
    margin: 0;
    font-size: 12px;
    color: #9098a8;
}
.klan-uyeler-basvuru-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(55, 65, 80, 0.5);
}
.klan-uyeler-basvuru-item:last-child {
    border-bottom: none;
}
.klan-uyeler-basvuru-name {
    font-weight: 600;
    color: #f0f4fc;
    min-width: 100px;
}
.klan-uyeler-basvuru-date {
    font-size: 11px;
    color: #a0a8b8;
    flex: 1;
}
.klan-uyeler-basvuru-actions {
    display: flex;
    gap: 8px;
}
.klan-uyeler-basvuru-btn {
    padding: 5px 12px;
    font-size: 11px;
    border: 1px solid rgba(80, 90, 110, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.klan-uyeler-basvuru-accept {
    background: linear-gradient(180deg, rgba(50, 120, 70, 0.7) 0%, rgba(40, 100, 55, 0.8) 100%);
    color: #b8f0c8;
    border-color: rgba(70, 150, 90, 0.5);
}
.klan-uyeler-basvuru-accept:hover {
    background: linear-gradient(180deg, rgba(60, 140, 85, 0.85) 0%, rgba(50, 120, 70, 0.95) 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(80, 180, 100, 0.35);
}
.klan-uyeler-basvuru-reject {
    background: linear-gradient(180deg, rgba(120, 50, 50, 0.7) 0%, rgba(100, 40, 40, 0.8) 100%);
    color: #f0b0b0;
    border-color: rgba(150, 70, 70, 0.5);
}
.klan-uyeler-basvuru-reject:hover {
    background: linear-gradient(180deg, rgba(140, 60, 60, 0.85) 0%, rgba(120, 50, 50, 0.95) 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(200, 80, 80, 0.3);
}
/* Footer – açık gri yazı, hafif açık gri şerit (örnek birebir) */
.klan-uyeler-footer {
    margin: 0;
    margin-top: 4px;
    padding: 10px 14px;
    font-size: 11px;
    color: #9098a8;
    background: linear-gradient(90deg, rgba(45, 52, 62, 0.9) 0%, rgba(40, 48, 58, 0.95) 50%, rgba(45, 52, 62, 0.9) 100%);
    border: 1px solid rgba(60, 70, 85, 0.5);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Sol menü: KATIL, KUR, ŞİRKET */
.klan-list-nav {
    width: 120px;
    min-width: 120px;
    background: linear-gradient(180deg, #252a32 0%, #1e2228 50%, #1a1e24 100%);
    border-right: 2px solid rgba(120, 160, 220, 0.4);
    box-shadow: 2px 0 12px rgba(0,0,0,0.3), inset -1px 0 0 rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 4px;
}
.klan-list-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #b0b8c4;
    background: url('img/clanlogos/buton.gif') no-repeat center;
    background-size: auto !important; /* orijinal boyut */
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, filter 0.2s;
}
.klan-list-nav-btn::after,
.klan-list-nav-btn::before {
    content: none;
}
.klan-list-nav-btn:hover {
    color: #e8ecf0;
    filter: brightness(1.1);
}
.klan-list-nav-btn.active {
    color: #fff;
    filter: brightness(1.2);
}
.klan-list-nav-btn.active::after,
.klan-list-nav-btn.active::before {
    content: none;
}

/* Sağ: Klan sekme içerikleri (KATIL listesi / KUR formu) */
.klan-tab-pane {
    display: none;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    background: #1c2028;
    overflow: hidden;
    padding: 16px 20px;
}
.klan-tab-pane.active {
    display: flex;
}

.klan-list-main {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
}
.klan-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.klan-list-title {
    font-size: 16px;
    font-weight: bold;
    color: #e8a84a;
    margin: 0;
    text-shadow: 0 0 10px rgba(232, 168, 74, 0.4);
}
.klan-list-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.klan-list-search-input {
    width: 180px;
    padding: 8px 12px;
    font-size: 12px;
    color: #e0e4e8;
    background: #252a32;
    border: 1px solid #3a4250;
    border-radius: 4px;
}
.klan-list-search-input::placeholder {
    color: #788090;
}
.klan-list-search-input:focus {
    outline: none;
    border-color: rgba(100, 160, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(100, 160, 255, 0.15);
}
.klan-list-search-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #3a4250;
    background: #252a32;
    color: #a0a8b4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.klan-list-search-btn:hover {
    background: #2a3040;
    border-color: rgba(100, 160, 255, 0.4);
    color: #c0c8d4;
}
.klan-list-search-icon {
    font-size: 16px;
    opacity: 0.9;
}
.klan-list-detail-btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(100, 160, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.klan-list-detail-btn:hover {
    background: rgba(100, 160, 255, 0.15);
    box-shadow: 0 0 12px rgba(100, 160, 255, 0.2);
}

/* Tablo */
.klan-list-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid #2a3040;
    border-radius: 4px;
    background: #1a1e26;
}
.klan-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.klan-list-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #252d38;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.klan-list-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    border-bottom: 2px solid #3a4250;
}
.klan-list-th-sort .sort-arrows {
    margin-left: 4px;
    font-size: 10px;
    color: #788090;
    vertical-align: middle;
}
.klan-list-table tbody tr {
    border-bottom: 1px solid #252a34;
    transition: background 0.15s;
}
.klan-list-table tbody tr:nth-child(even) {
    background: rgba(30, 36, 48, 0.6);
}
.klan-list-table tbody tr:hover {
    background: rgba(80, 120, 180, 0.12);
}
.klan-list-row-apply {
    cursor: pointer;
}
.klan-list-row-apply:hover {
    background: rgba(70, 120, 180, 0.2);
}
.klan-list-loading,
.klan-list-empty,
.klan-list-error {
    text-align: center;
    color: #9098a0;
    padding: 16px;
}
.klan-list-table td {
    padding: 8px 12px;
    color: #d0d4d8;
}
.klan-list-name {
    color: #e8ecf0;
    cursor: pointer;
}
.klan-list-arrow {
    margin-left: 4px;
    font-size: 10px;
    color: #788090;
    vertical-align: middle;
}
.klan-list-stat-icon {
    display: inline-block;
    width: 10px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
}
.klan-list-stat-icon::before,
.klan-list-stat-icon::after {
    content: '';
    position: absolute;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2a9a2a;
    box-shadow: 0 0 6px rgba(50, 200, 50, 0.5);
}
.klan-list-stat-icon::before {
    top: 1px;
}
.klan-list-stat-icon::after {
    top: 8px;
}
.klan-list-table-wrap::-webkit-scrollbar {
    width: 14px;
}
.klan-list-table-wrap::-webkit-scrollbar-track {
    background: #1a1e26;
    border-radius: 0 4px 4px 0;
}
.klan-list-table-wrap::-webkit-scrollbar-thumb {
    background: #3a4250;
    border-radius: 7px;
}
.klan-list-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #4a5260;
}

/* ========== Klan kur sayfası (KUR sekmesi) ========== */
.klan-kur-main {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 24px;
    background: #1c2028;
}
.klan-kur-title {
    font-size: 18px;
    font-weight: bold;
    color: #e8a84a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(232, 168, 74, 0.5);
    text-shadow: 0 0 12px rgba(232, 168, 74, 0.4);
}
.klan-kur-intro {
    font-size: 13px;
    color: #e0e4e8;
    margin: 0 0 10px 0;
    line-height: 1.5;
    max-width: 720px;
}
.klan-kur-layout {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.klan-kur-requirements {
    flex: 0 1 320px;
    min-width: 260px;
}
.klan-kur-heading {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 14px 0;
}
.klan-kur-list {
    margin: 0 0 14px 0;
    padding-left: 20px;
    color: #c8ccd4;
    font-size: 13px;
    line-height: 1.7;
}
.klan-kur-list li {
    margin-bottom: 6px;
}
.klan-kur-confirm {
    font-size: 12px;
    color: #a0a8b4;
    margin: 0;
    font-style: italic;
}
.klan-kur-form {
    flex: 1;
    min-width: 240px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.klan-kur-input,
.klan-kur-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: #e0e4e8;
    background: #252a32;
    border: 1px solid #4a5260;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}
.klan-kur-input::placeholder,
.klan-kur-textarea::placeholder {
    color: #788090;
}
.klan-kur-input:focus,
.klan-kur-textarea:focus {
    outline: none;
    border-color: rgba(100, 160, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(100, 160, 255, 0.15);
}
.klan-kur-textarea {
    min-height: 140px;
    resize: vertical;
}

.main-menu-overlay.main-menu-overlay--keyboard-open #page-klan .klan-kur-main,
.main-menu-overlay.main-menu-overlay--keyboard-open #page-klan .klan-kur-form,
.main-menu-overlay.main-menu-overlay--keyboard-open #page-klan .klan-kur-input,
.main-menu-overlay.main-menu-overlay--keyboard-open #page-klan .klan-kur-textarea {
    scroll-margin-bottom: calc(var(--cp-keyboard-inset) + 28px);
    scroll-padding-bottom: calc(var(--cp-keyboard-inset) + 28px);
}
.klan-kur-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a3040;
}
.klan-kur-cost {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #1a1e26;
    border: 1px solid #4a5260;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.klan-kur-submit-btn {
    padding: 14px 48px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #2e9e2e 0%, #228b22 50%, #1d7a1d 100%);
    border: 1px solid #5a9a5a;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}
.klan-kur-submit-btn:hover {
    background: linear-gradient(180deg, #36b036 0%, #2a9a2a 50%, #228b22 100%);
    box-shadow: 0 2px 12px rgba(40, 160, 40, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========== Şirket sayfası (ŞİRKET) – 3D HD carbon-fiber, canlı renkler ========== */
.klan-sirket-main {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
    background: #14171c;
    background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px);
    gap: 0;
}

.sirket-page-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* Başlık çubuğu – metalik doku, beyaz kalın (Şirket Detayları) */
.sirket-detay-bar {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #222830;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 14px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #2a323e 0%, #222830 50%, #1e242c 100%);
    border: 1px solid rgba(65, 75, 90, 0.8);
    border-bottom: 1px solid rgba(55, 65, 85, 0.6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Mevcut şirket içerik paneli – carbon-fiber, metalik çerçeve */
.sirket-detay-content {
    padding: 20px 24px;
    background-color: #0c0e12;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 3px),
        linear-gradient(180deg, #161a20 0%, #0e1014 100%);
    border: 1px solid rgba(55, 65, 85, 0.8);
    border-top: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}
.sirket-current-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.sirket-current-name-full {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* Şirket kartı – metalik çerçeve, logo altı isimde mavi/cyan glow */
.sirket-card-frame {
    width: 180px;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    border: 1px solid rgba(70, 85, 105, 0.7);
    border-top-color: rgba(100, 120, 145, 0.45);
    border-radius: 6px;
    box-sizing: border-box;
    overflow: visible;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.25);
}
.sirket-current-card {
    background-color: #161c24;
    background-image: linear-gradient(180deg, #1c222c 0%, #141820 100%);
    color: #e8ecf0;
}
.sirket-current-card .sirket-option-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(80, 95, 115, 0.5);
}
.sirket-current-card .sirket-option-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}
.sirket-current-card .sirket-option-name-main {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(100, 180, 220, 0.6), 0 0 24px rgba(80, 160, 220, 0.35), 0 1px 2px rgba(0,0,0,0.5);
}
.sirket-current-card .sirket-option-name-sub {
    font-size: 10px;
    color: #b0b8c8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

/* İstatistik paneli – carbon doku, beyaz metin, sayılar canlı */
.sirket-stats-panel {
    display: flex;
    gap: 48px 64px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background-color: #0e1014;
    background-image:
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #161a20 0%, #0e1014 100%);
    border: 1px solid rgba(55, 65, 85, 0.8);
    border-top: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.sirket-stats-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sirket-stat-line {
    font-size: 13px;
    color: #e8ecf0;
}
.sirket-stat-line span {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Şirket değiştir paneli – 3D HD carbon, metalik başlık */
.sirket-degistir-panel {
    padding: 0;
    flex: 1;
    min-height: 200px;
    background-color: #1a1e26;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.1) 100%),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),
        linear-gradient(180deg, #222830 0%, #1a1e26 50%, #161a22 100%);
    border: 1px solid rgba(55, 65, 85, 0.8);
    border-top: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}
.sirket-degistir-bar {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #222830;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 14px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px),
        linear-gradient(180deg, #2a323e 0%, #222830 100%);
    border-bottom: 1px solid rgba(55, 65, 85, 0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.sirket-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px 32px;
    flex-wrap: wrap;
    padding: 28px 24px;
}
.sirket-degistir-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    max-width: 280px;
    padding: 0 16px;
}
.sirket-degistir-panel .sirket-degistir-text {
    font-size: 13px;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}
.sirket-degistir-panel .sirket-degistir-cost {
    font-size: 14px;
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-align: center;
}
.sirket-cost-label {
    color: #fff;
}
.sirket-cost-value {
    color: #ff4444;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}
.sirket-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    background-color: #161c24;
    background-image: linear-gradient(180deg, #1e242e 0%, #161a24 100%);
    border: 1px solid rgba(65, 80, 100, 0.7);
    border-top-color: rgba(95, 115, 140, 0.45);
    border-radius: 6px;
    cursor: pointer;
    color: #e8ecf0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.2);
}
.sirket-option-card:hover {
    border-color: rgba(100, 160, 220, 0.7);
    background-image: linear-gradient(180deg, #242c38 0%, #1c222e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 28px rgba(80, 160, 220, 0.35);
}
.sirket-option-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(80, 95, 115, 0.5);
}
.sirket-option-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}
.sirket-option-name-main {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(100, 180, 220, 0.5), 0 0 20px rgba(80, 160, 220, 0.3);
}
.sirket-option-name-sub {
    font-size: 10px;
    color: #b0b8c8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

/* Şirket değiştir onay modalı (Sistem) — resimdeki ufak pencere */
.sirket-onay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.sirket-onay-overlay.hidden {
    display: none;
}
.sirket-onay-modal {
    background: linear-gradient(180deg, #1e2228 0%, #181c22 50%, #14181e 100%);
    border: 1px solid #3a4250;
    border-radius: 2px;
    min-width: 380px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.sirket-onay-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(180deg, #2a2e36 0%, #22262e 50%, #1a1e26 100%);
    border-bottom: none;
}
.sirket-onay-title-text {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
.sirket-onay-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    background: rgba(40, 44, 52, 0.8);
    border: 1px solid #4a5260;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.sirket-onay-close:hover {
    background: rgba(60, 68, 80, 0.9);
}
.sirket-onay-stripe {
    height: 8px;
    background: repeating-linear-gradient(
        -45deg,
        #f1c40f,
        #f1c40f 8px,
        #1a1a1a 8px,
        #1a1a1a 16px
    );
}
.sirket-onay-body {
    padding: 20px 22px;
    background: rgba(16, 18, 22, 0.95);
    border: 1px solid #2a3040;
    border-top: none;
    border-bottom: none;
}
.sirket-onay-soru {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #fff;
    line-height: 1.45;
}
.sirket-onay-sirket-ad {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
}
.sirket-onay-aciklama {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #e0e4e8;
    line-height: 1.5;
}
.sirket-onay-aciklama:last-of-type {
    margin-bottom: 0;
}
.sirket-onay-aciklama strong {
    color: #fff;
}
.sirket-onay-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 14px 22px;
    background: rgba(20, 24, 30, 0.95);
    border: 1px solid #2a3040;
    border-top: none;
}
.sirket-onay-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #3a4050 0%, #2a3038 50%, #22282e 100%);
    border: 1px solid #4a5260;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, border-color 0.2s;
}
.sirket-onay-btn:hover {
    background: linear-gradient(180deg, #444a5a 0%, #343a42 50%, #2a3038 100%);
    border-color: #5a6270;
}
.sirket-onay-tamam {
    min-width: 90px;
}
.sirket-onay-kapat {
    min-width: 90px;
}

/* —— Klan sil onay modalı (metalik çerçeve, hazard düğmeler, yumruk filigranı) —— */
/* DOM: body > #klanSilOnayOverlay — #game-container içindeyken #mainMenuOverlay (125) arkasında kalıyordu; satın alma ile aynı kök */
.klan-sil-onay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10330; /* Kontrol Merkezi 125, satın alma 10190, uyarı 10300; çıkış sayacı 10350 altı */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.82);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
.klan-sil-onay-overlay.hidden {
    display: none !important;
}
.klan-sil-onay-modal {
    position: relative;
    width: min(440px, 94vw);
    padding: 22px 22px 20px;
    box-sizing: border-box;
    color: #e8eaee;
    background-color: #2a2a2a;
    background-image:
        repeating-linear-gradient(
            -36deg,
            rgba(0, 0, 0, 0.22) 0,
            rgba(0, 0, 0, 0.22) 1px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            52deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(165deg, #323232 0%, #262626 42%, #1e1e1e 100%);
    border: 2px solid #8a8f98;
    border-radius: 3px;
    box-shadow:
        0 0 0 1px #1a1a1a,
        0 0 0 2px #5c6068,
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -1px 0 rgba(0, 0, 0, 0.45) inset,
        0 12px 40px rgba(0, 0, 0, 0.65);
}
.klan-sil-onay-x {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #f2f4f8;
    cursor: pointer;
    background: linear-gradient(180deg, #3a3e46 0%, #282c34 45%, #1e2228 100%);
    border: 1px solid #9aa0a8;
    border-radius: 2px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.35) inset,
        0 2px 4px rgba(0, 0, 0, 0.4);
}
.klan-sil-onay-x:hover {
    background: linear-gradient(180deg, #484c54 0%, #343840 45%, #282c34 100%);
    color: #fff;
}
.klan-sil-onay-watermark {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-48%);
    width: min(42%, 180px);
    height: 72%;
    max-height: 200px;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
.klan-sil-onay-fist-svg {
    width: 100%;
    height: 100%;
    max-height: 200px;
    opacity: 0.85;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}
.klan-sil-onay-msg-wrap {
    position: relative;
    z-index: 1;
    margin: 8px 44px 22px 4px;
    padding: 18px 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    background: #1c1c1c;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%);
    border: 1px solid #0a0a0a;
    border-radius: 2px;
    box-shadow:
        inset 0 3px 10px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.05);
}
.klan-sil-onay-msg {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #f4f6fa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.klan-sil-onay-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px 28px;
    padding: 4px 8px 2px;
}
.klan-sil-onay-parallelogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 0 22px 0 30px;
    min-height: 42px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffcc33;
    text-shadow: 0 0 8px rgba(255, 180, 40, 0.35), 0 1px 2px rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, #2e3238 0%, #1a1d22 50%, #121418 100%);
    border: none;
    transform: skewX(-14deg);
    box-shadow:
        0 0 0 1px #6a7078,
        0 0 0 2px #2a2e34,
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 -2px 6px rgba(0, 0, 0, 0.45) inset,
        0 4px 12px rgba(0, 0, 0, 0.5);
}
.klan-sil-onay-parallelogram:hover {
    color: #ffe066;
    background: linear-gradient(180deg, #383c44 0%, #22262c 50%, #181c20 100%);
}
.klan-sil-onay-parallelogram:active {
    transform: skewX(-14deg) translateY(1px);
}
.klan-sil-onay-hazard {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26px;
    background: repeating-linear-gradient(
        -42deg,
        #e8a010,
        #e8a010 5px,
        #2a1a08 5px,
        #2a1a08 10px
    );
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.klan-sil-onay-btn-text {
    display: block;
    transform: skewX(14deg);
    padding-left: 4px;
}
.klan-sil-onay-parallelogram#klanSilOnayKapat .klan-sil-onay-btn-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Mobil: klan sil onayı %25 küçük (game.js → html.mobile-ayarlar-compact) */
html.mobile-ayarlar-compact .klan-sil-onay-modal {
    transform: scale(0.75);
    transform-origin: center center;
}

/* ŞİRKET sekmesi aktifken sol menüde vurgu (buton.gif kullanıldığı için sadece parlaklık) */
.klan-list-nav-btn[data-klan-list-tab="sirket"].active {
    filter: brightness(1.2);
}

/* Oyuncu Bilgi Bölümü */
.player-info-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    min-width: 0;
}

.player-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ship {
    font-size: 48px;
    filter: brightness(0) invert(1);
}

.player-id {
    color: #00ffff;
    font-size: 11px;
    font-weight: bold;
}

.player-stats-left,
.player-stats-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.stat-line {
    color: #fff;
    font-size: 11px;
    padding: 4px 0;
}

.stat-line span {
    color: #00ffff;
    font-weight: bold;
}

/* Bilgi üst satırları: etiketler beyaz, değerler mevcut mavi kalsın */
.stat-line span[data-i18n] {
    color: #fff;
    font-weight: normal;
}

/* Bilgi üstü: logo + ID + şirket/klan + istatistikler (+ aynı satırdaki OYUNA DÖN vb.) — sadece mobilde %10 */
@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape) and (max-width: 932px)) {
    #mainMenuOverlay .player-info-section {
        gap: calc(18px * 1.1);
        padding: calc(20px * 1.1);
        margin-bottom: calc(24px * 1.1);
    }
    #mainMenuOverlay .player-info-section .player-avatar {
        gap: calc(8px * 1.1);
    }
    #mainMenuOverlay .player-info-section .avatar-circle {
        width: calc(100px * 1.1);
        height: calc(100px * 1.1);
    }
    #mainMenuOverlay .player-info-section .player-id {
        font-size: calc(12px * 1.1);
    }
    #mainMenuOverlay .player-info-section .player-stats-left,
    #mainMenuOverlay .player-info-section .player-stats-right {
        gap: calc(8px * 1.1);
    }
    #mainMenuOverlay .player-info-section .stat-line {
        font-size: calc(13px * 1.1);
        padding: calc(4px * 1.1) 0;
    }
    #mainMenuOverlay .player-info-section .player-info-actions {
        gap: calc(10px * 1.1);
    }
    #mainMenuOverlay .player-info-section .header-button {
        font-size: calc(13px * 1.1);
        padding: calc(8px * 1.1) calc(15px * 1.1);
        min-width: calc(140px * 1.1);
    }
    #mainMenuOverlay .player-info-section .header-button-ship-icon {
        width: calc(38px * 1.1);
        height: calc(38px * 1.1);
    }
}

/* Bilgi Bölümleri */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-section {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    padding: 16px;
}

.section-title {
    color: #00ffff;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

/* EN İYİ OYUNCU SALONU / Bilgi sayfası layout */
.bilgi-seref-layout {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.bilgi-ranking-panel {
    flex: 3 1 0;   /* Sol %60 - sağdan %20 daha geniş */
    min-width: 280px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
}

.bilgi-section-head {
    text-align: center;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    overflow: visible;
}

.bilgi-section-head.small {
    font-size: 12px;
    margin-bottom: 8px;
}

.bilgi-logbook-head {
    margin-bottom: 8px;
    gap: 2px;
}

.bilgi-logbook-wing {
    max-width: 88px;
    max-height: 40px;
    margin-right: -10px;
    margin-left: -10px;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 185, 0.35))
        drop-shadow(0 0 4px rgba(140, 73, 38, 0.18));
}

.bilgi-yildizlar-headline {
    display: inline-block;
    line-height: 1;
    padding: 0 2px;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 185, 0.35))
        drop-shadow(0 0 4px rgba(140, 73, 38, 0.18));
}

.bilgi-yildizlar-text {
    display: inline-block;
    font-family: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: calc(13.5px * 1.15);
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    background:
        linear-gradient(180deg,
            #ffffb9 0%,
            #ffe06a 14%,
            #d4a24a 32%,
            #9e693a 48%,
            #8c4926 56%,
            #a85f2f 72%,
            #ffe08a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.6px rgba(92, 46, 24, 0.9);
    text-shadow:
        0 1px 0 #ffffb9,
        0 2px 0 #8c4926,
        0 3px 0 rgba(55, 28, 14, 0.88),
        0 4px 6px rgba(0, 0, 0, 0.5);
    filter: none;
}

.bilgi-wing-left {
    max-width: 196px;
    max-height: 87px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-right: -18px; /* %28 uzaklaştırıldı: -25px * 0.72 */
}

.bilgi-wing-right {
    max-width: 196px;
    max-height: 87px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-left: -18px; /* %28 uzaklaştırıldı: -25px * 0.72 */
}

.bilgi-headline {
    font-size: 22.4px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    margin-left: 0;
}

.bilgi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.bilgi-tab {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #aaa;
}

.bilgi-tab.active {
    background: rgba(0, 255, 255, 0.25);
    color: #00ffff;
    border-color: #00ffff;
}

.bilgi-tab:hover:not(.active) {
    background: rgba(0, 255, 255, 0.15);
    color: #fff;
}

.bilgi-online-title {
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    padding: 2px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.bilgi-ranking-table-wrap {
    /* PİLOTLAR / KLANLAR / ONLINE: satır sayısı az olsa da kutu sabit yükseklikte kalır */
    height: 440px;
    max-height: 440px;
    min-height: 440px;
    overflow-y: auto;
}

/* Son sıra her zaman oyuncunun kendi bilgisi: tfoot altta sabit (sticky) */
.bilgi-ranking-table-wrap .bilgi-ranking-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(0, 20, 40, 0.98);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.bilgi-ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px; /* %10 büyütüldü: 11px → 12px */
}

.bilgi-ranking-table thead td {
    color: #ffd700;
    font-weight: bold;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.bilgi-ranking-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bilgi-ranking-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.03);
}

.bilgi-ranking-table tbody td {
    padding: 6px 4px;
    color: #ddd;
}

.bilgi-ranking-table tbody td a {
    color: #7dd3fc;
    text-decoration: none;
}

.bilgi-ranking-table tbody td a:hover {
    text-decoration: underline;
}

.bilgi-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 6px;
}

.bilgi-events-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    font-size: 85%;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(0, 255, 255, 0.06);
    color: #e6f8ff;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.bilgi-events-time {
    min-width: 56px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

.bilgi-events-name {
    color: #d9fbff;
}

.bilgi-events-status {
    margin-left: auto;
    text-align: right;
    min-width: 82px;
}

.bilgi-events-status.is-active {
    color: #34ff8a;
    text-shadow: 0 0 8px rgba(52, 255, 138, 0.55);
}

.bilgi-events-status.is-inactive {
    color: #ff6262;
    text-shadow: 0 0 8px rgba(255, 98, 98, 0.45);
}

.bilgi-ranking-table tfoot tr {
    background: rgba(0, 150, 255, 0.25);
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
}

.bilgi-ranking-table tfoot td {
    padding: 7px 4px;
    color: #fff;
    font-weight: bold;
}
.bilgi-ranking-table tfoot td img {
    opacity: 1;
    vertical-align: middle;
}

/* EN İYİ OYUNCU SALONU: mobilde ~%33 (1.1³) — zoom üstteki transform ile güvenilir olmadığı için px + ikonlar ayrı */
@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape) and (max-width: 932px)) {
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-headline {
        font-size: calc(25px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-tab {
        font-size: calc(12px * 1.331);
        padding: calc(6px * 1.331) calc(14px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-online-title {
        font-size: calc(14px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table {
        font-size: calc(14px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table thead td {
        padding: calc(7px * 1.331) calc(4px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table tbody td {
        padding: calc(6px * 1.331) calc(4px * 1.331);
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table tfoot td {
        padding: calc(7px * 1.331) calc(4px * 1.331);
    }
    /* game.js satır içi width/height — zoom tabloyu büyütmediği için */
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table img {
        width: calc(11px * 1.331) !important;
        height: calc(11px * 1.331) !important;
        max-height: calc(18px * 1.331) !important;
        object-fit: contain;
    }
    /* Sadece mobilde: En iyi oyuncu salonunda rütbe ikonları 2x */
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-ranking-table img.bilgi-rank-icon {
        width: calc(11px * 1.331 * 2) !important;
        height: calc(11px * 1.331 * 2) !important;
        max-height: calc(18px * 1.331 * 2) !important;
    }
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-wing-left,
    #mainMenuOverlay .bilgi-ranking-panel .bilgi-wing-right {
        max-width: calc(196px * 1.331);
        max-height: calc(87px * 1.331);
    }
}

/* Online tablosu: # ile Oyuncu adı yan yana, Şirket isimlerin hemen yanında (en sağa itilmesin) */
#bilgiRankingOnline {
    table-layout: fixed;
    width: auto;
    min-width: 0;
}
#bilgiRankingOnline thead td:first-child,
#bilgiRankingOnline tbody td:first-child {
    padding-right: 2px;
    width: 22px;
}
#bilgiRankingOnline thead td:nth-child(2),
#bilgiRankingOnline tbody td:nth-child(2) {
    padding-left: 4px;
    width: 130px;
}
#bilgiRankingOnline thead td:nth-child(3),
#bilgiRankingOnline tbody td:nth-child(3) {
    padding-left: 4px;
    width: 36px;
}

.bilgi-empty {
    color: #888;
    text-align: center;
    padding: 20px !important;
}

.bilgi-right-panel {
    flex: 2 1 0;   /* Sağ %40 - soldan %20 daha dar */
    min-width: 240px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bilgi-pilot-license {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
}

.bilgi-license-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bilgi-license-avatar {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.bilgi-license-details {
    flex: 1;
}

.bilgi-license-line {
    font-size: 11px;
    color: #ddd;
    padding: 2px 0;
}

.bilgi-license-line label {
    color: #00ffff;
    min-width: 45px;
    display: inline-block;
}

.bilgi-logbook {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bilgi-logbook-content {
    flex: 1 1 0;
    min-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 10px;
}

.yildizlar-salonu-list {
    display: grid;
    grid-template-columns: max-content 22px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 12px;
    padding: 10px 6px 6px;
    align-items: center;
}

.yildizlar-salonu-row {
    display: contents;
}

.yildizlar-salonu-label {
    display: inline-block;
    font-family: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.45px;
    line-height: 1.35;
    white-space: nowrap;
    text-align: left;
    text-transform: uppercase;
    color: #e8bc4a;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 1px 0 rgba(74, 38, 10, 0.9);
}

.yildizlar-salonu-sep {
    position: relative;
    width: 22px;
    height: 15px;
    justify-self: center;
}

.yildizlar-salonu-sep::before {
    content: "";
    position: absolute;
    left: 0;
    right: 5px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.22), rgba(0, 210, 255, 0.55));
    transform: translateY(-50%);
}

.yildizlar-salonu-sep::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-52%);
    color: #45daf0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.yildizlar-salonu-value {
    min-width: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    word-break: break-word;
    text-align: left;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.yildizlar-salonu-loading,
.yildizlar-salonu-empty {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    font-style: italic;
    text-align: center;
    padding: 24px 8px;
}

/* Yıldızlar Salonu listesi: sadece mobilde biraz daha büyük (PC dokunulmaz) */
@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape) and (max-width: 932px)) {
    #mainMenuOverlay .yildizlar-salonu-list {
        row-gap: calc(12px * 1.2);
        column-gap: calc(10px * 1.2);
    }
    #mainMenuOverlay .yildizlar-salonu-label {
        font-size: calc(12.5px * 1.2);
    }
    #mainMenuOverlay .yildizlar-salonu-value {
        font-size: calc(12px * 1.2);
    }
    #mainMenuOverlay .yildizlar-salonu-sep::after {
        font-size: calc(14px * 1.2);
    }
    #mainMenuOverlay .yildizlar-salonu-loading,
    #mainMenuOverlay .yildizlar-salonu-empty {
        font-size: calc(12.5px * 1.2);
    }
}

.bilgi-logbook-btn {
    display: block;
    width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #58b8dc;
    background: #030a10;
    border: 1px solid #2f7a9a;
    border-radius: 3px;
    box-shadow:
        inset 0 0 0 1px #071722,
        inset 0 0 0 2px #030a10,
        inset 0 0 0 3px #1a5570;
    cursor: pointer;
    text-align: center;
    font-family: Arial, sans-serif;
    letter-spacing: 0.15px;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bilgi-logbook-btn:hover {
    color: #7fd4f0;
    border-color: #3d9ec4;
    box-shadow:
        inset 0 0 0 1px #0a2535,
        inset 0 0 0 2px #030a10,
        inset 0 0 0 3px #267aa0;
}

/* Seyir defteri tam sayfa paneli */
.seyir-defteri-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 4, 10, 0.72);
}

.seyir-defteri-overlay.hidden {
    display: none;
}

.seyir-defteri-panel {
    position: relative;
    width: 679px;
    height: 439px;
    flex: 0 0 auto;
    box-shadow:
        inset 0 0 0 1px rgba(145, 165, 178, 0.28),
        inset 0 0 0 2px rgba(8, 12, 16, 0.72),
        0 0 0 1px rgba(0, 168, 198, 0.34),
        0 0 0 2px rgba(24, 32, 40, 0.92),
        0 0 18px rgba(0, 140, 170, 0.14),
        0 10px 28px rgba(0, 0, 0, 0.48);
}

.seyir-defteri-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(88, 108, 122, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(180, 200, 210, 0.08),
        inset 0 0 10px rgba(0, 120, 150, 0.05);
}

.seyir-defteri-bg {
    display: block;
    width: 679px;
    height: 439px;
    user-select: none;
    -webkit-user-drag: none;
}

.seyir-defteri-content {
    position: absolute;
    top: 46px;
    bottom: 56px;
    left: calc(58px + (100% - 58px - 38px) * 0.075);
    width: calc((100% - 58px - 38px) * 0.85);
    overflow: hidden;
    z-index: 2;
}

.seyir-defteri-table-wrap {
    height: 100%;
    overflow: auto;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 190, 200, 0.55) transparent;
}

.seyir-defteri-table-wrap::-webkit-scrollbar {
    width: 8px;
}

.seyir-defteri-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(180, 190, 200, 0.55);
    border-radius: 4px;
}

.seyir-defteri-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #d8dde2;
}

.seyir-defteri-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 10px;
    text-align: left;
    font-weight: 700;
    color: #eceff2;
    background: rgba(66, 75, 82, 0.98);
    border-bottom: 1px solid #707880;
}

.seyir-defteri-table thead th:first-child {
    width: 150px;
    border-right: 1px solid #707880;
}

.seyir-defteri-table tbody td {
    padding: 7px 10px;
    vertical-align: top;
    border-bottom: 1px solid #707880;
    line-height: 1.35;
    background: transparent;
}

.seyir-defteri-table tbody td:first-child {
    width: 150px;
    white-space: nowrap;
    border-right: 1px solid #707880;
    color: #c8ced4;
}

.seyir-defteri-table tbody td:last-child {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.seyir-defteri-table tbody tr:last-child td {
    border-bottom: none;
}

.seyir-defteri-empty-row td {
    text-align: center;
    color: #a8b0b8;
    font-style: italic;
    padding: 24px 10px !important;
}

.seyir-defteri-close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 1px solid #5a646e;
    border-radius: 50%;
    background: linear-gradient(180deg, #4a525c, #2a3038);
    color: #eef2f6;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.seyir-defteri-close:hover {
    color: #fff;
    border-color: #7a848e;
}

@media (max-width: 1024px), ((max-height: 520px) and (orientation: landscape)) {
    #mainMenuOverlay .seyir-defteri-table {
        font-size: 12px;
    }

    #mainMenuOverlay .seyir-defteri-table thead th:first-child,
    #mainMenuOverlay .seyir-defteri-table tbody td:first-child {
        width: 132px;
    }
}

/* Ayarlar sayfası */
.ayarlar-container {
    padding: 20px 0;
}

/* Destekler: cephane boyutu, görsel %10 küçük */
.market-destek-item .market-ship-image img {
    transform: scale(0.9);
    transform-origin: center center;
}
.market-destek-item.selected {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}
#page-market .ship-details-image img.destek-details-img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.ayarlar-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}
.ayarlar-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ayarlar-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ayarlar-pilot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 18px;
    background: rgba(20, 25, 35, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(80, 90, 110, 0.5);
}
.ayarlar-pilot-label {
    color: #b8c4d4;
    font-size: 14px;
    min-width: 140px;
}
.ayarlar-pilot-input {
    flex: 1;
    min-width: 160px;
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(100, 110, 125, 0.6);
    background: rgba(10, 14, 22, 0.95);
    color: #fff;
    font-size: 14px;
}
.ayarlar-pilot-save {
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid #00aaff;
    background: rgba(0, 100, 160, 0.35);
    color: #00d4ff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}
.ayarlar-pilot-save:hover {
    background: rgba(0, 130, 200, 0.45);
}
.ayarlar-pilot-message {
    font-size: 13px;
    color: #7ad4ff;
    min-height: 1.2em;
    margin: -8px 0 0 0;
    padding: 0 4px;
}
.ayarlar-password-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
    padding: 14px 18px;
    background: rgba(20, 25, 35, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(80, 90, 110, 0.5);
}
.ayarlar-password-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.ayarlar-password-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(100, 110, 125, 0.6);
    background: rgba(10, 14, 22, 0.95);
    color: #fff;
    font-size: 14px;
}
.ayar-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    background: rgba(20, 25, 35, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(80, 90, 110, 0.5);
    transition: border-color 0.2s, background 0.2s;
}
.ayar-checkbox-label:hover {
    background: rgba(30, 35, 45, 0.9);
    border-color: rgba(0, 255, 255, 0.3);
}
.ayar-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ayar-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(40, 45, 55, 0.9);
    border: 2px solid rgba(100, 110, 125, 0.6);
    border-radius: 4px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ayar-checkbox:checked + .ayar-checkbox-custom {
    background: rgba(0, 50, 80, 0.4);
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}
.ayar-checkbox:checked + .ayar-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #00d4ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ayar-checkbox-text {
    color: #b8c4d4;
    font-size: 14px;
}

/* Mobil: yatay modda width genelde >768; ayrıca game.js html.mobile-ayarlar-compact (isMobileDevice) ekler */
@media (max-width: 1024px), (max-height: 768px) {
    /* Oyuncu ismi satırı ile şifre bloğu arası (form gap + pilot mesaj min-height) sıkılaştırılır */
    #page-ayarlar #settingPilotNameMessage {
        min-height: 0;
        margin-bottom: -6px;
    }
    #page-ayarlar .ayarlar-password-row {
        margin-top: -14px;
    }
    #page-ayarlar #settingPasswordMessage {
        min-height: 0;
        margin-top: -8px;
        margin-bottom: -8px;
    }
    #page-ayarlar .ayarlar-options {
        gap: 6px;
        margin-top: -14px;
    }
    #page-ayarlar .ayarlar-options .ayar-checkbox-label {
        padding: 8px 12px;
    }
}
html.mobile-ayarlar-compact #page-ayarlar #settingPilotNameMessage {
    min-height: 0;
    margin-bottom: -6px;
}
html.mobile-ayarlar-compact #page-ayarlar .ayarlar-password-row {
    margin-top: -14px;
}
html.mobile-ayarlar-compact #page-ayarlar #settingPasswordMessage {
    min-height: 0;
    margin-top: -8px;
    margin-bottom: -8px;
}
html.mobile-ayarlar-compact #page-ayarlar .ayarlar-options {
    gap: 6px;
    margin-top: -14px;
}
html.mobile-ayarlar-compact #page-ayarlar .ayarlar-options .ayar-checkbox-label {
    padding: 8px 12px;
}

/* İstatistikler sayfası - DarkOrbit benzeri */
#page-istatistikler {
    overflow-x: hidden;
}
.istatistikler-panel {
    position: relative;
    display: inline-block;
    border: none;
    margin-left: 10%;
    margin-top: -3%;
}

@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape)) {
    /* Sadece mobilde: istatistikler panelini %20 büyüt ve ortala */
    /* Not: #page-istatistikler normalde .content-page {display:none}.
       Burada display:flex vermek sayfa aktif değilken bile görünmesine sebep oluyordu. */
    #page-istatistikler.active {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    #page-istatistikler.active .istatistikler-panel {
        margin-left: 0 !important;
        margin-top: 0 !important;
        transform: scale(1.3);
        transform-origin: center center;
    }
}
.istatistikler-panel-bg {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    vertical-align: top;
}
.istatistikler-panel-inner {
    position: absolute;
    top: 0;
    left: 9.5%;
    right: 9.5%;
    bottom: 0;
    padding: 20px;
    overflow: hidden;
}
.istatistikler-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}
.istatistikler-emblem-left {
    flex-shrink: 0;
}
.istatistikler-wing {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
}
.istatistikler-hex-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
    width: 100%;
}
.istatistikler-hex-tab {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.istatistikler-hex-tab img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    transition: filter 0.25s ease;
}
.istatistikler-hex-tab:hover img {
    filter: brightness(0) invert(1) contrast(1.2) drop-shadow(0 0 12px rgba(255, 255, 255, 1));
}
.istatistikler-hex-tab.active img {
    /* Seçili: çok canlı beyaz, mavi bastırıldı */
    filter: brightness(0) invert(1) contrast(1.5) drop-shadow(0 0 16px rgba(255, 255, 255, 1));
}

/* Hex butonlarının hemen altında sabit başlık alanı (kırmızı kutu bölgesi) */
.istatistikler-title-wrap {
    width: 100%;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}
.istatistikler-title {
    font-size: 12.8px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.istatistikler-content {
    padding: 0 10px;
}
.istatistikler-tab-content {
    display: none;
}
.istatistikler-tab-content.active {
    display: block;
}
/* Profil sekmesi: yazılar %10 yukarı (başka sekmeler etkilenmez) */
.istatistikler-tab-content[data-stat-content="profil"] {
    transform: translateY(-10%);
}
.istatistikler-rank-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    transform: translate(20%, 48%);
}
.istatistikler-rank-label {
    color: #aaa;
    font-size: 12px;
    flex-shrink: 0;
}
.istatistikler-rank-value-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(10, 20, 35, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.4);
    border-radius: 3px;
    max-width: 100px;
}
.istatistikler-rank-value {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    z-index: 1;
}
.istatistikler-rank-emblem {
    position: absolute;
    right: 5px;
    max-width: 25px;
    max-height: 15px;
    opacity: 0.3;
    object-fit: contain;
}
.istatistikler-stats-list {
    display: flex;
    flex-direction: column;
    gap: 3.3px;
    margin-bottom: 24px;
}
.istatistikler-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3.3px 12px;
    background: rgba(15, 25, 40, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 4px;
}
.istatistikler-stat-row.stat-row-negative .istatistikler-stat-name,
.istatistikler-stat-row.stat-row-negative .istatistikler-stat-field {
    color: #ff6666;
}
.istatistikler-stat-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(25, 45, 70, 0.9);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}
.istatistikler-stat-toggle:hover {
    background: rgba(0, 150, 200, 0.4);
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.stat-row-negative .istatistikler-stat-toggle,
.stat-toggle-minus {
    border-color: rgba(255, 100, 100, 0.6);
    color: #ff9999;
}
.stat-row-negative .istatistikler-stat-toggle:hover,
.stat-toggle-minus:hover {
    border-color: #ff6666;
    background: rgba(255, 80, 80, 0.2);
}
.istatistikler-stat-name {
    flex: 1;
    color: #ccc;
    font-size: 12px;
}
.istatistikler-stat-field {
    min-width: 140px;
    text-align: right;
    padding: 4px 10px;
    background: rgba(10, 18, 30, 0.8);
    border: 1px solid rgba(80, 90, 110, 0.4);
    border-radius: 4px;
    color: #ddd;
    font-size: 12px;
}
.stat-field-negative {
    color: #ff6666 !important;
}
.istatistikler-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 200, 255, 0.2);
    transform: translate(12%, -65%);
}
.istatistikler-footer p {
    color: #aaa;
    font-size: 11px;
    line-height: 1.8;
    margin: 4px 0;
}
.istatistikler-footer-next,
.istatistikler-footer-lower {
    color: #bbb !important;
}
.istatistikler-rank-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin: 0 2px;
}

/* Yok etmeler tablosu - resimdeki gibi */
.istatistikler-subtitle {
    font-size: 16px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: bold;
}

/* 5 satır görünsün, 6. satırdan itibaren scroll (başlık + 5 satır + tfoot) */
.istatistikler-yoketmeler-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}

.istatistikler-yoketmeler-wrap::-webkit-scrollbar {
    width: 8px;
}

.istatistikler-yoketmeler-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.istatistikler-yoketmeler-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}

.istatistikler-yoketmeler-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 220, 255, 0.7);
}

.istatistikler-yoketmeler-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}

.istatistikler-yoketmeler-table .col-rank {
    width: 32px;
    text-align: left;
}

.istatistikler-yoketmeler-table .col-isim {
    min-width: 90px;
    text-align: left;
}

.istatistikler-yoketmeler-table .col-sirket {
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.istatistikler-yoketmeler-table .col-rutbe {
    width: 44px;
    text-align: center;
}

.istatistikler-yoketmeler-table .col-yoketme {
    width: 70px;
    text-align: right;
    padding-right: 10px;
}

/* Başlık satırı scroll sırasında üstte sabit */
.istatistikler-yoketmeler-wrap .istatistikler-yoketmeler-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.istatistikler-yoketmeler-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}

.istatistikler-yoketmeler-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.istatistikler-yoketmeler-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}

.istatistikler-yoketmeler-table tbody td {
    padding: 6px 4px;
}

/* Alt satır (oyuncunun kendi satırı) altta sabit, taşma olmasın */
.istatistikler-yoketmeler-wrap .istatistikler-yoketmeler-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}

.istatistikler-yoketmeler-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}

.istatistikler-yoketmeler-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}

.istatistikler-yoketmeler-rank-icon {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
}

/* Şirket harfleri renkleri (resimdeki gibi: M kırmızı, E yeşil, V mor) */
.sirket-m {
    color: #e74c3c !important;
}

.sirket-e {
    color: #5dade2 !important; /* açık mavi */
}

.sirket-v {
    color: #2ecc71 !important; /* yeşil */
}

.istatistikler-yoketmeler-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

/* EN İYİ KLANLAR tablosu (soldan 3. buton) */
.istatistikler-klanlar-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}
.istatistikler-klanlar-wrap::-webkit-scrollbar {
    width: 8px;
}
.istatistikler-klanlar-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.istatistikler-klanlar-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}
.istatistikler-klanlar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}
.istatistikler-klanlar-table .col-rank {
    width: 36px;
    text-align: left;
}
.istatistikler-klanlar-table .col-name {
    min-width: 120px;
    text-align: left;
}
.istatistikler-klanlar-table .col-points {
    min-width: 80px;
    text-align: right;
    padding-right: 10px;
}
.istatistikler-klanlar-wrap .istatistikler-klanlar-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.istatistikler-klanlar-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}
.istatistikler-klanlar-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.istatistikler-klanlar-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}
.istatistikler-klanlar-table tbody td {
    padding: 6px 4px;
}
.istatistikler-klanlar-wrap .istatistikler-klanlar-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.istatistikler-klanlar-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}
.istatistikler-klanlar-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}
.istatistikler-klanlar-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

/* EN İYİ OYUNCULAR tablosu (soldan 4. buton) - resimdeki gibi #, İsim, Şirket, Rütbe, Puan */
.istatistikler-oyuncular-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}
.istatistikler-oyuncular-wrap::-webkit-scrollbar {
    width: 8px;
}
.istatistikler-oyuncular-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.istatistikler-oyuncular-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}
.istatistikler-oyuncular-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}
.istatistikler-oyuncular-table .col-rank {
    width: 32px;
    text-align: left;
}
.istatistikler-oyuncular-table .col-isim {
    min-width: 90px;
    text-align: left;
}
/* Şirket ve Rütbe sütunları %40 sola kaydırıldı; sağdaki Puan sütunu sabit */
.istatistikler-oyuncular-table .col-sirket {
    width: 40px;
    text-align: center;
    font-weight: bold;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-oyuncular-table .col-rutbe {
    width: 44px;
    text-align: center;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-oyuncular-table .col-puan {
    width: 80px;
    min-width: 80px;
    text-align: right;
    padding-right: 10px;
    padding-left: 34px; /* Şirket+Rütbe sola kaydığı için Puan içeriği aynı yerde kalsın */
    color: #fff;
    box-sizing: border-box;
}
.istatistikler-oyuncular-wrap .istatistikler-oyuncular-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.istatistikler-oyuncular-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}
.istatistikler-oyuncular-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.istatistikler-oyuncular-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}
.istatistikler-oyuncular-table tbody td {
    padding: 6px 4px;
}
.istatistikler-oyuncular-wrap .istatistikler-oyuncular-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.istatistikler-oyuncular-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}
.istatistikler-oyuncular-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}
.istatistikler-oyuncular-rank-icon {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
}
.istatistikler-oyuncular-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

/* EN İYİ ŞEREF SIRALAMASI tablosu (soldan 5. buton) - #, İsim, Şirket, Rütbe, Şeref */
.istatistikler-seref-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}
.istatistikler-seref-wrap::-webkit-scrollbar {
    width: 8px;
}
.istatistikler-seref-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.istatistikler-seref-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}
.istatistikler-seref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}
.istatistikler-seref-table .col-rank {
    width: 32px;
    text-align: left;
}
.istatistikler-seref-table .col-isim {
    min-width: 90px;
    text-align: left;
}
/* Şirket ve Rütbe sütunları %30 sola kaydırıldı; Şeref sütunu sabit */
.istatistikler-seref-table .col-sirket {
    width: 40px;
    text-align: center;
    font-weight: bold;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-seref-table .col-rutbe {
    width: 44px;
    text-align: center;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-seref-table .col-seref {
    width: 80px;
    min-width: 80px;
    text-align: right;
    padding-right: 10px;
    padding-left: 33px; /* Şirket+Rütbe sola kaydığı için Şeref içeriği aynı yerde kalsın */
    color: #fff;
    box-sizing: border-box;
}
.istatistikler-seref-wrap .istatistikler-seref-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.istatistikler-seref-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}
.istatistikler-seref-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.istatistikler-seref-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}
.istatistikler-seref-table tbody td {
    padding: 6px 4px;
}
.istatistikler-seref-wrap .istatistikler-seref-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.istatistikler-seref-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}
.istatistikler-seref-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}
.istatistikler-seref-rank-icon {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
}
.istatistikler-seref-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

/* EN İYİ TECRÜBE SIRALAMASI tablosu (soldan 6. buton) - #, İsim, Şirket, Rütbe, Puan (tecrübe) */
.istatistikler-tecrube-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}
.istatistikler-tecrube-wrap::-webkit-scrollbar {
    width: 8px;
}
.istatistikler-tecrube-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.istatistikler-tecrube-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}
.istatistikler-tecrube-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}
.istatistikler-tecrube-table .col-rank {
    width: 32px;
    text-align: left;
}
.istatistikler-tecrube-table .col-isim {
    min-width: 90px;
    text-align: left;
}
/* Şirket ve Rütbe sütunları %40 sola kaydırıldı; sağdaki Puan sütunu sabit */
.istatistikler-tecrube-table .col-sirket {
    width: 40px;
    text-align: center;
    font-weight: bold;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-tecrube-table .col-rutbe {
    width: 44px;
    text-align: center;
    transform: translateX(-40%);
    box-sizing: border-box;
}
.istatistikler-tecrube-table .col-puan {
    width: 80px;
    min-width: 80px;
    text-align: right;
    padding-right: 10px;
    padding-left: 34px; /* Şirket+Rütbe sola kaydığı için Puan içeriği aynı yerde kalsın */
    color: #fff;
    box-sizing: border-box;
}
.istatistikler-tecrube-wrap .istatistikler-tecrube-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.istatistikler-tecrube-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}
.istatistikler-tecrube-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.istatistikler-tecrube-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}
.istatistikler-tecrube-table tbody td {
    padding: 6px 4px;
}
.istatistikler-tecrube-wrap .istatistikler-tecrube-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.istatistikler-tecrube-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}
.istatistikler-tecrube-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}
.istatistikler-tecrube-rank-icon {
    max-height: 18px;
    width: auto;
    vertical-align: middle;
}
.istatistikler-tecrube-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

/* EN İYİ GALAXY KAPISI SIRALAMASI tablosu — #, İsim, alfa, beta, gama, delta, hades, etharnel, Toplam Kapı */
.istatistikler-galaxygate-wrap {
    max-height: 218px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}
.istatistikler-galaxygate-wrap::-webkit-scrollbar {
    width: 8px;
}
.istatistikler-galaxygate-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.istatistikler-galaxygate-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 4px;
}
.istatistikler-galaxygate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #b8d4e8;
}
.istatistikler-galaxygate-table .col-rank {
    width: 32px;
    text-align: left;
}
.istatistikler-galaxygate-table .col-isim {
    min-width: 90px;
    text-align: left;
}
/* alfa, beta, gama, delta: orta kısımda arada boşluk */
.istatistikler-galaxygate-table .col-alfa,
.istatistikler-galaxygate-table .col-beta,
.istatistikler-galaxygate-table .col-gama,
.istatistikler-galaxygate-table .col-delta,
.istatistikler-galaxygate-table .col-hades,
.istatistikler-galaxygate-table .col-etharnel {
    width: 42px;
    min-width: 42px;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    color: #b8d4e8;
    box-sizing: border-box;
}
.istatistikler-galaxygate-table .col-etharnel {
    min-width: 52px;
    width: 52px;
    font-size: 11px;
}
.istatistikler-galaxygate-table .col-kapi {
    width: 72px;
    min-width: 72px;
    text-align: right;
    padding-right: 10px;
    padding-left: 12px;
    color: #fff;
    font-weight: bold;
    box-sizing: border-box;
}
.istatistikler-galaxygate-wrap .istatistikler-galaxygate-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.istatistikler-galaxygate-table thead td {
    color: #ffd700;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.35);
    font-weight: bold;
}
.istatistikler-galaxygate-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.istatistikler-galaxygate-table tbody tr:nth-child(odd) {
    background: rgba(0, 255, 255, 0.04);
}
.istatistikler-galaxygate-table tbody td {
    padding: 6px 4px;
}
.istatistikler-galaxygate-wrap .istatistikler-galaxygate-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(8, 18, 38, 0.98);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.istatistikler-galaxygate-table tfoot tr {
    background: rgba(0, 150, 255, 0.28);
    border-top: 1px solid rgba(0, 180, 255, 0.3);
}
.istatistikler-galaxygate-table tfoot td {
    padding: 8px 4px;
    color: #fff;
}
.istatistikler-galaxygate-empty {
    text-align: center;
    color: #888;
    padding: 12px !important;
}

.online-count {
    color: #ccc;
    font-size: 11px;
    margin-bottom: 12px;
}

.online-players-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.online-player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
}

.online-player-item .player-icon {
    font-size: 13px;
}

.logbook-content,
.activities-content {
    color: #ccc;
    font-size: 11px;
    line-height: 1.6;
}

/* Mobil / tablet: Ana sayfa ölçeklendirilir (sabit scale - tüm tarayıcılarda çalışır) */
@media (max-width: 1024px), ((max-height: 520px) and (orientation: landscape)) {
    .main-menu-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 6px;
        touch-action: manipulation;
        /* padding 6+6 ile ölçek aynı kutu içinde kalsın; kaydırma oluşmasın */
        --cp-fit-x: calc(100vw - 8px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        --cp-fit-y: calc(var(--cp-vh-for-fit) - 8px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
    
    .control-panel-container {
        width: 1333px !important;
        min-width: 1333px;
        height: 900px !important;
        min-height: 900px;
        flex-direction: row !important;
        border-radius: 10px;
        flex-shrink: 0;
        transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        -webkit-transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        transform-origin: center center;
        -webkit-transform-origin: center center;
    }

    /* Kontrol Merkezi mobil: scale sonrası okunabilirlik (sadece ana menü overlay) */
    #mainMenuOverlay .nav-header h2 { font-size: 20px; }
    #mainMenuOverlay .nav-item { font-size: 15px; }
    #mainMenuOverlay .nav-logout { font-size: 15px; }
    #mainMenuOverlay .header-button { font-size: 13px; }
    #mainMenuOverlay .stat-line { font-size: 12px; }
    #mainMenuOverlay .player-id { font-size: 12px; }
    #mainMenuOverlay .bilgi-section-head { font-size: 15px; }
    #mainMenuOverlay .bilgi-section-head.small { font-size: 13px; }
    #mainMenuOverlay .bilgi-yildizlar-text { font-size: calc(14.5px * 1.15); letter-spacing: 1.5px; }
    #mainMenuOverlay .bilgi-headline { font-size: 24px; }
    #mainMenuOverlay .bilgi-tab { font-size: 12px; }
    #mainMenuOverlay .bilgi-online-title { font-size: 14px; }
    #mainMenuOverlay .bilgi-ranking-table { font-size: 13px; }
    #mainMenuOverlay .bilgi-license-line { font-size: 12px; }
    #mainMenuOverlay .bilgi-logbook-content { font-size: 12px; }
    #mainMenuOverlay .content-page { padding: 22px; }
    #mainMenuOverlay .player-info-section { gap: 18px; padding: 20px; }
    #mainMenuOverlay .avatar-circle { width: 100px; height: 100px; }
    #mainMenuOverlay .header-button-ship-icon { width: 38px; height: 38px; }

    /* Klan > Sirket: 768 yerine 1024 kurali calisan cihazlarda da gorseller dikeyde kisalsin */
    #page-klan .sirket-card-frame,
    #page-klan .sirket-option-card {
        min-height: 138px !important;
        padding: 14px 16px !important;
        gap: 6px !important;
    }

    #page-klan .sirket-option-logo-wrap {
        max-height: 56px !important;
    }

    #page-klan .sirket-option-logo-img,
    #page-klan .sirket-current-card .sirket-option-logo-img {
        max-height: 56px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    #page-klan .klan-kur-input,
    #page-klan .klan-kur-textarea {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape)) {
    .main-menu-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 8px;
        touch-action: manipulation;
        --cp-fit-x: calc(100vw - 8px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        --cp-fit-y: calc(var(--cp-vh-for-fit) - 8px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
    
    .control-panel-container {
        width: 1333px !important;
        min-width: 1333px;
        height: 900px !important;
        min-height: 900px;
        flex-direction: row !important;
        border-radius: 10px;
        flex-shrink: 0;
        transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        -webkit-transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        transform-origin: center center;
        -webkit-transform-origin: center center;
    }

    /* Dar ekranda bir tık daha büyük tip */
    #mainMenuOverlay .nav-header h2 { font-size: 21px; }
    #mainMenuOverlay .nav-item { font-size: 16px; }
    #mainMenuOverlay .header-button { font-size: 14px; }
    #mainMenuOverlay .stat-line { font-size: 13px; }
    #mainMenuOverlay .bilgi-headline { font-size: 25px; }
    #mainMenuOverlay .bilgi-ranking-table { font-size: 14px; }
    #mainMenuOverlay .bilgi-license-line,
    #mainMenuOverlay .bilgi-logbook-content { font-size: 13px; }
}

@media (max-width: 480px) {
    .control-panel-container {
        transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        -webkit-transform: scale(min(1, min(calc(var(--cp-fit-x) / 1333), calc(var(--cp-fit-y) / 900))));
        transform-origin: center center;
        -webkit-transform-origin: center center;
    }
}

/* Ana sayfa paneli içindeyken ekipman (Uzay Gemisi, Droîtler) masaüstü düzeninde kalsın, scale ile küçülsün */
@media (max-width: 1024px) {
    .control-panel-container .ship-customization-container {
        flex-direction: row !important;
    }
    
    .control-panel-container .ship-display-panel {
        width: 250px !important;
    }
    
    .control-panel-container .inventory-panel {
        width: 280px !important;
    }
}

/* Mobil için ana menü butonu konumu - küçült (0.4), yukarı ve biraz sola */
@media (max-width: 768px) {
    .main-menu-button {
        top: calc(65px + env(safe-area-inset-top));
        right: calc(28px + env(safe-area-inset-right));
        left: auto;
        bottom: auto;
        transform: scale(0.4);
        transform-origin: top right;
        padding: 0;
    }
    
    .menu-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .shop-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .shop-item {
        padding: 12px;
    }
    
    .shop-item-icon {
        font-size: 36px;
    }
}

/* Dükkan Overlay */
.shop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 130;
}

.shop-overlay.hidden {
    display: none;
}

.shop-content {
    min-width: 320px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.shop-container {
    margin: 20px 0;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.shop-item {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.shop-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.shop-item-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.shop-item-name {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 8px;
}

.shop-item-price {
    font-size: 14px;
    color: #ffff00;
    margin-bottom: 10px;
}

.shop-item-button {
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 36px;
}

.shop-item-button:hover {
    background: rgba(0, 255, 255, 0.4);
}

.shop-item-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.menu-button {
    padding: 15px 30px;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 50px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.menu-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

.menu-button:active {
    transform: scale(0.95);
}

/* Mobil için buton boyutları - ana sayfa butonu küçült (0.4), yukarı ve biraz sola */
@media (max-width: 768px) {
    .main-menu-button {
        top: calc(65px + env(safe-area-inset-top));
        right: calc(28px + env(safe-area-inset-right));
        left: auto;
        bottom: auto;
        transform: scale(0.4);
        transform-origin: top right;
        padding: 0;
    }
    
    .menu-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .shop-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .shop-item {
        padding: 12px;
    }
    
    .shop-item-icon {
        font-size: 36px;
    }
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 110;
}

.auth-overlay.hidden {
    display: none !important;
}

.auth-content {
    min-width: 320px;
    max-width: 980px;
}

.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.auth-center {
    width: min(420px, 100%);
}

.auth-topbar {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

.auth-topbar-left {
    justify-content: center;
    margin-bottom: 14px;
}

.auth-lang-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.25);
    color: #bffcff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.auth-lang-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.28);
}

.auth-lang-btn:active {
    transform: translateY(0px) scale(0.98);
}

.lang-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-overlay.hidden {
    display: none !important;
}

.lang-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.lang-modal {
    position: relative;
    width: min(520px, 92vw);
    max-height: min(82vh, 620px);
    background: rgba(15, 22, 34, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.22), 0 26px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Language modal: shrink to 60% size */
    transform: scale(0.6);
    transform-origin: center;
}

.lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(18, 30, 46, 0.95) 0%, rgba(12, 20, 32, 0.95) 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.25);
}

.lang-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #63f3ff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
}

.lang-header-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 255, 0.45);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.12);
    font-weight: 900;
    color: #d2feff;
}

.lang-close {
    width: 36px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #bffcff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.12s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.lang-close:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.lang-close:active {
    transform: translateY(0px) scale(0.98);
}

.lang-body {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
}

.lang-item {
    width: 100%;
    height: 64px;
    border-radius: 0px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: rgba(97, 161, 157, 0.36);
    color: #eaffff;
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: filter 0.12s ease, transform 0.12s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.lang-item:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.lang-item:active {
    transform: translateY(0px) scale(0.99);
}

.auth-download {
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-download-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.auth-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 36px;
    background: linear-gradient(180deg, #16d35a 0%, #0fa646 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #0b1a12;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.auth-download-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42), 0 0 14px rgba(22, 211, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-download-btn:active {
    transform: translateY(0px) scale(0.98);
    filter: brightness(0.98);
}

.auth-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 34px;
    height: 34px;
    margin-top: 8px;
    padding: 0 12px 0 8px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.auth-social-link svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.auth-social-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.auth-social-link:active {
    transform: translateY(0) scale(0.97);
}

.auth-social-facebook {
    background: #1877f2;
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.35);
}

.auth-social-discord {
    background: #5865f2;
    box-shadow: 0 6px 14px rgba(88, 101, 242, 0.35);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

/* Mobil portrait: indirme butonları üstte/alt alta (daha dar ekran) */
@media (max-width: 768px) and (orientation: portrait) {
    .auth-layout {
        flex-direction: column;
        gap: 12px;
    }

    .auth-download {
        width: auto;
        flex-direction: row;
        gap: 10px;
    }

    .auth-download-title {
        margin-right: 6px;
        white-space: nowrap;
    }
}

/* Mobil landscape: PC’deki gibi sol/sağ kalsın, biraz sıkıştır */
@media (max-width: 768px) and (orientation: landscape) {
    .overlay-content.auth-content {
        width: min(760px, 96vw);
    }

    .auth-layout {
        flex-direction: row;
        gap: 18px;
    }

    .auth-download {
        width: 140px;
    }

    .auth-download-btn {
        width: 96px;
        height: 34px;
        border-radius: 10px;
    }
}

.auth-tab {
    padding: 10px 20px;
    border: 1px solid #00ffff;
    background: transparent;
    color: #00ffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 44px; /* Mobilde dokunma için minimum yükseklik */
}

.auth-tab.active {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.auth-form.hidden {
    display: none;
}

.auth-form label {
    font-size: 14px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 44px; /* Mobilde dokunma için minimum yükseklik */
    font-size: 16px; /* iOS zoom'u engellemek için */
}

.auth-form input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.auth-submit {
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #00ffff, #0088ff);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 44px; /* Mobilde dokunma için minimum yükseklik */
}

.auth-submit:hover {
    transform: scale(1.02);
}

.auth-submit:active {
    transform: scale(0.98);
}

.auth-message {
    margin-top: 14px;
    min-height: 20px;
    font-size: 14px;
    color: #ffcc66;
    text-align: center;
}

/* Login sonrası yükleme penceresi - oyun arka planda hazırlanırken */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 115;
}

/* Sprite overlay: img/yldz/loadingScreen_texture.png orijinal boyutta, loading.jpg üzerinde */
.loading-screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    overflow: visible;
    color: #fff;
    font-family: Arial Black, Inter, sans-serif;
}

/* Sabit boyutlu sprite alanı; mobilde bu div scale edilir */
.loading-screen-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 986px;
    height: 650px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

.loading-screen .bgTopLeft {
    position: absolute;
    top: 10%;
    left: 0;
    width: 262px;
    height: 241px;
    background: url(img/yldz/loadingScreen_texture.png) no-repeat -4360px 0;
    background-size: auto;
}

.loading-screen .bgTopRight {
    position: absolute;
    top: 10%;
    right: 0;
    width: 257px;
    height: 241px;
    background: url(img/yldz/loadingScreen_texture.png) no-repeat -2180px 0;
    background-size: auto;
}

.loading-screen .bgBottomLeft {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 290px;
    height: 223px;
    background: url(img/yldz/loadingScreen_texture.png) no-repeat 0 -443px;
    background-size: auto;
}

.loading-screen .bgBottomRight {
    position: absolute;
    bottom: 10%;
    right: 0;
    width: 281px;
    height: 291px;
    background: url(img/yldz/loadingScreen_texture.png) no-repeat -6540px 0;
    background-size: auto;
}

.loading-screen .bgLoader {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 467px;
    height: 135px;
    background: url(img/yldz/loadingScreen_texture.png) no-repeat 0 0;
    background-size: auto;
}

/* ========== PC (769px ve üzeri): senin verdiğin fixed köşe yerleşimi ========== */
@media (min-width: 769px) {
    /* PC'de arka planı CSS'ten ver, img'yi gizle */
    #loadingOverlay .loading-image-wrap {
        width: 100vw;
        height: 100vh;
        display: block;
    }
    #loadingOverlay .loading-image {
        display: none !important;
    }

    #loadingOverlay .loading-screen {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50 !important;
        background: url(img/yldz/loading.jpg) center center / cover no-repeat !important;
        overflow: hidden !important;
        color: #fff;
        font-family: Arial Black, Inter, sans-serif;
    }

    /* inner wrapper PC'de etkisiz */
    #loadingOverlay .loading-screen-inner {
        position: static !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    #loadingOverlay .loading-screen .bgTopLeft {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 262px;
        height: 241px;
        background-image: url(img/yldz/loadingScreen_texture.png) !important;
        background-position: -4360px 0 !important;
        background-repeat: no-repeat !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    #loadingOverlay .loading-screen .bgTopRight {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 257px;
        height: 241px;
        background-image: url(img/yldz/loadingScreen_texture.png) !important;
        background-position: -2180px 0 !important;
        background-repeat: no-repeat !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    #loadingOverlay .loading-screen .bgBottomLeft {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 290px;
        height: 223px;
        background-image: url(img/yldz/loadingScreen_texture.png) !important;
        background-position: 0 -443px !important;
        background-repeat: no-repeat !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    #loadingOverlay .loading-screen .bgBottomRight {
        position: fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 281px;
        height: 291px;
        background-image: url(img/yldz/loadingScreen_texture.png) !important;
        background-position: -6540px 0 !important;
        background-repeat: no-repeat !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    #loadingOverlay .loading-screen .bgLoader {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 467px;
        height: 135px;
        background-image: url(img/yldz/loadingScreen_texture.png) !important;
        background-position: 0 0 !important;
        background-repeat: no-repeat !important;
        -webkit-transform: translateX(-50%) !important;
        transform: translateX(-50%) !important;
    }

    /* Yükleme kapsülü (Başla butonu) loading-screen'in üstünde görünsün – sadece PC */
    #loadingOverlay .loading-capsule-overlay {
        position: absolute !important;
        z-index: 60 !important;
        left: 0;
        right: 0;
        bottom: 35px;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    #loadingOverlay .loading-capsule-btn {
        width: 238px !important; /* %15 kısa: 280 * 0.85 */
    }
}

/* Mobil loading: sadece genişlik 768px ve altı */
@media (max-width: 768px) {
    #loadingOverlay .loading-screen-inner {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        -webkit-transform: none !important;
        transform: none !important;
        box-sizing: border-box;
    }
    #loadingOverlay .loading-screen {
        overflow: hidden;
    }
    #loadingOverlay .loading-screen .bgTopLeft {
        top: 0 !important;
        -webkit-transform: scale(0.38);
        transform: scale(0.38);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }
    #loadingOverlay .loading-screen .bgTopRight {
        top: 0 !important;
        -webkit-transform: scale(0.38);
        transform: scale(0.38);
        -webkit-transform-origin: top right;
        transform-origin: top right;
    }
    #loadingOverlay .loading-screen .bgBottomLeft {
        bottom: 0 !important;
        -webkit-transform: scale(0.38);
        transform: scale(0.38);
        -webkit-transform-origin: bottom left;
        transform-origin: bottom left;
    }
    #loadingOverlay .loading-screen .bgBottomRight {
        bottom: 0 !important;
        -webkit-transform: scale(0.38);
        transform: scale(0.38);
        -webkit-transform-origin: bottom right;
        transform-origin: bottom right;
    }
    #loadingOverlay .loading-screen .bgLoader {
        -webkit-transform: translateX(-50%) scale(0.38);
        transform: translateX(-50%) scale(0.38);
        -webkit-transform-origin: bottom center;
        transform-origin: bottom center;
    }
}

/* Kısa veya dar ekranda overlay viewport; PC’yi bozmamak için sadece overlay */
@media (max-width: 768px), (max-height: 768px) {
    .loading-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        min-height: 100dvh;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        box-sizing: border-box;
    }
}

/* Sadece dar ekran (mobil): loading alanı düzeni – geniş ekranda uygulanmaz, PC bozulmaz */
@media (max-width: 768px) {
    .loading-content {
        width: 100%;
        max-width: 100vw;
        height: 100%;
        min-height: 100%;
        padding: 12px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .loading-image-wrap {
        position: relative;
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 0;
        overflow: visible;
    }
    .loading-image {
        max-width: 100% !important;
        max-height: 60vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    #loadingOverlay .loading-capsule-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 90vw;
        margin-top: auto;
        padding: 12px 8px 8px;
        flex-shrink: 0;
        -webkit-transform: translateX(-6vw) !important;
        transform: translateX(-6vw) !important;
    }
    .loading-capsule-btn {
        width: 100%;
        max-width: 140px;
        height: 28px;
        margin: 0 auto;
    }
    .loading-basla-text {
        font-size: 12px !important;
    }
    .loading-yukleniyor-text {
        font-size: 11px !important;
    }
}

@media (max-width: 480px), (max-height: 600px) {
    #loadingOverlay .loading-screen .bgTopLeft { top: 0 !important; -webkit-transform: scale(0.35); transform: scale(0.35); -webkit-transform-origin: top left; transform-origin: top left; }
    #loadingOverlay .loading-screen .bgTopRight { top: 0 !important; -webkit-transform: scale(0.35); transform: scale(0.35); -webkit-transform-origin: top right; transform-origin: top right; }
    #loadingOverlay .loading-screen .bgBottomLeft { bottom: 0 !important; -webkit-transform: scale(0.35); transform: scale(0.35); -webkit-transform-origin: bottom left; transform-origin: bottom left; }
    #loadingOverlay .loading-screen .bgBottomRight { bottom: 0 !important; -webkit-transform: scale(0.35); transform: scale(0.35); -webkit-transform-origin: bottom right; transform-origin: bottom right; }
    #loadingOverlay .loading-screen .bgLoader { -webkit-transform: translateX(-50%) scale(0.35); transform: translateX(-50%) scale(0.35); -webkit-transform-origin: bottom center; transform-origin: bottom center; }
}
@media (max-width: 380px), (max-height: 500px) {
    #loadingOverlay .loading-screen .bgTopLeft { -webkit-transform: scale(0.32); transform: scale(0.32); }
    #loadingOverlay .loading-screen .bgTopRight { -webkit-transform: scale(0.32); transform: scale(0.32); }
    #loadingOverlay .loading-screen .bgBottomLeft { -webkit-transform: scale(0.32); transform: scale(0.32); }
    #loadingOverlay .loading-screen .bgBottomRight { -webkit-transform: scale(0.32); transform: scale(0.32); }
    #loadingOverlay .loading-screen .bgLoader { -webkit-transform: translateX(-50%) scale(0.32); transform: translateX(-50%) scale(0.32); }
}

/* Mobil yatay: yükleme resmi ekranı tam kaplasın, kenarda boşluk kalmasın */
@media (max-width: 768px) and (orientation: landscape),
       (max-height: 500px) and (orientation: landscape) {
    .loading-overlay {
        align-items: stretch;
        justify-content: center;
    }
    .loading-content {
        padding: 0;
        justify-content: stretch;
        align-items: stretch;
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .loading-image-wrap {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        display: block;
        width: 100%;
        position: relative;
        overflow: visible;
    }
    #loadingOverlay .loading-screen-inner {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        -webkit-transform: none !important;
        transform: none !important;
    }
    #loadingOverlay .loading-screen .bgTopLeft { top: 0 !important; -webkit-transform: scale(0.38); transform: scale(0.38); -webkit-transform-origin: top left; transform-origin: top left; }
    #loadingOverlay .loading-screen .bgTopRight { top: 0 !important; -webkit-transform: scale(0.38); transform: scale(0.38); -webkit-transform-origin: top right; transform-origin: top right; }
    #loadingOverlay .loading-screen .bgBottomLeft { bottom: 0 !important; -webkit-transform: scale(0.38); transform: scale(0.38); -webkit-transform-origin: bottom left; transform-origin: bottom left; }
    #loadingOverlay .loading-screen .bgBottomRight { bottom: 0 !important; -webkit-transform: scale(0.38); transform: scale(0.38); -webkit-transform-origin: bottom right; transform-origin: bottom right; }
    #loadingOverlay .loading-screen .bgLoader { -webkit-transform: translateX(-50%) scale(0.38); transform: translateX(-50%) scale(0.38); -webkit-transform-origin: bottom center; transform-origin: bottom center; }
    .loading-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center;
        z-index: 0;
    }
    .loading-capsule-overlay {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        right: auto !important;
        -webkit-transform: translateX(calc(-50% - 6vw)) !important;
        transform: translateX(calc(-50% - 6vw)) !important;
        max-width: 92vw;
        padding: 35px 6px 0 6px !important;
        flex-shrink: 0;
        margin: 0 !important;
        z-index: 1;
    }
    .loading-capsule-btn {
        max-width: 160px;
        height: 32px;
    }
    .auth-overlay {
        align-items: center;
        justify-content: center;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        overscroll-behavior: none;
        /* pan-y: giriş kutusu içinde yasak/çok satırlı mesaj kaydırılabilsin; none kaydırmayı öldürüyordu */
        touch-action: pan-y;
    }
    .auth-content,
    .overlay-content.auth-content {
        min-width: 0;
        max-width: 92vw;
        width: min(303px, 66vw); /* +%15 küçült */
        /* Daha fazla alan: çok satırlı yasak mesajı + auth-message alt satırı görünsün */
        max-height: calc((100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px) * 0.9);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 14px 16px 24px;
        box-sizing: border-box;
        background: rgba(10, 12, 18, 0.92);
        border: 1px solid rgba(0, 255, 255, 0.45);
        border-radius: 14px;
        box-shadow: 0 0 26px rgba(0, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.55);
    }

    /* Pencere boyutu aynı kalsın, içerik %30 küçülsün */
    .auth-content .auth-inner {
        transform: scale(0.7);
        transform-origin: top center;
        width: 100%;
        margin: 0;
    }
    .overlay-content.auth-content h1 {
        font-size: clamp(16px, 4vw, 22px);
        margin-bottom: 6px;
    }
    .overlay-content.auth-content p {
        font-size: 12px;
        margin: 2px 0 8px;
    }

    /* Mobil genel: default düzeni değiştirme; portrait/landscape özel bloklar aşağıda */
    .auth-tabs {
        margin: 10px 0;
        gap: 8px;
    }
    .auth-tab {
        padding: 8px 14px;
        min-height: 38px;
        font-size: 13px;
    }
    .auth-form {
        gap: 8px;
    }
    .auth-form label {
        font-size: 12px;
        gap: 4px;
    }
    .auth-form input {
        padding: 8px 10px;
        min-height: 38px;
        font-size: 16px;
    }
    .auth-submit {
        margin-top: 6px;
        padding: 10px 16px;
        min-height: 38px;
        font-size: 14px;
    }
    .auth-message {
        margin-top: 8px;
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 1.45;
        flex-shrink: 0;
    }
}

.loading-overlay:not(.hidden) {
    display: flex !important;
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    padding: 24px;
}

.loading-image-wrap {
    position: relative;
    display: inline-block;
}

.loading-image {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    display: block;
    vertical-align: middle;
}

/* Kapsül ve Başla resmin önünde (üstünde), sprite loading-screen'in de üzerinde */
.loading-capsule-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 140px;
    padding: 20px 16px;
    text-align: center;
    background: transparent;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

/* Tek buton: yükleme sırasında "Yükleniyor", dolunca "Başla" */
.loading-capsule-btn {
    display: block;
    width: 280px;
    height: 44px;
    margin: 0 auto;
    padding: 0;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(20, 30, 40, 0.95);
    overflow: hidden;
    position: relative;
    cursor: default;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loading-capsule-btn:disabled {
    cursor: default;
}

.loading-capsule-btn.ready {
    cursor: pointer;
}

.loading-capsule-btn.ready:hover,
.loading-capsule-btn.ready:active {
    transform: none;
}

/* Dolum katmanı: yükleme aşamasında sarımsı, dolunca yeşil - genişlik JS ile dinamik ayarlanır */
.loading-capsule-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #c9a227, #e6c547);
    border-radius: 999px;
    box-shadow: inset 0 0 12px rgba(255, 220, 100, 0.3);
    transition: width 0.15s ease-out;
}

.loading-capsule-fill.filling {
    /* Süre JS ile Başla açılışına göre dinamik ayarlanır */
}

/* Kapsül dolunca butonun içinde görünen "Başla" yazısı */
.loading-basla-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.loading-basla-text.hidden {
    display: none !important;
}

/* Yükleme sırasında buton içinde "Yükleniyor" */
.loading-yukleniyor-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #fffbf7;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.loading-capsule-btn.ready .loading-yukleniyor-text {
    display: none !important;
}

.loading-capsule-btn.ready .loading-basla-text {
    display: block;
}

/* Dolunca dolgu yeşil kalsın, Başla geldiğinde yeşil efekt fazladan yansın sönsün */
.loading-capsule-btn.ready .loading-capsule-fill {
    width: 100%;
    background: linear-gradient(90deg, #00aa44, #00dd66);
    animation: loading-green-blink 1s ease-in-out infinite;
}

@keyframes loading-green-blink {
    0%, 100% {
        box-shadow: 0 0 2px rgba(0, 221, 102, 0.2), 0 0 8px rgba(0, 255, 255, 0.05), inset 0 0 4px rgba(0, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 36px rgba(0, 221, 102, 1), 0 0 72px rgba(0, 255, 255, 1), inset 0 0 32px rgba(0, 255, 255, 0.8);
    }
}

.overlay-content {
    text-align: center;
    padding: 20px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 10px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    max-width: 50%;
    margin: 0 auto;
}

.overlay-content.auth-content {
    max-width: 980px;
    width: auto;
}

/* Auth ekranı: DarkOrbit tarzı koyu metal / neon oyun paneli */
.auth-overlay {
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35)),
        url("sayfa/bg.jpg") center center / cover no-repeat;
}

.auth-overlay::before,
.auth-overlay::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.auth-overlay::before {
    display: none;
}

.auth-overlay::after {
    display: none;
}

.overlay-content.auth-content {
    position: relative;
    z-index: 1;
    width: min(760px, 94vw);
    max-width: 760px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(121, 220, 255, 0.72);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(6, 10, 18, 0.42), rgba(3, 7, 14, 0.72)),
        radial-gradient(circle at 13% 0%, rgba(120, 239, 255, 0.34), transparent 24%),
        radial-gradient(circle at 78% 30%, rgba(255, 151, 47, 0.12), transparent 30%),
        url("img/extra/auth-space-bg.png") center center / cover no-repeat;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 32px rgba(0, 216, 255, 0.22);
    overflow: hidden;
}

.overlay-content.auth-content::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.34)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
    box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.42);
    pointer-events: none;
}

.overlay-content.auth-content::after {
    content: "";
    position: absolute;
    left: 42px;
    right: 42px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #77f7ff 18%, #fff 50%, #77f7ff 82%, transparent);
    box-shadow: 0 0 18px rgba(75, 242, 255, 0.85);
    pointer-events: none;
}

.auth-corner-logo {
    position: absolute;
    top: 22px;
    left: 34px;
    width: 118px;
    height: 82px;
    object-fit: contain;
    z-index: 2;
    filter:
        drop-shadow(0 0 10px rgba(99, 242, 255, 0.55))
        drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
    pointer-events: none;
}

.auth-corner-flag {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 122px;
    height: 82px;
    z-index: 2;
    perspective: 420px;
    pointer-events: none;
    filter:
        drop-shadow(0 0 12px rgba(255, 18, 18, 0.42))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.68));
}

.auth-flag-cloth {
    position: absolute;
    inset: 8px 4px 6px 8px;
    overflow: hidden;
    border-radius: 5px 12px 9px 5px;
    background:
        radial-gradient(circle at 28% 35%, rgba(255, 255, 255, 0.14), transparent 18%),
        linear-gradient(90deg, #7e0000 0%, #e40012 26%, #ff2034 53%, #b6000d 78%, #ff2e3d 100%);
    border: 1px solid rgba(255, 120, 120, 0.55);
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.18),
        inset 0 -10px 22px rgba(72, 0, 0, 0.42),
        0 0 18px rgba(255, 0, 0, 0.25);
    clip-path: polygon(0 4%, 23% 0, 52% 5%, 78% 1%, 100% 7%, 96% 96%, 72% 88%, 42% 91%, 18% 87%, 0 92%);
    transform-origin: left center;
    animation: authFlagWave 2.35s ease-in-out infinite;
}

.auth-flag-cloth::before {
    content: "";
    position: absolute;
    inset: -10% -18%;
    background:
        repeating-linear-gradient(
            100deg,
            rgba(255, 255, 255, 0.16) 0 7px,
            rgba(255, 255, 255, 0.02) 7px 20px,
            rgba(58, 0, 0, 0.18) 20px 34px
        );
    mix-blend-mode: soft-light;
    opacity: 0.9;
    animation: authFlagShimmer 2.35s ease-in-out infinite;
}

.auth-flag-cloth::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #d9f7ff, #627b86 44%, #12232d);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.45);
}

.auth-flag-crescent {
    position: absolute;
    left: 33px;
    top: 21px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.auth-flag-crescent::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e80013;
}

.auth-flag-star {
    position: absolute;
    left: 64px;
    top: 24px;
    color: #fff;
    font-size: 21px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
    transform: rotate(-12deg);
}

@keyframes authFlagWave {
    0%, 100% {
        transform: rotateY(-8deg) rotateZ(1deg) skewY(-1deg);
    }
    50% {
        transform: rotateY(13deg) rotateZ(-1deg) skewY(2deg);
    }
}

@keyframes authFlagShimmer {
    0%, 100% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(10px);
    }
}

.auth-layout {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(300px, 1fr) 128px;
    gap: 14px;
    align-items: center;
}

.auth-center {
    position: relative;
    width: 100%;
    padding: 4px 2px 2px;
}

.overlay-content.auth-content h1 {
    position: relative;
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 20px 8px;
    color: #ffb347;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 2.35vw, 35px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    background:
        linear-gradient(180deg,
            #fff4a8 0%,
            #ffd15b 18%,
            #b8521e 38%,
            #ff9a35 50%,
            #7b2a15 58%,
            #e46b25 76%,
            #ffd067 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(72, 28, 10, 0.96);
    text-shadow:
        0 1px 0 #fff0a5,
        0 2px 0 #5d1d0b,
        0 4px 0 rgba(29, 8, 3, 0.92),
        0 7px 10px rgba(0, 0, 0, 0.75),
        0 0 13px rgba(255, 116, 29, 0.5),
        0 0 24px rgba(255, 190, 57, 0.28);
    filter:
        drop-shadow(0 0 2px rgba(255, 238, 150, 0.42))
        drop-shadow(0 0 7px rgba(188, 65, 18, 0.36));
}

.overlay-content.auth-content h1::before,
.overlay-content.auth-content h1::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 1px;
    pointer-events: none;
}

.overlay-content.auth-content h1::before {
    top: -4px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(126, 45, 12, 0.25), #ffe483 50%, rgba(126, 45, 12, 0.25), transparent);
    box-shadow: 0 0 16px rgba(255, 156, 42, 0.55);
}

.overlay-content.auth-content h1::after {
    bottom: 0;
    height: 3px;
    background:
        linear-gradient(90deg, transparent, rgba(123, 44, 12, 0.3), #b94b17 14%, #ffdc74 48%, #fff0a3 52%, #b94b17 86%, rgba(123, 44, 12, 0.3), transparent);
    box-shadow: 0 0 12px rgba(255, 122, 28, 0.54);
}

.overlay-content.auth-content p {
    margin: 0 0 20px;
    color: rgba(223, 242, 255, 0.78);
    font-size: 12px;
    letter-spacing: 0.35px;
}

.auth-download {
    position: relative;
    width: auto;
    min-height: 0;
    padding: 14px 10px;
    border: 1px solid rgba(120, 178, 205, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(30, 39, 55, 0.62), rgba(5, 8, 15, 0.45)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.42), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.auth-download::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border-top: 1px solid rgba(108, 225, 255, 0.28);
    border-bottom: 1px solid rgba(20, 255, 120, 0.12);
    pointer-events: none;
}

.auth-download-title {
    color: #f2fbff;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(81, 210, 255, 0.28);
}

.auth-lang-btn,
.auth-tab {
    border-radius: 4px;
    border: 1px solid rgba(112, 230, 255, 0.82);
    background: linear-gradient(180deg, rgba(14, 28, 43, 0.9), rgba(2, 8, 16, 0.88));
    color: #d9fbff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 16px rgba(0, 205, 255, 0.12);
}

.auth-lang-btn:hover,
.auth-tab:hover {
    border-color: rgba(196, 251, 255, 0.95);
    box-shadow: inset 0 0 18px rgba(54, 234, 255, 0.13), 0 0 18px rgba(0, 205, 255, 0.3);
}

.auth-tabs {
    gap: 8px;
    margin: 18px 0 18px;
}

.auth-tab {
    min-width: 92px;
    height: 44px;
    padding: 0 20px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.auth-tab.active {
    background: linear-gradient(180deg, #ecffff 0%, #51f4ff 42%, #11a9e7 100%);
    color: #04121d;
    border-color: rgba(214, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(64, 238, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-form {
    gap: 14px;
}

.auth-form label {
    gap: 7px;
    color: #dbeaf2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15px;
}

.auth-form input {
    height: 48px;
    border-radius: 3px;
    border: 1px solid rgba(84, 205, 240, 0.72);
    background:
        linear-gradient(180deg, rgba(4, 9, 18, 0.96), rgba(0, 0, 0, 0.92)),
        rgba(0, 0, 0, 0.75);
    color: #f6feff;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.auth-form input::placeholder {
    color: rgba(220, 235, 244, 0.42);
}

.auth-form input:focus {
    border-color: #b6fbff;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.68), 0 0 18px rgba(62, 226, 255, 0.45);
}

.auth-submit,
.auth-download-btn {
    border-radius: 7px;
    border: 1px solid rgba(179, 255, 183, 0.62);
    background:
        linear-gradient(180deg, #9dff79 0%, #25c846 43%, #087b25 100%);
    color: #06140a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(47, 231, 91, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -5px 12px rgba(0, 66, 22, 0.35);
}

.auth-submit {
    height: 54px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.auth-submit:hover,
.auth-download-btn:hover {
    filter: brightness(1.08) saturate(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.42),
        0 0 26px rgba(55, 255, 106, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -5px 12px rgba(0, 66, 22, 0.32);
}

.auth-social-link {
    min-width: 104px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.auth-social-facebook {
    background: linear-gradient(180deg, #398cff, #1761d8);
}

.auth-social-discord {
    background: linear-gradient(180deg, #7a83ff, #4c56db);
}

.auth-message {
    color: #ffd879;
    text-shadow: 0 0 12px rgba(255, 183, 64, 0.25);
}

@media (max-width: 860px) {
    .overlay-content.auth-content {
        width: min(94vw, 760px);
        padding: 14px;
    }

    .auth-layout {
        grid-template-columns: 104px minmax(250px, 1fr) 104px;
        gap: 10px;
    }

    .auth-download {
        padding: 10px 8px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
    }

    .auth-center {
        order: 0;
    }

    .auth-download-btn {
        width: 88px;
        height: 34px;
    }

    .auth-social-link {
        min-width: 88px;
        height: 32px;
        padding: 0 9px 0 7px;
        font-size: 11px;
    }

    .auth-corner-logo {
        left: 24px;
        top: 18px;
        width: 100px;
        height: 70px;
    }

    .auth-corner-flag {
        right: 22px;
        top: 20px;
        width: 104px;
        height: 70px;
    }
}

@media (max-width: 560px) and (orientation: portrait) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-center {
        order: -1;
    }

    .auth-download {
        flex-direction: row;
    }

    .auth-corner-logo {
        display: none;
    }

    .auth-corner-flag {
        display: none;
    }
}

.overlay-content h1 {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.overlay-content p {
    font-size: 11px;
    margin: 5px 0;
    color: #ccc;
}

#startButton {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #00ffff, #0088ff);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

#startButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

#startButton:active {
    transform: scale(0.95);
}

/* Game Over Yeni Tasarım */
.game-over-header {
    margin-bottom: 15px;
}

.game-over-title {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    font-weight: bold;
}

.destroyer-info {
    margin: 10px 0;
}

.destroyer-label {
    font-size: 10px;
    color: #fff;
    margin-bottom: 2.5px;
}

.destroyer-name {
    font-size: 14px;
    color: #ffaa00;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.6);
    margin: 5px 0;
}

.repair-instruction {
    font-size: 10px;
    color: #fff;
    margin-top: 7.5px;
}

.repair-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.repair-option {
    width: 100px;
    height: 125px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffaa00;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    position: relative;
    overflow: hidden;
}

.repair-option:hover {
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    filter: brightness(1.06);
}

.repair-option:active {
    border-color: #ffe27a;
    box-shadow: 0 0 26px rgba(255, 200, 60, 0.65);
    filter: brightness(1.08);
}

.repair-icon {
    font-size: 30px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 170, 255, 0.8));
}

.repair-label {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 2.5px;
}

.repair-cost {
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 2.5px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    margin-top: 5px;
}

.vip-repair-text {
    text-align: center;
    color: #fff;
    font-size: 8px;
    margin: 10px 0 5px 0;
}

.vip-repair-button {
    width: 100%;
    max-width: 200px;
    padding: 7.5px 15px;
    font-size: 11px;
    font-weight: bold;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: 2px solid #00ff00;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-top: 5px;
}

.vip-repair-button:hover {
    background: linear-gradient(135deg, #00ff44, #00ff00);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    transform: scale(1.05);
}

.vip-repair-button:active {
    transform: scale(0.95);
}

/* Mobil için game over tasarımı */
@media (max-width: 768px) {
    .repair-options {
        flex-direction: column;
        align-items: center;
    }
    
    .repair-option {
        width: 150px;
        height: 200px;
    }
    
    .repair-icon {
        font-size: 40px;
    }
    
    .game-over-title {
        font-size: 28px;
    }
}

.radiation-warning {
    position: fixed;
    top: max(20px, env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10310;
    background: rgba(255, 0, 0, 0.9);
    border: 2px solid #ff0000;
    border-radius: 5px;
    padding: 10px 20px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    display: none;
    animation: pulse 1s infinite;
    box-sizing: border-box;
    max-width: min(92vw, 760px);
    pointer-events: none;
}

.radiation-warning.show {
    display: block;
}

.warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.warning-icon {
    font-size: 16px;
    animation: rotate 2s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}

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

/* Mobil için genel optimizasyonlar */
@media (max-width: 768px) {
    .overlay-content {
        padding: 20px;
        margin: 10px;
    }
    
    .overlay-content h1 {
        font-size: 32px;
    }
    
    .overlay-content p {
        font-size: 14px;
    }
    
    #startButton {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .auth-content {
        min-width: 280px;
        max-width: 90%;
    }

    /* Giriş + çok satırlı yasak mesajı: alt satır kesilmesin (mobil dikey/yatay) */
    .overlay-content.auth-content {
        max-height: min(94vh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        box-sizing: border-box;
    }

    .overlay-content.auth-content .auth-message {
        line-height: 1.45;
        margin-bottom: 6px;
    }
    
    .auth-form input {
        padding: 8px 10px;
        font-size: 16px; /* iOS zoom'u engellemek için */
    }
    
    .radiation-warning {
        padding: 8px 12px;
        font-size: 8px;
    }
    
    .warning-content {
        font-size: 9px;
        gap: 5px;
    }
    
    .warning-icon {
        font-size: 24px;
    }
}

/* Mobil/Desktop mesajları */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ========== Mobil dikey mod engeli: oyun sadece yatay (landscape) ========== */
.portrait-block-overlay {
    display: none;
    position: fixed;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.portrait-block-content {
    text-align: center;
    padding: 24px;
    max-width: 90vw;
}
.portrait-block-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}
.portrait-block-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}
.portrait-block-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}
.portrait-block-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    margin-bottom: 4px;
}
.portrait-block-btn {
    margin-top: 20px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.portrait-block-btn:active {
    transform: scale(0.98);
}
@media (max-width: 768px) and (orientation: portrait) {
    .portrait-block-overlay {
        display: flex !important;
    }
}
/* Yükseklik ile de kontrol (bazı cihazlarda orientation geç güncellenir) */
@media (max-height: 768px) and (orientation: portrait) {
    .portrait-block-overlay {
        display: flex !important;
    }
}
@media (max-width: 480px) {
    .ui-container {
        top: 5px;
        left: 5px;
        gap: 4px;
    }
    
    .ui-panel {
        min-width: 110px;
        max-width: 140px;
        padding: 5px;
        font-size: 9px;
        border-radius: 5px;
    }
    .ui-panel.grup-panel {
        min-width: unset !important;
        max-width: none !important;
        width: max-content !important;
        padding: 0 !important;
    }
    .ui-panel.booster-hud-panel {
        width: 158px !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .stats {
        gap: 1.44px; /* %28 azaltıldı: 2px * 0.72 */
    }
    
    .stat-item {
        font-size: 8px;
        gap: 3px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .stats-panel .stats {
        padding: 3px 4px 3px 8px;
        padding-left: calc(10px + 2%);
        padding-top: calc(4px + 2%);
        padding-bottom: calc(4px + 2%);
    }
    
    .stats-panel .stat-label {
        min-width: 28px !important;
        font-size: 5px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 5px !important;
        gap: 2px !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 5px !important;
        margin-left: auto !important;
        text-align: right !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .health-label,
    .shield-label {
        font-size: 8px;
        min-width: 30px;
    }
    
    .health-label img.health-icon,
    .shield-label img.shield-icon {
        max-height: 16px;
    }
    
    .health-bar,
    .shield-bar {
        min-width: 60px;
        height: 10px;
    }
    
    #health-text {
        font-size: 8px;
        min-width: 35px;
    }
    
    #shield-text {
        font-size: 8px;
        min-width: 35px;
        color: #0066cc;
    }
    
    .health-bar-container,
    .shield-bar-container {
        margin-top: 4px;
        gap: 4px;
    }
    
    .bars-panel {
        min-width: 120px;
        padding: 5px 6px 5px 5px;
    }
    
    .minimap-container {
        width: 132px;
        height: 66px;
        top: 50%;
        bottom: auto;
        right: max(2px, env(safe-area-inset-right));
        left: auto;
        transform: translateY(calc(-50% - 18px));
    }
}

/* Android için ekstra küçük ekranlar */
@media (max-width: 360px) {
    .ui-panel {
        min-width: 100px;
        max-width: 130px;
        padding: 4px;
        font-size: 8px;
    }
    .ui-panel.grup-panel {
        min-width: unset !important;
        max-width: none !important;
        width: max-content !important;
        padding: 0 !important;
    }
    
    .stat-item {
        font-size: 7px;
    }
    
    .stat-label {
        font-size: 7px;
    }
    
    .stats-panel .stats {
        padding: 2px 4px 2px 6px;
        padding-left: calc(8px + 2%);
        padding-top: calc(3px + 2%);
        padding-bottom: calc(3px + 2%);
    }
    
    .stats-panel .stat-label {
        min-width: 26px !important;
        font-size: 4.5px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-panel .stat-item {
        font-size: 4.5px !important;
        gap: 2px !important;
    }
    
    .stats-panel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 4.5px !important;
        margin-left: auto !important;
        text-align: right !important;
    }
    
    .stats-panel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .health-label,
    .shield-label {
        font-size: 7px;
        min-width: 25px;
    }
    
    .health-label img.health-icon,
    .shield-label img.shield-icon {
        max-height: 14px;
    }
    
    .health-bar,
    .shield-bar {
        min-width: 50px;
        height: 9px;
    }
    
    #health-text {
        font-size: 7px;
        min-width: 30px;
    }
    
    #shield-text {
        font-size: 7px;
        min-width: 30px;
        color: #0066cc;
    }
    
    .bars-panel {
        min-width: 110px;
        padding: 4px 5px 4px 4px;
    }
}

/* Bağlantı Kopması — sadece Yeniden bağlan butonu */
.disconnect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    /* exit-countdown (10350) altında kalsın; yine kontrol merkezinin üstünde */
    z-index: 10340;
    backdrop-filter: blur(5px);
}

.disconnect-overlay.hidden {
    display: none;
}

.disconnect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.disconnect-reason-title {
    margin: 0;
    padding: 0 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.98);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.disconnect-reason {
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    user-select: text;
}

.disconnect-reason-technical {
    max-width: 520px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(200, 220, 255, 0.75);
    text-align: center;
    font-family: ui-monospace, Consolas, monospace;
    user-select: text;
}

.reconnect-image {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.reconnect-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

.reconnect-button:hover {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.4);
}

.reconnect-button:active {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
}

@media (max-width: 768px) {
    .reconnect-button {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Satın Alma Modal */
.purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10190; /* Kontrol Merkezi (125) ve game-ui-layer (5) üstü; uyarı modal (10200) altı */
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.purchase-modal-overlay.hidden {
    display: none;
}

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

.purchase-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 10px;
    border: 1px solid #00aaff;
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.5), 
                inset 0 0 15px rgba(0, 170, 255, 0.1);
    max-width: 250px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.purchase-modal-header {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 170, 255, 0.1) 100%);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.purchase-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(0, 170, 255, 0.8));
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.purchase-title {
    font-size: 13px;
    color: #00aaff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
    flex: 1;
    margin: 0;
}

.purchase-close {
    background: transparent;
    border: none;
    color: #00aaff;
    font-size: 18px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.purchase-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.purchase-modal-body {
    padding: 12px;
    color: #ffffff;
}

.purchase-question {
    font-size: 10px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.purchase-ship-info {
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.purchase-ship-info strong {
    color: #00aaff;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.6);
}

.purchase-price-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    padding: 6px;
    text-align: center;
    font-size: 9px;
    color: #ffd700;
}

.purchase-price-info .price-label {
    color: #ccc;
    font-size: 8px;
    margin-right: 4px;
}

.purchase-price-info .price-value {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.purchase-modal-footer {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.purchase-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.purchase-btn-cancel {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #fff;
    border: 1px solid #888;
}

.purchase-btn-cancel:hover {
    background: linear-gradient(135deg, #777 0%, #555 100%);
    border-color: #aaa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.purchase-btn-cancel:active {
    transform: translateY(0);
}

.purchase-btn-confirm {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    color: #fff;
    border: 1px solid #00ccff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.purchase-btn-confirm:hover {
    background: linear-gradient(135deg, #00ccff 0%, #00aaff 100%);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 170, 255, 0.6);
}

.purchase-btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.4);
}

@media (max-width: 768px) {
    .purchase-modal {
        max-width: 95%;
        border-radius: 8px;
    }
    
    .purchase-modal-header {
        padding: 8px 10px;
    }
    
    .purchase-icon {
        font-size: 14px;
    }
    
    .purchase-title {
        font-size: 10px;
    }
    
    .purchase-close {
        font-size: 16px;
        width: 15px;
        height: 15px;
    }
    
    .purchase-modal-body {
        padding: 10px;
    }
    
    .purchase-question {
        font-size: 9px;
    }
    
    .purchase-ship-info {
        padding: 6px;
    }
    
    .purchase-ship-info strong {
        font-size: 10px;
    }
    
    .purchase-price-info {
        padding: 5px;
        font-size: 8px;
    }
    
    .purchase-modal-footer {
        padding: 8px 10px;
        flex-direction: row;
    }
    
    .purchase-btn {
        width: auto;
        padding: 5px 12px;
        font-size: 8px;
    }
}

/* Satın Alma Başarı Modalı */
.purchase-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10190;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.purchase-success-overlay.hidden {
    display: none;
}

.purchase-success-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 10px;
    border: 1px solid #00aaff;
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.5), 
                inset 0 0 15px rgba(0, 170, 255, 0.1);
    max-width: 250px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.purchase-success-header {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 170, 255, 0.1) 100%);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.purchase-success-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(0, 170, 255, 0.8));
}

.purchase-success-title {
    font-size: 13px;
    color: #00aaff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
    flex: 1;
    margin: 0;
}

.purchase-success-close {
    background: transparent;
    border: none;
    color: #00aaff;
    font-size: 18px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.purchase-success-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.purchase-success-body {
    padding: 12px;
    color: #ffffff;
}

.purchase-success-message {
    font-size: 10px;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.purchase-success-footer {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 170, 255, 0.3);
    display: flex;
    justify-content: center;
}

.purchase-success-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    color: #fff;
    border: 1px solid #00ccff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.purchase-success-btn:hover {
    background: linear-gradient(135deg, #00ccff 0%, #00aaff 100%);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 170, 255, 0.6);
}

.purchase-success-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.4);
}

@media (max-width: 768px) {
    .purchase-success-modal {
        max-width: 95%;
        border-radius: 8px;
    }
    
    .purchase-success-header {
        padding: 8px 10px;
    }
    
    .purchase-success-icon {
        font-size: 14px;
    }
    
    .purchase-success-title {
        font-size: 10px;
    }
    
    .purchase-success-close {
        font-size: 16px;
        width: 15px;
        height: 15px;
    }
    
    .purchase-success-body {
        padding: 10px;
    }
    
    .purchase-success-message {
        font-size: 9px;
    }
    
    .purchase-success-footer {
        padding: 8px 10px;
    }
    
    .purchase-success-btn {
        padding: 5px 12px;
        font-size: 8px;
    }
}

/* Hata/Uyarı Modalı */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Satın alma / başarı overlay (10190) ve #game-container üstünde — DOM’da body sonunda olmalı */
    z-index: 10300;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.alert-modal-overlay.hidden {
    display: none;
}

.alert-modal {
    /* Koyu metalik panel + ince desen */
    background:
        /* metalik fırça çizgileri */
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035) 0px,
            rgba(255, 255, 255, 0.035) 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 6px
        ),
        /* hafif vignette */
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%),
        /* ana koyu zemin */
        linear-gradient(180deg, #0f141c 0%, #0b0f16 100%);
    border-radius: 4px;
    border: 1px solid rgba(170, 190, 210, 0.22);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55);
    /* Mevcut kutudan %15 daha küçük */
    width: min(265px, 92vw);
    animation: modalSlideIn 0.18s ease-out;
    overflow: hidden;
    position: relative;
}

.alert-modal-header {
    height: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.alert-icon {
    width: 54px;
    height: 54px;
    margin: 8px auto 5px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, #ff3b2f 0%, #b80f12 100%);
    clip-path: polygon(50% 6%, 96% 92%, 4% 92%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65));
    position: relative;
}
.alert-icon::after {
    content: "!";
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.75);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.alert-icon.alert-icon-success {
    width: 66px;
    height: 58px;
    margin: 8px auto 6px;
    border: 2px solid #c89618;
    border-radius: 2px;
    clip-path: polygon(24% 4%, 76% 4%, 97% 50%, 76% 96%, 24% 96%, 3% 50%);
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #1f9c32 0%, #0a5b1f 100%);
    box-shadow:
        0 0 0 1px rgba(12, 28, 20, 0.75) inset,
        0 0 0 3px rgba(8, 18, 30, 0.65),
        0 8px 16px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.alert-icon.alert-icon-success::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 47%;
    width: 17px;
    height: 29px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-right: 5px solid #ffc93a;
    border-bottom: 5px solid #ffc93a;
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(76, 48, 0, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.35);
}

.alert-title {
    display: none;
}

.alert-close {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(240, 245, 255, 0.92);
    font-size: 16px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    line-height: 1;
    padding: 0;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.alert-modal-body {
    padding: 8px 14px 5px;
    color: #e7eef7;
}

.alert-message {
    font-size: 13px;
    color: rgba(236, 244, 255, 0.95);
    text-align: center;
    line-height: 1.35;
    margin: 6px 0 10px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alert-modal-footer {
    padding: 10px 14px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.18) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
}

.alert-btn {
    min-width: 160px;
    height: 34px;
    padding: 0 18px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    text-transform: uppercase;
    color: rgba(10, 18, 10, 0.95);
    border: 1px solid rgba(40, 110, 18, 0.95);
    background: linear-gradient(180deg, #a9ee62 0%, #4ea81d 55%, #2e7d14 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.alert-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.alert-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

/* Klan üye düzenleme modalı */
.klan-uyeler-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.klan-uyeler-modal-overlay.hidden {
    display: none;
}
.klan-uyeler-modal {
    background: linear-gradient(180deg, #252d38 0%, #1a1e26 100%);
    border: 1px solid rgba(120, 140, 180, 0.5);
    border-radius: 8px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.klan-uyeler-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(30, 36, 48, 0.9);
    border-bottom: 1px solid rgba(70, 80, 95, 0.6);
    border-radius: 8px 8px 0 0;
}
.klan-uyeler-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #e0e4ec;
}
.klan-uyeler-modal-close {
    background: none;
    border: none;
    color: #a0a8b8;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.klan-uyeler-modal-close:hover {
    color: #fff;
}
.klan-uyeler-modal-body {
    padding: 16px;
}
.klan-uyeler-modal-member-bar {
    position: relative;
    background: rgba(40, 46, 56, 0.9);
    border: 1px solid rgba(70, 80, 95, 0.5);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.klan-uyeler-modal-member-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 66%;
    background: linear-gradient(90deg, rgba(60, 70, 85, 0.9) 0%, rgba(180, 140, 60, 0.35) 100%);
    border-radius: 3px 0 0 3px;
    pointer-events: none;
}
.klan-uyeler-modal-member-name {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: #d0d4d8;
}
.klan-uyeler-modal-row {
    margin-bottom: 12px;
}
.klan-uyeler-modal-label {
    display: block;
    font-size: 12px;
    color: #a0a8b8;
    margin-bottom: 6px;
}
.klan-uyeler-modal-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    color: #e0e4ec;
    background: rgba(28, 32, 40, 0.9);
    border: 1px solid rgba(90, 100, 120, 0.5);
    border-radius: 4px;
    cursor: pointer;
}
.klan-uyeler-modal-check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #b0b8c8;
}
.klan-uyeler-modal-check {
    width: 18px;
    height: 18px;
    accent-color: #c08040;
}
.klan-uyeler-modal-check-label {
    user-select: none;
}
.klan-uyeler-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid rgba(70, 80, 95, 0.5);
    background: rgba(30, 36, 48, 0.5);
    border-radius: 0 0 8px 8px;
}
.klan-uyeler-modal-btn {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.klan-uyeler-modal-ok {
    background: linear-gradient(180deg, #28c728 0%, #1ea01e 100%);
    color: #fff;
    border: 1px solid rgba(80, 200, 80, 0.7);
}
.klan-uyeler-modal-ok:hover {
    background: linear-gradient(180deg, #34e034 0%, #28c728 100%);
    border-color: rgba(100, 255, 100, 0.8);
}
.klan-uyeler-modal-cancel {
    background: linear-gradient(180deg, #e03535 0%, #c02828 100%);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.7);
}
.klan-uyeler-modal-cancel:hover {
    background: linear-gradient(180deg, #f04848 0%, #e03535 100%);
    border-color: rgba(255, 100, 100, 0.9);
}

/* Vergi oranı modalı – koyu metalik tema */
.vergi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.vergi-modal-overlay.hidden {
    display: none;
}
.vergi-modal {
    background: linear-gradient(180deg, #2a2e36 0%, #1c2028 50%, #161a20 100%);
    border: 2px solid rgba(60, 68, 80, 0.9);
    border-radius: 6px;
    min-width: 360px;
    max-width: 92vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.vergi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, #22262e 0%, #1a1e26 100%);
    border-bottom: 1px solid rgba(50, 58, 70, 0.8);
}
.vergi-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.vergi-modal-close {
    background: none;
    border: none;
    color: #9098a8;
    font-size: 22px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s;
}
.vergi-modal-close:hover {
    color: #fff;
}
.vergi-modal-info {
    padding: 16px 18px;
    background: rgba(28, 32, 42, 0.7);
    border-bottom: 1px solid rgba(50, 58, 70, 0.5);
    font-size: 13px;
    color: #e0e4ec;
    line-height: 1.45;
}
.vergi-modal-body {
    padding: 18px;
}
.vergi-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.vergi-modal-label {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}
.vergi-modal-select {
    min-width: 100px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: #e0e4ec;
    background: rgba(20, 24, 32, 0.95);
    border: 1px solid rgba(80, 90, 110, 0.6);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239098a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.vergi-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 14px 18px;
    border-top: 1px solid rgba(50, 58, 70, 0.7);
    background: linear-gradient(180deg, #1e222a 0%, #181c24 100%);
}
.vergi-modal-btn {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    border: 1px solid rgba(80, 90, 110, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    background: linear-gradient(180deg, #3a3e48 0%, #2a2e38 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.vergi-modal-btn:hover {
    background: linear-gradient(180deg, #444854 0%, #343842 100%);
    border-color: rgba(100, 110, 130, 0.6);
}
.vergi-modal-ok {
    background: linear-gradient(180deg, #28c728 0%, #1ea01e 100%);
    border-color: rgba(80, 200, 80, 0.7);
    color: #fff;
}
.vergi-modal-ok:hover {
    background: linear-gradient(180deg, #34e034 0%, #28c728 100%);
    border-color: rgba(100, 255, 100, 0.8);
}
.vergi-modal-cancel {
    background: linear-gradient(180deg, #e03535 0%, #c02828 100%);
    border-color: rgba(255, 80, 80, 0.7);
    color: #fff;
}
.vergi-modal-cancel:hover {
    background: linear-gradient(180deg, #f04848 0%, #e03535 100%);
    border-color: rgba(255, 100, 100, 0.9);
    color: #fff;
}

/* Klan bilgileri düzenleme modalı – koyu dokulu arka plan, yumruk dekoru */
.klan-bilgi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.klan-bilgi-modal-overlay.hidden {
    display: none;
}
.klan-bilgi-modal {
    position: relative;
    background: linear-gradient(145deg, #252a32 0%, #1c2028 40%, #161a20 100%);
    border: 2px solid rgba(50, 58, 70, 0.9);
    border-radius: 6px;
    min-width: 420px;
    max-width: 92vw;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(145deg, #252a32 0%, #1c2028 40%, #161a20 100%);
}
/* Hafif yumruk dekoru – sağ alt tarafta büyük saydam şekil */
.klan-bilgi-modal::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -15%;
    width: 75%;
    height: 90%;
    background: radial-gradient(ellipse 60% 70% at 70% 60%, rgba(80, 70, 60, 0.18) 0%, transparent 55%);
    pointer-events: none;
}
.klan-bilgi-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, #22262e 0%, #1a1e26 100%);
    border-bottom: 1px solid rgba(50, 58, 70, 0.8);
}
.klan-bilgi-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 1;
    text-align: center;
}
.klan-bilgi-modal-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 34, 42, 0.95);
    border: 1px solid rgba(60, 68, 80, 0.8);
    color: #9098a8;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    transition: color 0.2s, border-color 0.2s;
}
.klan-bilgi-modal-close:hover {
    color: #fff;
    border-color: rgba(90, 100, 120, 0.8);
}
.klan-bilgi-modal-body {
    position: relative;
    padding: 20px 18px;
}
.klan-bilgi-modal-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.klan-bilgi-modal-row:last-of-type {
    margin-bottom: 0;
}
.klan-bilgi-modal-label {
    flex: 0 0 140px;
    font-size: 13px;
    color: #e0e4ec;
    font-weight: 500;
}
.klan-bilgi-modal-input,
.klan-bilgi-modal-select {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
    background: rgba(28, 32, 42, 0.95);
    border: 1px solid rgba(70, 80, 95, 0.6);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.klan-bilgi-modal-input::placeholder {
    color: #808898;
}
.klan-bilgi-modal-input-short {
    max-width: 120px;
}
.klan-bilgi-modal-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}
.klan-bilgi-modal-footer {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid rgba(50, 58, 70, 0.7);
    background: linear-gradient(180deg, #1e222a 0%, #181c24 100%);
}
.klan-bilgi-modal-btn {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    border: 1px solid rgba(80, 90, 110, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    background: linear-gradient(180deg, #3a3e48 0%, #2a2e38 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.klan-bilgi-modal-btn:hover {
    background: linear-gradient(180deg, #444854 0%, #343842 100%);
    border-color: rgba(100, 110, 130, 0.6);
}
.klan-bilgi-modal-tamam {
    margin-right: auto;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    color: #fff !important;
}
.klan-bilgi-modal-tamam:hover {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%) !important;
    border-color: rgba(74, 222, 128, 0.9) !important;
}
.klan-bilgi-modal-kapat {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    color: #fff !important;
}
.klan-bilgi-modal-kapat:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
    border-color: rgba(248, 113, 113, 0.9) !important;
}

/* Klan logosu yükleme modalı */
.klan-logo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10180; /* mainMenuOverlay (125) üstü; satın alma (10190) altı */
}
.klan-logo-modal-overlay.hidden {
    display: none;
}
.klan-logo-modal {
    background: linear-gradient(145deg, #252a32 0%, #1c2028 45%, #161a20 100%);
    border: 2px solid rgba(50, 58, 70, 0.9);
    border-radius: 6px;
    min-width: 220px;
    max-width: 23vw;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(145deg, #252a32 0%, #1c2028 45%, #161a20 100%);
}
.klan-logo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, #22262e 0%, #1a1e26 100%);
    border-bottom: 1px solid rgba(50, 58, 70, 0.8);
}
.klan-logo-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.klan-logo-modal-close {
    background: rgba(30, 34, 42, 0.95);
    border: 1px solid rgba(60, 68, 80, 0.8);
    color: #9098a8;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
}
.klan-logo-modal-close:hover {
    color: #fff;
    border-color: rgba(90, 100, 120, 0.8);
}
.klan-logo-modal-body {
    padding: 20px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}
.klan-logo-modal-preview-wrap {
    flex: 0 0 auto;
}
.klan-logo-modal-preview {
    width: 88px;
    height: 88px;
    border: 2px solid rgba(60, 68, 80, 0.9);
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1e26 0%, #14181e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.klan-logo-modal-preview-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 55% at 50% 55%, rgba(120, 110, 100, 0.25) 0%, transparent 55%),
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(40, 44, 52, 0.5) 8px, rgba(40, 44, 52, 0.5) 10px),
        linear-gradient(145deg, #1a1e26 0%, #14181e 100%);
    pointer-events: none;
}
.klan-logo-modal-preview-placeholder::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 36px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(180, 170, 160, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 4px 0 rgba(100, 90, 80, 0.2);
}
.klan-logo-modal-preview.has-image .klan-logo-modal-preview-placeholder {
    display: none;
}
.klan-logo-modal-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: none;
}
.klan-logo-modal-preview.has-image .klan-logo-modal-preview-img {
    display: block;
}
.klan-logo-modal-rules {
    flex: 1;
    min-width: 0;
}
.klan-logo-modal-intro {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #e0e4ec;
    line-height: 1.45;
}
.klan-logo-modal-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #b0b8c8;
    line-height: 1.7;
}
.klan-logo-modal-file-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.klan-logo-modal-dosya-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #3a3e48 0%, #2a2e38 100%);
    border: 1px solid rgba(70, 80, 95, 0.7);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.klan-logo-modal-dosya-btn:hover {
    background: linear-gradient(180deg, #444854 0%, #343842 100%);
    border-color: rgba(90, 100, 120, 0.7);
}
.klan-logo-modal-filename {
    font-size: 12px;
    color: #9098a8;
}
.klan-logo-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid rgba(50, 58, 70, 0.7);
    background: linear-gradient(180deg, #1e222a 0%, #181c24 100%);
}
.klan-logo-modal-btn {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    background-size: 8px 8px;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.klan-logo-modal-kaldir {
    margin-right: auto;
    background-color: #4a4e58;
    border-color: rgba(70, 80, 95, 0.8);
    color: #e0e4ec;
}
.klan-logo-modal-kaldir:hover {
    background-color: #5a5e68;
    border-color: rgba(90, 100, 120, 0.8);
}
.klan-logo-modal-tamam {
    background-color: #c9a227;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.12) 2px, rgba(255, 255, 255, 0.12) 4px);
    border-color: rgba(201, 162, 39, 0.8);
    color: #1a1a1a;
}
.klan-logo-modal-tamam:hover {
    background-color: #d4af37;
    border-color: rgba(212, 175, 55, 0.9);
    color: #1a1a1a;
}
.klan-logo-modal-kapat {
    background-color: #a82a2a;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px);
    border-color: rgba(168, 42, 42, 0.8);
}
.klan-logo-modal-kapat:hover {
    background-color: #c23030;
    border-color: rgba(194, 48, 48, 0.9);
}

@media (max-width: 768px) {
    .alert-modal {
        max-width: 95%;
        border-radius: 8px;
        /* Mobilde de mevcut boyuttan %15 küçük */
        width: min(225px, 90vw);
    }
    
    .alert-modal-header {
        padding: 8px 10px;
    }
    
    .alert-icon {
        font-size: 14px;
    }
    
    .alert-title {
        font-size: 10px;
    }
    
    .alert-close {
        font-size: 16px;
        width: 15px;
        height: 15px;
    }
    
    .alert-modal-body {
        padding: 10px;
    }
    
    .alert-message {
        font-size: 9px;
    }
    
    .alert-modal-footer {
        padding: 8px 10px;
    }
    
    .alert-btn {
        padding: 5px 12px;
        font-size: 8px;
    }
}

/* Market Sayfası Stilleri */
.market-container {
    display: flex;
    height: 100%;
    gap: 12px;
    padding: 0;
}

/* Sol Panel: Kategoriler */
.market-categories {
    width: 160px;
    background: rgba(0, 10, 20, 0.8);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    padding: 14px 0;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2%; /* alt alta %2 mesafe */
}

.category-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 16px 10px calc(16px + 10%); /* metin %10 sağa */
    color: #fff;
    cursor: pointer;
    transition: color 0.2s, filter 0.2s;
    font-size: 11.5px;
    font-weight: bold;
    background: url('img/clanlogos/buton.gif') no-repeat left center;
    background-size: auto !important;
    border: none;
}

.category-item img {
    display: none;
}

.category-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
    filter: brightness(1.1);
}

.category-item.active {
    background-image: url('img/clanlogos/buton1.gif');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto !important;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
}

.category-q {
    color: #ff0000;
    font-size: 10.5px;
    font-weight: bold;
}

/* Orta Panel: Gemi Listesi */
.market-items-grid {
    flex: 1;
    background: rgba(0, 10, 20, 0.6);
    padding: 12px;
    overflow-y: auto;
}

#marketShipsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
}

.market-ship-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 2.5px;
    padding: 4.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.market-ship-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 1px 4.5px rgba(0, 255, 255, 0.2);
}

.market-ship-item.selected {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

.market-ship-name {
    color: #fff;
    font-size: 4.8px;
    font-weight: bold;
    margin-bottom: 3px;
}

/* Gemiler kategorisi için gemi adlarını %10 büyüt */
.market-ship-name-ships {
    font-size: 5.28px;
}

.market-ship-image {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    font-size: 14.5px;
}

.market-extra-item .market-ship-image,
.market-droid-item .market-ship-image {
    overflow: hidden;
}
.market-extra-item .market-ship-image img,
.market-droid-item .market-ship-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* PC için görsel boyutunu %60 büyüt (%40 + %20) */
@media (min-width: 769px) {
    #marketShipsList {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Kartları genişlet */
        gap: 12px; /* Görseller arası boşluğu artır */
    }
    
    .market-ship-image {
        height: 110px; /* Görsellerin tamamen görünmesi için yüksekliği artır */
        overflow: visible; /* Kırpmayı kaldır */
        box-sizing: border-box;
        position: relative;
        width: 100%;
        min-height: 110px; /* Minimum yükseklik */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    .market-ship-image img {
        width: 165% !important; /* %160 + %5 = %165 (yatay %5 genişletme) */
        height: auto !important; /* Oranı koru */
        max-width: 165% !important;
        max-height: 105px !important; /* Container içinde kalması için */
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Ekstralar / droidler (geniş PNG): genel %165 img kuralını geçersizle — çerçeveyi taşırmasın */
    .market-extra-item .market-ship-image img,
    .market-droid-item .market-ship-image img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain;
    }

    .market-ship-item {
        overflow: visible; /* Kırpmayı kaldır */
        padding: 12px; /* Padding'i artır */
        box-sizing: border-box;
        min-width: 90px; /* Minimum genişlik */
        min-height: auto; /* Yüksekliği içeriğe göre ayarla */
    }
    
    .market-ship-name {
        font-size: 9.6px !important;
        margin-bottom: 6px;
    }
    
    /* Gemiler kategorisi için gemi adlarını %10 büyüt (PC) */
    .market-ship-name-ships {
        font-size: 10.56px !important;
    }
    
    .market-ship-price {
        font-size: 10px !important;
        margin-top: 6px;
    }
    
    /* Silah ve jeneratör SVG görselleri için büyütme */
    .market-ship-image .weapon-svg-small {
        width: 165% !important; /* %160 + %5 = %165 (yatay %5 genişletme) */
        height: 35.2px !important; /* 22px * 1.6 = 35.2px (%60 büyütme) */
        max-width: 165% !important;
        max-height: 35.2px !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative;
        left: 52%; /* Biraz sağa kaydır */
        transform: translateX(-50%);
    }
}

.ship-svg {
    width: 100%;
    height: 100%;
}

.ship-svg-small {
    max-width: 36px;
    max-height: 36px;
}

.ship-svg-large {
    max-width: 100px;
    max-height: 100px;
}

.ship-svg-hangar {
    max-width: 70px;
    max-height: 70px;
}

.ship-svg-preview {
    max-width: 120px;
    max-height: 120px;
}

/* Extra SVG stilleri */
.extra-svg {
    width: 100%;
    height: 100%;
}

.extra-svg-small {
    max-width: 36px;
    max-height: 36px;
}

.extra-svg-large {
    max-width: 120px;
    max-height: 120px;
}

.droid-svg {
    width: 100%;
    height: 100%;
}

.droid-svg-small {
    max-width: 36px;
    max-height: 36px;
}

.droid-svg-large {
    max-width: 120px;
    max-height: 120px;
}

.market-ship-price {
    color: #00ffff;
    font-size: 4px;
    font-weight: bold;
}

/* Silah kartları */
.market-weapon-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 2.5px;
    padding: 4.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.market-weapon-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 1px 4.5px rgba(0, 255, 255, 0.2);
}

.market-weapon-item.selected {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

/* Ekstralar seçiminde sarı border */
.market-extra-item.selected {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

/* Jeneratör seçiminde sarı border (silahlarla aynı) */
.market-generator-item.selected {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

.market-weapon-name {
    color: #fff;
    font-size: 4px;
    font-weight: bold;
    margin-bottom: 3px;
}

.market-weapon-image,
.weapon-details-image {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    position: relative;
}

.weapon-barrel {
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, #6f7c8c, #cfd6df);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(120, 200, 255, 0.4);
}

.weapon-core {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #8bd3ff 0%, #2b6a9e 70%);
    box-shadow: 0 0 8px rgba(90, 200, 255, 0.6);
}

/* Market silah SVG */
.weapon-svg {
    display: block;
}

.weapon-svg-small {
    width: 70%;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(90, 200, 255, 0.4));
}

.weapon-svg-large {
    width: 75%;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(90, 200, 255, 0.5));
}

/* Market silah görseli */
.weapon-preview {
    position: relative;
    width: 75%;
    height: 22px;
}

.weapon-preview.small {
    height: 16px;
}

.weapon-preview.large {
    height: 28px;
    width: 70%;
}

.weapon-preview .weapon-body {
    position: absolute;
    left: 10%;
    right: 12%;
    top: 50%;
    height: 6px;
    transform: none;
    background: linear-gradient(90deg, #5b6674 0%, #c7ced8 45%, #9aa6b3 100%);
    border-radius: 3px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.6), 0 0 6px rgba(120, 200, 255, 0.35);
}

.weapon-preview.small .weapon-body {
    height: 4px;
}

.weapon-preview.large .weapon-body {
    height: 8px;
}

.weapon-preview .weapon-core {
    position: absolute;
    left: 45%;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #7fd0ff 0%, #2b6a9e 70%);
    box-shadow: 0 0 8px rgba(90, 200, 255, 0.6);
}

.weapon-preview.small .weapon-core {
    width: 7px;
    height: 7px;
}

.weapon-preview.large .weapon-core {
    width: 14px;
    height: 14px;
}

.weapon-preview .weapon-rear {
    position: absolute;
    left: 4%;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-20vh);
    background: linear-gradient(180deg, #3d4650 0%, #7b8794 100%);
    border-radius: 2px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.weapon-preview.small .weapon-rear {
    width: 7px;
    height: 7px;
}

.weapon-preview.large .weapon-rear {
    width: 12px;
    height: 12px;
}

.weapon-preview .weapon-muzzle {
    position: absolute;
    right: 2%;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #9aa6b3 0%, #e4e9ef 100%);
    border-radius: 2px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4), 0 0 6px rgba(180, 220, 255, 0.4);
}

.weapon-preview.small .weapon-muzzle {
    width: 8px;
    height: 8px;
}

.weapon-preview.large .weapon-muzzle {
    width: 14px;
    height: 14px;
}

.market-weapon-price {
    color: #00ffff;
    font-size: 4px;
    font-weight: bold;
}

.weapon-details-title {
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 6px;
}

.weapon-details-subtitle {
    color: #00ffff;
    font-size: 7px;
    font-weight: bold;
    margin-bottom: 9px;
}

.weapon-details-price {
    color: #00ffff;
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 8px;
}

.weapon-details-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 7px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.weapon-details-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.weapon-stat-item {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 3px;
    padding: 6px;
    flex: 1;
    text-align: center;
}

.weapon-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 6px;
    margin-bottom: 2px;
}

.weapon-stat-value {
    color: #fff;
    font-size: 8px;
    font-weight: bold;
}

.weapon-buy-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.weapon-buy-price {
    color: #00ffff;
    font-size: 7px;
    font-weight: bold;
}

.weapon-buy-button {
    padding: 6px 10px;
    font-size: 7px;
    border: none;
    border-radius: 3px;
    background: linear-gradient(135deg, #00c853 0%, #00a63f 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weapon-buy-button:hover {
    background: linear-gradient(135deg, #00a63f 0%, #008c36 100%);
}

.weapon-buy-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

/* Sağ Panel: Gemi Detayları */
.market-details {
    width: 210px;
    background: rgba(0, 10, 20, 0.8);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    padding: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.ship-details-content {
    color: #fff;
}

.ship-details-placeholder {
    text-align: center;
    padding: 24px 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ship-details-title {
    font-size: 15.4px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #fff;
}

.ship-details-subtitle {
    font-size: 8.8px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.ship-details-image {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    font-size: 48px;
}

.ship-details-price {
    font-size: 12.1px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 12px;
    text-align: center;
}

.ship-details-description {
    background: rgba(0, 0, 0, 0.3);
    padding: 9px;
    border-radius: 3px;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.ship-details-stats {
    margin-bottom: 12px;
}

.ship-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 9px;
}

.ship-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.ship-stat-value {
    color: #fff;
    font-weight: bold;
}

.ship-buy-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.ship-buy-price {
    text-align: center;
    font-size: 10px;
    color: #00ffff;
    margin-bottom: 9px;
    font-weight: bold;
}

.ship-buy-button,
button.ship-buy-button,
.market-details .ship-buy-button {
    width: 100%;
    padding: 9px;
    background-color: #00ff00 !important;
    background: #00ff00 !important;
    border: none !important;
    border-radius: 5px;
    color: #000000 !important;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6), 0 4px 12px rgba(0, 255, 0, 0.4) !important;
    position: relative;
}

.ship-buy-button:hover {
    background: #00ff00 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 6px 15px rgba(0, 255, 0, 0.5) !important;
}

.ship-buy-button:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.5), 0 2px 8px rgba(0, 255, 0, 0.3);
}

.ship-buy-button:disabled {
    background: rgba(100, 100, 100, 0.5);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* Market: Mobilde de masaüstü düzeni korunur (ana sayfa scale ile küçültüldüğü için) */
/* Eski mobil column layout kaldırıldı - market her zaman yan yana (kategoriler | liste | detay) */

/* Market (Kontrol Merkezi, mobil/tablet): ~%20 daha büyük içerik + miktar satırı; PC min-width 769 ayrı */
@media (max-width: 1024px), ((max-height: 520px) and (orientation: landscape)) {
    #mainMenuOverlay #page-market .market-container {
        gap: 22px;
    }
    #mainMenuOverlay #page-market .market-categories {
        padding: 22px 12px;
        gap: 12px;
        border-right-width: 2px;
        border-right-color: rgba(0, 255, 255, 0.35);
    }
    #mainMenuOverlay #page-market .market-items-grid {
        padding: 19px 16px;
        border-radius: 8px;
    }
    /* Sağ açıklama: mobilde 243×1.05 */
    #mainMenuOverlay #page-market .market-details {
        width: 255px;
        min-width: 255px;
        max-width: 255px;
        flex-shrink: 0;
        padding: 16px 14px;
        border-left-width: 2px;
        border-left-color: rgba(0, 255, 255, 0.35);
    }
    #mainMenuOverlay #page-market .category-item {
        font-size: 17px;
        padding: 14px 16px 14px calc(16px + 8%);
    }
    #mainMenuOverlay #page-market .category-item img {
        width: 23px !important;
        height: 23px !important;
    }
    #mainMenuOverlay #page-market .category-q {
        font-size: 16px;
    }
    #mainMenuOverlay #page-market #marketShipsList {
        grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
        gap: 14px;
    }
    #mainMenuOverlay #page-market .market-ship-item,
    #mainMenuOverlay #page-market .market-weapon-item,
    #mainMenuOverlay #page-market .market-generator-item,
    #mainMenuOverlay #page-market .market-extra-item,
    #mainMenuOverlay #page-market .market-droid-item,
    #mainMenuOverlay #page-market .market-ammo-item,
    #mainMenuOverlay #page-market .market-destek-item {
        padding: 13px 12px;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.1), 0 3px 10px rgba(0, 0, 0, 0.38);
    }
    #mainMenuOverlay #page-market .market-ship-image,
    #mainMenuOverlay #page-market .market-weapon-image,
    #mainMenuOverlay #page-market .weapon-details-image {
        height: 70px;
        min-height: 70px;
        border-radius: 5px;
        font-size: 26px;
    }
    #mainMenuOverlay #page-market .market-ship-image img {
        max-height: 65px;
        width: auto;
        object-fit: contain;
    }
    #mainMenuOverlay #page-market .market-destek-item .market-ship-image img {
        transform: scale(0.9);
        transform-origin: center center;
    }
    #mainMenuOverlay #page-market .market-ship-image .ship-svg-small {
        max-width: 62px;
        max-height: 62px;
    }
    #mainMenuOverlay #page-market .market-extra-item .market-ship-image .extra-svg-small,
    #mainMenuOverlay #page-market .market-droid-item .market-ship-image .droid-svg-small {
        max-width: 62px;
        max-height: 62px;
    }
    #mainMenuOverlay #page-market .market-ship-name {
        font-size: 11px !important;
        margin-top: 5px;
    }
    #mainMenuOverlay #page-market .market-ship-name-ships {
        font-size: 12px !important;
    }
    #mainMenuOverlay #page-market .market-ship-price {
        font-size: 10px !important;
        margin-top: 5px;
    }
    #mainMenuOverlay #page-market .market-weapon-name {
        font-size: 10px;
        margin-top: 3px;
    }
    #mainMenuOverlay #page-market .market-weapon-price {
        font-size: 10px;
        margin-top: 5px;
    }
    #mainMenuOverlay #page-market .weapon-svg-small {
        height: 38px;
        width: 90%;
    }
    #mainMenuOverlay #page-market .ship-details-placeholder,
    #mainMenuOverlay #page-market .ship-details-placeholder p {
        font-size: 17px;
        padding: 10px 0;
    }
    #mainMenuOverlay #page-market .ship-details-title {
        font-size: 23px;
        margin-bottom: 8px;
    }
    #mainMenuOverlay #page-market .ship-details-subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }
    #mainMenuOverlay #page-market .ship-details-image {
        height: 168px;
        font-size: 67px;
        border-radius: 9px;
        border: 2px solid rgba(0, 255, 255, 0.22);
    }
    #mainMenuOverlay #page-market .ship-details-price {
        font-size: 18px;
        margin-bottom: 14px;
    }
    #mainMenuOverlay #page-market .ship-details-description {
        font-size: 17px;
        line-height: 1.55;
        padding: 14px;
        border-radius: 7px;
        border: 1px solid rgba(0, 255, 255, 0.22);
        margin-bottom: 14px;
    }
    #mainMenuOverlay #page-market .ship-stat-item {
        font-size: 14px;
        padding: 7px 0;
    }
    #mainMenuOverlay #page-market .ship-buy-price {
        font-size: 16px;
    }
    #mainMenuOverlay #page-market .ship-buy-button,
    #mainMenuOverlay #page-market .market-details .ship-buy-button {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 9px;
    }
    #mainMenuOverlay #page-market .weapon-details-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    #mainMenuOverlay #page-market .weapon-details-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    #mainMenuOverlay #page-market .weapon-details-price {
        font-size: 14px;
        margin-bottom: 12px;
    }
    #mainMenuOverlay #page-market .weapon-details-description {
        font-size: 13px;
        line-height: 1.5;
        padding: 12px;
        border-radius: 7px;
    }
    #mainMenuOverlay #page-market .weapon-stat-label {
        font-size: 11px;
    }
    #mainMenuOverlay #page-market .weapon-stat-value {
        font-size: 13px;
    }
    #mainMenuOverlay #page-market .weapon-stat-item {
        padding: 10px 8px;
    }
    #mainMenuOverlay #page-market .weapon-buy-price {
        font-size: 13px;
    }
    #mainMenuOverlay #page-market .weapon-buy-button {
        font-size: 13px;
        padding: 11px 16px;
        border-radius: 7px;
    }

    /* JS inline küçük bırakılan miktar alanı: silah / jeneratör / cephane (+ preset + toplam + “Adet”) */
    #mainMenuOverlay #page-market #marketShipDetails input[type="number"] {
        font-size: 12px !important;
        padding: 10px 8px !important;
        min-height: 42px !important;
        border-width: 2px !important;
        border-radius: 6px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails div[style*="margin-top: 12px"] > div[style*="font-size: 8px"] {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails div[style*="display: flex"][style*="gap: 4px"] > button {
        font-size: 11px !important;
        padding: 9px 6px !important;
        min-height: 36px !important;
        border-width: 2px !important;
        border-radius: 6px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails div[style*="align-items: center"][style*="gap: 6px"] > button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 20px !important;
        padding: 0 !important;
        border-width: 2px !important;
        border-radius: 6px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails [id*="TotalPrice"] {
        font-size: 12px !important;
        padding: 10px !important;
        border-radius: 6px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails [id*="TotalPrice"] + div[style*="font-size: 8px"] {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails .ship-buy-section + div[style*="text-align: center"] {
        font-size: 13px !important;
        margin-top: 10px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails div[style*="font-size: 20px"][style*="color: #ff8800"] {
        font-size: 24px !important;
    }
    #mainMenuOverlay #page-market #marketShipDetails div[style*="text-align: center"][style*="font-size: 7px"] {
        font-size: 9px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 768px) {
    /* Klanım sekmeleri (BİLGİ / ÜYELER / YÖNETİM / DİPLOMASİ / ŞİRKET): mobilde tüm içerik ~%10 büyük; masaüstü aynı kalır */
    #klanMyPanel.klan-my-panel {
        zoom: 1.1;
    }

    /* Klan yok: KATIL / KUR / ŞİRKET — mobilde aynı ~%10 */
    #klanNoClanPanel.klan-list-panel {
        zoom: 1.1;
    }

    /* Klan > Sirket (mobil): icerik dikeyde kisaltilsin, alt tasma azalsin */
    #page-klan .sirket-detay-bar,
    #page-klan .sirket-degistir-bar {
        padding: 8px 12px;
        font-size: 13px;
    }

    #page-klan .sirket-detay-content {
        padding: 12px 14px;
    }

    #page-klan .sirket-stats-panel {
        padding: 10px 14px;
        gap: 12px 18px;
    }

    #page-klan .sirket-options {
        padding: 14px 12px;
        gap: 12px 14px;
    }

    #page-klan .sirket-card-frame,
    #page-klan .sirket-option-card {
        width: 160px;
        min-height: 138px;
        padding: 14px 16px;
        gap: 6px;
    }

    /* Sirket sayfasi gorselleri: mobilde dikey boyu kisalt */
    #page-klan .sirket-option-logo-wrap {
        max-height: 56px;
    }

    #page-klan .sirket-option-logo-img {
        max-height: 56px;
        width: auto;
        object-fit: contain;
    }

    #page-klan .sirket-current-card .sirket-option-logo-img {
        max-height: 56px;
        width: auto;
        object-fit: contain;
    }

    #page-klan .sirket-current-name-full {
        font-size: 15px;
    }

    #page-klan .sirket-degistir-center {
        min-width: 160px;
        max-width: 220px;
        padding: 0 8px;
        gap: 6px;
    }

    #page-klan .sirket-degistir-panel .sirket-degistir-text {
        font-size: 12px;
        line-height: 1.35;
    }

    #page-klan .sirket-degistir-panel .sirket-degistir-cost {
        font-size: 13px;
    }

    /* Klan > Sirket: dikeyde taşmayı engelle (panel alanına sığdır, içeride scroll yap) */
    #page-klan {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    #page-klan.active {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    #page-klan .klan-tab-pane {
        min-height: 0;
    }

    /* Sirket tab'ı: yüksekliği kısıtla, content taşarsa burada scroll olsun */
    #page-klan .klan-sirket-main {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
    }

    #page-klan .sirket-page-wrap {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
    }
}

/* Ekipman Sayfası Stilleri */
.equipment-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Üst Tab Menü */
.equipment-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 10, 20, 0.6);
    padding: 0 20px;
}

.equipment-tab {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.equipment-tab:hover {
    color: #fff;
    background: rgba(0, 255, 255, 0.05);
}

.equipment-tab.active {
    color: #fff;
    border-bottom-color: #ff0000;
}

/* Ana İçerik */
.equipment-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Konfigürasyon şeridi: yalnızca UZAY GEMİSİ / DROİTLER sekmelerinde */
.equipment-config-bar-strip {
    display: none;
    width: 100%;
    margin-bottom: 14px;
}

.equipment-config-bar-strip.equipment-config-bar-strip--visible {
    display: block;
}

.equipment-config-bar-strip .ship-config-bar {
    margin: 0;
    border-radius: 4px;
}

.equipment-tab-content {
    display: none;
}

.equipment-tab-content.active {
    display: block;
}

.equipment-section-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Hangarlar Grid */
.hangars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(119px, 1fr));
    gap: 12px;
}

.hangar-card {
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hangar-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 9px rgba(0, 255, 255, 0.2);
}

.hangar-card.active {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.hangar-card-image {
    width: 100%;
    height: 90px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    font-size: 36px;
}

.hangar-card-name {
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 6px;
}

.hangar-card-status {
    color: #00ffff;
    font-size: 7px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Yeni Hangar Satın Alma Kartı */
.hangar-card.buy-hangar {
    border-style: dashed;
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(0, 10, 20, 0.4);
}

.hangar-card.buy-hangar:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.05);
}

.hangar-buy-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 9px;
    font-size: 24px;
    color: #00ffff;
}

.hangar-buy-text {
    color: #00ffff;
    font-size: 7px;
    font-weight: bold;
}

/* Ekipman — Cephaneler (envanter özeti) */
.cephaneler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(119px, 1fr));
    gap: 12px;
}

.cephaneler-card {
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cephaneler-card:hover {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 2px 9px rgba(0, 255, 255, 0.12);
}

.cephaneler-card-caption {
    color: rgba(255, 255, 255, 0.95);
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.25;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cephaneler-card-image {
    width: 100%;
    height: 90px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    overflow: hidden;
}

.cephaneler-card-image .ammo-slot-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PLT2021/3030: getAmmoQuickSlotContent’te arka plan transparent; x1–x4 vb. ile aynı gri-mor panel */
.cephaneler-card-image .ammo-slot-icon[style*="transparent"] {
    background: rgba(40, 40, 60, 0.8) !important;
}

/* Roket (PLT) ikonları getAmmoQuickSlotContent’te %100; lazer/tekniklerle aynı görsel ölçü; birim ölçü %15 küçültülmüş */
/* Global .ammo-slot-icon img { transform: ... !important } ile çakışmaması için cephaneler’de transform açıkça verilir */
.cephaneler-card-image .ammo-slot-icon img {
    width: calc(70% * 0.85) !important;
    height: calc(70% * 0.85) !important;
    object-fit: contain;
    transform: translateY(0px) scale(1) !important;
    transform-origin: center center;
}

.cephaneler-card-qty {
    color: #00ffff;
    font-size: 11px;
    font-weight: bold;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .equipment-tabs {
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .equipment-tab {
        padding: 10px 15px;
        font-size: 10px;
    }
    
    .hangars-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 9px;
    }
    
    .hangar-card {
        padding: 9px;
    }
    
    .hangar-card-image {
        height: 71px;
        font-size: 29px;
    }

    .cephaneler-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 9px;
    }

    .cephaneler-card {
        padding: 9px;
    }
}

/*
 * Cephaneler ikon büyütme: sadece yatay mod (telefon döndürülmüş; genişlik çoğu zaman >768px olduğu için max-width ile yakalanmıyordu).
 * Dikey mod: bu blok çalışmaz, scale(1) kalır (yukarıdaki temel cephaneler kuralları).
 */
@media (orientation: landscape) and (max-height: 500px) {
    .cephaneler-card-image {
        height: 140px;
        overflow: hidden;
    }

    .cephaneler-card-image .ammo-slot-icon img {
        width: calc(70% * 0.85) !important;
        height: calc(70% * 0.85) !important;
        transform: translateY(0px) scale(3) !important;
        transform-origin: center center !important;
    }
}

/* Mobil: mermi adları ~3× (8→24px), miktar rakamları ~2× (11→22px) — dar ekran veya yatay telefon */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .cephaneler-card-caption {
        font-size: 24px;
        min-height: 60px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .cephaneler-card-qty {
        font-size: 22px;
    }
}

/* UZAY GEMİSİ Tab Stilleri */
.ship-customization-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* Sol Panel: Gemi Görseli */
.ship-display-panel {
    width: 250px;
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Gemi görseli + toplu sökme butonları birlikte %10 yukarı */
.ship-display-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-10%);
}

.ship-preview {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
}

.ship-display-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.ship-strip-btn {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(0, 220, 255, 0.35);
    background: linear-gradient(180deg, rgba(28, 48, 68, 0.95) 0%, rgba(10, 22, 38, 0.98) 100%);
    color: #e6f4ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 2px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ship-strip-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.55);
    background: linear-gradient(180deg, rgba(36, 62, 88, 0.98) 0%, rgba(14, 32, 52, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 200, 255, 0.18);
}

.ship-strip-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ship-strip-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.65);
    outline-offset: 2px;
}

.ship-strip-btn--lasers {
    border-color: rgba(255, 130, 90, 0.42);
    background: linear-gradient(180deg, rgba(52, 28, 28, 0.92) 0%, rgba(28, 12, 14, 0.96) 100%);
}

.ship-strip-btn--lasers:hover {
    border-color: rgba(255, 160, 110, 0.65);
    background: linear-gradient(180deg, rgba(68, 36, 32, 0.96) 0%, rgba(38, 16, 18, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 200, 180, 0.08),
        0 4px 16px rgba(255, 80, 40, 0.12);
}

.ship-strip-btn--generators {
    border-color: rgba(80, 200, 255, 0.4);
    background: linear-gradient(180deg, rgba(22, 42, 58, 0.95) 0%, rgba(8, 24, 42, 0.98) 100%);
}

.ship-strip-btn--generators:hover {
    border-color: rgba(120, 220, 255, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 4px 16px rgba(60, 180, 255, 0.2);
}

.ship-strip-btn--extras {
    border-color: rgba(180, 120, 255, 0.42);
    background: linear-gradient(180deg, rgba(38, 28, 58, 0.95) 0%, rgba(20, 14, 40, 0.98) 100%);
}

.ship-strip-btn--extras:hover {
    border-color: rgba(200, 150, 255, 0.65);
    background: linear-gradient(180deg, rgba(48, 34, 72, 0.98) 0%, rgba(26, 18, 48, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(230, 200, 255, 0.07),
        0 4px 16px rgba(150, 80, 255, 0.14);
}

.ship-preview-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ship-select-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0096ff 0%, #0066cc 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ship-select-button:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
}

/* Orta Panel: Ekipman Slotları */
.equipment-slots-panel {
    flex: 1;
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Uzay gemisi — üst konfigürasyon çubuğu (DarkOrbit tarzı) */
.ship-config-bar {
    flex-shrink: 0;
    margin: -8px -8px 16px -8px;
    padding: 0 4px 10px 4px;
    border-top: 1px solid rgba(200, 210, 220, 0.45);
    background: linear-gradient(180deg, #323840 0%, #1a1e24 55%, #12151a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 4px 4px 0 0;
}

.ship-config-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 4px;
    min-height: 36px;
}

.ship-config-tab {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    color: #c5c9d0;
    background: linear-gradient(180deg, #252a31 0%, #181c22 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.5);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 36%,
        90% 50%,
        100% 64%,
        100% 100%,
        0% 100%,
        0% 64%,
        10% 50%,
        0% 36%
    );
    -webkit-tap-highlight-color: transparent;
    transition: color 0.12s ease, box-shadow 0.12s ease;
}

.ship-config-tab:hover:not(.active) {
    color: #e8eaee;
}

.ship-config-tab.active {
    color: #ffea00;
    text-shadow: 0 0 6px rgba(255, 234, 0, 0.35);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.ship-config-tab:focus-visible {
    outline: 2px solid rgba(0, 200, 255, 0.6);
    outline-offset: 2px;
}

/* Dişli + başlık: sadece görsel, dokunulmaz */
.ship-config-gear-static {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8aeb8;
    background: linear-gradient(180deg, #252a31 0%, #181c22 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -2px 4px rgba(0, 0, 0, 0.45);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 36%,
        90% 50%,
        100% 64%,
        100% 100%,
        0% 100%,
        0% 64%,
        10% 50%,
        0% 36%
    );
    pointer-events: none;
    user-select: none;
}

.ship-config-gear-svg {
    width: 18px;
    height: 18px;
    display: block;
    overflow: visible;
}

.ship-config-title-static {
    margin-left: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #7a8088;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.equipment-category {
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ffff00;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.category-icon {
    color: #ffff00;
    font-size: 12px;
}

.category-title {
    text-transform: uppercase;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.droid-subslots-grid {
    margin-top: 4px;
    grid-template-columns: repeat(16, minmax(30px, 1fr));
}

/* Droitler: alt slotların altında yan yana toplu sökme */
.droid-display-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding-top: 2px;
    box-sizing: border-box;
}

.droid-display-actions .droid-strip-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.droid-subslot {
    width: 30px;
    min-width: 30px;
    height: 35px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.droid-subslot-icon {
    font-size: 14px;
    line-height: 1;
}

.slot-item {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

/* Hover efekti kaldırıldı - sadece cursor: pointer kalıyor */

.slot-item.filled {
    border-style: solid;
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
}

.slot-item.drag-over {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
}

.droid-sell-button {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
    padding: 2px 4px;
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    background: #c40000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Envanter gridi: Sat, ikon alanı yerine hücreye bağlı (kesilme / üst üste binme olmasın) */
.inventory-slot-item > .droid-sell-button {
    top: 5px;
    left: 5px;
    z-index: 5;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1.15;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.slot-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slot-item-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.slot-item-level {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 150, 255, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Sağ Panel: Envanter */
.inventory-panel {
    width: 280px;
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.inventory-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.inventory-scroll {
    overflow-y: auto;
    margin-bottom: 15px;
    min-height: 100px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.inventory-item {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.inventory-item:active {
    cursor: grabbing;
}

.inventory-item.dragging {
    opacity: 0.5;
}

.inventory-item-icon {
    font-size: 32px;
}

.inventory-item-level {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 150, 255, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
}

.inventory-item-name {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 8px;
    text-align: center;
    padding: 2px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Yeni envanter slot stilleri */
.inventory-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.inventory-slot-item {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.inventory-slot-item.has-item {
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
}

/* Hover efekti kaldırıldı - sadece cursor: pointer kalıyor */

.inventory-slot-icon {
    position: relative;
    font-size: 24px;
    margin-bottom: 4px;
}

.inventory-slot-name {
    font-size: 10px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 2px;
}

.inventory-slot-quantity {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 4;
    background: rgba(0, 150, 255, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.inventory-slot-item:not(.has-item) .inventory-slot-quantity {
    display: none;
}

/* Takılı eşya stilleri */
.equipped-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 3px;
}

.equipped-item-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.equipped-item-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.equipped-item-name {
    font-size: 9px;
    color: #fff;
    font-weight: bold;
}

.inventory-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-display {
    text-align: center;
    color: #00ffff;
    font-size: 14px;
    font-weight: bold;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.action-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.sell-button {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
}

.sell-button:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-1px);
}

.buy-button {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

.buy-button:hover {
    background: linear-gradient(135deg, #00cc00 0%, #00aa00 100%);
    transform: translateY(-1px);
}

.repair-button {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
}

.repair-button:hover {
    background: linear-gradient(135deg, #ff8800 0%, #cc6600 100%);
    transform: translateY(-1px);
}

/* Mobil uyumluluk */
@media (max-width: 1024px) {
    .ship-customization-container {
        flex-direction: column;
    }
    
    .ship-display-panel {
        width: 100%;
    }
    
    .inventory-panel {
        width: 100%;
    }
}

/*
 * UZAY GEMİSİ — dar ekran: sağ envanterde Kalkanlar + Extralar yukarı.
 * 1024px: oyun paneli bu kırılımda scale ediliyor; 768px tek başına yetmez.
 */
@media (max-width: 1024px) {
    #tab-gemi .inventory-panel > #inventoryScroll {
        margin-bottom: 0;
    }

    #tab-gemi .inventory-title.gemi-inv-shift {
        margin-top: 0 !important;
        transform: translateY(-4px);
    }

    #tab-gemi #generatorsInventoryScroll {
        margin-bottom: 2px;
    }

    #tab-gemi #generatorsInventoryScroll,
    #tab-gemi #extrasInventoryScroll {
        margin-top: -10px;
        padding-top: 8px;
        box-sizing: border-box;
    }
}

/* Şirket seçimi overlay */
.faction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/faction/bg_body.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 140;
}

.faction-overlay.hidden {
    display: none;
}

.faction-modal {
    width: 99%;
    max-width: 990px;
    max-height: 90vh;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 28px 28px;
    text-align: center;
}

.faction-top-logo {
    transform: translateY(-60%);
}

.faction-content-block {
    transform: translateY(-10%);
    width: 100%;
}

.faction-header {
    margin-bottom: 16px;
}

.faction-title {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transform: translateY(347%);
}

.faction-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 136.4px;
    margin: 16px 0 18px;
    margin-top: 11%;
}


.faction-card {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: #ffffff;
    text-align: center;
    overflow: visible;
}

.faction-card:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.faction-card.selected {
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.faction-card-image {
    height: clamp(209.87px, 52.47vh, 419.74px);
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.faction-card-image img:not(.faction-outer-frame) {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: auto;
    transform: translateY(-5%) scale(1.2);
    position: relative;
    z-index: 1;
}

.faction-card-image-mars {
    --faction-bg: url('img/faction/bg_1_over.jpg');
    color: #ffb36b;
}

.faction-card-image-eic {
    --faction-bg: url('img/faction/bg_2_over.jpg');
    color: #7fd0ff;
}

.faction-card-image-venus {
    --faction-bg: url('img/faction/bg_3_over.jpg');
    color: #9bffbf;
}

.faction-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--faction-bg) center no-repeat;
    background-size: auto;
    transform: scale(1.258);
    transition: transform 0.2s ease;
    filter: contrast(1.04);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.faction-card:hover .faction-card-image::before,
.faction-card.selected .faction-card-image::before {
    transform: scale(1.384);
}

.faction-card .faction-outer-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: none;
    z-index: 10;
    display: block;
}

.faction-card-image {
    transition: transform 0.2s ease;
}

.faction-card-name {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
}

.faction-description {
    min-height: 60px;
    font-size: 11px;
    line-height: 1.6;
    color: #cccccc;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    margin-top: 20%;
    transform: translateY(-190%);
}

.faction-description-title {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    color: #ffffff;
}

.faction-description-text {
    color: #cccccc;
}

.faction-confirm {
    padding: 10px 24px;
    background-color: transparent;
    background: transparent;
    border: none;
    color: #eafff1;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 48px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    margin-top: -5%;
    transform: translateY(-315%);
}

.faction-confirm:hover:enabled {
    box-shadow: 0 0 14px rgba(0, 255, 120, 0.4);
    transform: translateY(calc(-315% - 1px));
}

.faction-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.confirm-frames {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.confirm-frames img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.confirm-frames img:nth-child(1) {
    opacity: 1;
}

.confirm-frames img:nth-child(2) {
    animation: confirmBlink 1s ease-in-out infinite;
}


.confirm-label {
    position: relative;
    z-index: 1;
}

@keyframes confirmBlink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Şirket seçimi – mobil: sayfa düzeni aynı (3 kart yan yana), sadece ölçeklendir */
@media (max-width: 768px), (max-height: 700px) {
    .faction-overlay {
        overflow: hidden;
        padding: 0;
    }

    .faction-modal {
        position: absolute;
        left: 50%;
        top: 62%;
        width: 990px;
        max-width: 990px;
        max-height: none; /* Görseller dikey kısılmasın, tam resim görünsün */
        transform: translate(-50%, -50%) scale(0.78);
        transform-origin: center center;
    }

    /* Kart görseli tam yükseklik: ikon + portre (omuzlara kadar) tam görünsün, kırpılmasın */
    .faction-modal .faction-card-image {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 480px), (max-height: 600px) {
    .faction-modal {
        top: 62%;
        max-height: none;
        transform: translate(-50%, -50%) scale(0.48);
    }

    .faction-modal .faction-card-image {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 380px), (max-height: 500px) {
    .faction-modal {
        top: 60%;
        max-height: none;
        transform: translate(-50%, -50%) scale(0.38);
    }

    .faction-modal .faction-card-image {
        height: 420px;
        min-height: 420px;
    }
}

/* =====================================================
   MOBİL: Stats Paneli - metin/rakam küçült, rakamlar sağa hizalı
   #statsPanel ID seçicisi tüm class kurallarını ezer
   ===================================================== */
@media (max-width: 768px), (max-height: 768px) {
    #statsPanel .stat-item {
        display: flex !important;
        align-items: center !important;
        font-size: 4px !important;
        gap: 2px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    #statsPanel .stat-label {
        font-size: 4px !important;
        min-width: 20px !important;
        flex-shrink: 0 !important;
    }

    #statsPanel .stat-item span:not(.stat-label):not(.stat-icon):not(#xp-needed) {
        font-size: 4px !important;
        margin-left: auto !important;
        text-align: right !important;
        min-width: 30px !important;
        flex-shrink: 0 !important;
        padding-right: 2px !important;
    }

    #statsPanel .stat-icon {
        max-width: 10px !important;
        max-height: 10px !important;
        flex-shrink: 0 !important;
    }

    #statsPanel .stats {
        gap: 0.5px !important;
    }
}

/* ========== Uzay Haritası (Kontrol Paneli) ========== */
#page-uzay-haritasi {
    padding: 0;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background:
        radial-gradient(ellipse 120% 80% at 50% 20%, rgba(30, 50, 90, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 80% 70%, rgba(80, 40, 100, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #050810 0%, #0a1020 40%, #060812 100%);
    overflow: hidden;
}
#page-uzay-haritasi.active {
    display: flex;
}

.space-map-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 16px 20px 12px;
}

.space-map-header {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.space-map-title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8f4ff;
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
}

.space-map-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(200, 220, 255, 0.65);
}

.space-map-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.space-map-side {
    flex-shrink: 0;
    padding-top: 4px;
}

.space-map-toggle-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e0f4ff;
    background: rgba(0, 60, 90, 0.45);
    border: 1px solid rgba(0, 200, 255, 0.45);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.space-map-toggle-btn:hover {
    background: rgba(0, 80, 120, 0.55);
    border-color: rgba(0, 230, 255, 0.55);
    box-shadow: 0 0 14px rgba(0, 200, 255, 0.28);
}

.space-map-toggle-btn:active {
    transform: translateY(1px);
}

.space-map-viewport {
    flex: 1;
    min-width: 0;
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(120, 130, 145, 0.35);
    border-radius: 4px;
    background: linear-gradient(180deg, #14161c 0%, #1a1d26 40%, #12141a 100%);
    overflow: auto;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45);
}

.space-map-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: scale(1.2);
    transform-origin: center center;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.space-map-viewport .space-map-image--hidden {
    display: none !important;
}

/* Masaüstü: başlık/buton üstte kalır; harita sütunu tüm yüksekliği kaplar, resim kutunun ortasında */
@media (min-width: 1025px) {
    #page-uzay-haritasi .space-map-body {
        align-items: stretch;
    }

    #page-uzay-haritasi .space-map-side {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    #page-uzay-haritasi .space-map-viewport {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }
}

/*
 * Mobil/tablet: harita alanı %100; görsel aşağı kaydırma (10vh).
 */
@media (max-width: 1024px) {
    .space-map-body {
        flex-direction: column;
        gap: 10px;
    }

    .space-map-side {
        width: 100%;
        padding-top: 0;
    }

    .space-map-toggle-btn {
        width: 100%;
        text-align: center;
    }

    #page-uzay-haritasi .space-map-viewport {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: center;
    }

    #page-uzay-haritasi .space-map-image {
        transform: translateY(10vh) scale(1.2);
    }
}

.space-map-footer {
    flex-shrink: 0;
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(200, 220, 255, 0.85);
}

/* Bulunduğun harita — sarı, belirgin (PC + mobil) */
#page-uzay-haritasi .space-map-footer {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffe566;
    letter-spacing: 0.03em;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 1),
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(255, 200, 40, 0.45);
}

#page-uzay-haritasi #spaceMapCurrentLabel {
    color: inherit;
    font-weight: inherit;
}

/* Uzay haritası: footer viewport içinde; masaüstünde kutunun altında, mobilde resim üzeri sol üst */
#page-uzay-haritasi .space-map-viewport .space-map-footer {
    position: absolute;
    z-index: 2;
    margin-top: 0;
    pointer-events: none;
}

@media (min-width: 1025px) {
    #page-uzay-haritasi .space-map-viewport {
        overflow: visible;
    }

    #page-uzay-haritasi .space-map-body {
        padding-bottom: 2.25rem;
    }

    #page-uzay-haritasi .space-map-viewport .space-map-footer {
        top: 100%;
        left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 1024px) {
    #page-uzay-haritasi .space-map-viewport .space-map-footer {
        top: calc(10vh + 10px);
        left: 10px;
        right: auto;
        max-width: calc(100% - 20px);
        padding: 5px 8px;
        border-radius: 4px;
        background: rgba(6, 10, 18, 0.72);
        border: 1px solid rgba(120, 180, 255, 0.25);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        line-height: 1.25;
    }
}

/* Acik Arttirma sayfasi (referans ekran stili) */
#page-acik-arttirma {
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
}

#page-acik-arttirma.active {
    display: flex;
}

/* ========== Yetenek Ağacı (resimsiz, HTML/CSS çizim) ========== */
#page-yetenek-agaci {
    padding: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}
#page-yetenek-agaci.active {
    display: flex;
}

/* PC: en üstte ortala (mobilde mevcut ortalama kalsın) */
@media (min-width: 1025px) {
    #page-yetenek-agaci {
        align-items: flex-start;
    }
}

.ya-frame {
    width: 100%;
    /* Arka plan (770px) kadar genişlik: sağ boşluk kalmasın */
    max-width: 770px;
    border-radius: 6px;
    border: 2px solid rgba(20, 120, 170, 0.75);
    background:
        url('img/Arge/argeplan.jpg') left center / contain no-repeat,
        linear-gradient(180deg, rgba(65, 70, 78, 0.55) 0%, rgba(40, 44, 51, 0.55) 55%, rgba(22, 26, 33, 0.55) 100%);
    box-shadow: inset 0 0 0 1px rgba(5, 20, 28, 0.9), 0 0 22px rgba(0, 0, 0, 0.55);
    color: #e7f6ff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Sadece mobilde Yetenek Ağacı %20 büyüsün (PC'ye dokunma) */
@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape) and (max-width: 932px)) {
    .ya-frame {
        transform: translateY(-15%) scale(1.38);
        transform-origin: top center;
        will-change: transform;
    }
}

/* Arka plan görseli küçük (770×347). Büyük ekranlarda up-scale yapıp bulanıklaşmasın. */
@media (min-width: 1100px) {
    .ya-frame {
        background-size: 770px 347px, auto;
        background-position: left top, center;
    }
}

.ya-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    /* Yüksekliği ~%15 kısalt */
    padding: 5px 10px;
    background:
        linear-gradient(180deg, rgba(12, 18, 24, 0.9), rgba(6, 10, 14, 0.9));
    border-bottom: 1px solid rgba(70, 160, 210, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.05;
}
.ya-topbar-left, .ya-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ya-topbar-right {
    justify-content: flex-end;
}
.ya-topbar-label {
    color: rgba(220, 240, 255, 0.92);
}
.ya-topbar-value {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}
.ya-topbar-sep {
    opacity: 0.7;
}
.ya-topbar-btn {
    padding: 3px 13px;
    border: 1px solid rgba(140, 160, 180, 0.75);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(55, 62, 72, 0.95), rgba(25, 30, 38, 0.95));
    color: rgba(235, 245, 255, 0.95);
    font-weight: 800;
    font-size: 10px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ya-topbar-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.3);
}
.ya-topbar-btn.is-ready {
    border-color: rgba(90, 255, 140, 0.9);
    background: linear-gradient(180deg, rgba(20, 120, 60, 0.95), rgba(10, 70, 35, 0.95));
    color: rgba(235, 255, 245, 0.98);
    text-shadow: 0 0 10px rgba(80, 255, 140, 0.35);
    box-shadow: 0 0 18px rgba(80, 255, 140, 0.18), inset 0 1px 0 rgba(255,255,255,0.10);
}
.ya-topbar-btn:hover {
    filter: brightness(1.08);
}

.ya-body {
    display: grid;
    /* Arka plan (770px) üstüne daha iyi otursun */
    grid-template-columns: 210px 270px 270px;
    gap: 8px;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(52, 56, 64, 0.25), rgba(20, 24, 30, 0.25));
    /* Kaydırmaları sıfırla: arka plan sola hizalı */
    width: 770px;
    max-width: 100%;
    margin-left: 0;
}

.ya-left-panel {
    border-radius: 4px;
    border: none;
    /* Uridium kutusunun üstündeki koyu katman kaldırıldı */
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 265px;
    overflow: hidden;
    /* Sayfa genel hizalama ile uyumlu: ekstra kaydırma yok */
    transform: none;
}
.ya-left-inner {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.ya-left-arrow {
    width: 86px;
    height: 86px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(30, 80, 120, 0.55), rgba(10, 35, 55, 0.55));
    border: 1px solid rgba(80, 200, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.18);
    position: relative;
}
.ya-left-arrow::after {
    content: '';
    position: absolute;
    inset: 18px 22px;
    clip-path: polygon(0 15%, 55% 15%, 55% 0, 100% 50%, 55% 100%, 55% 85%, 0 85%);
    background: linear-gradient(180deg, rgba(210, 245, 255, 0.9), rgba(120, 210, 255, 0.55));
    filter: drop-shadow(0 0 10px rgba(90, 220, 255, 0.35));
}
.ya-left-orb {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 110, 220, 0.85), rgba(130, 20, 120, 0.4) 55%, rgba(0,0,0,0.65) 100%);
    border: 1px solid rgba(255, 160, 235, 0.35);
    box-shadow: 0 0 16px rgba(255, 90, 220, 0.25);
}
.ya-left-action {
    border: 0;
    cursor: pointer;
    /* Yüksekliği belirgin şekilde küçült */
    padding: 5px 10px;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.05;
    color: rgba(255, 235, 180, 0.98);
    text-shadow: 0 0 8px rgba(255, 210, 90, 0.35);
    background:
        linear-gradient(180deg, rgba(40, 36, 20, 0.9), rgba(20, 16, 10, 0.9));
    /* Yazı üstündeki çerçeve çizgisini kaldır */
    border-top: none;
    /* Genişliği ek %5 kısalt + az yukarı kaydır + dikeyde %20 büyüt */
    width: 90%;
    margin: 0 auto;
    transform: translateY(-2px) scaleY(1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ya-left-action:hover { filter: brightness(1.08); }
.ya-left-action-chev { color: rgba(255, 200, 70, 0.95); }
/* Uridium'a günlük dosyası butonu: görünür şekilde daha dar */
#yaGoDailyFileMarketBtn {
    width: 80% !important;
    max-width: 140px;
}

.ya-mid-panel, .ya-right-panel {
    border-radius: 4px;
    /* Kartların durduğu dış panel tabakası kaldırıldı */
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px;
    min-height: 265px;
    /* Kartları az biraz yukarı kaydır */
    transform: translateY(-6px);
}

.ya-card-grid {
    display: grid;
    /* Kartlar arası mesafeyi daralt */
    gap: 8px 10px;
    align-content: start;
}
.ya-card-grid--mid {
    grid-template-columns: repeat(3, 74px);
}
.ya-card-grid--right {
    grid-template-columns: repeat(3, 74px);
}

.ya-card {
    width: 74px;
    height: 74px;
    position: relative;
    border-radius: 7px;
    border: 2px solid rgba(100, 190, 255, 0.75);
    /* İç çizimler kaldırıldı: sadece border kalsın */
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.ya-card::before {
    content: none;
}
.ya-card:hover {
    box-shadow: 0 0 18px rgba(80, 210, 255, 0.22);
    filter: brightness(1.05);
}
/* Kilitli kart (örn. Kart 2, Kart 1 tamamlanmadan açılmaz) */
.ya-card.is-locked {
    cursor: not-allowed;
    filter: grayscale(0.85) brightness(0.55);
    opacity: 0.9;
}
.ya-card.is-locked:hover {
    box-shadow: none;
    filter: grayscale(0.85) brightness(0.55);
}
.ya-card.is-locked .ya-card-count {
    color: rgba(200, 210, 220, 0.7);
}
/* Tıklayınca sarı "seçili" border kapalı (hover parlaması yeterli) */
.ya-card.is-selected { }
.ya-card--purple { border-color: rgba(210, 90, 255, 0.75); }
.ya-card--purple:hover { box-shadow: 0 0 18px rgba(210, 90, 255, 0.18); }
.ya-card--red { border-color: rgba(255, 90, 90, 0.75); }
.ya-card--red:hover { box-shadow: 0 0 18px rgba(255, 90, 90, 0.18); }

.ya-card-icon {
    position: absolute;
    /* Görsel kartın tamamını kaplasın (rakamlar üstte overlay kalacak) */
    inset: 0;
    border-radius: inherit;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.ya-card-img {
    width: 100%;
    height: 100%;
    /* Kart içine daha dolu otursun */
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(1.02);
}
.ya-card-count {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    color: rgba(235, 245, 255, 0.95);
    text-shadow: 0 2px 0 rgba(0,0,0,0.65);
    pointer-events: none;
    z-index: 2;
}

/* Yetenek ağacı kart tooltip (hover penceresi) */
.ya-tooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    min-width: 220px;
    max-width: 320px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(20, 120, 170, 0.75);
    background: linear-gradient(180deg, rgba(8, 12, 16, 0.95), rgba(4, 8, 12, 0.96));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65), 0 8px 18px rgba(0, 0, 0, 0.55);
    color: rgba(235, 245, 255, 0.96);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    pointer-events: none;
}
.ya-tooltip.is-open { display: flex; }
.ya-tooltip-text { flex: 1; min-width: 0; }
.ya-tooltip-icon { width: 44px; display: flex; align-items: flex-start; justify-content: flex-end; padding-left: 10px; }
.ya-tooltip-icon img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(120, 180, 255, 0.25); }
.ya-tooltip-row { margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ya-tooltip-k { font-weight: 900; }
.ya-tooltip-v { font-weight: 700; }
.ya-tooltip-subtitle { margin-top: 2px; opacity: 0.95; }
.ya-tooltip-next { white-space: normal; margin-bottom: 0; font-weight: 700; }

.ya-footer {
    padding: 10px 12px;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    color: rgba(240, 250, 255, 0.92);
    background: linear-gradient(180deg, rgba(8, 12, 16, 0.85), rgba(4, 8, 12, 0.9));
    border-top: 1px solid rgba(70, 160, 210, 0.45);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ya-footer-spent {
    min-width: 0;
}

.ya-reset-btn {
    border: 1px solid rgba(255, 95, 95, 0.9);
    background: linear-gradient(180deg, rgba(125, 22, 20, 0.98), rgba(85, 10, 10, 0.98));
    color: #ffeaea;
    font-weight: 900;
    font-size: 12px;
    line-height: 1.1;
    padding: 7px 12px;
    min-width: 210px;
    cursor: pointer;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 200, 200, 0.15), 0 0 10px rgba(180, 25, 25, 0.25);
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.ya-reset-btn:hover {
    filter: brightness(1.08);
}

.ya-reset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}

.auction-frame {
    width: 100%;
    max-width: 1180px;
    min-height: 560px;
    border: 2px solid #0e5d87;
    box-shadow: inset 0 0 0 1px #06263b, 0 0 20px rgba(0, 0, 0, 0.55);
    background: linear-gradient(180deg, #00111f 0%, #03070e 45%, #01060b 100%);
    color: #d5ecff;
    font-family: Arial, sans-serif;
}

.auction-header-row {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px 0 14px;
    border-bottom: 1px solid #0e5d87;
    background: linear-gradient(180deg, #081824, #030b12);
}

.auction-title {
    position: absolute;
    left: calc(50% - 14px);
    transform: translateX(-50%);
    color: #f8ce2b;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-shadow: 0 0 6px rgba(255, 204, 40, 0.28);
    pointer-events: none;
    white-space: nowrap;
}

.auction-filter-wrap {
    width: 210px;
    height: 28px;
    border: 1px solid #2b5f85;
    border-radius: 2px;
    background: linear-gradient(180deg, #0a1a28, #07131c);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}

.auction-filter-triangle {
    width: 16px;
    height: 16px;
    border: 1px solid #5a7488;
    border-radius: 3px;
    background: linear-gradient(180deg, #101820, #05080e);
    position: relative;
}

.auction-filter-triangle::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #f8bf20;
}

.auction-filter-text {
    font-size: 18px;
    color: #e8f6ff;
    font-weight: 700;
}

.auction-period-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 8px 0;
}

.auction-period-tab {
    width: 208px;
    height: 31px;
    border: 1px solid #3a5470;
    color: #a0aab5;
    font-size: 13.75px;
    font-weight: 900;
    background: linear-gradient(180deg, #0f1923, #080f16);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 10px;
    margin: 0;
    box-sizing: border-box;
}

.auction-period-tab.active {
    color: #ffd45a;
}

.auction-body {
    padding: 6px 8px 10px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;
}

.auction-left {
    border: 1px solid #10496a;
    background: linear-gradient(180deg, #06111e, #02070c);
}

.auction-subtabs-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid #0f5077;
    padding: 5px 5px 4px;
}

.auction-subtab {
    height: 24px;
    border: 1px solid #2b6488;
    color: #a0aab5;
    background: linear-gradient(180deg, #0b2133, #071826);
    font-size: 16px;
    font-weight: 700;
}

.auction-subtab.active {
    color: #ffd45a;
}

.auction-time-left {
    text-align: right;
    color: #f0f7ff;
    font-size: 16px;
    font-weight: 600;
    padding-right: 5px;
}

.auction-time-left span {
    color: #ff9d1d;
    font-weight: 800;
}

.auction-table-head,
.auction-row {
    display: grid;
    grid-template-columns: 165px 98px minmax(140px, 1fr);
    align-items: center;
}

/* Kazananlar: saatlik tablo ile aynı hizalama (Öğe | Türü | Kazanan | Teklif) */
#auctionWinnersHead,
#auctionWinnersBody .auction-row-winner {
    grid-template-columns: 165px 98px minmax(120px, 1fr) minmax(88px, 120px);
}

#auctionWinnersHead span:nth-child(4),
#auctionWinnersBody .auction-row-winner > .auction-winner-bid-cell {
    text-align: right;
    justify-self: end;
}

#auctionWinnersBody .auction-row-winner > .auction-item-name {
    min-width: 0;
}

/* .auction-table-head + .hidden: sonraki display:grid kuralı .hidden'ı ezer; sekmelerde tek başlık görünsün */
.auction-table-head.hidden {
    display: none !important;
}

#auctionWinnersBody .auction-row-loading {
    grid-template-columns: 1fr !important;
}

#auctionWinnersBody .auction-row-loading .auction-loading-msg {
    grid-column: 1 / -1;
    text-align: center;
}

.auction-table-head {
    min-height: 34px;
    color: #f0f7ff;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #0c405d;
    padding: 0 10px;
}

.auction-table-head span:nth-child(3),
.auction-row > div:nth-child(3) {
    padding-left: 24px;
}

.auction-table-body {
    max-height: 355px;
    overflow-y: auto;
    overflow-x: hidden;
}

.auction-row {
    min-height: 58px;
    padding: 0 10px;
    color: #ebf6ff;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(19, 68, 98, 0.35);
    background: rgba(0, 18, 31, 0.88);
}

.auction-row:nth-child(even) {
    background: rgba(3, 35, 58, 0.8);
}

.auction-row.selected {
    background: linear-gradient(180deg, rgba(86, 145, 180, 0.92), rgba(60, 114, 149, 0.92));
}

.auction-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auction-item-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #748a97;
    background: linear-gradient(180deg, #8b8f93, #40474d);
    box-shadow: inset 0 0 0 1px rgba(20, 30, 40, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.auction-item-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.auction-item-icon-extra .extra-svg-small,
.auction-item-icon-extra img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.auction-confirm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd75b;
    font-size: 26px;
    font-weight: 700;
    padding: 8px 12px 10px;
    border-top: 1px solid #0c405d;
}

.auction-confirm-row input {
    width: 16px;
    height: 16px;
    accent-color: #f0bf31;
}

.auction-right {
    border: 1px solid #10496a;
    background: linear-gradient(180deg, #040b14, #02070d);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    gap: 10px;
}

.auction-item-preview {
    width: 160px;
    height: 130px;
    border: 1px solid #3a6281;
    background:
        radial-gradient(circle at 68% 30%, rgba(190, 220, 255, 0.65), transparent 38%),
        linear-gradient(145deg, #1f2f3e, #101b27 58%, #060b11);
    box-shadow: inset 0 0 0 1px rgba(24, 38, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auction-item-preview-extra {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.auction-item-preview-extra .extra-svg-large,
.auction-item-preview-extra img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.auction-row-loading {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 48px;
}

.auction-loading-msg {
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    padding: 12px;
    text-align: center;
}

.auction-bid-credits-label {
    width: 100%;
    font-size: 12px;
    color: #8dc3eb;
    text-align: left;
}

.auction-min-bid-note {
    font-size: 11px;
    font-weight: 600;
    color: rgba(180, 220, 255, 0.9);
}

.auction-item-desc {
    color: #8dc3eb;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    margin: 0;
    min-height: 96px;
}

.auction-bid-box,
.auction-small-box {
    width: 150px;
    height: 28px;
    border: 1px solid #567089;
    background: linear-gradient(180deg, #0a1a2a, #06111b);
    color: #8dc6ff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 26px;
    font-family: Arial, sans-serif;
}

input.auction-bid-box {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.auction-small-box {
    width: 138px;
    color: #91bbff;
}

.auction-action-btn {
    width: 176px;
    height: 34px;
    border: 1px solid #355875;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #c4ecff;
    background: linear-gradient(180deg, #0b2338, #071523);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.auction-action-btn.buy {
    color: #c5ff9a;
    border-color: #3f7c3f;
    background: linear-gradient(180deg, #173f16, #0c270d);
}

/* Açık Arttırma (Müzayede): sadece Kontrol Merkezi + mobil/tablet — içerik ~%20 + daha ferah boşluk; PC geniş ekran kurallarına dokunmaz */
@media (max-width: 1024px), ((max-height: 520px) and (orientation: landscape)) {
    #mainMenuOverlay #page-acik-arttirma {
        padding: 17px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-frame {
        min-height: 620px;
        border-width: 2px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-header-row {
        height: 43px;
        padding: 0 10px 0 17px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-title {
        font-size: 31px;
        letter-spacing: 0.85px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-filter-wrap {
        width: 252px;
        height: 34px;
        gap: 12px;
        padding: 0 10px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-filter-triangle {
        width: 19px;
        height: 19px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-filter-text {
        font-size: 22px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-period-tabs {
        gap: 8px;
        padding: 8px 10px 0;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-period-tab {
        width: 250px;
        height: 37px;
        font-size: 16.5px;
        padding-left: 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-body {
        padding: 8px 10px 12px;
        grid-template-columns: 1fr 240px;
        gap: 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-subtabs-row {
        gap: 6px;
        padding: 6px 6px 5px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-subtab {
        height: 29px;
        font-size: 19px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-time-left {
        font-size: 19px;
        padding-right: 6px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-table-head,
    #mainMenuOverlay #page-acik-arttirma .auction-row {
        grid-template-columns: 198px 118px minmax(168px, 1fr);
    }
    #mainMenuOverlay #page-acik-arttirma #auctionWinnersHead,
    #mainMenuOverlay #page-acik-arttirma #auctionWinnersBody .auction-row-winner {
        grid-template-columns: 198px 118px minmax(140px, 1fr) minmax(100px, 128px);
    }
    #mainMenuOverlay #page-acik-arttirma .auction-table-head {
        min-height: 41px;
        font-size: 14.5px;
        padding: 0 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-table-body {
        max-height: 400px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-row {
        min-height: 70px;
        font-size: 16px;
        padding: 0 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-name {
        gap: 10px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-icon {
        width: 36px;
        height: 36px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-icon img {
        width: 29px;
        height: 29px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-icon-extra .extra-svg-small,
    #mainMenuOverlay #page-acik-arttirma .auction-item-icon-extra img {
        width: 29px;
        height: 29px;
        max-width: 29px;
        max-height: 29px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-loading-msg {
        font-size: 22px;
        padding: 14px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-right {
        padding: 12px 10px;
        gap: 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-preview {
        width: 192px;
        height: 156px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-preview-extra .extra-svg-large,
    #mainMenuOverlay #page-acik-arttirma .auction-item-preview-extra img {
        max-height: 144px;
    }
    #mainMenuOverlay #page-acik-arttirma #auctionItemPreviewImg {
        max-height: 156px !important;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-item-desc {
        font-size: 18px;
        line-height: 1.35;
        min-height: 115px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-bid-credits-label {
        font-size: 14.5px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-bid-box,
    #mainMenuOverlay #page-acik-arttirma .auction-small-box {
        width: 180px;
        height: 34px;
        font-size: 16px;
        line-height: 32px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-small-box {
        width: 166px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-action-btn {
        width: 211px;
        height: 41px;
        font-size: 16px;
        letter-spacing: 0.25px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-confirm-row {
        font-size: 31px;
        gap: 10px;
        padding: 10px 14px 12px;
    }
    #mainMenuOverlay #page-acik-arttirma .auction-confirm-row input {
        width: 19px;
        height: 19px;
    }
}

/* Görevler (Kontrol Merkezi): sadece mobil/tablet — içerik ~%20 + daha ferah boşluk; PC geniş ekran kurallarına dokunmaz */
@media (max-width: 1024px), ((max-height: 520px) and (orientation: landscape)) {
    #mainMenuOverlay #page-gorevler {
        padding: 8px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-tab {
        padding: 14px 24px;
        font-size: 17px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-list-panel {
        width: 336px;
        min-width: 264px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-list-title {
        padding: 17px 19px;
        font-size: 17px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-list-scroll {
        padding: 10px 0;
    }
    #mainMenuOverlay #page-gorevler .gorevler-level {
        padding: 12px 19px 7px;
        font-size: 16px;
        letter-spacing: 0.6px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-task-item {
        padding: 12px 19px;
        font-size: 16px;
        border-left-width: 4px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-panel {
        padding: 24px 29px 29px;
        gap: 14px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-head {
        font-size: 17px;
        margin-top: 10px;
        letter-spacing: 0.6px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-head:first-child,
    #mainMenuOverlay #page-gorevler .gorevler-clan-desc {
        margin-top: 0;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-title {
        font-size: 19px;
        margin: 0 0 5px 0;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-text {
        font-size: 16px;
        line-height: 1.56;
    }
    #mainMenuOverlay #page-gorevler .gorevler-subtasks {
        font-size: 16px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-subtasks li {
        padding: 5px 0;
    }
    #mainMenuOverlay #page-gorevler .gorevler-subtask-progress {
        margin-left: 10px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-rewards {
        gap: 14px 29px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-reward-row {
        gap: 10px;
        font-size: 16px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-accept-btn {
        margin-top: 10px;
        padding: 7px 17px;
        font-size: 13px;
        border-radius: 4px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-completed-msg {
        margin-top: 10px;
        padding: 7px 14px;
        font-size: 13px;
    }
    #mainMenuOverlay #page-gorevler .gorevler-detail-placeholder {
        font-size: 17px;
        padding: 29px 0;
    }
    #mainMenuOverlay #page-gorevler .gorevler-list-empty {
        font-size: 16px;
        padding: 19px;
    }
}

/* —— Ödeme mağazası (Dark Orbit tarzı, pay2 butonu) —— */
.pay-shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
.pay-shop-overlay.hidden {
    display: none !important;
}
.pay-shop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}
.pay-shop-viewport {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
}
.pay-shop-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: min(720px, 100%);
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(20, 28, 38, 0.97) 0%, rgba(6, 8, 12, 0.99) 50%, rgba(12, 16, 22, 0.98) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.015) 2px, rgba(255, 255, 255, 0.015) 4px);
    background-color: #0a0a0a;
    border: 1px solid rgba(60, 120, 180, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 140, 220, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.pay-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 14px 20px 10px 18px;
    border-bottom: 1px solid rgba(40, 80, 120, 0.35);
    gap: 16px;
}
.pay-shop-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.pay-shop-logo-emblem {
    width: 42px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    box-shadow: 0 0 12px rgba(100, 180, 255, 0.2);
    background: rgba(12, 16, 24, 0.5);
}
.pay-shop-logo-emblem-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.pay-shop-logo-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.pay-shop-logo-top {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, #f0f4f8 0%, #9aa8b8 45%, #d8e4f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(120, 180, 255, 0.35);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9));
}
.pay-shop-logo-bottom {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #b8c4d4;
    margin-top: 2px;
}
.pay-shop-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pay-shop-hdr-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #a8d8ff;
    cursor: pointer;
    border: 1px solid rgba(80, 160, 220, 0.55);
    border-radius: 3px;
    background: linear-gradient(180deg, #0f2840 0%, #071525 100%);
    box-shadow:
        0 0 8px rgba(0, 140, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-hdr-btn:hover {
    border-color: rgba(120, 200, 255, 0.75);
    color: #d0ecff;
}
.pay-shop-tr-flag {
    font-size: 22px;
    line-height: 1;
    margin-left: 4px;
    user-select: none;
}
.pay-shop-main-row {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 14px;
    padding: 12px 14px 16px 16px;
}
.pay-shop-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pay-shop-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}
.pay-shop-tab {
    position: relative;
    margin-left: -8px;
    padding: 10px 26px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #c5ccd6;
    cursor: pointer;
    border: none;
    border-top: 1px solid rgba(200, 210, 220, 0.35);
    background: linear-gradient(180deg, #252a32 0%, #15181e 100%);
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 100%, 0% 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-tab:first-child {
    margin-left: 0;
}
.pay-shop-tab:hover {
    color: #e8eef5;
}
.pay-shop-tab.is-active {
    z-index: 3;
    color: #ffdc2e;
    border-top-color: rgba(255, 200, 80, 0.65);
    background: linear-gradient(180deg, #2e343e 0%, #1a1e26 100%);
    box-shadow:
        inset 0 -3px 0 #e89420,
        0 0 14px rgba(255, 180, 40, 0.12);
}
.pay-shop-grid-block {
    flex: 1;
    min-height: 220px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px 4px 8px;
    border: 1px solid rgba(50, 100, 150, 0.35);
    border-radius: 0 2px 2px 2px;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.9) 0%, rgba(4, 6, 10, 0.95) 100%);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}
.pay-shop-pager {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 2px;
}
.pay-shop-pager-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: #8899aa;
    cursor: pointer;
    border: 1px solid #3a4555;
    border-radius: 2px;
    background: linear-gradient(180deg, #2a3038 0%, #1a1e24 100%);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-pager-btn:hover {
    color: #c0d0e0;
    border-color: #556070;
}
.pay-shop-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    align-content: stretch;
}
.pay-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px 8px 6px;
    border: 1px solid rgba(60, 140, 200, 0.4);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(22, 28, 36, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
    box-shadow:
        0 0 12px rgba(0, 120, 200, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pay-shop-card:has(.pay-shop-info-wrap:hover),
.pay-shop-card:has(.pay-shop-info-wrap:focus-within),
.pay-shop-card:has(.pay-shop-info-wrap.is-tooltip-open) {
    z-index: 4;
}
.pay-shop-card-name {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #b8c0cc;
    text-align: center;
    line-height: 1.2;
}
.pay-shop-card-art {
    position: relative;
    flex: 1;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.pay-shop-glow-ring {
    position: absolute;
    width: 78%;
    max-width: 100px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(120, 220, 255, 0.35) 0%, rgba(40, 100, 180, 0.15) 45%, transparent 70%);
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.35),
        0 0 40px rgba(0, 140, 220, 0.2),
        inset 0 0 20px rgba(100, 200, 255, 0.15);
    border: 1px solid rgba(100, 200, 255, 0.25);
}
.pay-shop-ship-img {
    position: relative;
    z-index: 1;
    max-width: 72%;
    max-height: 76px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.45));
    pointer-events: none;
}
.pay-shop-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 2px;
}
.pay-shop-info-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-self: flex-start;
}
.pay-shop-info-ico {
    width: 31px;
    height: 31px;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle at 30% 25%, #ff9a3c 0%, #c45a08 100%);
    box-shadow: 0 0 8.5px rgba(255, 140, 40, 0.5);
    line-height: 31px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-info-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 188px;
    max-width: min(268px, 72vw);
    padding: 8px 10px 9px;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #dce6f0;
    text-align: left;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(100, 180, 255, 0.45);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(28, 36, 48, 0.99) 0%, rgba(12, 16, 24, 0.99) 100%);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: opacity 0.14s ease, visibility 0.14s ease;
}
.pay-shop-info-tooltip-list {
    margin: 0;
    padding: 0 0 0 1.15em;
    list-style: disc;
}
.pay-shop-info-tooltip-list li {
    margin: 0.15em 0;
}
.pay-shop-info-tooltip-list li::marker {
    color: rgba(120, 190, 255, 0.75);
}
.pay-shop-info-tooltip-single {
    margin: 0;
    font-weight: 600;
    color: #a8d8ff;
}
@media (hover: hover) and (pointer: fine) {
    .pay-shop-info-wrap:hover .pay-shop-info-tooltip,
    .pay-shop-info-wrap:focus-within .pay-shop-info-tooltip {
        visibility: visible;
        opacity: 1;
    }
}
@media (hover: none), (pointer: coarse) {
    .pay-shop-info-wrap.is-tooltip-open .pay-shop-info-tooltip {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}
.pay-shop-card-price {
    font-size: 12px;
    font-weight: 600;
    color: #e8eef5;
}
.pay-shop-addtocart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #e8f4ff;
    cursor: pointer;
    border: 1px solid rgba(60, 120, 180, 0.55);
    border-radius: 3px;
    background: linear-gradient(180deg, #153a5c 0%, #0a1e32 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-addtocart:hover {
    border-color: rgba(100, 180, 255, 0.65);
    background: linear-gradient(180deg, #1a4870 0%, #0c2640 100%);
}
.pay-shop-plus {
    font-size: 16px;
    line-height: 1;
}
.pay-shop-cart-ico {
    opacity: 0.95;
}
.pay-shop-slot--empty {
    border: 1px solid rgba(40, 90, 140, 0.35);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
    min-height: 140px;
}
.pay-shop-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 4px 0 8px;
}
.pay-shop-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e8eef5;
    padding: 4px 2px;
}
.pay-shop-sidebar-cart-ico {
    opacity: 0.9;
    flex-shrink: 0;
}
.pay-shop-cart-slots {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
}
.pay-shop-cart-line {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 11px;
    color: #9aa8b8;
    border: 1px solid rgba(50, 100, 150, 0.35);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pay-shop-cart-line:not(:empty) {
    color: #d0dce8;
    border-color: rgba(80, 160, 220, 0.35);
}
.pay-shop-cart-line-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.pay-shop-cart-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(180, 80, 80, 0.55);
    border-radius: 3px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #ffb0b0;
    cursor: pointer;
    background: linear-gradient(180deg, #4a2020 0%, #2a1010 100%);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-cart-remove:hover {
    color: #fff;
    border-color: rgba(255, 120, 120, 0.75);
    background: linear-gradient(180deg, #6a2828 0%, #3a1414 100%);
}
.pay-shop-cart-remove:active {
    transform: scale(0.96);
}
.pay-shop-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-top: 4px;
    background: linear-gradient(180deg, #f2f4f7 0%, #e4e8ee 100%);
    border: 1px solid #c8d0d8;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 #fff;
}
.pay-shop-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a9fd4;
}
.pay-shop-total-value {
    font-size: 14px;
    font-weight: 800;
    color: #0a0a0a;
}
.pay-shop-checkout {
    width: 100%;
    padding: 14px 16px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #3ecf4a 0%, #1e8a28 55%, #157020 100%);
    box-shadow:
        0 2px 0 #0d5018,
        0 4px 12px rgba(40, 200, 80, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.pay-shop-checkout:hover {
    filter: brightness(1.06);
}
.pay-shop-checkout:active {
    transform: translateY(1px);
}
/* Dar pencere / küçük tablet (mobil değil): yan yana sığmazsa sütun düzeni — telefonlara dokunmaz */
@media (min-width: 769px) and (max-width: 900px) {
    .pay-shop-main-row {
        flex-direction: column;
        overflow-y: auto;
    }
    .pay-shop-sidebar {
        width: 100%;
    }
    .pay-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .pay-shop-slot--empty {
        min-height: 100px;
    }
}

/*
 * Mobil ödeme: PC ile aynı 1180×720 düzen; tamamı tek pencerede — orantılı scale, kaydırma yok.
 * Dokunmatik / dar ekran seçimi aynı medya ile.
 */
@media ((max-width: 1024px) and (hover: none)),
       ((max-width: 1024px) and (pointer: coarse)),
       (max-width: 768px) {
    .pay-shop-overlay {
        overflow: hidden;
        align-items: center;
        justify-content: center;
        padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    }
    .pay-shop-viewport {
        --pay-fit-w: min(458px, calc(100vw - 20px));
        --pay-fit-h: min(370px, calc(100vh - 36px));
        position: relative;
        z-index: 1;
        width: var(--pay-fit-w) !important;
        height: var(--pay-fit-h) !important;
        max-width: calc(100vw - 12px) !important;
        max-height: calc(100vh - 24px) !important;
        margin: 0;
        flex-shrink: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    .pay-shop-shell {
        position: absolute !important;
        left: 50% !important;
        top: 0 !important;
        width: 1180px !important;
        min-width: 1180px !important;
        max-width: 1180px !important;
        height: 720px !important;
        min-height: 720px !important;
        max-height: 720px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        transform-origin: top center !important;
        /* PC düzeni aynı piksel; pencereye sığdırmak için tek ölçek */
        transform: translateX(-50%) scale(min(
            calc(var(--pay-fit-w) / 1180px),
            calc(var(--pay-fit-h) / 720px)
        )) !important;
    }
    .pay-shop-main-row {
        flex-direction: row !important;
        flex: 1;
        min-height: 0;
        overflow: hidden !important;
        padding: 12px 14px 16px 16px;
        gap: 14px;
    }
    .pay-shop-center {
        flex: 1;
        min-width: 0;
        min-height: 0;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }
    .pay-shop-grid-block {
        flex: 1;
        min-height: 0;
        overflow: hidden !important;
        display: flex;
        align-items: stretch;
        padding: 12px 4px 8px;
        gap: 8px;
    }
    .pay-shop-pager {
        display: flex !important;
    }
    .pay-shop-grid {
        flex: 1;
        min-height: 0;
        min-width: 0;
        overflow: hidden !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(140px, 1fr)) !important;
        gap: 10px !important;
        align-content: stretch;
    }
    .pay-shop-slot--empty {
        display: block !important;
    }
    .pay-shop-sidebar {
        width: 240px !important;
        flex-shrink: 0;
        min-height: 0;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 4px 4px 0 8px;
    }
    .pay-shop-cart-slots {
        flex: 1;
        min-height: 0;
        overflow: hidden !important;
        gap: 8px;
    }
    .pay-shop-cart-line {
        min-height: 0;
        flex-shrink: 0;
    }
}

/* Kısa yatay: daha geniş/alçak pencere — aynı scale mantığı --pay-fit-* ile */
@media ((max-width: 1024px) and (hover: none) and (orientation: landscape) and (max-height: 520px)),
       ((max-width: 1024px) and (pointer: coarse) and (orientation: landscape) and (max-height: 520px)),
       (max-width: 768px) and (orientation: landscape) and (max-height: 520px) {
    .pay-shop-viewport {
        --pay-fit-w: min(543px, calc(100vw - 12px));
        --pay-fit-h: min(290px, calc(100vh - 28px));
        width: var(--pay-fit-w) !important;
        height: var(--pay-fit-h) !important;
    }
}

/* —— Ultimate Battle Arena (UBA) —— */
.uba-overlay {
    position: fixed;
    inset: 0;
    z-index: 10056;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
.uba-overlay.hidden {
    display: none !important;
}
.uba-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    cursor: pointer;
}
.uba-viewport {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.uba-shell {
    --uba-cyan: #00ccff;
    --uba-gold: #ffcc00;
    --uba-bg0: #001a2b;
    --uba-bg1: #000810;
    position: relative;
    z-index: 1;
    /* UI büyük görünmesin: ~%20 küçült */
    width: min(352px, 90vw);
    /* Sekmeler arasında yükseklik sabit kalsın */
    height: min(448px, 88vh);
    max-height: min(448px, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    background: linear-gradient(180deg, var(--uba-bg0) 0%, var(--uba-bg1) 42%, #001018 100%);
    border: 1px solid rgba(0, 200, 255, 0.45);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(0, 40, 70, 0.9),
        0 0 28px rgba(0, 180, 220, 0.35),
        0 0 60px rgba(0, 100, 140, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

/* UBA penceresi: sadece MOBİL + YATAY (JS: body.uba-mobile-landscape). Inline <style> override'larını aşmak için body ile boost edilir. */
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-shell {
    width: min(333px, 60vw);
    max-width: min(333px, 60vw);
    transform: scale(0.75);
    transform-origin: center center;
}

/* Mobil yatay UBA: Maç sekmesi ~%20 küçük. zoom kullanıldı: transform:scale yerleşim yüksekliğini değiştirmez, boş kaydırma yaratırdı. */
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel[data-uba-panel="mac"]:not(.uba-panel--hidden) {
    zoom: 0.68;
    width: 100%;
    max-width: 100%;
}
/* zoom desteklemeyen tarayıcılar için (yerleşim yine tam boy kalabilir; kaydırmayı aşağıdaki :has kuralları sınırlar) */
@supports not (zoom: 1) {
    body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel[data-uba-panel="mac"]:not(.uba-panel--hidden) {
        zoom: unset;
        transform: scale(0.68);
        transform-origin: top center;
    }
}

/* Mobil UBA: Maç/Ödüller sığıyorsa gövde kaymasın; Sıralama uzun liste için kaydırma kalsın */
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-shell:has(.uba-panel[data-uba-panel="mac"]:not(.uba-panel--hidden)) .uba-body,
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-shell:has(.uba-panel[data-uba-panel="oduller"]:not(.uba-panel--hidden)) .uba-body {
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior-y: none;
}
/* Mobil UBA sıralama: gövde kaymasın; üst alan sabit, sadece .uba-sira-scroll içinde liste kayar; içerik %20 küçük (zoom) */
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-shell:has(.uba-panel[data-uba-panel="sira"]:not(.uba-panel--hidden)) .uba-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior-y: none;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel--sira:not(.uba-panel--hidden) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    zoom: 0.8;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel--sira .uba-sira-hint,
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel--sira .uba-sira-status,
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel--sira .uba-sira-head {
    flex-shrink: 0;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-sira-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    overscroll-behavior-y: contain;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-sira-scroll::-webkit-scrollbar {
    width: 8px;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-sira-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-sira-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.45);
    border-radius: 4px;
}

/* Mobil yatay UBA: Ödüller sekmesi içeriği sıralama/Maç ile aynı genişlikte kalsın */
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-panel--oduller {
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-row {
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-rank,
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-prize {
    white-space: nowrap !important;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-rank {
    flex: 0 0 auto !important;
    text-align: left !important;
}
body.uba-mobile-landscape #ubaOverlay:not(.hidden) .uba-odul-prize {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: right !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.uba-header {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 10px 12px;
    background: linear-gradient(180deg, rgba(0, 35, 55, 0.95) 0%, rgba(0, 18, 32, 0.88) 100%);
    border-bottom: 1px solid rgba(0, 120, 160, 0.35);
    box-shadow: inset 0 -1px 0 rgba(0, 200, 255, 0.08);
}
.uba-header-emblem {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uba-header-emblem-svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.45));
}
.uba-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0 40px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: clamp(0.78rem, 2.4vw, 0.98rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--uba-gold);
    text-shadow:
        0 0 12px rgba(255, 200, 60, 0.35),
        0 1px 0 rgba(0, 0, 0, 0.8);
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.uba-close {
    flex: 0 0 36px;
    width: 36px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(200, 230, 255, 0.85);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.uba-close:hover {
    color: #fff;
    background: rgba(255, 60, 60, 0.2);
    box-shadow: 0 0 12px rgba(255, 80, 80, 0.25);
}
.uba-tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 90, 120, 0.4);
    background: rgba(0, 12, 22, 0.65);
}
.uba-tab {
    flex: 1 1 0;
    margin: 0;
    padding: 10px 8px;
    border: none;
    border-right: 1px solid rgba(0, 80, 110, 0.45);
    background: linear-gradient(180deg, rgba(0, 28, 45, 0.5) 0%, rgba(0, 14, 24, 0.85) 100%);
    color: rgba(235, 245, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.18s, background 0.18s, color 0.18s;
}
.uba-tab:last-child {
    border-right: none;
}
.uba-tab:hover {
    background: rgba(0, 50, 75, 0.45);
    color: #fff;
}
.uba-tab.is-active {
    background: linear-gradient(180deg, rgba(0, 55, 80, 0.55) 0%, rgba(0, 22, 38, 0.95) 100%);
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(0, 220, 255, 0.65),
        0 0 14px rgba(0, 200, 255, 0.35);
    z-index: 1;
}
.uba-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px 20px;
    -webkit-overflow-scrolling: touch;
}
.uba-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.uba-panel--hidden {
    display: none !important;
}
.uba-season-msg {
    margin: 4px 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--uba-gold);
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.25);
}
.uba-season-remaining {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--uba-gold);
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.18);
}
.uba-stats {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    width: 100%;
    max-width: 280px;
}
.uba-stats li {
    margin: 0 0 4px;
    font-size: 0.92rem;
    color: rgba(240, 248, 255, 0.95);
    letter-spacing: 0.01em;
}
.uba-stat-label {
    font-weight: 600;
}
.uba-stat-val {
    font-weight: 700;
    color: #fff;
}
.uba-match-btn {
    display: inline-block;
    margin: 4px auto 0;
    padding: 13px 52px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #62d86e 0%, #3dad4a 45%, #2a8f38 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 0 22px rgba(76, 220, 100, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: filter 0.15s, transform 0.1s;
}
.uba-match-btn:hover {
    filter: brightness(1.08);
}
.uba-match-btn:active {
    transform: scale(0.98);
}
.uba-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0 16px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 230, 0.55), transparent);
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.25);
}
.uba-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
}
.uba-info-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #1a8ec8 0%, #065a82 55%, #043a55 100%);
    border: 1px solid rgba(0, 220, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.35);
}
.uba-info-text {
    margin: 0;
    flex: 1;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(230, 240, 250, 0.95);
}
.uba-placeholder {
    margin: 24px 0 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(180, 200, 215, 0.9);
    max-width: 320px;
}

/* UBA — sıralama sekmesi */
.uba-panel--sira {
    align-items: stretch;
    text-align: left;
    width: 100%;
    max-width: 100%;
}
.uba-sira-hint {
    margin: 0 0 12px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(200, 220, 235, 0.92);
    text-align: center;
}
.uba-sira-status {
    margin: 0 0 8px;
    min-height: 1.2em;
    font-size: 0.82rem;
    color: rgba(255, 200, 120, 0.95);
    text-align: center;
}
.uba-sira-status:empty {
    display: none;
}
.uba-sira-head {
    display: grid;
    grid-template-columns: 36px 1fr 52px 52px;
    gap: 6px 8px;
    align-items: center;
    padding: 8px 10px;
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 220, 255, 0.85);
    border-bottom: 1px solid rgba(0, 180, 230, 0.35);
}
.uba-sira-h-rank { text-align: center; }
.uba-sira-h-name { text-align: left; }
.uba-sira-h-w,
.uba-sira-h-d { text-align: right; }
.uba-sira-scroll {
    min-width: 0;
    width: 100%;
}
.uba-sira-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    width: 100%;
}
.uba-sira-row {
    display: grid;
    grid-template-columns: 36px 1fr 52px 52px;
    gap: 6px 8px;
    align-items: center;
    padding: 8px 10px;
    margin: 0 0 2px;
    font-size: 0.84rem;
    color: rgba(240, 248, 255, 0.95);
    background: rgba(0, 30, 48, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(0, 120, 160, 0.22);
}
.uba-sira-row--me {
    border-color: rgba(0, 220, 255, 0.55);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
    background: rgba(0, 55, 80, 0.45);
}
.uba-sira-rank {
    text-align: center;
    font-weight: 800;
    color: rgba(255, 210, 120, 0.95);
}
.uba-sira-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.uba-sira-w,
.uba-sira-d {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.uba-sira-w { color: #ffe8a8; }
.uba-sira-d { color: rgba(220, 235, 255, 0.88); }
.uba-sira-empty {
    list-style: none;
    margin: 16px 0 0;
    padding: 14px 12px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(180, 200, 215, 0.95);
    background: rgba(0, 25, 40, 0.4);
    border-radius: 8px;
    border: 1px dashed rgba(0, 160, 200, 0.35);
}

/* UBA — ödüller sekmesi */
.uba-panel--oduller {
    align-items: center;
    text-align: center;
}
.uba-odul-hint {
    margin: 4px 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 210, 120, 0.95);
    text-shadow: 0 0 10px rgba(255, 180, 40, 0.18);
}
.uba-odul-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 320px;
}
.uba-odul-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 0 8px;
    border-radius: 10px;
    background: rgba(0, 30, 48, 0.38);
    border: 1px solid rgba(0, 120, 160, 0.22);
    color: rgba(240, 248, 255, 0.95);
    font-size: 0.69rem;
}
.uba-odul-rank {
    font-weight: 900;
    color: rgba(0, 220, 255, 0.85);
    font-size: 0.69rem;
}
.uba-odul-prize {
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    font-size: 0.69rem;
}

@media (max-width: 380px) {
    .uba-body {
        padding: 14px 14px 16px;
    }
    .uba-match-btn {
        padding: 12px 36px;
        font-size: 0.92rem;
    }
}

/* UBA — rakip aranıyor katmanı */
.uba-search-layer {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 12px 14px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #0a1018 0%, #05080e 55%, #070d14 100%);
    border: 1px solid rgba(0, 210, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(0, 60, 90, 0.85),
        0 0 22px rgba(0, 200, 255, 0.35),
        inset 0 0 40px rgba(0, 40, 70, 0.25);
    border-radius: 3px;
}
.uba-search-layer.hidden {
    display: none !important;
}
.uba-search-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}
.uba-search-head {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 10px 6px 14px;
    border-bottom: 1px solid rgba(0, 120, 160, 0.35);
    margin-bottom: 8px;
}
.uba-search-emblem {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.45));
}
.uba-search-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 2px;
    font-size: clamp(0.62rem, 2.6vmin, 0.98rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 200, 60, 0.35), 0 1px 0 rgba(0, 0, 0, 0.85);
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
}
.uba-search-min {
    flex: 0 0 34px;
    width: 34px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(200, 230, 255, 0.9);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.uba-search-min:hover {
    color: #fff;
    background: rgba(0, 140, 200, 0.18);
}
.uba-search-status {
    margin: 10px 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(245, 250, 255, 0.96);
    letter-spacing: 0.03em;
    text-align: center;
}
.uba-search-gears-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 100px;
    margin: 12px 0 10px;
    flex: 1 1 auto;
}
.uba-gear {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(0, 220, 255, 0.45));
}
.uba-gear svg {
    display: block;
}
.uba-gear--left {
    margin-right: -18px;
    margin-bottom: 8px;
    transform-origin: 50% 50%;
    animation: ubaGearSpinCW 10s linear infinite;
}
.uba-gear--right {
    margin-left: -10px;
    transform-origin: 50% 50%;
    animation: ubaGearSpinCCW 10s linear infinite;
}
@keyframes ubaGearSpinCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes ubaGearSpinCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
.uba-search-layer:not(.hidden) .uba-gear--left,
.uba-search-layer:not(.hidden) .uba-gear--right {
    animation-play-state: running;
}
.uba-search-layer.hidden .uba-gear--left,
.uba-search-layer.hidden .uba-gear--right {
    animation: none;
}
.uba-search-cancel-btn {
    margin-top: 14px;
    margin-bottom: 12px;
    flex-shrink: 0;
    padding: 12px 48px;
    min-width: 200px;
    border: 1px solid rgba(0, 220, 255, 0.65);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    cursor: pointer;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px),
        linear-gradient(180deg, #5a6575 0%, #3d4654 40%, #2a313c 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45) inset,
        0 0 18px rgba(0, 200, 255, 0.35),
        0 3px 10px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
    transition: filter 0.15s, transform 0.1s;
}
.uba-search-cancel-btn:hover {
    filter: brightness(1.08);
}
.uba-search-cancel-btn:active {
    transform: scale(0.98);
}

/* UBA — eşleşme bulunamadı (genel uyarı yerine UBA görünümü) */
.uba-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 10260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}
.uba-notice-overlay.hidden {
    display: none !important;
}
.uba-notice-panel {
    width: min(256px, calc(92vw * 0.8));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px 13px;
    background: linear-gradient(180deg, #0a1018 0%, #05080e 55%, #070d14 100%);
    border: 1px solid rgba(0, 210, 255, 0.55);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(0, 60, 90, 0.85),
        0 0 18px rgba(0, 200, 255, 0.3),
        inset 0 0 32px rgba(0, 40, 70, 0.25);
}
.uba-notice-panel .uba-search-head {
    margin-bottom: 6px;
    padding: 8px 5px 11px;
}
.uba-notice-panel .uba-search-emblem {
    flex: 0 0 26px;
}
.uba-notice-panel .uba-search-emblem svg {
    width: 19px;
    height: 19px;
}
.uba-notice-panel .uba-search-title {
    font-size: clamp(0.5rem, 2.08vmin, 0.78rem);
}
.uba-notice-panel .uba-search-min {
    flex: 0 0 27px;
    width: 27px;
    height: 24px;
    font-size: 18px;
}
.uba-notice-panel .uba-search-cancel-btn {
    padding: 9.6px 38px;
    min-width: 160px;
    font-size: 0.76rem;
}
.uba-notice-single {
    margin: 11px 0 14px !important;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.76rem !important;
}
.uba-notice-dismiss {
    align-self: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* UBA — maç sırasında üst orta: iki oyuncu HP / kalkan */
.uba-match-hud {
    position: absolute;
    left: 50%;
    top: 6px;
    transform-origin: 50% 0%;
    /* %35 yatay, %10 dikey küçült + ekstra %10 yatay, %5 dikey */
    transform: translateX(-50%) scaleX(0.585) scaleY(0.855);
    z-index: 28;
    width: min(720px, calc(100vw - 24px));
    pointer-events: none;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

/* Mobilde UI katmanı farklı ölçek/z-index katmanlarıyla örtüşebiliyor; UBA HUD her zaman üstte kalsın. */
html.mobile-ayarlar-compact .uba-match-hud {
    position: fixed;
    z-index: 120;
    top: calc(4px + env(safe-area-inset-top));
}
.uba-match-hud.hidden {
    display: none !important;
}
.uba-match-hud__shell {
    position: relative;
    background: linear-gradient(180deg, #020b18 0%, #000814 42%, #00060f 100%);
    border: 1px solid #1a3a5a;
    box-shadow:
        0 0 0 1px rgba(0, 40, 80, 0.65),
        0 0 20px rgba(0, 120, 200, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    border-radius: 2px 2px 0 2px;
    pointer-events: auto;
}
.uba-match-hud__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px 7px;
    background: linear-gradient(180deg, #0c1a30 0%, #071426 55%, #061222 100%);
    border-bottom: 1px solid rgba(26, 58, 90, 0.95);
}
.uba-match-hud__emblem {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}
.uba-match-hud__title {
    flex: 1 1 auto;
    margin: 0;
    padding: 0 6px;
    font-size: clamp(0.72rem, 1.6vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.uba-match-hud__min {
    flex: 0 0 32px;
    width: 32px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: rgba(220, 235, 255, 0.88);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.uba-match-hud__min:hover {
    color: #fff;
    background: rgba(0, 100, 160, 0.2);
}
.uba-match-hud__body {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px 10px;
    min-height: 108px;
    box-sizing: border-box;
}
.uba-match-hud--min .uba-match-hud__body {
    display: none;
}
.uba-match-hud__side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 38%;
    min-width: 0;
}
.uba-match-hud__side--right {
    flex-direction: row;
    justify-content: flex-end;
}
.uba-match-hud__avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 1px solid #1a3a5a;
    background: radial-gradient(circle at 40% 35%, #1a2840 0%, #050810 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
}
.uba-match-hud__avatar img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    image-rendering: auto;
}
.uba-match-hud__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.uba-match-hud__meta--right {
    align-items: flex-end;
}
.uba-match-hud__name {
    width: 100%;
    font-size: clamp(0.62rem, 1.35vw, 0.78rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.uba-match-hud__name--right {
    text-align: right;
}
.uba-match-hud__bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.uba-match-hud__track {
    position: relative;
    height: 9px;
    width: 100%;
    border-radius: 1px;
    background: rgba(0, 12, 28, 0.92);
    border: 1px solid rgba(26, 58, 90, 0.75);
    overflow: hidden;
    box-sizing: border-box;
}
.uba-match-hud__bars--left .uba-match-hud__track {
    display: flex;
    justify-content: flex-end;
}
.uba-match-hud__bars--right .uba-match-hud__track {
    display: flex;
    justify-content: flex-start;
}
.uba-match-hud__fill {
    height: 100%;
    width: 0%;
    min-width: 0;
    transition: width 0.12s ease-out;
    border-radius: 1px;
}
.uba-match-hud__fill--hp {
    background: linear-gradient(180deg, #4dff4d 0%, #00ff00 45%, #00c800 100%);
    box-shadow: 0 0 8px rgba(0, 255, 80, 0.35);
}
.uba-match-hud__fill--sh {
    background: linear-gradient(180deg, #7fffff 0%, #00ffff 45%, #00c8c8 100%);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}
.uba-match-hud__round-dots {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}
.uba-match-hud__round-dots span {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(80, 110, 140, 0.65);
    background: rgba(30, 45, 65, 0.75);
    box-sizing: border-box;
}
.uba-match-hud__round-dots--right {
    justify-content: flex-end;
}
.uba-match-hud__center {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
}
.uba-match-hud__roundbox {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 190, 255, 0.55);
    background: linear-gradient(180deg, #031020 0%, #000814 100%);
    box-shadow: inset 0 0 10px rgba(0, 40, 80, 0.45);
}
.uba-match-hud__roundbox span {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.uba-match-hud__timer {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.25);
}
@media (max-width: 768px) {
    .uba-match-hud {
        width: min(680px, calc(100% - 16px));
        top: 4px;
    }
    .uba-match-hud__avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}

/* UBA maç HUD: sadece mobil yatay (body.uba-mobile-landscape) — en ve boya ek ×0.85 (%15); PC aynı kalır */
body.uba-mobile-landscape .uba-match-hud {
    /* Base HUD ölçeği zaten küçültülmüş; mobil yatayda sadece %15 ek küçültme uygula. */
    transform: translateX(-50%) scaleX(0.49725) scaleY(0.72675);
    transform-origin: 50% 0%;
    top: 4px;
}

/* UBA — maç başı geri sayım + FIGHT! */
.uba-intro-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 45% at 50% 42%, rgba(40, 20, 80, 0.22) 0%, transparent 62%),
        rgba(0, 2, 10, 0.35);
}
.uba-intro-overlay.hidden {
    display: none !important;
}

html.mobile-ayarlar-compact .uba-intro-overlay {
    position: fixed;
    z-index: 130;
}
.uba-intro__main {
    font-family: Impact, 'Arial Black', 'Segoe UI', sans-serif;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: center;
    user-select: none;
    transform-origin: 50% 55%;
    will-change: transform, opacity;
}
.uba-intro__main--num {
    font-size: clamp(4.5rem, 18vw, 9rem);
    color: #ffe566;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.95),
        0 2px 0 #1a1000,
        0 3px 0 #0d0800,
        0 4px 12px rgba(0, 0, 0, 0.75),
        0 0 28px rgba(255, 200, 40, 0.45);
}
.uba-intro__main--fight {
    font-size: clamp(2.2rem, 9vw, 4.6rem);
    padding: 0 0.15em;
    background: linear-gradient(180deg, #fff0a0 0%, #ffcc33 28%, #ffaa00 58%, #ff6600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(10, 5, 0, 0.92);
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 140, 0, 0.35));
}
@keyframes ubaIntroPop {
    0% {
        transform: scale(0.12);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.uba-intro__pop {
    animation: ubaIntroPop 0.72s cubic-bezier(0.15, 0.85, 0.2, 1) both;
}

/* UBA — maç kazanıldı */
.uba-win-overlay {
    position: absolute;
    inset: 0;
    z-index: 42;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 42% at 50% 45%, rgba(90, 30, 40, 0.35) 0%, transparent 58%),
        rgba(18, 6, 10, 0.55);
}
.uba-win-overlay.hidden {
    display: none !important;
}

html.mobile-ayarlar-compact .uba-win-overlay {
    position: fixed;
    z-index: 132;
}
.uba-win__text {
    font-family: Impact, 'Arial Black', 'Segoe UI', sans-serif;
    font-weight: 900;
    letter-spacing: 0.06em;
    word-spacing: 0.55em;
    line-height: 1;
    text-align: center;
    user-select: none;
    transform-origin: 50% 55%;
    will-change: transform, opacity;
    font-size: clamp(2rem, 10vw, 5.2rem);
    padding: 0 0.12em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffe22a 0%, #ffc933 22%, #ff9a1a 55%, #c94a0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(8, 4, 2, 0.95);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(255, 160, 40, 0.4));
}
.uba-win__pop {
    animation: ubaIntroPop 0.72s cubic-bezier(0.15, 0.85, 0.2, 1) both;
}
