/* =============================================
   FETİH - ANA STİL DOSYASI
   Değiştirmek istersen burayı düzenle!
   ============================================= */

/* GENEL AYARLAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* ANA RENKLER - Bunları değiştirebilirsin */
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    --accent: #e94560;
    --gold: #ffd700;
    --success: #00ff88;
    --danger: #ff4444;
    --text: #ffffff;
    --text-dim: #888888;
    
    /* BOYUTLAR */
    --header-height: 60px;
    --panel-width: 280px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* OYUN CONTAINER */
#game-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================================
   DEV/TEST PANELİ
   ============================================= */
#dev-toggle {
    position: fixed;
    top: 70px;
    left: 15px;
    z-index: 10000;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    transition: all 0.2s;
}

#dev-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.8);
}

#dev-panel {
    position: fixed;
    top: 60px;
    left: 10px;
    z-index: 9998;
    background: linear-gradient(135deg, #2d3436, #000000);
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#dev-panel.hidden {
    display: none;
}

.dev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px 12px 0 0;
    font-weight: bold;
}

.dev-header button {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.dev-content {
    padding: 15px;
}

.dev-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dev-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dev-section h4 {
    margin-bottom: 10px;
    color: #ff6b6b;
    font-size: 13px;
}

.dev-section button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.dev-section button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* =============================================
   ÜST BAR - TEK SATIR HEADER
   ============================================= */
#top-bar {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-row {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 10px;
}

/* Header Sol - Logo */
.header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ana Menü Butonu */
.header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-menu-btn:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.5);
    transform: scale(1.05);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent);
    white-space: nowrap;
}

/* Header Sol - Ülke Bilgisi */
.my-country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-country-icon {
    font-size: 24px;
}

.header-country-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-country-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    line-height: 1.2;
}

.header-country-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-dim);
}

.header-pop {
    color: var(--success);
}

/* Header Orta - Menü */
.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

/* Header içindeki Tab Menüler */
#top-bar #tabs {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#top-bar .tab-btn {
    flex-direction: row;
    padding: 5px 10px;
    min-width: auto;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}

#top-bar .tab-btn .tab-icon {
    font-size: 14px;
}

#top-bar .tab-btn .tab-label {
    font-size: 10px;
}

/* Header Sağ - Kaynaklar */
.header-right {
    flex-shrink: 0;
}

.resources {
    display: flex;
    gap: 10px;
}

.resource {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.resource.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.resource.clickable:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.02);
}

.resource.clickable:active {
    transform: scale(0.98);
}

.resource .icon {
    font-size: 16px;
}

.resource .amount {
    font-size: 14px;
    font-weight: bold;
    color: var(--gold);
}

.resource .rate {
    font-size: 10px;
    color: var(--success);
}

.resource .label {
    font-size: 10px;
    color: var(--text-dim);
}

/* HIZ BUTONLARI */
.game-speed {
    display: flex;
    gap: 5px;
}

.speed-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.speed-btn:hover {
    background: rgba(255,255,255,0.2);
}

.speed-btn.active {
    background: var(--accent);
}

/* =============================================
   ANA İÇERİK - 3 PARÇALI BAĞIMSIZ SCROLL
   ============================================= */
:root {
    --header-total-height: 60px; /* Tek satır header */
}

#main-content {
    display: flex;
    margin-top: var(--header-total-height);
    height: calc(100vh - var(--header-total-height));
    overflow: hidden;
}

/* SOL PANEL - BAĞIMSIZ SCROLL */
#left-panel {
    width: var(--panel-width);
    background: var(--bg-medium);
    padding: 15px;
    overflow-y: auto;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* SAĞ PANEL - BAĞIMSIZ SCROLL */
#right-panel {
    width: var(--panel-width);
    background: var(--bg-medium);
    padding: 15px;
    overflow-y: auto;
    height: 100%;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* SCROLLBAR STİLLERİ - 3 Panel için */
#left-panel::-webkit-scrollbar,
#right-panel::-webkit-scrollbar,
#center-panel::-webkit-scrollbar {
    width: 6px;
}

#left-panel::-webkit-scrollbar-track,
#right-panel::-webkit-scrollbar-track,
#center-panel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#left-panel::-webkit-scrollbar-thumb,
#right-panel::-webkit-scrollbar-thumb,
#center-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

#left-panel::-webkit-scrollbar-thumb:hover,
#right-panel::-webkit-scrollbar-thumb:hover,
#center-panel::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* PANEL SEKSİYONLARI */
.panel-section {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.panel-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent);
}

/* ÜLKE BİLGİSİ */
#my-country-info {
    text-align: center;
}

.country-flag {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: var(--accent);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

.country-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.country-stats .stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.country-stats .label {
    color: var(--text-dim);
}

.country-stats .value {
    font-weight: bold;
}

/* SOL PANEL - HIZLI İSTATİSTİKLER */
.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.quick-stat:hover {
    background: rgba(0, 0, 0, 0.3);
}

.quick-stat .stat-icon {
    font-size: 20px;
}

.quick-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--gold);
}

.quick-stat .stat-label {
    font-size: 10px;
    color: var(--text-dim);
}

/* AKTİF ARAŞTIRMA PANELİ */
#active-research-info {
    min-height: 60px;
}

.no-research, .no-treaties {
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
    padding: 15px;
}

.active-research-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.active-research-item .research-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
}

.active-research-item .research-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.active-research-item .research-progress-bar {
    height: 100%;
    background: var(--success);
    transition: width 0.3s;
}

.active-research-item .research-time {
    font-size: 11px;
    color: var(--text-dim);
}

/* ANLAŞMALAR MİNİ LİSTESİ */
#treaties-mini-list {
    max-height: 150px;
    overflow-y: auto;
}

.treaty-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 12px;
}

.treaty-mini-item .treaty-icon {
    font-size: 16px;
}

.treaty-mini-item .treaty-country {
    flex: 1;
    font-weight: 500;
}

.treaty-mini-item .treaty-type {
    color: var(--text-dim);
    font-size: 10px;
}

/* ÜRETİM KUYRUĞU */
#queue-list {
    max-height: 200px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    margin-bottom: 5px;
}

.queue-item .icon {
    font-size: 20px;
}

.queue-item .name {
    flex: 1;
}

.queue-item .progress {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.queue-item .progress-bar {
    height: 100%;
    background: var(--success);
    transition: width 0.3s;
}

.empty-queue {
    color: var(--text-dim);
    text-align: center;
    padding: 20px;
}

/* =============================================
   ORTA PANEL - BAĞIMSIZ SCROLL
   ============================================= */
#center-panel {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    height: 100%;
}

/* TAB STİLLERİ menu.css'e taşındı */

/* BİRİM KATEGORİLERİ */
.unit-category {
    margin-bottom: 25px;
}

.unit-category h3 {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* BİRİM GRID */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* BİRİM KARTI */
.unit-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.unit-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.unit-card .header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.unit-card .icon {
    font-size: 28px;
}

.unit-card .name {
    font-weight: bold;
}

.unit-card .stats {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.unit-card .stats span {
    margin-right: 10px;
}

.unit-card .price {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 10px;
}

.unit-card .owned {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.unit-card .buttons {
    display: flex;
    gap: 5px;
}

.unit-card .btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-buy {
    background: var(--success);
    color: #000;
}

.btn-buy:hover:not(:disabled) {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.btn-buy:disabled,
.btn-buy.cant-afford {
    background: #555 !important;
    color: #888 !important;
    cursor: not-allowed;
    transform: none !important;
}

.btn-buy:active:not(:disabled) {
    transform: scale(0.95);
}

/* Altın animasyonu */
#gold-amount {
    transition: color 0.1s;
    font-variant-numeric: tabular-nums;
}

#gold-amount.increasing {
    color: #00ff88;
}

/* =============================================
   ÜLKELER LİSTESİ
   ============================================= */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.country-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.country-card:hover {
    border-color: var(--accent);
}

.country-card.my-country {
    border-color: var(--success);
}

.country-card.conquered-card {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), var(--bg-light));
}

.conquered-badge {
    background: var(--success);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.home-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.positive-text {
    color: var(--success) !important;
}

.country-card.unstable-card {
    border-color: var(--danger);
    animation: unstable-border 2s infinite;
}

@keyframes unstable-border {
    0%, 100% { border-color: var(--danger); }
    50% { border-color: transparent; }
}

.danger-text {
    color: var(--danger) !important;
}

.country-card .header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.country-card .flag {
    font-size: 32px;
}

.country-card .name {
    font-weight: bold;
    font-size: 16px;
}

.country-card .difficulty {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.difficulty.kolay { background: var(--success); color: #000; }
.difficulty.orta { background: var(--gold); color: #000; }
.difficulty.zor { background: var(--danger); }
.difficulty.cok_zor { background: #800080; }

/* İstihbarat Badge */
.intel-badge {
    font-size: 10px;
    margin-left: auto;
}

.no-intel {
    color: var(--text-dim);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--text-dim);
}

.btn-secondary:hover {
    background: var(--bg-medium);
    border-color: var(--accent);
}

.country-card .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.country-card .stat {
    display: flex;
    justify-content: space-between;
}

.country-card .buttons {
    display: flex;
    gap: 5px;
}

.country-card .btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* =============================================
   ORDU LİSTESİ - GRUPLU
   ============================================= */

/* Grup başlığı */
.army-group {
    margin-bottom: 10px;
}

.army-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.3), rgba(233, 69, 96, 0.1));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.army-group-header:hover {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.5), rgba(233, 69, 96, 0.2));
}

.group-name {
    flex: 1;
    font-weight: bold;
    font-size: 13px;
}

.group-count {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.group-power {
    font-size: 11px;
    color: var(--gold);
}

.group-toggle {
    font-size: 10px;
    color: var(--text-dim);
    transition: transform 0.2s;
}

/* Grup detayları */
.army-group-details {
    padding: 5px 0 5px 10px;
    border-left: 2px solid rgba(233, 69, 96, 0.3);
    margin-left: 10px;
    margin-top: 5px;
}

.army-group-details.hidden {
    display: none;
}

/* Birim satırı */
#army-list .army-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    margin-bottom: 5px;
}

