/* =====================================================================
   2D TOP-DOWN MULTIPLAYER RPG - CLIENT STYLESHEET (AŞAMA 5)
   Aesthetic: Fullscreen MMO Immersion, Dark Fantasy & Obsidian-Gold
   ===================================================================== */

:root {
  --bg-dark: #06080d;
  --panel-bg: rgba(14, 18, 26, 0.92);
  --panel-border: rgba(200, 155, 60, 0.35);
  --panel-border-hover: rgba(200, 155, 60, 0.85);

  --text-main: #f3efe6;
  --text-muted: #949eb2;
  --text-gold: #f5c767;

  /* Bar Renkleri */
  --hp-gradient: linear-gradient(90deg, #991b1b, #ef4444, #f87171);
  --hp-glow: rgba(239, 68, 68, 0.5);

  --sp-gradient: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
  --sp-glow: rgba(59, 130, 246, 0.5);

  --exp-gradient: linear-gradient(90deg, #92400e, #f59e0b, #fbbf24);
  --exp-glow: rgba(245, 158, 11, 0.5);

  --font-title: 'Cinzel', serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-ui);
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

/* =====================================================================
   TAM EKRAN OYUN CANVAS'I
   ===================================================================== */
#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  background-color: #070a0f;
  cursor: crosshair;
}

/* =====================================================================
   ÜST BİLGİ BARI & GÜVENLİ BÖLGE GÖSTERGESİ
   ===================================================================== */
.top-bar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================================================================
   AŞAMA 17: SOLAGARD MARKALAMASI & KALICI OYUN ADI
   ===================================================================== */
.solagard-main-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(30, 24, 15, 0.92) 0%, rgba(10, 14, 22, 0.88) 100%);
  border: 1px solid rgba(245, 199, 103, 0.55);
  box-shadow: 0 0 20px rgba(245, 199, 103, 0.25), inset 0 0 12px rgba(245, 199, 103, 0.15), 0 4px 16px rgba(0, 0, 0, 0.7);
  padding: 5px 20px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.solagard-main-brand:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(245, 199, 103, 0.5), inset 0 0 16px rgba(245, 199, 103, 0.3);
  border-color: rgba(245, 199, 103, 0.9);
}

.brand-crest-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(245, 199, 103, 0.6));
  animation: brandCrestPulse 3s infinite ease-in-out;
}

@keyframes brandCrestPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(245, 199, 103, 0.5)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(245, 199, 103, 0.95)); }
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  background: linear-gradient(180deg, #ffffff 0%, #ffeaa7 30%, #f5c767 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 8px rgba(245, 199, 103, 0.4));
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(245, 199, 103, 0.8);
  text-transform: uppercase;
  margin-top: 2px;
}