.army-item .icon {
    font-size: 20px;
}

.army-item .name {
    flex: 1;
}

.army-item .count {
    font-weight: bold;
    color: var(--gold);
}

.army-item .power {
    font-size: 12px;
    color: var(--text-dim);
}

/* Terhis Butonu */
.army-item .disband-btn {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff6666;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.army-item .disband-btn:hover {
    background: rgba(255, 68, 68, 0.4);
    border-color: #ff4444;
    color: #ff4444;
}

/* Terhis Modal */
.disband-modal {
    max-width: 400px;
    width: 90%;
}

.disband-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 10px 10px 0 0;
}

.disband-modal .modal-header h3 {
    margin: 0;
    color: white;
}

.disband-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.disband-modal .modal-body {
    padding: 20px;
}

.disband-unit-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.disband-unit-info .unit-icon {
    font-size: 32px;
}

.disband-unit-info .unit-name {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.disband-unit-info .unit-count {
    color: var(--text-dim);
}

.disband-slider-container {
    margin-bottom: 20px;
}

.disband-slider-container label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.disband-slider-container input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.disband-count-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.disband-count-display #disband-count-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    min-width: 80px;
    text-align: center;
}

.disband-adj-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.disband-adj-btn:hover {
    background: rgba(255,255,255,0.2);
}

.disband-info {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.disband-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.disband-info .info-row:last-child {
    border-bottom: none;
}

.disband-info .info-row.total {
    font-size: 16px;
    font-weight: bold;
    color: var(--success);
}

.disband-warning {
    text-align: center;
    color: #ff6666;
    font-size: 12px;
    margin-top: 10px;
}

.disband-modal .modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 10px 10px;
}

.disband-modal .btn-cancel {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.disband-modal .btn-cancel:hover {
    background: rgba(255,255,255,0.2);
}

.disband-modal .btn-confirm {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.disband-modal .btn-confirm:hover {
    background: linear-gradient(135deg, #a93226, #c0392b);
}

/* =============================================
   POPUP'LAR
   ============================================= */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15000;
}

/* Alert popup - modal üzerinde gösterilmeli */
.popup.alert-overlay {
    z-index: 20000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: var(--bg-medium);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 20px;
}

.battle-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.battle-actions .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* =============================================
   ÜLKE SEÇİM EKRANI
   ============================================= */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 15000; /* Bildirim panelinden yüksek */
    overflow-y: auto;
    padding: 20px 0;
}

.screen.hidden {
    display: none;
}

.screen-content {
    text-align: center;
    max-width: 1200px;
    width: 90%;
    padding: 20px;
    margin: auto;
}

.screen-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--accent);
}

.screen-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dim);
}

#country-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

/* ZORLUK SEÇİM GRID */
#difficulty-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.difficulty-card {
    background: linear-gradient(145deg, var(--bg-light), var(--bg-medium));
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    text-align: left;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.difficulty-card.easy {
    border-color: #00ff88;
}
.difficulty-card.easy:hover {
    background: linear-gradient(145deg, #0a3d2a, var(--bg-medium));
}

.difficulty-card.normal {
    border-color: #00aaff;
}
.difficulty-card.normal:hover {
    background: linear-gradient(145deg, #0a2d4d, var(--bg-medium));
}

.difficulty-card.hard {
    border-color: #ffaa00;
}
.difficulty-card.hard:hover {
    background: linear-gradient(145deg, #3d2a0a, var(--bg-medium));
}

.difficulty-card.veryhard {
    border-color: #ff4444;
}
.difficulty-card.veryhard:hover {
    background: linear-gradient(145deg, #4d0a0a, var(--bg-medium));
}

.difficulty-card .diff-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.difficulty-card .diff-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.difficulty-card .diff-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.5;
}

.difficulty-card .diff-stats {
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
}

.difficulty-card .diff-stats div {
    margin: 5px 0;
}

.difficulty-card .diff-stats .good {
    color: #00ff88;
}

.difficulty-card .diff-stats .bad {
    color: #ff4444;
}

.difficulty-card .diff-stats .neutral {
    color: #ffaa00;
}

.btn-back {
    margin-top: 30px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--text-dim);
    color: var(--text-dim);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: var(--text);
    color: var(--text);
}

.select-country-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.select-country-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.select-country-card .flag {
    font-size: 48px;
    margin-bottom: 10px;
}

.select-country-card .card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-country-card .name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.select-country-card .stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-dim);
}

.select-country-card .bonus {
    font-size: 11px;
    color: #f1c40f;
    margin-top: 5px;
}

.select-country-card .info {
    font-size: 12px;
    color: var(--text-dim);
}

/* =============================================
   ANA MENÜ EKRANI
   ============================================= */
.main-menu-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-logo {
    margin-bottom: 30px;
}

.game-logo .logo-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-logo h1 {
    font-size: 56px;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
    margin: 0;
    letter-spacing: 8px;
}

.game-logo h2 {
    font-size: 18px;
    color: var(--text-dim);
    margin: 8px 0 0 0;
    letter-spacing: 4px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
}

.menu-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-btn.primary {
    background: linear-gradient(135deg, var(--accent), #e67e22);
    border-color: var(--accent);
    color: #000;
}

.menu-btn.primary:hover {
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.4);
}

.menu-footer {
    margin-top: 30px;
    color: var(--text-dim);
    font-size: 12px;
}

/* =============================================
   ZAFER EKRANI
   ============================================= */
.victory-content {
    text-align: center;
    animation: victorySlide 1s ease;
}

@keyframes victorySlide {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.victory-crown {
    font-size: 150px;
    animation: crownBounce 1s infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.victory-content h1 {
    font-size: 56px;
    color: var(--accent);
    margin: 20px 0 10px 0;
    text-shadow: 0 0 50px rgba(243, 156, 18, 0.6);
}

.victory-content h2 {
    font-size: 24px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.victory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.victory-stat {
    text-align: center;
    padding: 15px;
}

.victory-stat .stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.victory-stat .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
}

.victory-stat .stat-label {
    font-size: 14px;
    color: var(--text-dim);
}

.victory-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =============================================
   TUTORIAL EKRANI
   ============================================= */
.tutorial-content {
    background: var(--bg-medium);
    border-radius: 20px;
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-header h1 {
    margin: 0;
    font-size: 24px;
}

.close-tutorial {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-tutorial:hover {
    color: var(--danger);
}

.tutorial-steps {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tutorial-step.active {
    display: block;
}

.tutorial-step h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--accent);
}

.tutorial-step p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

.tutorial-step .tip {
    background: rgba(46, 204, 113, 0.2);
    border-left: 4px solid var(--success);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.tutorial-step .warning {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid var(--danger);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.tutorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.3));
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.5), rgba(41, 128, 185, 0.5));
}

.tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-progress {
    color: var(--text-dim);
    font-size: 14px;
}

/* =============================================
   CREDITS EKRANI
   ============================================= */
.credits-content {
    text-align: center;
    max-width: 500px;
}

.credits-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.credits-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.credits-info p {
    margin: 10px 0;
    font-size: 16px;
}

/* Sosyal Medya Linkleri */
.social-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links > p {
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.5);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 20px;
}

.social-name {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   COMING SOON
   ============================================= */
.coming-soon {
    text-align: center;
    padding: 50px;
    color: var(--text-dim);
    font-size: 18px;
}

/* =============================================
   DÜNYA HARİTASI - TAM EKRAN
   ============================================= */

/* Harita Header */
.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0;
}

/* Legend */
.map-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-color.player {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.legend-color.conquered {
    background: linear-gradient(135deg, var(--success), #065f46);
}

.legend-color.ally {
    background: #22c55e;
}

.legend-color.enemy {
    background: #ef4444;
}

/* Harita Container - Tam Boy */
#world-map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, #0d2137 50%, #071220 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 100px rgba(0, 100, 200, 0.05);
    position: relative;
}

#world-map-container.fullsize-map {
    height: 500px;
}

/* Harita Kontrolleri */
.map-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.map-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.map-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-top: 10px;
}

.world-map {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.country-path {
    transition: all 0.2s;
    cursor: pointer;
}

.country-path:hover {
    filter: brightness(1.4) drop-shadow(0 0 8px rgba(255,255,255,0.5));
    transform: scale(1.02);
}

.country-path.player-country {
    filter: drop-shadow(0 0 10px var(--success));
}

.country-path.player-territory {
    filter: drop-shadow(0 0 12px var(--success)) drop-shadow(0 0 25px var(--success));
    stroke-dasharray: none;
}

.country-path.unstable {
    animation: unstable-pulse 2s infinite;
}

@keyframes unstable-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

.country-label {
    pointer-events: none;
    font-size: 12px;
}

/* Savaş göstergesi */
.war-indicator {
    animation: war-pulse 1s infinite;
}

@keyframes war-pulse {
    0%, 100% { r: 6; opacity: 1; }
    50% { r: 10; opacity: 0.6; }
}

/* Duman efekti */
.smoke-particle {
    animation: smoke-rise 3s infinite;
}

@keyframes smoke-rise {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-15px); opacity: 0; }
}

.smoke-particle:nth-child(2) { animation-delay: 1s; }
.smoke-particle:nth-child(3) { animation-delay: 2s; }

/* Harita lejant */
.map-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.player { background: var(--success); box-shadow: 0 0 5px var(--success); }
.legend-color.unstable { background: #ff6600; }
.legend-color.war { background: var(--danger); }

.map-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

/* =============================================
   BAL PETEĞİ (HEX) HARİTA STİLLERİ
   ============================================= */

/* Ana container */
.hex-map-container {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #071220 100%);
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                inset 0 0 100px rgba(0, 100, 200, 0.08);
    position: relative;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-map-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.hex-map-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.hex-map-container::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 4px;
}

.hex-map-container::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

/* Scrollbar görünür olsun */
.hex-map-container::-webkit-scrollbar-corner {
    background: rgba(0,0,0,0.3);
}

/* SVG harita */
.hex-map {
    width: 100%;
    height: 100%;
    max-height: 500px;
    display: block;
}

/* Header */
.hex-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(26, 38, 52, 0.9), rgba(13, 33, 55, 0.9));
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.hex-title h2 {
    margin: 0;
    font-size: 1.5em;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hex-subtitle {
    font-size: 0.8em;
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
}

/* İstatistikler */
.hex-stats {
    display: flex;
    gap: 20px;
}

.map-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.map-stat .stat-icon {
    font-size: 1.2em;
}

.map-stat .stat-label {
    color: var(--text-dim);
    font-size: 0.85em;
}

.map-stat .stat-value {
    font-weight: bold;
    color: #fff;
}

.map-stat .stat-value.high {
    color: var(--success);
    text-shadow: 0 0 10px var(--success);
}

.map-stat.domination {
    border-color: rgba(241, 196, 15, 0.3);
    background: rgba(241, 196, 15, 0.1);
}

/* Lejand bar */
.hex-legend-bar {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    flex-wrap: wrap;
}

.hex-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.8);
}

.hex-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hex-dot.player {
    background: #f1c40f;
    box-shadow: 0 0 8px #f1c40f;
}

.hex-dot.conquered {
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.hex-dot.ally {
    background: #3498db;
    box-shadow: 0 0 8px #3498db;
}

.hex-dot.war {
    background: #e74c3c;
    box-shadow: 0 0 8px #e74c3c;
}

.hex-dot.expelled {
    background: #9b59b6;
    box-shadow: 0 0 8px #9b59b6;
    animation: pulse-expelled 2s infinite;
}

@keyframes pulse-expelled {
    0%, 100% { box-shadow: 0 0 8px #9b59b6; }
    50% { box-shadow: 0 0 15px #9b59b6, 0 0 25px rgba(155, 89, 182, 0.5); }
}

.hex-dot.neutral {
    background: #7f8c8d;
}

/* Kontroller */
.hex-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.hex-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.3));
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.2s;
}

.hex-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.5), rgba(41, 128, 185, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.hex-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-top: 12px;
}

/* Harita Görünüm Kontrolleri */
.map-view-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.view-btn.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.5), rgba(41, 128, 185, 0.5));
    border-color: rgba(52, 152, 219, 0.6);
    color: #fff;
}

/* Alt Harita Bar (Zoom + Reset) */
.map-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.map-zoom-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.map-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.map-zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.map-zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

.zoom-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    min-width: 50px;
}

.map-reset-btn {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.map-reset-btn:hover {
    background: rgba(231, 76, 60, 0.5);
}

/* Hex Legend Bar */
.hex-legend-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.hex-legend-bar .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.hex-legend-bar .legend-color {
    width: 24px;
    height: 14px;
    border-radius: 4px;
}

.hex-legend-bar .legend-item.player .legend-color {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.hex-legend-bar .legend-item.enemy .legend-color {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.hex-legend-bar .legend-item.friend .legend-color {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.hex-legend-bar .legend-item.neutral .legend-color {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

/* Hex cell etkileşimleri */
.hex-cell {
    transition: all 0.2s ease;
}

.hex-cell:hover {
    filter: brightness(1.3);
}

/* Hex içi lejand (eski tip - map.js içinde oluşturulur) */
.hex-legend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hex-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8em;
}

.hex-legend .legend-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}

/* =============================================
   ÜLKE DETAY MODAL
   ============================================= */
.modal-large {
    background: var(--bg-medium);
    border-radius: 15px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    background: var(--bg-medium);
    z-index: 10;
}

.modal-flag {
    font-size: 48px;
}

.modal-title-area {
    flex: 1;
}

.modal-title-area h2 {
    margin: 0;
    font-size: 24px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-dim);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger);
}

.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--accent);
}

/* Bilgi Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.info-item {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: bold;
}

.difficulty-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.difficulty-badge.kolay { background: var(--success); color: #000; }
.difficulty-badge.orta { background: var(--gold); color: #000; }
.difficulty-badge.zor { background: var(--danger); }
.difficulty-badge.cok_zor { background: #800080; }

/* Stabilite Bar */
.stability-bar-container {
    margin-bottom: 15px;
}

.stability-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.stability-value.stable { color: var(--success); }
.stability-value.unstable { color: var(--gold); }
.stability-value.critical { color: var(--danger); }

.stability-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stability-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.stability-fill.stable { background: var(--success); }
.stability-fill.unstable { background: var(--gold); }
.stability-fill.critical { background: var(--danger); }

/* Risk Indicators */
.risk-indicators {
    display: flex;
    gap: 10px;
}

.risk-item {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.risk-item.safe { background: rgba(0, 255, 136, 0.1); }
.risk-item.warning { background: rgba(255, 170, 0, 0.2); }
.risk-item.danger { background: rgba(255, 68, 68, 0.2); }

.risk-icon { font-size: 20px; display: block; }
.risk-label { font-size: 10px; color: var(--text-dim); display: block; }
.risk-value { font-size: 12px; font-weight: bold; display: block; margin-top: 4px; }

/* Relationship Display */
.relationship-bar-container {
    margin-bottom: 10px;
}

.relationship-bar {
    height: 12px;
    background: linear-gradient(to right, var(--danger), var(--gold), var(--success));
    border-radius: 6px;
    position: relative;
}

.relationship-marker {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 16px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
}

.relationship-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
}

.relationship-status {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* Battle Comparison */
.battle-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.battle-side {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    min-width: 120px;
}

.battle-side.player { background: rgba(0, 255, 136, 0.1); }
.battle-side.enemy { background: rgba(255, 68, 68, 0.1); }

.battle-label { font-size: 11px; color: var(--text-dim); display: block; }
.battle-power { font-size: 20px; font-weight: bold; display: block; margin-top: 5px; }

.battle-vs {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.win-chance {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.win-chance.good { background: rgba(0, 255, 136, 0.2); color: var(--success); }
.win-chance.medium { background: rgba(255, 215, 0, 0.2); color: var(--gold); }
.win-chance.bad { background: rgba(255, 68, 68, 0.2); color: var(--danger); }

/* Modal Actions */
.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.modal-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-attack { background: var(--danger); color: white; }
.btn-diplomacy { background: var(--accent); color: white; }
.btn-spy { background: #6b46c1; color: white; }
.btn-trade { background: var(--gold); color: black; }

/* Own Country Section */
.own-country {
    text-align: center;
}

.own-country-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.stat-big {
    text-align: center;
}

.stat-big .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    display: block;
}

.stat-big .stat-label {
    font-size: 12px;
    color: var(--text-dim);
}

/* Bonus List */
.bonus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bonus-item {
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    gap: 8px;
}

.bonus-value.positive { color: var(--success); }
.bonus-value.negative { color: var(--danger); }

/* Description */
.modal-section.description {
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
}

/* =============================================
   İSTİHBARAT VE CASUS SİSTEMİ
   ============================================= */
.intel-section {
    background: linear-gradient(135deg, rgba(100, 50, 200, 0.1), rgba(50, 50, 100, 0.1));
    border: 1px solid rgba(100, 50, 200, 0.3);
}

.intel-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.intel-stars {
    font-size: 24px;
}

.intel-warning {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 170, 0, 0.15);
    border-left: 3px solid orange;
    border-radius: 5px;
    font-size: 13px;
    color: #ffcc00;
}

.intel-complete {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.15);
    border-left: 3px solid var(--success);
    border-radius: 5px;
    font-size: 13px;
    color: var(--success);
}

/* Detaylı Kuvvetler */
.forces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.force-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.force-header {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.force-power {
    color: var(--accent);
}

.force-units {
    font-size: 12px;
    color: var(--text-dim);
}

.force-unit {
    padding: 3px 0;
}

.force-empty {
    color: var(--text-dim);
    font-style: italic;
}

/* Savaş Karşılaştırması */
.battle-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.battle-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 2px solid transparent;
}

.battle-category.weak {
    border-color: var(--danger);
    background: rgba(255, 68, 68, 0.1);
}

.battle-category.strong {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.battle-cat-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.battle-cat-powers {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 5px;
}

.battle-cat-powers .my-power {
    color: var(--success);
}

.battle-cat-powers .enemy-power {
    color: var(--accent);
}

.battle-cat-powers .vs {
    color: var(--text-dim);
}

.battle-cat-status {
    font-size: 12px;
}

.battle-warning {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
}

.battle-warning.danger {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.battle-warning.success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

/* Disabled button */
.modal-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
}

/* =============================================
   YENİ MODAL STİLLERİ - TAB SİSTEMİ
   ============================================= */

/* İstihbarat Yok Ekranı */
.no-intel-screen {
    text-align: center;
    padding: 30px;
}

.no-intel-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-intel-screen h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.no-intel-screen p {
    color: var(--text-dim);
    margin-bottom: 10px;
}

.spy-info-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.spy-count {
    font-size: 18px;
    margin-bottom: 10px;
}

.spy-icon {
    font-size: 24px;
    margin-right: 10px;
}

.spy-warning {
    color: var(--danger);
    font-size: 13px;
    margin-top: 10px;
}

/* Düşman Casus Keşfi */
.enemy-spy-reveal {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.2), rgba(155, 89, 182, 0.1));
    border: 2px solid #9b59b6;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.enemy-spy-count {
    text-align: center;
    margin-bottom: 15px;
}

.enemy-spy-count .big-number {
    display: block;
    font-size: 64px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.enemy-spy-count span:last-child {
    font-size: 14px;
    color: var(--text-dim);
}

.spy-progress {
    margin-top: 15px;
}

.spy-progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.spy-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #6a0dad);
    border-radius: 10px;
    transition: width 0.3s;
}

.spy-progress span {
    font-size: 12px;
    color: var(--text-dim);
}