.server-badge,
.coords-badge,
.safe-zone-badge {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.safe-zone-badge {
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.safe-zone-badge.danger {
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.coords-badge {
  font-family: monospace;
  color: var(--text-gold);
}

/* Şaman Hedef Göstergesi */
.target-indicator {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a7f3d0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* Kontrol İpuçları */
.controls-hint {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 45;
  pointer-events: auto;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.controls-hint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
  user-select: none;
}
.controls-hint-header:active {
  cursor: grabbing;
}

.controls-hint-title {
  font-family: var(--font-title);
  font-size: 0.78rem;
  color: var(--text-gold);
  font-weight: 700;
}

.controls-minimize-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.62rem;
  transition: all 0.15s;
}
.controls-minimize-btn:hover {
  background: rgba(200, 155, 60, 0.4);
  border-color: var(--text-gold);
}

.controls-hint-content {
  margin-top: 6px;
  line-height: 1.6;
}

.controls-hint.collapsed {
  padding: 4px 10px;
}
.controls-hint.collapsed .controls-hint-content {
  display: none !important;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-gold);
  font-weight: 600;
  margin: 0 2px;
}

/* =====================================================================
   MİNİ HARİTA (MINIMAP) - 1500m RADAR
   ===================================================================== */
.minimap-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 10;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(200, 155, 60, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.minimap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 2px;
}

.minimap-title { color: var(--text-gold); font-family: var(--font-title); }
.minimap-size { color: #10b981; font-family: monospace; font-size: 0.65rem; }

.minimap-frame {
  position: relative;
  width: 200px;
  height: 200px;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

#minimapCanvas { display: block; width: 200px; height: 200px; }

.minimap-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
  padding: 0 2px;
}

.legend-item { display: flex; align-items: center; gap: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-green { background-color: #10b981; box-shadow: 0 0 5px #10b981; }
.dot-blue  { background-color: #3b82f6; box-shadow: 0 0 5px #3b82f6; }
.dot-npc   { background-color: #a855f7; box-shadow: 0 0 5px #a855f7; }
.dot-red   { background-color: #ef4444; box-shadow: 0 0 5px #ef4444; }
.dot-gold  { background-color: #f59e0b; box-shadow: 0 0 5px #f59e0b; }

/* =====================================================================
   AŞAMA 5: NPC TİCARET / MAĞAZA MODALI (SHOP)
   ===================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.shop-dialog {
  background: rgba(14, 18, 27, 0.97);
  border: 2px solid var(--text-gold);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(200, 155, 60, 0.25);
  max-width: 680px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(200, 155, 60, 0.3);
  padding-bottom: 8px;
}

.shop-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-npc-icon { font-size: 2rem; }
.shop-title-group h2 { font-family: var(--font-title); color: var(--text-gold); font-size: 1.25rem; }
.shop-npc-role { font-size: 0.75rem; color: var(--text-muted); }

.shop-items-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  max-height: 52vh;
  padding-right: 4px;
}

.shop-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.shop-item-card:hover {
  background: rgba(200, 155, 60, 0.08);
  border-color: var(--text-gold);
}

.shop-item-info-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-item-icon-frame {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.shop-item-details h4 {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.shop-item-stats {
  font-size: 0.7rem;
  color: #38bdf8;
}

.shop-item-price {
  font-size: 0.72rem;
  color: var(--text-gold);
  font-weight: 700;
}

.buy-item-btn {
  background: linear-gradient(135deg, #c89b3c, #916818);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.buy-item-btn:hover {
  background: linear-gradient(135deg, #dfad47, #a4781f);
  transform: scale(1.05);
}

.shop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(200, 155, 60, 0.25);
}

.shop-hint-sell {
  font-size: 0.72rem;
  color: #facc15;
  background: rgba(234, 179, 8, 0.12);
  border: 1px dashed rgba(234, 179, 8, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}

/* =====================================================================
   AŞAMA 6: ETKİLEŞİMLİ PANELLER (DEMİRCİ & MAĞAZA - ENVANTER İLE YAN YANA)
   ===================================================================== */
.interactive-panel-wrapper {
  position: fixed;
  top: 85px;
  left: 5vw;
  z-index: 45;
  pointer-events: auto;
  animation: modalFadeIn 0.25s ease-out;
}

/* =====================================================================
   AŞAMA 5 & 6: DEMİRCİ MODALI (+ BASMA)
   ===================================================================== */
.blacksmith-dialog {
  background: rgba(14, 18, 27, 0.97);
  border: 2px solid var(--text-gold);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(200, 155, 60, 0.25);
  max-width: 520px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blacksmith-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.blacksmith-anvil-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.anvil-icon { font-size: 3rem; }

.upgrade-target-slot {
  width: 74px;
  height: 74px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px dashed var(--text-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.slot-placeholder { font-size: 0.65rem; color: var(--text-muted); padding: 4px; }

.upgrade-stats-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-stats-panel h4 { font-family: var(--font-title); color: var(--text-gold); font-size: 1rem; }
.upgrade-stat-row { display: flex; justify-content: space-between; font-size: 0.8rem; }
.success-rate-text { color: #10b981; }
.upgrade-warning { font-size: 0.68rem; color: #f87171; line-height: 1.2; }

.upgrade-action-btn {
  background: linear-gradient(135deg, #c89b3c, #916818);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.upgrade-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =====================================================================
   AŞAMA 5: EĞİTMEN MODALI (ALT SINIFLAR & YETENEKLER)
   ===================================================================== */
.trainer-dialog {
  background: rgba(14, 18, 27, 0.98);
  border: 2px solid var(--text-gold);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(200, 155, 60, 0.3);
  max-width: 920px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trainer-intro { font-size: 0.85rem; color: var(--text-muted); }

.subclasses-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  overflow-y: auto;
  max-height: 60vh;
  padding: 4px;
}

.subclass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(200, 155, 60, 0.25);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
}

.subclass-card:hover {
  border-color: var(--text-gold);
  background: rgba(200, 155, 60, 0.08);
  transform: translateY(-2px);
}

.subclass-card.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.subclass-title {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.05rem;
}

.subclass-desc { font-size: 0.72rem; color: var(--text-muted); min-height: 32px; }

.subclass-skills-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px;
  border-radius: 6px;
}

.skill-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.skill-mini-icon { font-size: 1rem; }
.skill-mini-key { font-weight: 700; color: var(--text-gold); }
.skill-mini-name { color: var(--text-main); font-weight: 500; }

.choose-subclass-btn {
  background: linear-gradient(135deg, #c89b3c, #916818);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s;
}

.choose-subclass-btn:hover {
  background: linear-gradient(135deg, #dfad47, #a4781f);
}

/* =====================================================================
   AŞAMA 6: 8 SLOTLUK HOTBAR (1-8 TUŞLARI & SÜRÜKLE-BIRAK)
   ===================================================================== */
.hotbar-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hotbar-slots-wrapper {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hotbar-slot {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(20, 26, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.18s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hotbar-slot:hover {
  border-color: rgba(200, 155, 60, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(200, 155, 60, 0.25);
}

.hotbar-slot.drag-over {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: scale(1.06);
}

.hotbar-slot.empty {
  background: rgba(14, 18, 28, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.55;
}

.hotbar-slot.empty:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.2);
}

.hotbar-key {
  position: absolute;
  top: 1px;
  left: 2px;
}

.hotbar-key kbd {
  font-size: 0.55rem;
  padding: 0 3px;
  background: rgba(0, 0, 0, 0.75);
}

.hotbar-icon {
  font-size: 1.15rem;
}

.hotbar-sp {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(0, 0, 0, 0.75);
  padding: 0 2px;
  border-radius: 2px;
}

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

.hotbar-cd-text {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
}

/* =====================================================================
   ENVANTER PENCERESİ ('I') & ÖLÜM MODALI & BİLDİRİMLER
   (Demirci ve Satıcı açıkken yan yana durur, üst üste binmez!)
   ===================================================================== */
.inventory-drawer {
  position: fixed;
  top: 80px;
  right: 3vw;
  width: 580px;
  max-width: calc(100vw - 24px);
  background: rgba(12, 16, 25, 0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(200, 155, 60, 0.7);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92), 0 0 25px rgba(200, 155, 60, 0.18);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
}

.inv-columns-container {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

/* 1. Ekipman Paneli */
.equipment-column-panel {
  width: 245px;
  flex-shrink: 0;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.column-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 155, 60, 0.25);
  padding-bottom: 6px;
}

.panel-subtitle {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 0.88rem;
  font-weight: 700;
}

.equipment-doll-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 4px;
  align-items: center;
  justify-items: center;
}

.character-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5.5rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.equip-slot {
  position: relative;
  width: 52px;
  height: 52px;
  background: rgba(14, 18, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.equip-slot.center-slot {
  grid-column: 2;
}

.equip-slot:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(200, 155, 60, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(200, 155, 60, 0.35);
}

.equip-slot.equipped {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.equip-slot-placeholder {
  font-size: 1.45rem;
  opacity: 0.38;
}

.equip-slot-tag {
  font-size: 0.56rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1px;
}

.equip-slot.equipped .equip-slot-placeholder {
  opacity: 1;
  font-size: 1.65rem;
}

.equip-slot-plus {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 1px 3px #000;
}

.equip-hint {
  font-size: 0.66rem;
  color: #94a3b8;
  text-align: center;
  margin-top: auto;
  padding-top: 4px;
}

/* 2. Eşya Çantası Bölmesi */
.bag-column-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.inv-slot[draggable="true"] {
  cursor: grab;
}

.inv-slot.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(200, 155, 60, 0.3);
  padding-bottom: 8px;
}

.inv-title { display: flex; align-items: center; gap: 6px; }
.inv-title h3 { font-family: var(--font-title); color: var(--text-gold); font-size: 1rem; }
.inv-icon { font-size: 1.1rem; }

.close-modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  border-radius: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.close-modal-btn:hover { background: #ef4444; border-color: #ef4444; }

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.inv-slot {
  position: relative;
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inv-slot:hover { border-color: var(--text-gold); background: rgba(200, 155, 60, 0.08); }
.inv-slot.equipped { border: 2px solid #10b981; background: rgba(16, 185, 129, 0.12); box-shadow: 0 0 10px rgba(16, 185, 129, 0.35); }
.inv-item-icon { font-size: 1.8rem; }
.inv-count { position: absolute; bottom: 2px; right: 3px; font-family: monospace; font-size: 0.65rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.75); padding: 1px 4px; border-radius: 4px; }
.inv-equipped-tag { position: absolute; top: 1px; left: 1px; font-size: 0.5rem; font-weight: 700; color: #10b981; background: rgba(0, 0, 0, 0.85); padding: 1px 3px; border-radius: 2px; border: 1px solid #10b981; }

.inv-item-info {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 52px;
}

.info-title { font-size: 0.8rem; font-weight: 700; color: var(--text-gold); margin-bottom: 2px; }
.info-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

.inv-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(200, 155, 60, 0.25);
  font-size: 0.8rem;
}

.yang-label { color: var(--text-muted); }
.yang-amount { color: var(--text-gold); font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* Ölüm Modalı */
.death-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.65) 0%, rgba(10, 0, 0, 0.96) 100%);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}

.death-card {
  background: rgba(20, 10, 10, 0.95);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 30px 36px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.death-skull { font-size: 4rem; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8)); }
.death-title { font-family: var(--font-title); color: #ef4444; font-size: 2.6rem; letter-spacing: 4px; }
.death-msg { color: #fca5a5; font-size: 1rem; }
.respawn-actions { display: flex; gap: 16px; width: 100%; margin-top: 10px; }
.respawn-btn { flex: 1; padding: 14px 16px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.25s; }
.respawn-btn .btn-icon { font-size: 1.8rem; }
.respawn-btn .btn-text { display: flex; flex-direction: column; text-align: left; }
.btn-city { background: linear-gradient(135deg, #166534, #15803d); color: #fff; border-color: #22c55e; }
.btn-here { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: #fff; border-color: #ef4444; }

/* Bildirimler */
.notice-container {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.notice-item {
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.3s ease-out, fadeOutNotice 0.5s ease-in 2.5s forwards;
}

@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOutNotice { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* Büyük Harita */
.world-map-dialog {
  background: #0d121c;
  border: 2px solid var(--text-gold);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  max-width: 600px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-dialog-header { display: flex; justify-content: space-between; align-items: center; }
.map-title-group h2 { font-family: var(--font-title); color: var(--text-gold); font-size: 1.25rem; }
.map-dimension { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }
.world-map-canvas-wrapper { display: flex; justify-content: center; background: #06090f; border-radius: 8px; overflow: hidden; }
#worldMapCanvas { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1 / 1; }
.world-map-footer { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.map-legend-items { display: flex; gap: 14px; }
.legend-badge { font-size: 0.85rem; }

/* Giriş Sınıf Seçimi */
.class-selection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(200, 155, 60, 0.12) 0%, rgba(6, 8, 13, 0.96) 80%);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.class-select-card {
  background: rgba(14, 18, 27, 0.95);
  border: 2px solid var(--text-gold);
  border-radius: 16px;
  padding: 24px 30px;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.select-header .select-main-title { font-family: var(--font-title); color: var(--text-gold); font-size: 2.2rem; }
.select-desc { font-size: 0.85rem; color: var(--text-muted); }
.name-input-group { display: flex; align-items: center; justify-content: center; gap: 12px; }
.name-input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-gold); }
.name-input-group input { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 0.95rem; }
.classes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.class-card { background: rgba(255, 255, 255, 0.03); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.25s; }
.class-card.active { border-color: var(--text-gold); background: rgba(200, 155, 60, 0.14); }
.class-icon-wrapper { font-size: 2.2rem; }
.class-name { font-family: var(--font-title); color: var(--text-gold); font-size: 1.1rem; }
.class-tag { font-size: 0.68rem; color: #38bdf8; text-transform: uppercase; }
.class-summary { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; min-height: 48px; }
.start-game-btn { background: linear-gradient(135deg, #c89b3c, #916818); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; padding: 12px 32px; border-radius: 10px; font-family: var(--font-title); font-size: 1.1rem; cursor: pointer; align-self: center; }

/* Alt HUD */
.bottom-hud-wrapper {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  width: auto;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
}

.rpg-hud {
  pointer-events: auto;
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.profile-section { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.avatar-frame {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(22, 28, 42, 0.75);
  border: 1.5px solid rgba(200, 155, 60, 0.65);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.avatar-icon { font-size: 1.15rem; }
.level-badge {
  position: absolute;
  bottom: -5px;
  background: linear-gradient(135deg, #c89b3c, #916818);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-name { font-family: var(--font-title); font-size: 0.95rem; color: var(--text-gold); white-space: nowrap; }
.hero-role { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.bars-section { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 140px; }
.bar-row { display: flex; flex-direction: column; gap: 2px; }
.bar-info { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 600; }
.bar-track { height: 6px; background: rgba(0, 0, 0, 0.65); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
.bar-fill { height: 100%; width: 0%; border-radius: 3px; transition: width 0.2s; }
.hp-fill { background: var(--hp-gradient); }
.sp-fill { background: var(--sp-gradient); }
.exp-fill { background: var(--exp-gradient); }

.inv-btn-section { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.hud-action-btn {
  position: relative;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: rgba(22, 28, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.hud-action-btn:hover {
  background: rgba(35, 45, 68, 0.85);
  border-color: rgba(200, 155, 60, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(200, 155, 60, 0.3);
}
.hud-btn-icon { font-size: 1.15rem; }
.hud-btn-key { position: absolute; top: 1px; left: 2px; font-size: 0.55rem; }

.stats-section { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.stat-pill { display: flex; justify-content: space-between; background: rgba(255, 255, 255, 0.04); padding: 2px 6px; border-radius: 4px; border-left: 2px solid var(--text-gold); font-size: 0.68rem; gap: 8px; }
.stat-lbl { color: var(--text-muted); font-weight: 600; }
.stat-num { font-family: monospace; font-weight: 700; color: var(--text-main); }

/* AŞAMA 13: BALIKÇI GELİŞTİRME KARTI */
.fisherman-upgrade-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.75));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fisherman-upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.upgrade-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fish-hook-icon { font-size: 1.4rem; }
.upgrade-title-box h3 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin: 0;
}
.upgrade-title-box p {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin: 0;
}
.fish-points-badge {
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-size: 0.75rem;
  color: #facc15;
}
.fisherman-upgrade-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  color: #e2e8f0;
}
.upgrade-detail small {
  color: #94a3b8;
  font-size: 0.68rem;
}
.upgrade-rod-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.upgrade-rod-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}
.max-badge {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
}

/* =====================================================================
   AŞAMA 7: 2 SAYFALI ENVANTER, DEPO, KARAKTER, YETENEK VE TOOLTIP STİLLERİ
   ===================================================================== */

/* Sayfa Değiştirme Barı (Pagination Bar) */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-tab-group {
  display: flex;
  gap: 6px;
}

.page-tab-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-tab-btn:hover {
  background: rgba(200, 155, 60, 0.25);
  border-color: var(--text-gold);
}

.page-tab-btn.active {
  background: linear-gradient(135deg, #c89b3c, #916818);
  border-color: #f5c767;
  color: #fff;
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.4);
}

.page-indicator-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Depocu Depo Penceresi */
.storage-dialog {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px;
  width: 380px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(200, 155, 60, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 260px;
}

.storage-slot {
  position: relative;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.storage-slot:hover {
  border-color: var(--text-gold);
  background: rgba(200, 155, 60, 0.12);
}

.storage-slot.drag-over {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.25) !important;
  transform: scale(1.06);
}

.storage-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Sürükle & Bırak Vurgusu */
.inv-slot.drag-over {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  transform: scale(1.06);
}

.inv-slot.dragging, .storage-slot.dragging {
  opacity: 0.45;
}

/* Karakter Stat Ekranı ('C' Tuşu) */
.character-dialog {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(200, 155, 60, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.char-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.char-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
}

.char-title-group h2 {
  font-family: var(--font-title);
  color: var(--text-gold);
  font-size: 1.25rem;
}

.char-role-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.char-points-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
}

.banner-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
}

.skilltree-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-reset-skills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
  border: 1px solid #f87171;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.btn-reset-skills:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #7f1d1d 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.6);
  border-color: #fca5a5;
}

.btn-reset-skills:active {
  transform: scale(0.96);
}

.btn-reset-skills .cost-tag {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #f5c767;
  border: 1px solid rgba(245, 199, 103, 0.4);
}

.trainer-footer-reset {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 155, 60, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trainer-reset-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-points-badge {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 2px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.char-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.char-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.char-stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 155, 60, 0.4);
}

.stat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.stat-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-val-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-gold);
  font-family: monospace;
}

.stat-effect-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.stat-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.stat-add-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.stat-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #334155;
}

.char-footer-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Yetenek Gelişim Ağacı ('V' Tuşu) */
.skilltree-dialog {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(200, 155, 60, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 85vh;
  overflow-y: auto;
}

.skills-upgrade-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-upgrade-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s;
}

.skill-upgrade-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.05);
}

.skill-upgrade-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-upgrade-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-upgrade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-upgrade-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-gold);
}

.skill-upgrade-level {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.skill-upgrade-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.skill-upgrade-stats {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 600;
}

.skill-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.skill-add-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.skill-add-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #334155;
}

.skill-upgrade-card[draggable="true"] {
  cursor: grab;
}
.skill-upgrade-card[draggable="true"]:active {
  cursor: grabbing;
  opacity: 0.85;
}

.skill-assign-hotbar-btn {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.25), rgba(200, 155, 60, 0.45));
  border: 1px solid var(--panel-border);
  color: var(--text-gold);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.skill-assign-hotbar-btn:hover {
  background: var(--text-gold);
  color: #000;
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
  transform: translateY(-1px);
}

.inv-slot[draggable="true"] {
  cursor: grab;
}
.inv-slot[draggable="true"]:active {
  cursor: grabbing;
}

/* NİZAMİ MMO EŞYA TOOLTIP */
.mmo-item-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  width: 250px;
  background: rgba(10, 14, 22, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border-hover);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(200, 155, 60, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.tt-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-icon {
  font-size: 1.7rem;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-title-box {
  display: flex;
  flex-direction: column;
}

.tt-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5c767;
}

.tt-type-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.tt-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.tt-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
}

.tt-label {
  color: var(--text-muted);
}

.tt-val {
  color: var(--text-main);
  font-weight: 600;
}

.tt-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tt-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #60a5fa;
  font-weight: 600;
}

.tt-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.gold-val {
  color: #facc15;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================================
   AŞAMA 8: GİRİŞ YAP & KAYIT OL (AUTH) VE EŞYA TAŞIMA STİLLERİ
   ===================================================================== */
.auth-dialog-card {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid var(--text-gold);
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 440px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(200, 155, 60, 0.25);
  animation: fadeIn 0.25s ease-out;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 4px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn:hover {
  color: #fff;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.3), rgba(200, 155, 60, 0.15));
  color: var(--text-gold);
  border: 1px solid var(--text-gold);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gold);
}

.auth-input-group input {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input-group input:focus {
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(245, 199, 103, 0.25);
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
}

/* Fare İmlecine Yapışan Eşya (Click-to-Move) */
.floating-item-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(4px);
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 20px rgba(245, 199, 103, 0.7), 0 8px 24px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transform: translate(-50%, -50%);
  animation: pulseGlow 1.2s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 12px rgba(245, 199, 103, 0.5); }
  to { box-shadow: 0 0 22px rgba(245, 199, 103, 0.9); }
}

/* Taşınan Eşyanın Kaynak Yuva Vurgusu */
.inv-slot.held-source,
.storage-slot.held-source {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.6);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .minimap-panel { display: none; }
  .inventory-drawer { right: 20px; top: 80px; }
  .classes-grid, .subclasses-container { grid-template-columns: 1fr; }
  .rpg-hud { flex-wrap: wrap; }
}

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

/* =====================================================================
   AŞAMA 9: KADİM IŞINLAYICI & HARİTA DETAYLARI
   ===================================================================== */
.teleport-dialog {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid #818cf8;
  border-radius: 16px;
  width: 95%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(129, 140, 248, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.25s ease-out;
}

.teleport-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.teleport-portal-preview {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.portal-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px dashed #818cf8;
  animation: spinPortal 8s linear infinite;
  box-shadow: 0 0 25px rgba(129, 140, 248, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.3);
}

.portal-core {
  font-size: 3rem;
  animation: pulsePortal 2s ease-in-out infinite alternate;
}

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

@keyframes pulsePortal {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; text-shadow: 0 0 20px #818cf8; }
}

.teleport-status-title {
  font-family: var(--font-title);
  color: #c7d2fe;
  font-size: 1.25rem;
  margin: 0;
}

.teleport-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.upcoming-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.upcoming-regions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.region-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.region-card.locked {
  opacity: 0.65;
}

.region-icon {
  font-size: 1.6rem;
}

.region-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.region-info strong {
  color: var(--text-main);
  font-size: 0.88rem;
}

.region-info span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.lock-status {
  font-size: 0.72rem;
  color: #ef4444;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

/* =====================================================================
   AŞAMA 12: SOSYAL SİSTEMLER (GRUP, KLAN, ARKADAŞLAR, GÖREVLER)
   ===================================================================== */

/* 1. GRUP (PARTY) ARAYÜZÜ - SOL ÜST KÖŞE */
.party-container {
  position: fixed;
  top: 76px;
  left: 20px;
  width: 250px;
  background: rgba(14, 18, 27, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 199, 103, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 0 16px rgba(245, 199, 103, 0.05);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.party-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.party-title-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.party-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-gold);
  letter-spacing: 0.5px;
}

.party-count-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.party-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.party-minimize-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  transition: all 0.15s;
}
.party-minimize-btn:hover {
  background: rgba(200, 155, 60, 0.4);
  border-color: var(--text-gold);
}

.party-container.collapsed {
  height: auto !important;
  min-height: 0 !important;
}
.party-container.collapsed .party-members-list {
  display: none !important;
}
.party-container.collapsed .party-mode-btn {
  display: none !important;
}

.party-mode-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.party-mode-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.party-leave-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.party-leave-btn:hover {
  background: #ef4444;
  color: #fff;
}

.party-members-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.party-member-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: background 0.2s;
}

.party-member-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.party-member-avatar {
  font-size: 1.3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.party-leader-crown {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 0.75rem;
}

.party-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.party-member-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party-member-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.party-member-lvl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-gold);
}

.party-bar-mini {
  position: relative;
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.party-bar-mini-fill {
  height: 100%;
  transition: width 0.25s ease-out;
}

.party-hp-fill {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.party-sp-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.party-bar-text {
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  line-height: 1;
}

/* 2. OYUNCU TIKLAMA HEDEF MENÜSÜ */
.player-context-menu {
  position: fixed;
  background: rgba(14, 18, 27, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--text-gold);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(245, 199, 103, 0.3);
  z-index: 9999;
  min-width: 160px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.15s ease;
}

.pcm-header {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-gold);
}

.pcm-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pcm-action-btn:hover {
  background: rgba(245, 199, 103, 0.2);
  border-color: var(--text-gold);
  color: var(--text-gold);
  transform: translateX(2px);
}

/* 3. GRUP DAVET BİLDİRİM BANNERI */
.party-invite-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 18, 27, 0.96);
  backdrop-filter: blur(14px);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(16, 185, 129, 0.35);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pib-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pib-icon {
  font-size: 1.8rem;
}

.pib-text {
  display: flex;
  flex-direction: column;
}

.pib-text strong {
  color: #10b981;
  font-size: 0.92rem;
}

.pib-text span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pib-actions {
  display: flex;
  gap: 8px;
}

.pib-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pib-accept {
  background: #10b981;
  border: 1px solid #34d399;
  color: #fff;
}

.pib-accept:hover {
  background: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.pib-decline {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.pib-decline:hover {
  background: #ef4444;
  color: #fff;
}

/* 4. KLAN DİYALOĞU (GARDİYAN) */
.clan-dialog {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid var(--text-gold);
  border-radius: 16px;
  width: 95%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 199, 103, 0.25);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.clan-body {
  padding: 24px;
  text-align: center;
}

.clan-emblem-preview {
  font-size: 3rem;
  margin-bottom: 8px;
}

.clan-section-title {
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.clan-desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.clan-input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
  text-align: left;
}

.clan-input-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.clan-input-group input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.clan-input-group input:focus {
  border-color: var(--text-gold);
  box-shadow: 0 0 12px rgba(245, 199, 103, 0.3);
}

.clan-active-badge {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 2px solid #facc15;
  padding: 8px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.clan-leave-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.clan-leave-btn:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.clan-error-msg {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* 5. ARKADAŞLAR DİYALOĞU (O) */
.friends-dialog {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  width: 95%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.25);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.friends-body {
  padding: 18px;
}

.friends-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.friends-add-row input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.friends-add-row input:focus {
  border-color: #38bdf8;
}

.friends-add-btn {
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.friends-add-btn:hover {
  background: #0369a1;
}

.friends-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.friends-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.friends-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.friends-list {
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}
.friend-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
}
.friend-item.offline {
  opacity: 0.65;
}
.friend-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.friend-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}
.friend-item.offline .friend-status-dot {
  background: #64748b;
  box-shadow: none;
}
.friend-avatar {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.friend-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #f1f5f9;
}
.friend-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.friend-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.friend-action-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}
.friend-action-btn.btn-remove {
  color: #ef4444;
}
.friend-action-btn.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.empty-social-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-social-state p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* 6. GÖREVLER DİYALOĞU (N) */
.quests-dialog {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  width: 95%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.25);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.quests-body {
  padding: 18px;
}

.quests-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.quests-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.quests-tab.active {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.quest-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quest-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.quest-badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.quest-badge-boss {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.quest-title {
  color: var(--text-main);
  font-size: 0.88rem;
  flex: 1;
  margin-left: 8px;
}

.quest-level {
  font-size: 0.72rem;
  color: var(--text-gold);
  font-weight: 600;
}

.quest-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.quest-progress-bar-bg {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

.quest-progress-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.quest-rewards {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ===================================================================
   AŞAMA 15: İNTERAKTİF BALIK TUTMA MİNİ OYUNU STİLLERİ
   =================================================================== */
.fishing-minigame-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: auto;
  user-select: none;
}

.fishing-minigame-container.hidden {
  display: none !important;
}

.fishing-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 14, 26, 0.98) 100%);
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 290px;
  box-sizing: border-box;
  animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fishing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 8px;
}

.fishing-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fishing-main-icon {
  font-size: 1.8rem;
  animation: floatBounce 1.2s ease-in-out infinite alternate;
}

@keyframes floatBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.fishing-title {
  font-family: var(--font-title);
  color: #38bdf8;
  font-size: 0.92rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.fishing-subtitle {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
}

.fishing-cancel-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.fishing-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
  transform: scale(1.08);
}

.fishing-game-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
}

/* Dikey Su Tüpü */
.fishing-tube {
  width: 48px;
  height: 230px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 40%, #0c4a6e 80%, #082f49 100%);
  border: 2px solid #38bdf8;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.25);
}

.water-ripples-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0px,
    rgba(255, 255, 255, 0.08) 4px,
    transparent 4px,
    transparent 16px
  );
  pointer-events: none;
}

/* Oyuncunun Kontrol Ettiği Yeşil Bölge */
.fishing-reel-zone {
  position: absolute;
  left: 3px;
  width: 38px;
  height: 62px;
  background: rgba(34, 197, 94, 0.35);
  border: 2px solid #4ade80;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.5);
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  pointer-events: none;
  z-index: 2;
}

.fishing-reel-zone.on-target {
  background: rgba(34, 197, 94, 0.7);
  border-color: #86efac;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.95);
}

.reel-glow {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent);
}

/* Yüzen Hedef Balık */
.fishing-target-fish {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 28px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
  pointer-events: none;
  z-index: 3;
  transition: transform 0.05s ease-out;
}

/* Yan İlerleme ve Gerilim */
.fishing-progress-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.catch-meter-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catch-meter-wrapper {
  width: 22px;
  height: 230px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.catch-meter-bar {
  width: 100%;
  background: linear-gradient(0deg, #eab308 0%, #22c55e 100%);
  border-radius: 0 0 10px 10px;
  transition: height 0.08s ease-out, background 0.2s;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.75);
}

.catch-meter-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
  pointer-events: none;
}

.fishing-tension-status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  transition: all 0.15s;
}

.fishing-tension-status.good {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.fishing-controls-guide {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #e2e8f0;
}

.guide-key-badge {
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid #38bdf8;
}

.guide-text b {
  color: #38bdf8;
}

/* =====================================================================
   AŞAMA 15: TAŞINABİLİR VE DUYARLI PENCERELER (RESPONSIVE & DRAGGABLE)
   ===================================================================== */
.shop-header, .inv-header, .char-header, .party-header {
  cursor: grab !important;
  user-select: none !important;
}
.shop-header:active, .inv-header:active, .char-header:active, .party-header:active {
  cursor: grabbing !important;
}

/* Pencere Taşmasını Önleyen Maksimum Boyutlar & İç Kaydırma */
.shop-dialog, .blacksmith-dialog, .storage-dialog, .char-dialog, .trainer-dialog, .teleport-dialog, .clan-dialog, .friends-dialog, .quests-dialog {
  max-height: 88vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.inventory-drawer {
  max-height: 88vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* =====================================================================
   AŞAMA 17: MOBİL KONTROLLER & SANAL JOYSTICK
   ===================================================================== */
.mobile-controls-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
  display: none;
}

body.is-mobile .mobile-controls-layer {
  display: block;
}

@media (hover: none) and (pointer: coarse) {
  .mobile-controls-layer {
    display: block;
  }
}

/* Sanal Joystick Alanı (Sol Alt) */
.virtual-joystick-zone {
  position: absolute;
  bottom: 24px;
  left: 20px;
  width: 140px;
  height: 140px;
  pointer-events: auto;
  touch-action: none;
  z-index: 20;
}

.joystick-base {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(14, 20, 32, 0.78) 0%, rgba(6, 10, 18, 0.9) 100%);
  border: 2px solid rgba(245, 199, 103, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 14px rgba(245, 199, 103, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.joystick-ring {
  position: absolute;
  width: 68%;
  height: 68%;
  border: 1px dashed rgba(245, 199, 103, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.joystick-knob {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%, #fff2cc 0%, #f5c767 40%, #b45309 85%, #78350f 100%);
  border: 2px solid #fffdf5;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), 0 0 14px rgba(245, 199, 103, 0.65);
  pointer-events: none;
  transform: translate(0px, 0px);
  will-change: transform;
}

.joystick-arrows {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.joystick-arrows span {
  position: absolute;
  font-size: 0.75rem;
  color: rgba(245, 199, 103, 0.45);
}
.arrow-up { top: 6px; left: 50%; transform: translateX(-50%); }
.arrow-down { bottom: 6px; left: 50%; transform: translateX(-50%); }
.arrow-left { left: 6px; top: 50%; transform: translateY(-50%); }
.arrow-right { right: 6px; top: 50%; transform: translateY(-50%); }

/* Sağ Taraf: Dokunmatik Aksiyon Butonları */
.mobile-actions-zone {
  position: absolute;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
  z-index: 20;
}

.mobile-action-btn {
  border-radius: 50%;
  border: 2px solid rgba(245, 199, 103, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  color: #fff;
  transition: transform 0.08s ease, filter 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-action-btn:active {
  transform: scale(0.9);
  filter: brightness(1.3);
}

.mobile-action-btn.btn-attack {
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 60%, #7f1d1d 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.mobile-action-btn.btn-attack .btn-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.mobile-action-btn.btn-attack .btn-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
}

.mobile-action-btn.btn-loot {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 35%, #f59e0b 0%, #b45309 60%, #78350f 100%);
  border-color: #fde68a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), 0 4px 10px rgba(0, 0, 0, 0.7);
}

.mobile-action-btn.btn-loot .btn-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-action-btn.btn-loot .btn-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =====================================================================
   AŞAMA 17: MOBİL & KÜÇÜK EKRAN DUYARLI HUD (RESPONSIVE TOUCH UI)
   ===================================================================== */
@media (max-width: 1040px) {
  .top-bar {
    top: 8px;
    left: 10px;
    right: 10px;
  }
  .solagard-main-brand {
    padding: 3px 14px;
    gap: 6px;
  }
  .brand-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-width: 950px) {
  /* Üst Bar: Solagard merkezde, rozetler kompakt */
  .top-bar {
    top: 6px;
    left: 8px;
    right: 8px;
  }
  .server-badge,
  .coords-badge,
  .safe-zone-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }
  .coords-badge {
    display: none; /* Mobilde koordinatlar gereksiz yer kaplamasın */
  }
  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  .brand-sub {
    font-size: 0.52rem;
  }
  .brand-crest-icon {
    font-size: 0.95rem;
  }

  /* Alt HUD: Parmakla basmaya uygun, kompakt ve responsive */
  .bottom-hud-wrapper {
    bottom: 8px;
    width: auto;
    max-width: 96vw;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
  }

  .rpg-hud {
    padding: 4px 6px;
    gap: 6px;
    border-radius: 14px;
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 199, 103, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    max-width: 100%;
  }

  /* Profil bölümünü sadeleştir */
  .profile-section {
    padding-right: 4px;
  }
  .profile-details {
    display: none; /* Mobilde gereksiz yer tutmasın, sadece avatar & lv */
  }
  .avatar-frame {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .avatar-icon {
    font-size: 1.2rem;
  }
  .level-badge {
    font-size: 0.6rem;
    padding: 1px 4px;
    bottom: -5px;
  }

  /* Barlar Bölümü (HP, SP, EXP) */
  .bars-section {
    min-width: 105px;
    max-width: 130px;
    gap: 3px;
  }
  .bar-row {
    gap: 2px;
  }
  .bar-info {
    font-size: 0.65rem;
  }
  .bar-track {
    height: 6px;
  }
  .exp-row {
    display: none; /* Mobilde barları kompakt tutmak için EXP barı gizlenir */
  }

  /* Hotbar Bölümü: Parmakla rahat basılabilir boyut (38px x 38px) */
  .hotbar-section {
    padding: 0;
  }
  .hotbar-slots-wrapper {
    gap: 3px;
    padding: 2px 4px;
    border-radius: 10px;
  }
  .hotbar-slot {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .hotbar-slot:active {
    transform: scale(0.92);
  }
  .hotbar-key {
    display: none; /* Dokunmatik cihazlarda klavye tuş numarası gizlenir */
  }
  .hotbar-icon {
    font-size: 1.35rem;
  }

  /* Pencere Butonları ('C', 'V', 'I', 'O', 'N') */
  .inv-btn-section {
    gap: 3px;
    padding-left: 2px;
  }
  .hud-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .hud-action-btn:active {
    transform: scale(0.9);
  }
  .hud-btn-key {
    display: none; /* Dokunmatik ekranda tuş harfi gizlenir */
  }
  .hud-btn-icon {
    font-size: 1.15rem;
  }

  /* Sanal joystick ve aksiyon butonları ile HUD çakışmasını engelle */
  .virtual-joystick-zone {
    bottom: 84px; /* Alt HUD'ın üst tarafında kalması için */
    left: 12px;
    width: 130px;
    height: 130px;
  }
  .mobile-actions-zone {
    bottom: 84px;
    right: 12px;
  }
}

@media (max-width: 540px) {
  /* Çok dar ekranlar (Telefon Dikey / Dar Ekran) */
  .bottom-hud-wrapper {
    bottom: 4px;
    max-width: 98vw;
  }
  .rpg-hud {
    gap: 4px;
    padding: 3px 4px;
  }
  .bars-section {
    min-width: 85px;
    max-width: 95px;
  }
  .hotbar-slot {
    width: 32px;
    height: 32px;
  }
  .hotbar-icon {
    font-size: 1.15rem;
  }
  .hud-action-btn {
    width: 30px;
    height: 30px;
  }
  .hud-btn-icon {
    font-size: 1rem;
  }
  .virtual-joystick-zone {
    bottom: 80px;
    left: 8px;
    width: 115px;
    height: 115px;
  }
  .mobile-action-btn.btn-attack {
    width: 64px;
    height: 64px;
  }
  .mobile-action-btn.btn-loot {
    width: 46px;
    height: 46px;
  }
  .mobile-actions-zone {
    bottom: 80px;
    right: 8px;
  }
}

/* =====================================================================
   AŞAMA 15: SİSTEM GENEL DUYURU BANNERI (BROADCAST)
   ===================================================================== */
.system-broadcast-banner {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.97), rgba(153, 27, 27, 0.98));
  border: 3px solid #ef4444;
  border-radius: 16px;
  padding: 18px 38px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.75), inset 0 0 20px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sbbPulse 1.4s infinite alternate ease-in-out, sbbSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 92vw;
  box-sizing: border-box;
}

@keyframes sbbSlideDown {
  0% { transform: translate(-50%, -70px) scale(0.85); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes sbbPulse {
  0% {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.6);
    border-color: #ef4444;
  }
  100% {
    box-shadow: 0 18px 60px rgba(220, 38, 38, 0.95), 0 0 45px rgba(255, 100, 100, 0.9);
    border-color: #fca5a5;
    transform: translateX(-50%) scale(1.02);
  }
}

.sbb-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sbb-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  animation: sbbBell 0.7s infinite alternate ease-in-out;
}

@keyframes sbbBell {
  0% { transform: rotate(-12deg) scale(1); }
  100% { transform: rotate(12deg) scale(1.15); }
}

.sbb-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sbb-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #fef08a;
  font-family: var(--font-title, sans-serif);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 2px 10px;
  border-radius: 6px;
  align-self: flex-start;
  border: 1px solid rgba(254, 240, 138, 0.4);
}

.sbb-text {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-title, sans-serif);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 220, 220, 0.7);
  line-height: 1.35;
}

/* =====================================================================
   AŞAMA 15: SUNUCUDAN ATILDINIZ (KICK) DİYALOĞU
   ===================================================================== */
.kicked-dialog {
  background: rgba(18, 12, 16, 0.97);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.4);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.kicked-icon {
  font-size: 3.5rem;
  margin-bottom: 4px;
}

.kicked-dialog h2 {
  font-family: var(--font-title, sans-serif);
  color: #ef4444;
  font-size: 1.5rem;
  margin: 0;
}

.kicked-dialog p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.kicked-reconnect-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  color: #fff;
  font-family: var(--font-title, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.kicked-reconnect-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

/* =====================================================================
   2 KARAKTER SLOTU & KARAKTER SİLME STİLLERİ
   ===================================================================== */
.char-select-dialog-card {
  background: rgba(14, 18, 27, 0.96);
  border: 2px solid var(--text-gold);
  border-radius: 18px;
  padding: 26px 34px;
  max-width: 820px;
  width: 95%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(200, 155, 60, 0.25);
  animation: fadeIn 0.25s ease-out;
}

.account-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-pill-tag {
  color: #e2e8f0;
  font-size: 0.88rem;
}

.account-pill-tag strong {
  color: var(--text-gold);
}

.btn-logout-small {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff9999;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout-small:hover {
  background: #dc3545;
  color: #fff;
}

.char-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.char-slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.85) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 2px solid rgba(200, 155, 60, 0.4);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.char-slot-card:hover {
  border-color: var(--text-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(200, 155, 60, 0.25);
}

.char-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.char-slot-number {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gold);
}

.char-slot-level-badge {
  background: linear-gradient(135deg, #c89b3c, #845a1c);
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.char-avatar-crest {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.25) 0%, rgba(0, 0, 0, 0.7) 80%);
  border: 2px solid var(--text-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 0 16px rgba(200, 155, 60, 0.35);
}

.char-name-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
  text-align: center;
}

.char-subclass-title {
  font-size: 0.85rem;
  color: var(--text-gold);
  text-align: center;
  margin-bottom: 14px;
}

.char-stats-summary-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.char-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-stat-val {
  font-weight: 700;
  color: #fff;
}

.char-slot-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-play-slot {
  background: linear-gradient(135deg, #f0c05a 0%, #c89b3c 50%, #996e1b 100%);
  color: #1a1100;
  border: 1px solid #ffd875;
  border-radius: 8px;
  padding: 11px 18px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 155, 60, 0.4);
  transition: all 0.2s;
}

.btn-play-slot:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.6);
}

.btn-delete-slot {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff9999;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-slot:hover {
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  border-color: #dc3545;
}

/* Boş Slot Görünümü */
.char-slot-card.empty-slot {
  border: 2px dashed rgba(200, 155, 60, 0.35);
  background: rgba(14, 18, 27, 0.45);
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
}

.char-slot-card.empty-slot:hover {
  border-color: var(--text-gold);
  background: rgba(200, 155, 60, 0.06);
}

.empty-slot-icon {
  font-size: 3.2rem;
  color: rgba(200, 155, 60, 0.7);
  transition: transform 0.2s;
}

.char-slot-card.empty-slot:hover .empty-slot-icon {
  transform: scale(1.1);
  color: var(--text-gold);
}

.empty-slot-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
}

.empty-slot-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.4;
}

.btn-create-slot {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.25), rgba(200, 155, 60, 0.08));
  border: 1px solid var(--text-gold);
  color: var(--text-gold);
  border-radius: 8px;
  padding: 10px 22px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}

.btn-create-slot:hover {
  background: var(--text-gold);
  color: #000;
  box-shadow: 0 0 16px rgba(200, 155, 60, 0.5);
}

/* Karakter Silme Onay Penceresi */
.char-delete-confirm-box {
  background: rgba(18, 14, 16, 0.98);
  border: 2px solid #dc3545;
  border-radius: 16px;
  padding: 26px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(220, 53, 69, 0.35);
  animation: fadeIn 0.2s ease-out;
}

.delete-icon-alert {
  font-size: 3rem;
  margin-bottom: 8px;
}

.delete-confirm-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #ff6b6b;
  margin-bottom: 10px;
}

.delete-confirm-desc {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 22px;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-delete-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-delete-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-delete-confirm {
  background: #dc3545;
  border: 1px solid #ff6b6b;
  color: #fff;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  transition: 0.2s;
}

.btn-delete-confirm:hover {
  background: #c82333;
  transform: scale(1.02);
}

/* Sınıf Oluşturma Ekstra Butonları */
.slot-creating-indicator {
  display: inline-block;
  background: rgba(200, 155, 60, 0.2);
  border: 1px solid var(--text-gold);
  color: var(--text-gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.class-create-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  justify-content: flex-end;
  align-items: center;
}

.btn-back-to-slots {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back-to-slots:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