/* ÇOKLU CASUS GÖNDERME */
.multi-spy-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(106, 13, 173, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.multi-spy-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #a78bfa;
}

.multi-spy-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.multi-spy-controls input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    outline: none;
}

.multi-spy-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #9b59b6, #6a0dad);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

.spy-count-num {
    font-size: 1.8em;
    font-weight: bold;
    color: #a78bfa;
    min-width: 40px;
    text-align: center;
}

.spy-send-info {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
}

.btn-spy-big {
    background: linear-gradient(135deg, #6a0dad, #9b59b6);
    padding: 15px 40px;
    font-size: 16px;
}

.btn-spy-big:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
}

/* Tab Menü */
.modal-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.modal-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    font-size: 13px;
}

.modal-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.modal-tab.active {
    background: var(--bg-light);
    color: var(--accent);
    font-weight: bold;
}

/* Tab İçerik */
#modal-tab-content .tab-content {
    display: block !important;
    min-height: 300px;
}

/* Info Group */
.info-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.group-header {
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 14px;
}

.info-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.info-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.info-box .info-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.info-box .info-value {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.info-box .info-label {
    font-size: 10px;
    color: var(--text-dim);
}

/* Stability Big */
.stability-bar-big {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stability-text {
    font-size: 13px;
}

.stability-text.stable { color: var(--success); }
.stability-text.unstable { color: var(--gold); }
.stability-text.critical { color: var(--danger); }

.stability-bonus {
    display: block;
    font-size: 0.85em;
    color: var(--success);
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 5px;
    text-align: center;
}

/* Risk Grid */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.risk-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.risk-box.danger {
    background: rgba(255, 68, 68, 0.2);
    border-left: 3px solid var(--danger);
}

.risk-box.warning {
    background: rgba(255, 170, 0, 0.2);
    border-left: 3px solid orange;
}

/* Relationship Big */
.relationship-big {
    text-align: center;
}

.relationship-bar-big {
    height: 20px;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.relationship-info {
    font-size: 14px;
}

/* Bonus Grid */
.bonus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bonus-chip {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
}

.bonus-chip.positive {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.bonus-chip.negative {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

/* Intel Required Screen */
.intel-required {
    text-align: center;
    padding: 40px;
}

.intel-req-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Military Groups */
.military-groups {
    display: grid;
    gap: 15px;
}

.military-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.mil-group-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mil-group-power {
    color: var(--accent);
}

.mil-group-units {
    display: grid;
    gap: 8px;
}

.mil-unit {
    display: grid;
    grid-template-columns: 30px 1fr 60px 80px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 13px;
}

.mil-unit-icon {
    font-size: 18px;
}

.mil-unit-count {
    text-align: right;
    color: var(--text-dim);
}

.mil-unit-power {
    text-align: right;
    color: var(--accent);
    font-size: 11px;
}

.mil-no-units {
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Compare Categories */
.compare-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.compare-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
}

.compare-category.weak {
    border-color: var(--danger);
    background: rgba(255, 68, 68, 0.1);
}

.compare-category.strong {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.compare-cat-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.compare-visual {
    margin: 10px 0;
}

.compare-bar-container {
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
}

.compare-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
    border-radius: 5px;
}

.compare-bar.my-bar {
    background: linear-gradient(90deg, var(--success), #00cc66);
}

.compare-bar.enemy-bar {
    background: linear-gradient(90deg, var(--danger), #cc0000);
}

.compare-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    margin: 8px 0;
}

.compare-numbers .my-num {
    color: var(--success);
}

.compare-numbers .enemy-num {
    color: var(--danger);
}

.compare-numbers .vs {
    color: var(--text-dim);
}

.compare-result {
    font-size: 11px;
    padding: 5px;
    border-radius: 5px;
}

.compare-result.lose {
    color: var(--danger);
}

.compare-result.win {
    color: var(--success);
}

/* Conquest Tips */
.conquest-tips {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.tips-header {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 16px;
}

.tip {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.tip.success {
    background: rgba(0, 255, 136, 0.15);
    border-left: 4px solid var(--success);
}

.tip.danger {
    background: rgba(255, 68, 68, 0.15);
    border-left: 4px solid var(--danger);
}

.tip.warning {
    background: rgba(255, 170, 0, 0.15);
    border-left: 4px solid orange;
}

/* Overall Comparison */
.overall-comparison {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

.overall-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.overall-bar {
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.overall-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s;
}

.overall-fill.positive {
    background: linear-gradient(90deg, var(--success), #00cc66);
}

.overall-fill.negative {
    background: linear-gradient(90deg, var(--danger), #cc0000);
}

.overall-text {
    font-size: 12px;
    color: var(--text-dim);
}

/* Modal Actions Bar */
.modal-actions-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions-bar .modal-btn {
    flex: 1;
    padding: 12px;
    font-size: 12px;
}

/* =============================================
   PAKT SİSTEMİ STİLLERİ
   ============================================= */

.pact-status {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pact-status.pact-protected {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.pact-status.pact-expelled {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.1));
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.pact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pact-icon {
    font-size: 1.5em;
}

.pact-text {
    font-size: 0.9em;
    color: var(--text);
}

.pact-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.pact-badge.safe {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.pact-badge.danger {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.5);
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pact-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pact-cost {
    font-size: 0.8em;
    color: var(--text-dim);
}

.modal-btn.btn-expel {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 8px 15px;
    font-size: 0.85em;
}

.modal-btn.btn-expel:hover:not(.disabled) {
    background: linear-gradient(135deg, #9b59b6, #a569bd);
    transform: translateY(-2px);
}

.modal-btn.btn-expel.disabled,
.modal-btn.btn-attack.disabled {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* =============================================
   MOBİL UYUMLULUK
   ============================================= */
@media (max-width: 1024px) {
    #left-panel, #right-panel {
        display: none;
    }
    
    #center-panel {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .resources {
        gap: 10px;
    }
    
    .resource {
        padding: 5px 10px;
    }
    
    .resource .amount {
        font-size: 14px;
    }
    
    .game-speed {
        display: none;
    }
    
    /* Tab responsive stilleri menu.css'de */
    
    .units-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== KENDİ ÜLKE MODALI ==================== */
.player-country-info {
    padding: 20px 0;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.player-stat-box {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.player-stat-box .stat-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.player-stat-box .stat-value {
    font-size: 1.4em;
    font-weight: bold;
    display: block;
}

.player-stat-box.gold .stat-value { color: #ffd700; }
.player-stat-box.income .stat-value { color: #4ade80; }
.player-stat-box.power .stat-value { color: #f87171; }
.player-stat-box.spy .stat-value { color: #a78bfa; }

.player-stat-box .stat-label {
    font-size: 0.8em;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-top: 5px;
}

.player-army-section {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-army-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.player-army-category {
    margin-bottom: 15px;
}

.player-army-category h4 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: rgba(255,255,255,0.8);
}

.player-army-units {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-army-unit {
    display: grid;
    grid-template-columns: 30px 1fr 80px 100px;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 8px;
    gap: 10px;
}

.player-army-unit .unit-icon {
    font-size: 1.3em;
}

.player-army-unit .unit-name {
    font-weight: 500;
}

.player-army-unit .unit-count {
    text-align: right;
    color: #4ade80;
    font-weight: bold;
}

.player-army-unit .unit-power {
    text-align: right;
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
}

.no-army {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 20px;
    font-style: italic;
}

.player-bonus-section {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
}

.player-bonus-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.btn-close-big {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 12px 30px !important;
    font-size: 1em !important;
}

.btn-close-big:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ==================== DİPLOMASİ PANELİ ==================== */
.diplomacy-header {
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.diplomacy-status {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.relation-display {
    margin-bottom: 15px;
}

.relation-bar-large {
    height: 20px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    border-radius: 10px;
    position: relative;
    margin-bottom: 10px;
}

.relation-fill {
    position: absolute;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
}

.relation-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 30px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.relation-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
}

.active-treaties {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.treaty-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.treaty-badge.non-aggression {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.treaty-badge.trade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.treaty-time {
    font-weight: normal;
    opacity: 0.8;
}

.no-treaties {
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

.diplomat-info {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.diplomat-icon {
    font-size: 1.5em;
}

.diplomat-warning {
    margin-left: auto;
    color: #fbbf24;
    font-size: 0.85em;
}

.diplomacy-actions {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
}

.diplomacy-actions h3 {
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.diplo-action {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.diplo-action:hover:not(.disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.diplo-action.disabled {
    opacity: 0.5;
}

.diplo-action-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diplo-icon {
    font-size: 1.8em;
}

.diplo-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.diplo-info strong {
    font-size: 1.05em;
}

.diplo-info span {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
}

.diplo-requirements {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.8em;
}

.req-ok {
    color: #4ade80;
}

.req-fail {
    color: #f87171;
}

.diplo-cost {
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
}

.diplo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.diplo-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.diplo-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Haraç butonu özel stili */
.diplo-action.tribute {
    border-color: rgba(245, 158, 11, 0.3);
}

.diplo-action.tribute:hover:not(.disabled) {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
}

.diplo-btn.demand {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.diplo-btn.demand:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.btn-back {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.btn-back:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* ==================== ÜST BAR AKTİF ANLAŞMALAR ==================== */
.active-deals {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.deal-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    animation: dealPulse 2s infinite;
}

.deal-badge.trade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.deal-badge.pact {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

@keyframes dealPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.no-deals {
    color: rgba(255,255,255,0.3);
    font-size: 0.8em;
    font-style: italic;
}

/* ==================== AI DİPLOMASİ POPUP ==================== */
.ai-diplomacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 18000;
    animation: fadeIn 0.3s;
}

.ai-offer-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ai-offer-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-offer-message {
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.ai-offer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ai-offer-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-offer-btn.accept {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.ai-offer-btn.accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.ai-offer-btn.reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.ai-offer-btn.reject:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Toprak Talebi Popup */
.ai-diplomacy-popup.territorial-claim .ai-offer-content {
    border-color: rgba(245, 158, 11, 0.5);
    max-width: 500px;
}

.ai-offer-content.territorial .ai-offer-header {
    color: #f59e0b;
}

.claim-details {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

.claim-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.claim-stat:last-child {
    border-bottom: none;
}

.claim-stat .danger {
    color: #ef4444;
    font-weight: bold;
}

.claim-stat .safe {
    color: #22c55e;
    font-weight: bold;
}

.claim-options {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.8;
}

.territorial-buttons {
    flex-wrap: wrap;
}

.ai-offer-btn.surrender {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.ai-offer-btn.surrender:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.5);
}

.ai-offer-btn.compensate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.ai-offer-btn.compensate:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.ai-offer-btn.reject-claim {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
}

.ai-offer-btn.reject-claim:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Savaş İlanı Popup */
.ai-diplomacy-popup.war-declaration .ai-offer-content {
    border-color: rgba(239, 68, 68, 0.7);
    background: linear-gradient(135deg, #450a0a, #1c1917);
}

.ai-offer-content.war .ai-offer-header.war-header {
    color: #ef4444;
    font-size: 1.8em;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.war-reason {
    background: rgba(0,0,0,0.4);
    border-left: 4px solid #f59e0b;
    padding: 10px 15px;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

.war-stats {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
}

.war-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.war-stat .enemy-power {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1em;
}

.war-stat .player-power {
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1em;
}

.ai-offer-btn.defend {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 15px 40px;
    font-size: 1.1em;
}

.ai-offer-btn.defend:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

/* ==================== DİPLOMASİ SEKMESİ ==================== */
.diplo-section {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.diplo-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1em;
}

.diplomat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.diplomat-status .diplomat-count {
    font-size: 2.5em;
    font-weight: bold;
    color: #a78bfa;
}

.diplomat-status .warning-text {
    color: #fbbf24;
    font-size: 0.9em;
    margin-left: auto;
}

.treaties-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.treaty-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid;
}

.treaty-item.trade {
    border-color: #f59e0b;
}

.treaty-item.pact {
    border-color: #3b82f6;
}

.treaty-flag {
    font-size: 1.8em;
}

.treaty-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.treaty-info span {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
}

.treaty-timer {
    font-weight: bold;
    color: #4ade80;
}

.relations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.relation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.relation-item:hover {
    background: rgba(255,255,255,0.1);
}

.relation-flag {
    font-size: 1.5em;
}

.relation-info {
    flex: 1;
}

.relation-info strong {
    display: block;
    margin-bottom: 5px;
}

.relation-bar-mini {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.relation-fill-mini {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.relation-value {
    font-weight: bold;
    font-size: 1.1em;
    min-width: 40px;
    text-align: right;
}

.relation-diplo-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.relation-diplo-btn:hover {
    transform: scale(1.1);
}

.no-data {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    padding: 20px;
}

/* ==================== KAYIT SİSTEMİ - DEVAM ET PROMPT ==================== */
.continue-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.continue-prompt {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(255,215,0,0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: slideDown 0.4s ease-out;
}

.continue-prompt h2 {
    margin: 0 0 25px 0;
    font-size: 1.5em;
    color: #ffd700;
}

.save-info {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.save-info p {
    margin: 8px 0;
    font-size: 1em;
}

.save-info strong {
    color: #4ade80;
}

.continue-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.continue-btn, .new-game-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
}

.new-game-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

/* =============================================
   KAYNAKLAR TAB
   ============================================= */
#resources-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resource-summary {
    background: linear-gradient(135deg, #22c55e22, #16a34a22);
    border: 2px solid var(--success);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.resource-total {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.total-label {
    font-size: 1.2em;
    color: var(--text-dim);
}

.total-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--success);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.resource-section {
    background: var(--bg-medium);
    border-radius: 12px;
    padding: 15px;
}

.resource-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.resource-section.expenses h3 {
    color: var(--danger);
}

.income-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.income-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.income-item.base {
    border-left-color: var(--primary);
}

.income-item.conquered {
    border-left-color: #f97316;
}

.income-item.treaty {
    border-left-color: #8b5cf6;
}

.income-item.pact {
    border-left-color: #06b6d4;
}

.income-item.defense {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.income-item .source {
    display: flex;
    align-items: center;
    gap: 10px;
}

.income-item .source-icon {
    font-size: 1.3em;
}

.income-item .source-name {
    font-weight: 500;
}

.income-item .source-detail {
    font-size: 0.85em;
    color: var(--text-dim);
}

.income-item .amount {
    font-weight: bold;
    font-size: 1.1em;
}

.income-item .amount.positive {
    color: var(--success);
}

.income-item .amount.negative {
    color: var(--danger);
}

.conquered-income,
.treaty-income,
.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conquered-item,
.treaty-item,
.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.conquered-item .country-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conquered-item .country-flag {
    font-size: 1.5em;
}

.conquered-item .country-name {
    font-weight: 500;
}

.treaty-item .treaty-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.treaty-item .treaty-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.treaty-item .treaty-details .country-name {
    font-weight: 600;
}

.treaty-item .treaty-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.treaty-item .treaty-timer {
    font-size: 0.75em;
    color: rgba(255,255,255,0.6);
}

.treaty-item .treaty-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    background: var(--primary);
    color: white;
}

.treaty-item .treaty-type.trade {
    background: #8b5cf6;
}

.treaty-item .treaty-type.pact {
    background: #06b6d4;
}

.treaty-item.trade-deal {
    border-left: 3px solid #8b5cf6;
}

.treaty-item.pact-deal {
    border-left: 3px solid #06b6d4;
}

.expense-item {
    border-left: 4px solid var(--danger);
}

.expense-item.separatist {
    border-left: 4px solid #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.expense-item .expense-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expense-item .expense-icon {
    font-size: 1.5em;
}

.expense-item .expense-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expense-item .expense-name {
    font-weight: 600;
}

.expense-item .expense-target {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
}

.expense-item .expense-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expense-item .amount.negative {
    color: #ef4444;
    font-weight: bold;
}

.btn-stop-support {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-stop-support:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Sabotaj panelinde ayrılıkçı seçeneği */
.sabotage-op.separatist {
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.sabotage-op.separatist:hover {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.5) !important;
}

.sabotage-op.separatist.active {
    background: rgba(249, 115, 22, 0.25);
    border-color: #f97316;
}

.sabotage-op.separatist.active .op-name {
    color: #f97316;
}

.no-data {
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.new-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

/* ==================== SABOTAJ SİSTEMİ ==================== */
.sabotage-popup {
    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: 19000;
    animation: fadeIn 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

.sabotage-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 20px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.sabotage-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sabotage-header h2 {
    margin: 0 0 5px 0;
    color: #ef4444;
    font-size: 1.3em;
}

.sabotage-target {
    font-size: 1em;
    color: rgba(255,255,255,0.7);
}

.sabotage-info {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.sabotage-stat {
    display: flex;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 0.9em;
}

.sabotage-stat .value {
    font-weight: bold;
}

.sabotage-stat .value.danger {
    color: #ef4444;
}

.sabotage-stat .value.safe {
    color: #22c55e;
}

.sabotage-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: center;
}

.sabotage-operations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .sabotage-operations {
        grid-template-columns: 1fr;
    }
}

.sabotage-op {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sabotage-op:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.sabotage-op .op-icon {
    font-size: 1.8em;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.sabotage-op .op-info {
    flex: 1;
    min-width: 0;
}

.sabotage-op .op-name {
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.sabotage-op .op-desc {
    font-size: 0.75em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.sabotage-op .op-cost {
    font-size: 0.7em;
    color: #f59e0b;
}

.sabotage-footer {
    margin-top: 15px;
    text-align: center;
}

.btn-close-sabotage {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-sabotage:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(107, 114, 128, 0.5);
}

/* Sabotaj butonu */
.modal-btn.btn-sabotage {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}

.modal-btn.btn-sabotage:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.modal-btn.btn-sabotage:disabled {
    background: #4b5563;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==================== ZAFER EKRANI ==================== */
.victory-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50000;
    animation: fadeIn 1s;
    overflow: hidden;
}

.victory-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.victory-crown {
    font-size: 6em;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 30px gold);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.victory-title {
    font-size: 3em;
    color: gold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    margin: 20px 0 10px 0;
}

.victory-subtitle {
    font-size: 1.5em;
    color: #a78bfa;
    margin-bottom: 30px;
}

.victory-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.victory-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 15px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.victory-stat .stat-icon {
    font-size: 2em;
}

.victory-stat .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: gold;
}

.victory-stat .stat-label {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
}

.victory-message {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin: 30px 0;
}

.victory-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.victory-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.victory-btn.new-game {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.victory-btn.new-game:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.victory-btn.continue {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.victory-btn.continue:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

/* Konfeti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==================== HALK SEKMESİ ==================== */
#people-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stability-overview {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 25px;
}

.stability-main {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.stability-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--success) var(--stability-percent, 100%), rgba(255,255,255,0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stability-circle::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.stability-circle .stability-value {
    position: relative;
    z-index: 1;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

.stability-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.stability-info p {
    margin: 0;
    color: var(--text-dim);
    font-size: 1em;
}

.people-section {
    background: var(--bg-medium);
    border-radius: 15px;
    padding: 20px;
}

.people-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.people-section.danger-section h3 {
    color: var(--danger);
}

.satisfaction-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--success);
}

.factor-item.negative {
    border-left-color: var(--danger);
}

.factor-item.warning {
    border-left-color: #f59e0b;
}

.factor-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.factor-value {
    font-weight: bold;
}

.factor-value.positive { color: var(--success); }
.factor-value.negative { color: var(--danger); }

/* Halk Eylemleri */
.people-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

.action-card.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}

.action-card.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.action-card.warning:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
}

.action-card .action-icon {
    font-size: 2.5em;
    width: 60px;
    text-align: center;
}

.action-card .action-info {
    flex: 1;
}

.action-card .action-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.action-card .action-desc {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.action-card .action-cost {
    font-size: 0.8em;
    color: var(--gold);
}

/* İç Savaş Risk */
.civil-war-info {
    padding: 15px;
}

.risk-meter {
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
    transition: width 0.5s;
}

.risk-text {
    text-align: center;
    font-weight: 500;
}

.risk-text.low { color: var(--success); }
.risk-text.medium { color: #f59e0b; }
.risk-text.high { color: var(--danger); }

/* ==================== İÇ SAVAŞ POPUP ==================== */
.civil-war-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60000;
    animation: fadeIn 0.5s;
}

.civil-war-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: linear-gradient(135deg, #450a0a, #1c1917);
    border: 3px solid #ef4444;
    border-radius: 20px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.civil-war-icon {
    font-size: 5em;
    animation: pulse 1s infinite;
}

.civil-war-content h1 {
    color: #ef4444;
    font-size: 2.5em;
    margin: 20px 0 10px 0;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
}

.civil-war-content p {
    font-size: 1.2em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.civil-war-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cw-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cw-btn small {
    font-size: 0.75em;
    font-weight: normal;
    opacity: 0.8;
}

.cw-btn.suppress {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}

.cw-btn.suppress:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.6);
}

.cw-btn.negotiate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.cw-btn.negotiate:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.cw-btn.surrender {
    background: linear-gradient(135deg, #6b7280, #374151);
    color: white;
}

.cw-btn.surrender:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(107, 114, 128, 0.6);
}

/* ==================== GAME OVER POPUP ==================== */
.game-over-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 70000;
    animation: fadeIn 1s;
}

.game-over-content {
    text-align: center;
    max-width: 450px;
    padding: 50px;
}

.game-over-icon {
    font-size: 6em;
    opacity: 0.8;
}

.game-over-content h1 {
    font-size: 3em;
    color: #ef4444;
    margin: 20px 0;
    text-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
}

.game-over-content p {
    font-size: 1.2em;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 40px;
}

.game-over-content button {
    padding: 18px 50px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.game-over-content button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

/* ==================== GÜNCELLEME POPUP ==================== */
#update-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#update-popup.show {
    opacity: 1;
}

.update-popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(233, 69, 96, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#update-popup.show .update-popup-content {
    transform: scale(1);
}

.update-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.update-popup-content h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.update-popup-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.update-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-update-now {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update-now:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.btn-update-later {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update-later:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==================== TOAST BİLDİRİMLER ==================== */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(20, 25, 35, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #666;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-success {
    border-left-color: #22c55e;
}

.toast-notification.toast-danger {
    border-left-color: #ef4444;
}

.toast-notification.toast-warning {
    border-left-color: #f59e0b;
}

.toast-notification.toast-info {
    border-left-color: #3b82f6;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-icon {
    font-size: 1.2em;
}

.toast-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.toast-close:hover {
    color: #fff;
}

.toast-body {
    padding: 12px;
}

.toast-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== BİLDİRİMLER TAB ==================== */
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.notifications-header span {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

.btn-clear-notifications {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-clear-notifications:hover {
    background: rgba(239, 68, 68, 0.3);
}

.notifications-container {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px;
}

.notifications-container .notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border-left: 4px solid #666;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    margin-bottom: 0;
}

.notifications-container .notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notifications-container .notification-item.notification-success {
    border-left-color: #22c55e;
}

.notifications-container .notification-item.notification-danger {
    border-left-color: #ef4444;
}

.notifications-container .notification-item.notification-warning {
    border-left-color: #f59e0b;
}

.notifications-container .notification-item.notification-info {
    border-left-color: #3b82f6;
}

.notification-item .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item .notification-icon {
    font-size: 16px;
}

.notification-item .notification-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-item .notification-body {
    padding: 10px 12px;
}

.notification-item .notification-body pre {
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e5e7eb;
}

/* =============================================
   ÜRETİM SİSTEMİ STİLLERİ
   ============================================= */

/* Header */
.production-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.production-header h2 {
    margin: 0;
    color: #e8daef;
}

.production-summary {
    display: flex;
    gap: 20px;
}

.prod-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.prod-stat .prod-icon {
    font-size: 1.3em;
}

.prod-stat .prod-label {
    font-size: 0.8em;
    color: var(--text-dim);
}

/* Sections */
.production-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.production-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1em;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.4), rgba(44, 62, 80, 0.3));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.resource-card.processed {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(142, 68, 173, 0.2));
    border-color: rgba(155, 89, 182, 0.3);
}

.res-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    border-radius: 8px;
    flex-shrink: 0;
}

.res-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.res-name {
    font-size: 0.85em;
    color: var(--text-dim);
}

.res-amount {
    font-size: 1.1em;
    font-weight: bold;
}

.res-rate {
    font-size: 0.75em;
    color: var(--success);
}

/* Hammadde Satış Bölümü */
.res-sell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.sell-price {
    font-size: 0.7em;
    color: var(--gold);
}

.sell-buttons {
    display: flex;
    gap: 4px;
}

.btn-sell {
    padding: 4px 8px;
    font-size: 0.7em;
    background: rgba(46, 204, 113, 0.3);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sell:hover:not(:disabled) {
    background: rgba(46, 204, 113, 0.5);
    transform: scale(1.05);
}

.btn-sell:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-sell-all {
    padding: 4px 8px;
    font-size: 0.7em;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.4), rgba(243, 156, 18, 0.3));
    border: 1px solid rgba(241, 196, 15, 0.5);
    color: var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sell-all:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.6), rgba(243, 156, 18, 0.5));
    transform: scale(1.05);
}

.btn-sell-all:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.resource-divider {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
    color: var(--text-dim);
    font-size: 0.85em;
    border-top: 1px dashed rgba(255,255,255,0.1);
    margin-top: 10px;
}

/* Factory Grid */
.factory-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.factory-card {
    padding: 15px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.factory-card.inactive {
    background: linear-gradient(135deg, rgba(127, 140, 141, 0.15), rgba(149, 165, 166, 0.1));
    border-color: rgba(127, 140, 141, 0.3);
    opacity: 0.7;
}

.factory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.factory-icon {
    font-size: 1.5em;
}

.factory-name {
    flex: 1;
    font-weight: bold;
}

.factory-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.2s;
}

.factory-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.factory-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.factory-stat {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
}

.factory-stat .good { color: var(--success); }
.factory-stat .medium { color: #f59e0b; }
.factory-stat .low { color: var(--danger); }

.factory-stat.maintenance {
    color: var(--text-dim);
}

.factory-stat.maintenance .maintenance-cost {
    color: #f59e0b;
}

.factory-controls {
    display: flex;
    gap: 8px;
}

.factory-controls button {
    flex: 1;
    padding: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.factory-controls button:hover {
    background: rgba(255,255,255,0.2);
}

/* New Factory Section */
.new-factory-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.new-factory-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: var(--text-dim);
}

.factory-build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.build-factory-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.build-factory-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.2));
    transform: translateY(-2px);
}

.bf-icon {
    font-size: 1.8em;
}

.bf-name {
    font-size: 0.85em;
    font-weight: bold;
}

.bf-cost {
    font-size: 0.75em;
    color: var(--gold);
}

.bf-time {
    font-size: 0.7em;
    color: var(--text-dim);
}

.bf-maintenance {
    font-size: 0.7em;
    color: #f59e0b;
    padding: 2px 6px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 4px;
}

/* Workforce Panel */
.workforce-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.workforce-box {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.workforce-box h4 {
    margin: 0 0 12px 0;
    font-size: 1em;
}

.workforce-stats, .population-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.wf-stat, .pop-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.wf-label, .pop-label {
    color: var(--text-dim);
}

.wf-value.available { color: var(--success); }
.wf-value.good, .pop-value.good { color: var(--success); }
.wf-value.medium, .pop-value.medium { color: #f59e0b; }
.wf-value.low, .pop-value.low { color: var(--danger); }

/* Wage Control */
.wage-control {
    padding: 12px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.wage-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.wage-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.wage-buttons button {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.wage-buttons button:hover {
    background: rgba(255,255,255,0.2);
}

.wage-info {
    font-size: 0.75em;
    color: var(--text-dim);
    text-align: center;
    display: block;
}

/* Birth Incentives */
.birth-incentives h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.incentive-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.incentive-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75em;
    transition: all 0.2s;
}

.incentive-btn:hover {
    background: rgba(255,255,255,0.1);
}

.incentive-btn.active {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--success);
}

/* İşçi Alım Kontrolleri */
.hire-control {
    padding: 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    margin-bottom: 15px;
}

.hire-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.hire-buttons {
    display: flex;
    gap: 8px;
}

.hire-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-hire {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.btn-hire:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
}

.btn-fire {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
}

.btn-fire:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-1px);
}

/* İnşaat Kuyruğu */
.construction-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.construction-section h4 {
    margin: 0 0 15px 0;
    font-size: 1em;
    color: var(--gold);
}

.construction-card {
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

.construction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.construction-icon {
    font-size: 1.5em;
}

.construction-name {
    flex: 1;
    font-weight: bold;
}

.construction-time {
    color: var(--gold);
    font-size: 0.85em;
}

.construction-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #f1c40f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8em;
    color: var(--gold);
    min-width: 35px;
    text-align: right;
}

.bf-time {
    font-size: 0.7em;
    color: var(--text-dim);
}

/* Onay Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

.confirm-body {
    margin-bottom: 20px;
}

.confirm-body pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
}

.confirm-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-cancel {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: #fff;
}

.btn-confirm-cancel:hover {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    transform: translateY(-2px);
}

.btn-confirm-ok {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.btn-confirm-ok:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lobi Süreci Stilleri */
.pact-lobbying {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.1));
    border-color: #f39c12 !important;
}

.pact-badge.lobbying {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.lobby-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.lobby-progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.lobby-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #f1c40f);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.lobby-time {
    font-size: 0.9em;
    color: #f39c12;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Fethedilen Ülke Giderleri */
.expense-section {
    margin-bottom: 20px;
}

.expense-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.expense-country {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.expense-country:hover {
    border-color: rgba(255,255,255,0.2);
}

.expense-country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
}

.expense-flag {
    font-size: 1.3em;
}

.expense-name {
    flex: 1;
    font-weight: bold;
}

.expense-total {
    font-weight: bold;
    color: #e74c3c;
}

.expense-toggle {
    color: var(--text-dim);
    font-size: 0.8em;
    transition: transform 0.2s;
}

.expense-country-details {
    padding: 0 15px 15px;
    background: rgba(0,0,0,0.1);
}

.expense-country-details.hidden {
    display: none;
}

.expense-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-top: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: all 0.2s;
}

.expense-line.active {
    border-left: 3px solid var(--success);
}

.expense-line.inactive {
    border-left: 3px solid #666;
    opacity: 0.6;
}

.el-icon {
    font-size: 1.2em;
}

.el-name {
    flex: 1;
    font-size: 0.9em;
}

.el-cost {
    font-size: 0.85em;
    color: #e74c3c;
}

.el-toggle {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.el-toggle.on {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.el-toggle.off {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.el-toggle:hover {
    transform: scale(1.1);
}

.expense-effects {
    margin-top: 10px;
    padding: 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.8em;
    text-align: center;
}

/* Bekleyen Saldırılar */
.pending-attacks-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    animation: pulse-danger 2s infinite;
}

.pending-attacks-section.hidden {
    display: none;
}

.pending-attacks-section h3 {
    margin: 0 0 15px 0;
    color: #e74c3c;
    font-size: 1.1em;
}

.pending-attack-card {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #e74c3c;
}

.pending-attack-card.defense-ok {
    border-left-color: var(--success);
}

.pa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: bold;
}

.pa-attacker {
    color: #e74c3c;
}

.pa-arrow {
    font-size: 1.2em;
}

.pa-target {
    color: var(--primary);
}

.pa-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pa-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pa-progress-fill.critical {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    animation: pulse 0.5s infinite;
}

.pa-time {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.pa-time.critical {
    color: #e74c3c;
    animation: pulse 0.5s infinite;
}

.pa-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.pa-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.85em;
}

.pa-stat span:first-child {
    color: var(--text-dim);
    font-size: 0.9em;
}

.enemy-power {
    color: #e74c3c;
    font-weight: bold;
}

.defense-ok {
    color: var(--success) !important;
    font-weight: bold;
}

.defense-weak {
    color: #f39c12 !important;
    font-weight: bold;
}

.pa-warning {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    text-align: center;
}

.pa-safe {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    text-align: center;
    font-weight: bold;
}

/* Pakt Üyelik Paneli */
.pact-section {
    margin-bottom: 20px;
}

.pact-member-panel, .pact-non-member-panel {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
}

.pact-member-panel {
    border-color: rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
}

.pact-non-member-panel {
    border-color: rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
}

.pact-member-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pact-icon {
    font-size: 2em;
}

.pact-title {
    flex: 1;
    font-size: 1.2em;
    font-weight: bold;
}

.pact-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.pact-badge.active {
    background: var(--success);
    color: #fff;
}

.pact-badge.inactive {
    background: #e74c3c;
    color: #fff;
}

.pact-member-info {
    margin-bottom: 15px;
}

.pact-benefit {
    padding: 8px 0;
    color: var(--success);
    font-size: 0.9em;
}

.pact-warning {
    padding: 8px 0;
    color: #e74c3c;
    font-size: 0.9em;
}

.pact-danger {
    padding: 10px;
    margin-top: 8px;
    background: linear-gradient(135deg, #e74c3c22, #c0392b33);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.9em;
    font-weight: bold;
    animation: dangerPulse 1.5s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pact-cost {
    padding: 8px 0;
    color: var(--gold);
    font-size: 0.9em;
}

.btn-join-pact, .btn-leave-pact {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-join-pact {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.btn-join-pact:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.btn-leave-pact {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: #fff;
}

.btn-leave-pact:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-2px);
}

/* ==================== FETHEDİLEN ÜLKE MODAL ==================== */
.conquered-header {
    border-bottom: 2px solid var(--gold);
}

.conquered-header .modal-subtitle {
    font-size: 0.85em;
    opacity: 0.9;
}

.conquered-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Saldırı Uyarı Banner */
.attack-warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e74c3c22, #c0392b33);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 12px 16px;
    animation: attackPulse 1s ease-in-out infinite;
}

.awb-icon {
    font-size: 2em;
}

.awb-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.awb-info strong {
    color: #e74c3c;
    font-size: 1.1em;
}

.awb-power {
    background: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
}

/* Savunma Paneli */
.defense-status-panel {
    background: var(--panel-light);
    border-radius: 12px;
    padding: 16px;
}

.defense-status-panel h3 {
    margin-bottom: 12px;
    color: var(--gold);
}

.defense-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.defense-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--panel);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.defense-stat.main {
    background: linear-gradient(135deg, #2ecc7133, #27ae6044);
    border: 1px solid #2ecc71;
}

.ds-label {
    font-size: 0.8em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ds-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2ecc71;
}

.ds-value.weak {
    color: #e74c3c;
}

.ds-value.good {
    color: #2ecc71;
}

/* Garnizon Panel */
.garrison-panel {
    background: var(--panel-light);
    border-radius: 12px;
    padding: 16px;
}

.garrison-panel h3 {
    margin-bottom: 12px;
    color: var(--gold);
}

.garrison-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.garrison-info {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--panel);
    border-radius: 8px;
}

.garrison-cost {
    opacity: 0.7;
}

.garrison-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.garrison-buttons button {
    flex: 1;
    min-width: 60px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.garrison-buttons button:nth-child(1),
.garrison-buttons button:nth-child(2) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.garrison-buttons button:nth-child(3),
.garrison-buttons button:nth-child(4),
.garrison-buttons button:nth-child(5) {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.garrison-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Tahkimat Panel */
.fortification-panel {
    background: var(--panel-light);
    border-radius: 12px;
    padding: 16px;
}

.fortification-panel h3 {
    margin-bottom: 12px;
    color: var(--gold);
}

.fort-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    padding: 12px;
    border-radius: 10px;
}

.fort-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fort-icon {
    font-size: 2em;
}

.fort-info > div {
    display: flex;
    flex-direction: column;
}

.fort-info strong {
    color: var(--text);
}

.fort-info span {
    font-size: 0.85em;
    opacity: 0.7;
}

.fort-upgrade {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.fort-upgrade:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.fort-upgrade.maxed,
.fort-upgrade.built {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    cursor: default;
}

.fort-upgrade:disabled {
    opacity: 0.8;
}

/* Gider Panel */
.expense-summary-panel {
    background: var(--panel-light);
    border-radius: 12px;
    padding: 16px;
}

.expense-summary-panel h3 {
    margin-bottom: 12px;
    color: var(--gold);
}

.expense-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--panel);
    border-radius: 8px;
}

.btn-toggle-expense {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle-expense.on {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.btn-toggle-expense.off {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.expense-warning {
    margin-top: 12px;
    padding: 10px;
    background: #e74c3c22;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.9em;
    text-align: center;
}

.conquered-footer {
    border-top: 1px solid var(--border);
}

/* ==================== HARAÇ SİSTEMİ ==================== */
.tribute-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.tribute-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid #e74c3c;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(231, 76, 60, 0.5);
    animation: tributeShake 0.5s ease;
}

@keyframes tributeShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.tribute-header {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    padding: 20px;
    border-radius: 13px 13px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tribute-icon {
    font-size: 2.5em;
    animation: bounce 1s infinite;
}

.tribute-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tribute-body {
    padding: 20px;
}

.tribute-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tribute-flag {
    font-size: 3em;
}

.tribute-name {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--gold);
}

.tribute-message {
    background: var(--panel);
    padding: 16px;
    border-radius: 10px;
    font-style: italic;
    text-align: center;
    margin-bottom: 16px;
    border-left: 4px solid #e74c3c;
}

.tribute-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.tribute-stat {
    background: var(--panel-light);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.ts-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ts-value {
    font-size: 1.2em;
    font-weight: bold;
}

.ts-value.gold {
    color: var(--gold);
}

.ts-value.danger {
    color: #e74c3c;
}

.ts-value.insufficient {
    color: #e74c3c;
    text-decoration: line-through;
}

.tribute-timer {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e5044, #34495e44);
    border-radius: 8px;
    font-size: 1.1em;
    margin-bottom: 16px;
}

.tribute-consequences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.consequence {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85em;
}

.consequence.accept {
    background: #27ae6022;
    border: 1px solid #27ae60;
}

.consequence.reject {
    background: #e74c3c22;
    border: 1px solid #e74c3c;
}

.consequence strong {
    display: block;
    margin-bottom: 8px;
}

.consequence ul {
    margin: 0;
    padding-left: 18px;
}

.consequence li {
    margin: 4px 0;
}

.tribute-footer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.tribute-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.tribute-btn.btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.tribute-btn.btn-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.tribute-btn.btn-accept.disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.tribute-btn.btn-reject {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
}

.tribute-btn.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* =============================================
   EKONOMİ TOOLTIP
   ============================================= */
.economy-tooltip-container {
    position: relative;
}

.economy-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.economy-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--gold) transparent;
}

.economy-tooltip-container:hover .economy-tooltip {
    opacity: 1;
    visibility: visible;
}

.economy-section {
    margin-bottom: 12px;
}

.economy-section:last-child {
    margin-bottom: 0;
}

.economy-section-title {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.economy-section-title.income {
    color: var(--success);
}

.economy-section-title.expense {
    color: var(--danger);
}

.economy-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.9em;
}

.economy-row .label {
    color: var(--text-dim);
}

.economy-row .value {
    font-weight: bold;
}

.economy-row .value.positive {
    color: var(--success);
}

.economy-row .value.negative {
    color: var(--danger);
}

.economy-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 10px 0;
}

.economy-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 0;
}

.economy-total .value.positive {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.economy-total .value.negative {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* =============================================
   ARAŞTIRMA SİSTEMİ
   ============================================= */

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.research-header h2 {
    margin: 0;
}

.research-stats {
    display: flex;
    gap: 20px;
}

.research-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
}

.research-stats .stat .icon {
    font-size: 1.2em;
}

.research-stats .stat .label {
    color: var(--text-dim);
    font-size: 0.85em;
}

/* Kategori Sekmeleri */
.research-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.research-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.research-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cat-color, #fff);
    transform: translateY(-2px);
}

.research-category-btn.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-color: var(--cat-color, var(--accent));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.research-category-btn .cat-icon {
    font-size: 1.5em;
}

.research-category-btn .cat-name {
    font-size: 0.85em;
    font-weight: bold;
}

.research-category-btn .cat-progress {
    font-size: 0.75em;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Aktif Araştırma Paneli */
.research-active-panel {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.active-research {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ar-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ar-header .ar-icon {
    font-size: 2em;
}

.ar-header .ar-name {
    flex: 1;
    font-size: 1.2em;
    font-weight: bold;
}

.ar-header .ar-cancel {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.ar-header .ar-cancel:hover {
    background: #e74c3c;
    color: #fff;
}

.ar-progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.ar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.ar-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 10px 10px 0 0;
}

.ar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--text-dim);
}

.no-research {
    text-align: center;
    color: var(--text-dim);
    padding: 10px;
    font-style: italic;
}

/* Araştırma Ağacı */
.research-tree {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.research-tier {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-label {
    font-size: 0.9em;
    color: var(--tree-color, var(--accent));
    font-weight: bold;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--tree-color, var(--accent));
    margin-bottom: 5px;
}

.tier-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* Araştırma Kartları */
.research-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.research-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.research-card.locked:hover {
    transform: none;
}

.research-card.completed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.1));
}

.research-card.available {
    border-color: var(--gold);
}

.research-card.available:hover {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.research-card.expensive {
    border-color: #e67e22;
}

.research-card.active {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
    animation: research-pulse 2s infinite;
}

.research-card.dangerous {
    border-color: #e74c3c !important;
}

.research-card.dangerous::before {
    content: '☢️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
}

@keyframes research-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 0 25px rgba(52, 152, 219, 0.6); }
}

.rc-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.rc-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.rc-description {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.4;
}

.rc-cost {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
}

.research-card.completed .rc-cost {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.research-card.active .rc-cost {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.rc-time {
    font-size: 0.8em;
    color: var(--text-dim);
    margin-top: 5px;
}

.rc-requires {
    margin-top: 10px;
    font-size: 0.8em;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
}

/* Tehlikeli Araştırma Bildirimi */
.dangerous-research-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50000;
    animation: drn-fade-in 0.5s ease;
}

@keyframes drn-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drn-content {
    text-align: center;
    animation: drn-scale-in 0.5s ease;
}

@keyframes drn-scale-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.drn-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: drn-pulse 1s infinite;
}

@keyframes drn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.drn-content h2 {
    color: #e74c3c;
    font-size: 2em;
    margin-bottom: 10px;
    animation: drn-glow 1s infinite alternate;
}

@keyframes drn-glow {
    from { text-shadow: 0 0 10px #e74c3c; }
    to { text-shadow: 0 0 30px #e74c3c, 0 0 50px #e74c3c; }
}

.drn-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--gold);
}

.drn-content p {
    color: var(--text-dim);
    margin-bottom: 25px;
    max-width: 400px;
}

.drn-content button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.drn-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.5);
}

/* =============================================
   EKONOMİK İŞBİRLİĞİ SİSTEMİ
   ============================================= */
.economic-union-section {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(241, 196, 15, 0.05));
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
}

.economic-union-section h3 {
    color: #f1c40f;
}

/* Üye değilken - Katıl paneli */
.eu-join-panel {
    text-align: center;
    padding: 20px;
}

.eu-info {
    margin-bottom: 20px;
}

.eu-icon-large {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.eu-info h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #f1c40f;
}

.eu-info p {
    color: var(--text-dim);
    font-size: 0.95em;
}

.eu-benefits-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.eu-benefits-preview .benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.eu-cost {
    font-size: 1.1em;
    color: var(--gold);
    margin-bottom: 15px;
}

.eu-join-btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border: none;
    color: #1a1a2e;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.eu-join-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(241, 196, 15, 0.4);
}

.eu-join-btn.disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

/* Üyeyken - Durum paneli */
.eu-member-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(46, 204, 113, 0.1));
    border-radius: 10px;
    margin-bottom: 15px;
}

.eu-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eu-badge .eu-icon {
    font-size: 1.5em;
}

.eu-badge .eu-text {
    font-weight: bold;
    color: var(--success);
}

.eu-leave-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.eu-leave-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.eu-benefits {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.eu-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
}

.eu-benefit .icon {
    font-size: 1.2em;
}

.eu-benefit .label {
    color: var(--text-dim);
    font-size: 0.85em;
}

.eu-benefit .value {
    font-weight: bold;
    color: var(--success);
}

.eu-active-deals {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.eu-active-deals h4 {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--text-dim);
}

.eu-deal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 5px;
}

.eu-deal .deal-icon {
    font-size: 1.2em;
}

.eu-deal .deal-name {
    flex: 1;
}

.eu-deal .deal-timer {
    color: var(--gold);
    font-size: 0.85em;
}

/* Ekonomik Teklif Modal */
.economic-offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80000;
    animation: fadeIn 0.3s ease;
}

.economic-offer-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #f1c40f;
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.eo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
}

.eo-header .eo-icon {
    font-size: 2em;
}

.eo-header .eo-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #f1c40f;
}

.eo-body {
    text-align: center;
    margin-bottom: 20px;
}

.eo-from {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.eo-from .flag {
    font-size: 2.5em;
}

.eo-from .name {
    font-size: 1.2em;
    font-weight: bold;
}

.eo-from .label {
    color: var(--text-dim);
    font-size: 0.9em;
}

.eo-bonus {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.1));
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
}

.eo-desc {
    color: var(--text-dim);
    font-size: 0.9em;
}

.eo-timer {
    text-align: center;
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1em;
}

.eo-buttons {
    display: flex;
    gap: 15px;
}

.eo-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.eo-btn.btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.eo-btn.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.eo-btn.btn-reject {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.eo-btn.btn-reject:hover {
    background: #e74c3c;
    color: #fff;
}

/* =============================================
   LOBİ SAYAÇLARI STİLLERİ
   ============================================= */
.lobbies-section {
    margin-top: 15px;
}

.lobbies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lobbies-list h4 {
    font-size: 0.9em;
    color: var(--text-dim);
    margin: 10px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lobby-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.4), rgba(44, 62, 80, 0.3));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.lobby-item.player-lobby {
    border-color: rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
}

.lobby-item.enemy-lobby {
    border-color: rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.1));
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.6); }
}

.lobby-flag {
    font-size: 1.8em;
}

.lobby-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lobby-info strong {
    font-size: 0.95em;
}

.lobby-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.lobby-progress-bar.danger {
    background: rgba(231, 76, 60, 0.2);
}

.lobby-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.lobby-progress-bar.danger .lobby-progress-fill {
    background: linear-gradient(90deg, #e67e22, #e74c3c);
}

.lobby-timer {
    font-size: 0.9em;
    font-weight: bold;
    color: #3498db;
    white-space: nowrap;
}

.lobby-timer.danger {
    color: #e74c3c;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.no-lobbies {
    color: var(--text-dim);
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}

/* =============================================
   FIREBASE AUTH & LEADERBOARD STİLLERİ
   ============================================= */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

/* Ana Menü Kullanıcı Bölümü */
.menu-user-section {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: bold;
    color: #fff;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Auth Modal */
.auth-modal {
    max-width: 400px;
    width: 90%;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.social-login {
    margin-bottom: 20px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: none;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.btn-guest {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.btn-icon {
    font-size: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #c23a53 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.auth-note {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Leaderboard Modal */
.leaderboard-modal {
    max-width: 550px;
    width: 95%;
}

.leaderboard-header {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-item.is-me {
    background: rgba(233, 69, 96, 0.2);
    border-left-color: var(--accent);
}

.lb-rank {
    font-size: 20px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.lb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-info {
    flex: 1;
}

.lb-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.lb-stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.lb-score {
    font-size: 14px;
    font-weight: bold;
    color: var(--gold);
}

.leaderboard-my-rank {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   HATA BİLDİRİMİ MODAL
   ============================================= */
.bug-report-modal {
    max-width: 500px;
    width: 95%;
}

.bug-report-modal h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.bug-report-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.bug-report-info p {
    margin-bottom: 5px;
}

.bug-report-info .bug-auto-info {
    font-size: 12px;
    color: #4ecdc4;
    margin-bottom: 0;
}

.bug-form .form-group {
    margin-bottom: 15px;
}

.bug-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.bug-form select,
.bug-form input,
.bug-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.bug-form select:focus,
.bug-form input:focus,
.bug-form textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.bug-form select option {
    background: #1a1a2e;
    color: #fff;
}

.bug-form textarea {
    resize: vertical;
    min-height: 80px;
}

.bug-device-info {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

.device-preview-header {
    font-size: 12px;
    color: #4ecdc4;
    margin-bottom: 8px;
    font-weight: 600;
}

.device-preview-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.bug-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bug-actions .btn-cancel {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.bug-actions .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bug-actions .btn-submit {
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.bug-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.bug-actions .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bug-actions .btn-submit .btn-loading {
    display: inline;
}

.bug-success {
    text-align: center;
    padding: 30px 20px;
}

.bug-success .success-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.bug-success h3 {
    color: #4ecdc4;
    margin-bottom: 10px;
}

.bug-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Ana menüdeki hata bildir butonu */
.menu-btn.bug-report-btn {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    font-size: 13px;
}

.menu-btn.bug-report-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

/* Mobil stiller mobile.css dosyasındadır */